{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://dicworkflowkit.local/schemas/agent-handoff.schema.json",
  "title": "DIC Agent Handoff",
  "type": "object",
  "required": ["schema", "agent", "version", "status", "inputsConsumed", "outputsProduced", "nextAction"],
  "properties": {
    "schema": { "const": "dic.agent-handoff.v1" },
    "agent": { "type": "string" },
    "version": { "type": "string" },
    "candidateId": {
      "type": "string",
      "pattern": "^candidate-[a-f0-9]{16}$"
    },
    "gateId": {
      "type": "string",
      "pattern": "^[a-z][a-z0-9.-]+$"
    },
    "status": {
      "enum": ["PASS", "PASS_WITH_FOLLOW_UP", "BLOCKED", "FAIL", "SKIPPED"]
    },
    "inputsConsumed": { "type": "array", "items": { "type": "string" } },
    "outputsProduced": { "type": "array", "items": { "type": "string" } },
    "traceArtifacts": { "type": "array", "items": { "type": "string" } },
    "nextAction": { "type": "string" },
    "blockers": { "type": "array", "items": { "type": "string" } },
    "notes": { "type": "array", "items": { "type": "string" } }
  },
  "additionalProperties": true
}
