{
 "action": {
  "body": {
   "action_class": "FILESYSTEM",
   "agent_identity": "agent:ops-1",
   "approval_required": [],
   "causal_chain": [],
   "data_classification": "INTERNAL",
   "declared_purpose": "sovereign action commit demonstration",
   "evidence_requirements": [],
   "expected_side_effects": [],
   "nonce": "",
   "normalized_arguments": {
    "path": "/tmp/opencode/cain-action-commit/state.json",
    "version": "v2"
   },
   "operation": "write_file",
   "policy_ref": "",
   "policy_version": "",
   "predecessors": [],
   "principal": "human:root",
   "requested_capabilities": [
    "fs.write"
   ],
   "required_env": "",
   "risk_class": "MEDIUM",
   "schema_version": "cain.action.v1",
   "session_id": "sess-e7",
   "target_resource": "/tmp/opencode/cain-action-commit/state.json",
   "target_system": "filesystem",
   "tenant": "t1",
   "valid_until": 0.0,
   "workload_identity": ""
  },
  "digest": "4f228243db499c62bd6e5c4b54971b9156ff72409fb38b787a14738349843bc1"
 },
 "authorization": {
  "body": {
   "action_class": "FILESYSTEM",
   "action_digest": "4f228243db499c62bd6e5c4b54971b9156ff72409fb38b787a14738349843bc1",
   "agent_identity": "agent:ops-1",
   "approval_id": "",
   "authorization_id": "authz-a7131321e74f0e26",
   "decision_ref": "76bff915ae03b0a7803c82efce5889cf2923ca644cec98e5759924c741211e3f",
   "expires_at": 1791543295.7160249,
   "issued_at": 1791542995.7160249,
   "nonce": "authz-nonce-4f15145d21f863dc",
   "operation": "write_file",
   "policy_digest": "be391323565857d3e29f4dae6807c4b0686136fe007ba4b43327243db315a675",
   "policy_version": "pv-e7-1",
   "principal": "human:root",
   "scope": [
    "fs.write"
   ],
   "single_use": true,
   "target_resource": "/tmp/opencode/cain-action-commit/state.json",
   "target_system": "filesystem",
   "tenant": "t1"
  },
  "digest": "33ac01d43674678bad92d4d1fa3158115b15de0603e2812b3c93f01d072fe25e",
  "signature": "K43pKRdYGnlcklOfp/NCq7mkUVMphOjW8N+xpqdtdMuwWwhz6MLdlCCLD+xiZ+om7nyBdwMsHN5xUlQDfSO6Ag==",
  "signer_pub": "GTtWDrvH1MC0XitEKnBXy59ufNOKnnrjiX9JiQqprJI=",
  "version": 1
 },
 "observations": [
  {
   "dependency_root": "filesystem-os",
   "matches": true,
   "observed": "v2",
   "sha256": "99cbd532a81e5c25761d4827d3a10986b7b7f635a8e710df38dc04471b84e2e9",
   "system": "filesystem"
  }
 ],
 "policy": {
  "body": {
   "default": "DENY",
   "rules": [
    {
     "action_class": "FILESYSTEM",
     "capabilities": [
      "fs.write"
     ],
     "data_classification": "*",
     "effect": "ALLOW",
     "max_delegation_depth": 1,
     "max_risk": "MEDIUM",
     "operation": "write_file",
     "principal": "human:root",
     "priority": 0,
     "require_approval": false,
     "require_env": "*",
     "rule_id": "r-fs-write",
     "target_resource": "/tmp/opencode/cain-action-commit/*",
     "target_system": "filesystem",
     "tenant": "t1",
     "valid_until": 0.0
    }
   ],
   "version": "pv-e7-1"
  },
  "domain": "CAIN42/ACTION-COMMIT/POLICY-SET/v1"
 },
 "receipt": {
  "body": {
   "action_digest": "4f228243db499c62bd6e5c4b54971b9156ff72409fb38b787a14738349843bc1",
   "attempt_id": "att-1791542995",
   "authorization_id": "authz-a7131321e74f0e26",
   "completed_at": 1791542995.717534,
   "effect_state": "EFFECT_VERIFIED",
   "error_history": [],
   "evidence_refs": [],
   "executor_identity": "cain-mcpgate",
   "idempotency_key": "authz-a7131321e74f0e26",
   "nonce": "rcpt-nonce-9f60bb7d6b9a",
   "observed_state_change": "True",
   "policy_version": "pv-e7-1",
   "receipt_id": "rcpt-161ba847f59d7d19",
   "result_class": "SUCCESS",
   "simulated": false,
   "started_at": 1791542995.7169337,
   "target_identity": "filesystem:/tmp/opencode",
   "target_operation_id": ""
  },
  "digest": "68b548d89a1ebf1c4968246a1f2cd8f0751793fa27bac771dee4f687228f05ba",
  "signature": "RUaHBjO1dhEdfovMoK85HzKEOyr1bi7tISOcXt6bZjwlivNLuNpPHWH/cUYbxCJ1/gco8NxZx/xcky6eB5YYCg==",
  "signer_pub": "GTtWDrvH1MC0XitEKnBXy59ufNOKnnrjiX9JiQqprJI=",
  "version": 1
 }
}