{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "ace://schemas/vericify-process-post-log/1.0.0",
  "title": "Vericify Process Post Log",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "version",
    "updated_at",
    "posts"
  ],
  "properties": {
    "version": {
      "type": "integer",
      "const": 1
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "posts": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "process_post_id",
          "run_id",
          "agent_id",
          "kind",
          "summary",
          "timestamp",
          "tool_refs",
          "evidence_refs"
        ],
        "properties": {
          "process_post_id": {
            "type": "string",
            "minLength": 1
          },
          "run_id": {
            "type": "string",
            "minLength": 1
          },
          "branch_id": {
            "type": "string"
          },
          "lane_id": {
            "type": "string"
          },
          "agent_id": {
            "type": "string",
            "minLength": 1
          },
          "kind": {
            "type": "string",
            "enum": [
              "intent",
              "progress",
              "blocker",
              "handoff_note",
              "stale_ack",
              "completion"
            ]
          },
          "summary": {
            "type": "string",
            "minLength": 1
          },
          "tool_refs": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "evidence_refs": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "checkpoint_ref": {
            "type": "string"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          }
        }
      }
    }
  }
}
