{
 "body": {
  "action": {
   "action_type": "create_record",
   "arguments_digest": "6580a0ac0576e5c099c67866246c51f3fea0d47a18b591bd3ec3d8c8f70873c9",
   "capabilities": [
    "record:create"
   ],
   "declared_side_effects": [
    "row_created"
   ],
   "digest": "78b82fb45ae6ef9b4d4b44cabe79c4ca089f4be9e478e0ad9336bb69aa3ab5f4",
   "environment": "local",
   "normalized": {
    "action_class": "record",
    "agent_identity": "specialist",
    "approval_required": [],
    "causal_chain": [],
    "data_classification": "INTERNAL",
    "declared_purpose": "",
    "evidence_requirements": [],
    "expected_side_effects": [
     "row_created"
    ],
    "nonce": "0570df893492b454b56fb3c2f9d3f74d",
    "normalized_arguments": {
     "id": "cust-1042",
     "value": "active"
    },
    "operation": "create_record",
    "policy_ref": "",
    "policy_version": "",
    "predecessors": [],
    "principal": "owner@example.org",
    "requested_capabilities": [
     "record:create"
    ],
    "required_env": "local",
    "risk_class": "LOW",
    "schema_version": "cain.action.v1",
    "session_id": "",
    "target_resource": "sqlite://e85-dev/records",
    "target_system": "sqlite",
    "tenant": "tenant-a",
    "valid_until": 1794883647.8529186,
    "workload_identity": ""
   },
   "target": {
    "resource": "sqlite://e85-dev/records",
    "system": "sqlite"
   }
  },
  "agent": {
   "build": "e85",
   "id": "specialist",
   "pub": "U/rmPKiFiph3Mf9RqvcWYrzlW43PhEf/i+UmgNwHYX8=",
   "role": "specialist",
   "tenant": "tenant-a"
  },
  "authorization": {
   "body": {
    "action_digest": "78b82fb45ae6ef9b4d4b44cabe79c4ca089f4be9e478e0ad9336bb69aa3ab5f4",
    "decided_at": 1794883047.8529186,
    "decision": "ALLOW",
    "expires_at": 1794883107.8529186,
    "grant": {
     "body": {
      "action_digest": "78b82fb45ae6ef9b4d4b44cabe79c4ca089f4be9e478e0ad9336bb69aa3ab5f4",
      "expires_at": 1794883107.8547292,
      "grant_id": "grant-2f64824a7e4f250b8e67cbee",
      "max_uses": 1,
      "nonce": "9df7ac56c067e90ce36911b2e27bfd54",
      "resource": "sqlite://e85-dev/records",
      "tenant": "tenant-a"
     },
     "digest": "72b0e7dffca3b8dfbcf49594c89af6e03b7c541da087659edaa4492354fa9612",
     "schema": "CAIN42/E84/SINGLE-USE-GRANT/v1",
     "signature_b64": "wgRSwsJG4qRPN8S469qlU+bFQiwF2a4mw0Q5wuqoVwrFSv0NeGymYc+2GrmJI5pTRaw0tikrXkyR1qmh/TXpDg==",
     "signer_pub": "K6tYjoeaf4woFE9HdfFbJygURuW9MDkgLG0mDb9gvUw="
    },
    "nonce": "9df7ac56c067e90ce36911b2e27bfd54",
    "policy_body": {
     "default": "DENY",
     "rules": [
      {
       "action_class": "record",
       "capabilities": [
        "record:create"
       ],
       "data_classification": "*",
       "effect": "ALLOW",
       "max_delegation_depth": 2,
       "max_risk": "CRITICAL",
       "operation": "create_record",
       "principal": "*",
       "priority": 10,
       "require_approval": false,
       "require_env": "local",
       "rule_id": "allow-create_record",
       "target_resource": "sqlite://e85-dev/records",
       "target_system": "sqlite",
       "tenant": "tenant-a",
       "valid_until": 0.0
      }
     ],
     "version": "2026-11-17.e85"
    },
    "policy_digest": "dc10cc36fabcf9fcc20bbd0a0c59ba7700e139b65dd1685b47cc3b452eab0c56",
    "policy_id": "policy-e85",
    "policy_version": "2026-11-17.e85",
    "reason": "ALLOW",
    "tenant": "tenant-a"
   },
   "digest": "5c15aa880ec31bf49d7e53452bd1faac49987be4e55bcaa25f6c2f577dc998d4",
   "signature_b64": "mb6lVVuQj6+3ZSo/J0K1NiErwj+HxfsKDfBOE7CO4dNfWj7pGRj7EDDJkp9D3985SGoyBNzE53ojxOAB5THFCQ==",
   "signer_pub": "K6tYjoeaf4woFE9HdfFbJygURuW9MDkgLG0mDb9gvUw="
  },
  "consensus": {
   "reason": "local authority path; no consensus certificate is claimed",
   "used": false
  },
  "delegation": {
   "chain": [
    {
     "audience": "tenant-a",
     "child_agent": "specialist",
     "depth": 1,
     "expires_at": 1794886647.8513024,
     "grant_id": "grant-acd9b5df2badf7eac9d2141d",
     "issued_at": 1794883047.8513024,
     "nonce": "298212e1701b4c6cb8cad57ab134fac3",
     "parent_agent": "commander",
     "parent_credential_digest": "cred-commander",
     "parent_grant_id": "",
     "resources": [
      "sqlite://e85-dev/records"
     ],
     "schema": "cain61.delegation.v1",
     "scope": [
      "record:create"
     ],
     "signature_b64": "RUo907D2m3aGZKcdpGkae2dqSVRsampGkF91JCHPj43GqxCPex7nQE7/55VkY1S90mJvEWdK5HjjlvgVWGolDQ==",
     "signer_pub": "2Jv7XSw6DszQn5vDZyjQMiFyoNYkuokAU4a6A3hNgjI="
    }
   ],
   "revoked": [],
   "root": {
    "agent": "commander",
    "credential_digest": "cred-commander",
    "expires_at": 1794886707.8512933,
    "pub": "2Jv7XSw6DszQn5vDZyjQMiFyoNYkuokAU4a6A3hNgjI=",
    "resources": [
     "sqlite://e85-dev/records"
    ],
    "scope": [
     "record:create"
    ]
   }
  },
  "effect": {
   "body": {
    "authoritative": true,
    "detail": "authoritative read-back",
    "duplicate": false,
    "observation_digest": "0000000000000000000000000000000000000000000000000000000000000000",
    "observed_at": 1794883047.857361,
    "record_id": "cust-1042",
    "resource": "sqlite://e85-dev/records",
    "state": "EFFECT_VERIFIED",
    "tenant": "tenant-a"
   },
   "digest": "cf39a3aff047abb5890a8208e94d7f50cb1343baf9779f321d08f481979ba094",
   "signature_b64": "CTK5D3EzcKwIkZaE1eKqSjWXhnOES4lpUVPFwUDyDFGr67UQrf4uU9VZlqf933H0O0odQbJH9+jYQwQvBPysDQ==",
   "signer_pub": "thIXH+hXBygnDMtVMt+2HzsMuhZIzjBTFndL+VfKzXM="
  },
  "enforcement": {
   "body": {
    "action_digest": "78b82fb45ae6ef9b4d4b44cabe79c4ca089f4be9e478e0ad9336bb69aa3ab5f4",
    "attempt_id": "att-0896bbe09aad9bcebdf4",
    "decision": "ALLOW",
    "enforced_at": 1794883047.85552,
    "grant_id": "grant-2f64824a7e4f250b8e67cbee",
    "instance": "mcpgate-e85-dev",
    "nonce": "9df7ac56c067e90ce36911b2e27bfd54",
    "reason": "EXACT_REQUEST_MATCHES_GRANT",
    "resource": "sqlite://e85-dev/records",
    "tenant": "tenant-a"
   },
   "digest": "4ea21ba5ef6f694e54a93203c0d13fc42d41515149b143a1bca606412492155d",
   "signature_b64": "gzLjMwCmD5Le6mI7W0gZKnBy5s6T4lwnnZl/UIFoggVSndNkOm9H1kIOqN4MSUrK0HlptkxOXuWHvTXNXAznBw==",
   "signer_pub": "eaKvEbBmVL5IN/DCKIoFpPrQVjhui/fzEt21WYgRFZ0="
  },
  "execution": {
   "body": {
    "action_digest": "78b82fb45ae6ef9b4d4b44cabe79c4ca089f4be9e478e0ad9336bb69aa3ab5f4",
    "attempts": 1,
    "completed_at": 1794883047.8580854,
    "environment": "LOCAL_PROCESS",
    "execution_id": "exec-d6bf6a2369aed739",
    "executor": "e85-executor",
    "exit_code": 0,
    "idempotency_key": "idem-766d5adc001f00a7bf155c3a",
    "output_digest": "32c368a4ffa13ed8a4c2157c47b25a302608fcaf8da975a9b1f7ccd066bc2878",
    "provider_ref": "sqlite://e85-dev/records",
    "started_at": 1794883047.8561158,
    "status": "SUCCESS",
    "tenant": "tenant-a"
   },
   "digest": "7f7a4be88bd95121f05b91ee015c0ef399c39ff861d34d0155c0b9b4634690a0",
   "signature_b64": "Jd4UnKRc7Cg02VgA6E2ZYSkyF4VXv51/ggqYemYZHA3Bqzilvm0VWnWAXWFDher+LqQtR8kspNtGyQP6UbCCBQ==",
   "signer_pub": "vqTv2opn+RHarVlNzwREYIWp9bqYsojJw8oMaEksjaM="
  },
  "log": {
   "checkpoint": {
    "body": {
     "at": 1794883047.8589318,
     "origin": "cain.receipt.log/tenant-a",
     "root_b64": "Sf3tkFXew8UBP0cDvRajQ2LJ9P+9zM2vvAEarFycBh8=",
     "size": 2
    },
    "cosignatures": [
     {
      "body": {
       "at": 1794883047.8595507,
       "classification": "SIMULATED_LOCAL",
       "origin": "cain.receipt.log/tenant-a",
       "root_b64": "Sf3tkFXew8UBP0cDvRajQ2LJ9P+9zM2vvAEarFycBh8=",
       "size": 2,
       "witness": "operator-witness-e85"
      },
      "classification": "SIMULATED_LOCAL",
      "digest": "e94a7e8a3b2ca0d51aff56bcb4addf3c818c0e53a7f4d675cf514b6c6e7a2160",
      "signature_b64": "sgsCn9LqTKJZRso0JqHYkyQqYCaNij7Bc59beMmDSF4Sbb7mbKT1fp/Isjcd3609P8L3MO/oPq+bsLL93yj+Bw==",
      "signer_pub": "9oqUacs2hE4yrFTIxnanl/gw3d3ITXWkk5TjXSOHP2o="
     }
    ],
    "digest": "259d57ae5081090c01b56a83edae6ab022025bdf6f3633851e104f7a02c7a0dc",
    "signature_b64": "FNiOCz6HAmQPSszAL5o6kuqri5TJGYRROrhPR6/j6z5c0JDoQMOPF/fF7RSDOaxMeh89Dt9hEqA+7VzmbwEMBg==",
    "signer_pub": "6XLlqIRZB7N/I3nj76TKEjm9TjPbfkuRC42rtqzSz2w="
   },
   "checkpoints": [
    {
     "body": {
      "at": 1794883047.8589318,
      "origin": "cain.receipt.log/tenant-a",
      "root_b64": "Sf3tkFXew8UBP0cDvRajQ2LJ9P+9zM2vvAEarFycBh8=",
      "size": 2
     },
     "cosignatures": [
      {
       "body": {
        "at": 1794883047.8595507,
        "classification": "SIMULATED_LOCAL",
        "origin": "cain.receipt.log/tenant-a",
        "root_b64": "Sf3tkFXew8UBP0cDvRajQ2LJ9P+9zM2vvAEarFycBh8=",
        "size": 2,
        "witness": "operator-witness-e85"
       },
       "classification": "SIMULATED_LOCAL",
       "digest": "e94a7e8a3b2ca0d51aff56bcb4addf3c818c0e53a7f4d675cf514b6c6e7a2160",
       "signature_b64": "sgsCn9LqTKJZRso0JqHYkyQqYCaNij7Bc59beMmDSF4Sbb7mbKT1fp/Isjcd3609P8L3MO/oPq+bsLL93yj+Bw==",
       "signer_pub": "9oqUacs2hE4yrFTIxnanl/gw3d3ITXWkk5TjXSOHP2o="
      }
     ],
     "digest": "259d57ae5081090c01b56a83edae6ab022025bdf6f3633851e104f7a02c7a0dc",
     "signature_b64": "FNiOCz6HAmQPSszAL5o6kuqri5TJGYRROrhPR6/j6z5c0JDoQMOPF/fF7RSDOaxMeh89Dt9hEqA+7VzmbwEMBg==",
     "signer_pub": "6XLlqIRZB7N/I3nj76TKEjm9TjPbfkuRC42rtqzSz2w="
    }
   ],
   "inclusion_proof": [
    "EEOmTH9oZuUpY+neCwV1vgC1SbiKYqwEWp0mFrogsSw="
   ],
   "leaf_data_digest": "6782868e4060bd7b8d2168e3483b681e12b9b87bf4d84e4173d73f4da1fa6f50",
   "leaf_hash": "3n5v/4ecE2nyl8tQ0/95iDiQGpUbdY5D6vfyL3x8rpA=",
   "leaf_index": 1,
   "origin": "cain.receipt.log/tenant-a",
   "tree_root_b64": "Sf3tkFXew8UBP0cDvRajQ2LJ9P+9zM2vvAEarFycBh8=",
   "tree_size": 2
  },
  "principal": {
   "auth_method": "dev",
   "id": "owner@example.org",
   "org": "org-dev",
   "type": "human"
  },
  "receipt": {
   "action_id": "act-78b82fb45ae6ef9b4d4b",
   "completed_at": 1794883047.8580854,
   "correlation_id": "m-dev",
   "execution_at": 1794883047.8561158,
   "idempotency_key": "idem-766d5adc001f00a7bf155c3a",
   "issued_at": 1794883047.8583472,
   "receipt_id": "rcpt-a8464dc8353fe45144dd6f78a1",
   "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": [
    "resource_class=LOCAL_PROCESS"
   ],
   "witness_classification": "SIMULATED_LOCAL"
  }
 },
 "core_digest": "6782868e4060bd7b8d2168e3483b681e12b9b87bf4d84e4173d73f4da1fa6f50",
 "digest": "3f95a20b7bad1352adf52e6dfeff899b9b700b4f48d04de5b99dc2f46599e8f7",
 "receipt_id": "rcpt-a8464dc8353fe45144dd6f78a1",
 "schema": "cain.receipt.v1",
 "signature_b64": "cgTdsgVQFt8glZCtgx0qpxrBYlxkSHN8tBqi3Xhe0xqiuFudP4YGaXf4h5HgR2OIoYPmgtwNaSMWtbwXeKdZAQ==",
 "signer_pub": "DYeELEoXg9G7Svcsxl029QAgTrxViq7qtZoQUdhbnjc="
}