{
 "body": {
  "action": {
   "action_type": "create_record",
   "arguments_digest": "6580a0ac0576e5c099c67866246c51f3fea0d47a18b591bd3ec3d8c8f70873c9",
   "capabilities": [
    "record:create"
   ],
   "declared_side_effects": [
    "row_created"
   ],
   "digest": "dc70c06e36c8cf19784aec39cfff60839270ff5c94cbd6df8635982729e182fd",
   "environment": "local",
   "normalized": {
    "action_class": "record",
    "agent_identity": "specialist",
    "approval_required": [],
    "causal_chain": [],
    "data_classification": "INTERNAL",
    "declared_purpose": "create a synthetic customer record",
    "evidence_requirements": [],
    "expected_side_effects": [
     "row_created"
    ],
    "nonce": "7a1c33b6a5df3cdf3c717f58ec3636f3",
    "normalized_arguments": {
     "id": "cust-1042",
     "value": "active"
    },
    "operation": "create_record",
    "policy_ref": "",
    "policy_version": "",
    "predecessors": [],
    "principal": "alice@example.org",
    "requested_capabilities": [
     "record:create"
    ],
    "required_env": "local",
    "risk_class": "LOW",
    "schema_version": "cain.action.v1",
    "session_id": "",
    "target_resource": "sqlite://e84-demo/records",
    "target_system": "sqlite",
    "tenant": "tenant-a",
    "valid_until": 1794879197.0918622,
    "workload_identity": ""
   },
   "target": {
    "resource": "sqlite://e84-demo/records",
    "system": "sqlite"
   }
  },
  "agent": {
   "build": "e84-demo",
   "id": "specialist",
   "pub": "kClclhaGHl12lLsZjYzXXabx/dke0j8Re70ao9GOBvc=",
   "role": "specialist",
   "tenant": "tenant-a"
  },
  "authorization": {
   "body": {
    "action_digest": "dc70c06e36c8cf19784aec39cfff60839270ff5c94cbd6df8635982729e182fd",
    "decided_at": 1794878597.0918622,
    "decision": "ALLOW",
    "expires_at": 1794878717.0918622,
    "grant": {
     "body": {
      "action_digest": "dc70c06e36c8cf19784aec39cfff60839270ff5c94cbd6df8635982729e182fd",
      "expires_at": 1794878657.092948,
      "grant_id": "grant-180b18de0e1411c2a5286162",
      "max_uses": 1,
      "nonce": "9216abe11a81e109683c848c8366bfb8",
      "resource": "sqlite://e84-demo/records",
      "tenant": "tenant-a"
     },
     "digest": "63fb7a44becc8e29001ab3318ea8f06fd9dce57134ed1149efaff5ccac1147d3",
     "schema": "CAIN42/E84/SINGLE-USE-GRANT/v1",
     "signature_b64": "ohE9Sf81dd6dxd7Qd9kfPYQahGwnVNH/NyjSFWY48npyk0hYcY/TBhaLuOncRu5r5PByvlGo/uH1ok0LWBZ9BA==",
     "signer_pub": "s5lKs+vZ392thcdK5Ma03FFpKJcSqsAd2YfS9pMdiEY="
    },
    "nonce": "9216abe11a81e109683c848c8366bfb8",
    "policy_body": {
     "default": "DENY",
     "rules": [
      {
       "action_class": "record",
       "capabilities": [
        "record:create"
       ],
       "data_classification": "*",
       "effect": "ALLOW",
       "max_delegation_depth": 1,
       "max_risk": "CRITICAL",
       "operation": "create_record",
       "principal": "*",
       "priority": 10,
       "require_approval": false,
       "require_env": "local",
       "rule_id": "allow-record-create",
       "target_resource": "sqlite://e84-demo/records",
       "target_system": "sqlite",
       "tenant": "tenant-a",
       "valid_until": 0.0
      }
     ],
     "version": "2026-11-17.1"
    },
    "policy_digest": "779697c3befd2e7cee091decdb50dbc7ee1b35c7e991bacd0a0e94a29e3334ee",
    "policy_id": "policy-e84-demo",
    "policy_version": "2026-11-17.1",
    "reason": "ALLOW",
    "tenant": "tenant-a"
   },
   "digest": "9a2c12f40cc8cea167119302af5769690e13666db06a33eb8026e4e6143ed442",
   "signature_b64": "xTEgGplLCx2bYmzz7yqJKy6SEMLYqpipIDqDKBRZjxtZSuwZMufN0SOkvqIpXx0uIzZ2/HBiawgsn4VwofGhDw==",
   "signer_pub": "s5lKs+vZ392thcdK5Ma03FFpKJcSqsAd2YfS9pMdiEY="
  },
  "consensus": {
   "reason": "local authority path; no consensus certificate is claimed",
   "used": false
  },
  "delegation": {
   "chain": [
    {
     "audience": "tenant-a",
     "child_agent": "specialist",
     "depth": 1,
     "expires_at": 1794878897.0903025,
     "grant_id": "grant-b9d1ab5ea4f5ce9150313b7e",
     "issued_at": 1794878597.0903025,
     "nonce": "6780fffa993bb93f6300424afee8718d",
     "parent_agent": "commander",
     "parent_credential_digest": "cred-commander",
     "parent_grant_id": "",
     "resources": [
      "sqlite://e84-demo/records"
     ],
     "schema": "cain61.delegation.v1",
     "scope": [
      "record:create"
     ],
     "signature_b64": "vi5pKFYJw7aksVJRjQWPKerFq0K+OvANsb0qB91ei7z1//vUQvOKD/mSPFR4cU8iiyOylmbuD6aLCGgm/mpZCg==",
     "signer_pub": "+sRsYN48Mt2Tbb3oZ2ueeRJYXIj96+pgTmWkdB7zHUw="
    }
   ],
   "revoked": [],
   "root": {
    "agent": "commander",
    "credential_digest": "cred-commander",
    "expires_at": 1794879197.0918622,
    "pub": "+sRsYN48Mt2Tbb3oZ2ueeRJYXIj96+pgTmWkdB7zHUw=",
    "resources": [
     "sqlite://e84-demo/records"
    ],
    "scope": [
     "record:create"
    ]
   }
  },
  "effect": {
   "body": {
    "authoritative": true,
    "detail": "authoritative read-back",
    "duplicate": false,
    "observation_digest": "32c368a4ffa13ed8a4c2157c47b25a302608fcaf8da975a9b1f7ccd066bc2878",
    "observed_at": 1794878597.1256254,
    "record_id": "cust-1042",
    "resource": "sqlite://e84-demo/records",
    "state": "EFFECT_VERIFIED",
    "tenant": "tenant-a"
   },
   "digest": "134c4d560b821677e0ff5f3329cd880f889d65e3b88370ea101f28c1f981ba7b",
   "signature_b64": "zDuj3cyN43Cm+5a/2PQUfM0eYFwcCueKQ0PkXSFaAq0AreBH9jvYPoPLq271qcTN3o0GdsXqJkwGFwX/1OrbBA==",
   "signer_pub": "epRFhdaIzDlXgNcVYOe8UkjSi4zPLX76O1C9MoX7s+g="
  },
  "enforcement": {
   "body": {
    "action_digest": "dc70c06e36c8cf19784aec39cfff60839270ff5c94cbd6df8635982729e182fd",
    "attempt_id": "att-3aea04c632829d989b53",
    "decision": "ALLOW",
    "enforced_at": 1794878597.114122,
    "grant_id": "grant-180b18de0e1411c2a5286162",
    "instance": "mcpgate-e84-local",
    "nonce": "9216abe11a81e109683c848c8366bfb8",
    "reason": "EXACT_REQUEST_MATCHES_GRANT",
    "resource": "sqlite://e84-demo/records",
    "tenant": "tenant-a"
   },
   "digest": "168459b945c4ef86d26012b6686d1c7c3e492e3247ae1a70b7fce78308791e41",
   "signature_b64": "+yQwZ6NJRsFU5/n1f9IVIPQj8GfbRxYuL5I32/fhnvEWIxvajJSiIOztI7yeCdfKMM/8uv4VHN3YLZVZ3cPNDg==",
   "signer_pub": "1ugL/bA9o/p/MYlwhG0ICa/PiER9IuTIc3ZWW/oSC2A="
  },
  "execution": {
   "body": {
    "action_digest": "dc70c06e36c8cf19784aec39cfff60839270ff5c94cbd6df8635982729e182fd",
    "attempts": 1,
    "completed_at": 1794878597.1278048,
    "environment": "local-sqlite",
    "execution_id": "exec-2feba37be8564e6a",
    "executor": "e84-executor",
    "exit_code": 0,
    "idempotency_key": "idem-7712a8d72d67427f5f4b14e5",
    "output_digest": "32c368a4ffa13ed8a4c2157c47b25a302608fcaf8da975a9b1f7ccd066bc2878",
    "provider_ref": "sqlite://e84-demo/records",
    "started_at": 1794878597.1255765,
    "status": "SUCCESS",
    "tenant": "tenant-a"
   },
   "digest": "5e240c0d4669fa0972a90f72e158c7182deaf9153929687aeffa1460bb54c8b9",
   "signature_b64": "QK0eJ+o291VOjs7vnLVkopVJ79Kts/GJuVkH6r6KjSoZs1A04NQXjEfv9ThB0Z2+iKgGD7abMQU5oP/UMbCWBw==",
   "signer_pub": "P3ZukJkIV2Qvaw7KcVRYf9K3aD8AQLPRJDB5QPzaUik="
  },
  "log": {
   "checkpoint": {
    "body": {
     "at": 1794878597.143455,
     "origin": "cain.receipt.log/tenant-a",
     "root_b64": "Bv9+Lo9BGSkw4tRBi2U5nuyoiUTKa+lxQ3f7+t6+4DQ=",
     "size": 2
    },
    "cosignatures": [
     {
      "body": {
       "at": 1794878597.145711,
       "classification": "SIMULATED_LOCAL",
       "origin": "cain.receipt.log/tenant-a",
       "root_b64": "Bv9+Lo9BGSkw4tRBi2U5nuyoiUTKa+lxQ3f7+t6+4DQ=",
       "size": 2,
       "witness": "operator-witness-e84"
      },
      "classification": "SIMULATED_LOCAL",
      "digest": "4fc254e7b1b42d0ecf5242ebd453a784d0294d5a3554d320e553765324db3b66",
      "signature_b64": "St1iXcGSJxsMiyL8P6zMZGH3TzxgR+8hDW+NLhKnsrUrWk8AyYw3gqlsZTwLNKk4+dzazOkMZjGebzNEnHarAg==",
      "signer_pub": "4WXa4MEaYsm/raVIqaa7OS3JVPGLx4t5aU1bD75iXsM="
     }
    ],
    "digest": "5f20096bddabe216ce7acd547ab0736969addc31e66bd21c919ed799afbf14fa",
    "signature_b64": "n617wDG3DI6hlkPPy2c1ZUy9ALkW1jplmVXEgOwmknJi2n9H06mKwPPd3wEgZQX8MAQDK4Sje00dF8tjpGrMDw==",
    "signer_pub": "EvYVneCAULNdoH9h5ydLN7DtSd0ktrqz83eYWWkB5y4="
   },
   "checkpoints": [
    {
     "body": {
      "at": 1794878597.143455,
      "origin": "cain.receipt.log/tenant-a",
      "root_b64": "Bv9+Lo9BGSkw4tRBi2U5nuyoiUTKa+lxQ3f7+t6+4DQ=",
      "size": 2
     },
     "cosignatures": [
      {
       "body": {
        "at": 1794878597.145711,
        "classification": "SIMULATED_LOCAL",
        "origin": "cain.receipt.log/tenant-a",
        "root_b64": "Bv9+Lo9BGSkw4tRBi2U5nuyoiUTKa+lxQ3f7+t6+4DQ=",
        "size": 2,
        "witness": "operator-witness-e84"
       },
       "classification": "SIMULATED_LOCAL",
       "digest": "4fc254e7b1b42d0ecf5242ebd453a784d0294d5a3554d320e553765324db3b66",
       "signature_b64": "St1iXcGSJxsMiyL8P6zMZGH3TzxgR+8hDW+NLhKnsrUrWk8AyYw3gqlsZTwLNKk4+dzazOkMZjGebzNEnHarAg==",
       "signer_pub": "4WXa4MEaYsm/raVIqaa7OS3JVPGLx4t5aU1bD75iXsM="
      }
     ],
     "digest": "5f20096bddabe216ce7acd547ab0736969addc31e66bd21c919ed799afbf14fa",
     "signature_b64": "n617wDG3DI6hlkPPy2c1ZUy9ALkW1jplmVXEgOwmknJi2n9H06mKwPPd3wEgZQX8MAQDK4Sje00dF8tjpGrMDw==",
     "signer_pub": "EvYVneCAULNdoH9h5ydLN7DtSd0ktrqz83eYWWkB5y4="
    }
   ],
   "inclusion_proof": [
    "lU2RPT3RdtWOujhvlEStTl3e+zoxYP4kTuVrujVpRiU="
   ],
   "leaf_data_digest": "173e5049969ef53279cb8999de4931d5617dbb0b2269fbd62b1da5ac9ccf6d98",
   "leaf_hash": "Hq4a54W0KZk6HWDCky+sswRBI8vJbCrwPnz8ncOw5y0=",
   "leaf_index": 1,
   "origin": "cain.receipt.log/tenant-a",
   "tree_root_b64": "Bv9+Lo9BGSkw4tRBi2U5nuyoiUTKa+lxQ3f7+t6+4DQ=",
   "tree_size": 2
  },
  "principal": {
   "auth_method": "demo",
   "id": "alice@example.org",
   "org": "example.org",
   "type": "human"
  },
  "receipt": {
   "action_id": "act-dc70c06e36c8cf19784a",
   "completed_at": 1794878597.1278048,
   "correlation_id": "corr-44a4f5acad1d",
   "execution_at": 1794878597.1255765,
   "idempotency_key": "idem-7712a8d72d67427f5f4b14e5",
   "issued_at": 1794878597.141418,
   "receipt_id": "rcpt-12254bc0dc837fbb55ef2f674d",
   "status": "COMPLETED",
   "tenant": "tenant-a"
  },
  "schema": "cain.receipt.v1",
  "verification": {
   "missing": [],
   "profile": "E84/v1",
   "required": [
    "authorization",
    "enforcement",
    "execution",
    "effect",
    "log"
   ],
   "trust_assumptions": [
    "pinned issuer/log/witness/enforcement/executor/resource keys",
    "a local SQLite resource is authoritative for THIS test only",
    "no independent organization has cosigned this receipt"
   ],
   "warnings": [],
   "witness_classification": "SIMULATED_LOCAL"
  }
 },
 "core_digest": "173e5049969ef53279cb8999de4931d5617dbb0b2269fbd62b1da5ac9ccf6d98",
 "digest": "87401879157a816b262fe2d2a95234da71bc3b12097dc7b0388c901240a662b3",
 "receipt_id": "rcpt-12254bc0dc837fbb55ef2f674d",
 "schema": "cain.receipt.v1",
 "signature_b64": "XX3XI7PWzqBnsJ8YKX8yrDqSmHpoMr01cFT7Tviy/ma8ozcbTA7cXZHTWtpV0Qa8hvCZu6PSbcRKLm+CEhqtCQ==",
 "signer_pub": "H74+XSMA5hIXIWWm2r5peIcGuNx0XcZLbqrOeXGYL3o="
}