{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://clavenar.com/schemas/hil-decision.schema.json",
  "title": "Clavenar HIL Decision",
  "type": "object",
  "required": ["correlation_id", "decision"],
  "additionalProperties": false,
  "properties": {
    "correlation_id": {
      "type": "string",
      "format": "uuid"
    },
    "decision": {
      "type": "string",
      "enum": ["approve", "deny"]
    },
    "decider_note": {
      "type": "string",
      "maxLength": 2000
    },
    "decided_by": {
      "type": "string",
      "minLength": 1
    },
    "decided_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}
