{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://montrealai.github.io/proof-gradient/standards/AEP-005/schemas/compensation_receipt.schema.json",
  "title": "AEP-005 Compensation Receipt",
  "type": "object",
  "required": [
    "compensation_id",
    "schema",
    "schema_version",
    "receipt_id",
    "tool_id",
    "compensation_reason",
    "compensation_action",
    "compensation_owner",
    "compensation_status",
    "evidence_refs",
    "created_at",
    "proof_packet_ref",
    "hash"
  ],
  "properties": {
    "compensation_id": {
      "type": "string"
    },
    "schema": {
      "type": "string",
      "const": "AEP-005-COMPENSATION-RECEIPT"
    },
    "schema_version": {
      "type": "string"
    },
    "receipt_id": {
      "type": "string"
    },
    "tool_id": {
      "type": "string"
    },
    "compensation_reason": {
      "type": "string"
    },
    "compensation_action": {
      "type": "string"
    },
    "compensation_owner": {
      "type": "string"
    },
    "compensation_status": {
      "type": "string",
      "enum": [
        "planned",
        "in_progress",
        "completed",
        "failed",
        "not_required"
      ]
    },
    "evidence_refs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "created_at": {
      "type": "string"
    },
    "proof_packet_ref": {
      "type": "string"
    },
    "hash": {
      "type": "string",
      "pattern": "^sha256:[a-fA-F0-9]{64}$"
    }
  }
}
