{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://agoragentic.com/schema/context-graph-receipt.v1.json",
  "title": "Agoragentic Context Graph Receipt",
  "description": "Receipt artifact for graph compilation/export review. It records hashes and review state without mutating deployment policy, public listings, x402, settlement, or trust.",
  "type": "object",
  "required": ["schema", "receipt_id", "receipt_type", "source_hashes", "graph_hashes", "public_boundary"],
  "properties": {
    "schema": { "const": "agoragentic.context-graph-receipt.v1" },
    "receipt_id": { "type": "string" },
    "receipt_type": { "const": "context_graph_receipt" },
    "graph_id": { "type": ["string", "null"] },
    "export_id": { "type": ["string", "null"] },
    "source_hashes": { "type": "array", "items": { "type": "string" } },
    "graph_hashes": { "type": "array", "items": { "type": "string" } },
    "review_status": { "type": "string" },
    "trap_scan_status": { "type": "string" },
    "visibility_mode": { "type": "string" },
    "memory_write_allowed": { "const": false },
    "owner_approval_required": { "const": true },
    "public_boundary": {
      "type": "object",
      "properties": {
        "receipt_artifact_only": { "const": true },
        "scanner_executed_by_schema": { "const": false },
        "deployment_policy_mutated": { "const": false },
        "marketplace_publication_triggered": { "const": false },
        "x402_route_created": { "const": false },
        "wallet_spend_triggered": { "const": false },
        "settlement_triggered": { "const": false },
        "trust_mutated": { "const": false },
        "private_context_exposed": { "const": false }
      }
    },
    "created_at": { "type": "string" }
  },
  "additionalProperties": true
}
