{
  "$id": "https://commandlayer.org/schemas/v1.1.0/commons/parse/parse.receipt.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "parse.receipt",
  "description": "Receipt for a parse request, including the parsed structure and confidence/provenance details.",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "verb": {
      "type": "string",
      "const": "parse"
    },
    "schema_version": {
      "type": "string",
      "const": "1.1.0"
    },
    "status": {
      "description": "Outcome status for this verb invocation.",
      "type": "string",
      "enum": [
        "success",
        "error",
        "delegated"
      ]
    },
    "parsed": {
      "description": "Parsed structured representation (e.g., JSON object).",
      "type": "object",
      "additionalProperties": true
    },
    "target_schema": {
      "description": "Schema actually used by the provider, if any.",
      "type": "string",
      "minLength": 1,
      "maxLength": 512
    },
    "confidence": {
      "description": "Confidence score in [0,1] for the parsed output.",
      "type": "number",
      "minimum": 0,
      "maximum": 1
    },
    "warnings": {
      "description": "Optional warnings encountered during parsing.",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 256
      },
      "maxItems": 128
    }
  },
  "required": [
    "verb",
    "schema_version",
    "status",
    "parsed"
  ]
}
