{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Maha Context Pack evaluation request",
  "description": "Evaluates whether caller-declared exact evidence spans survive deterministic Context Pack compilation. Source, evidence and compiled context text are processed transiently and not retained in the ledger.",
  "type": "object",
  "required": ["clientRequestId", "task", "tokenBudget", "documents", "requiredEvidence"],
  "properties": {
    "clientRequestId": { "type": "string", "minLength": 8, "maxLength": 120 },
    "task": { "type": "string", "minLength": 8, "maxLength": 1200 },
    "tokenBudget": { "type": "integer", "minimum": 64, "maximum": 16000 },
    "documents": { "type": "array", "minItems": 1, "maxItems": 8, "items": { "type": "object", "required": ["id", "text"], "properties": { "id": { "type": "string" }, "title": { "type": "string" }, "text": { "type": "string", "maxLength": 64000 } } } },
    "requiredEvidence": { "type": "array", "minItems": 1, "maxItems": 32, "items": { "type": "object", "required": ["evidenceId", "sourceId", "text"], "properties": { "evidenceId": { "type": "string" }, "sourceId": { "type": "string", "description": "Must reference a supplied document id." }, "text": { "type": "string", "description": "An exact span from the declared source document." } } } }
  },
  "additionalProperties": false
}
