{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://oms.local/schemas/advisor-output.schema.json",
  "title": "OMS advisor output",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema_version",
    "dispatch_intent_sha256",
    "verdict",
    "summary",
    "recommendations",
    "risks"
  ],
  "properties": {
    "schema_version": { "type": "integer", "const": 1 },
    "dispatch_intent_sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
    "verdict": { "type": "string", "enum": ["approve", "revise", "veto"] },
    "summary": { "type": "string", "minLength": 1, "maxLength": 8192 },
    "recommendations": {
      "type": "array",
      "maxItems": 64,
      "items": { "type": "string", "minLength": 1, "maxLength": 4096 }
    },
    "risks": {
      "type": "array",
      "maxItems": 64,
      "items": { "type": "string", "minLength": 1, "maxLength": 4096 }
    }
  }
}
