{
 "how_to_check": "python3 contract_verify_offline.py <vector export as file> --issuer-key <issuer_public_key_b64>",
 "issuer_public_key_b64": "MvnpQB6/RQDfIIYNfZ9U4fO2onjFAwTkp4AwJYs5m9g=",
 "vectors": [
  {
   "expect_ok": true,
   "export": {
    "authority_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
    "consent_from": "",
    "consent_mode": "direct",
    "contract": {
     "action": {
      "kind": "exec",
      "request_hash": ""
     },
     "annotations": {},
     "authority": {
      "agent_chain": [
       "alice"
      ],
      "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
      "source": "rig"
     },
     "capability": {
      "action": "openshell.exec",
      "audience": "",
      "max_uses": 3,
      "resource": "/tmp"
     },
     "conditions": [
      {
       "arg": [
        "echo",
        "ls"
       ],
       "op": "argv0_in"
      }
     ],
     "environment": {
      "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
      "model_runtime_digest": "model:v1"
     },
     "evidence_policy": {
      "payload_type": "application/cain-contract-receipt+json",
      "record_outputs": "digest",
      "scitt_required": true
     },
     "execution_path": {
      "adapter_version": "1",
      "engine": "cain_openshell_gateway",
      "product": "openshell"
     },
     "header": {
      "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
      "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
      "schema": "cain.contract.v1",
      "supersedes": "",
      "tenant": "tenant-a",
      "version": 1
     },
     "policy": {
      "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
      "policy_id": "default",
      "product": "openshell",
      "rules": {}
     },
     "purpose": {
      "statement": "run tools"
     },
     "risk": {
      "max_risk_score": 100,
      "risk_class": "high"
     },
     "subject": {
      "agent_id": "alice",
      "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
      "runtime_digest": "model:v1",
      "spiffe_id": "spiffe://cainstudio.online/agent/alice"
     },
     "validity": {
      "epoch": 0,
      "expires_at_ms": 1790000300000,
      "issued_at_ms": 1790000000000,
      "not_before_ms": 1790000000000
     }
    },
    "fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
    "issuer_key_id": "51e6ef10f4df23df",
    "issuer_public_key_b64": "MvnpQB6/RQDfIIYNfZ9U4fO2onjFAwTkp4AwJYs5m9g=",
    "issuer_sig": "r5S+Y+oFzdP/L1zU9UzkVZxP7sNX6KhS+Vjam/UG4iUyh5jUyJp61DfIh4FC/SR42jtT7HJ6CJA3ujRlZnS5AQ==",
    "predecessor": null,
    "receipts": [
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "ALLOW",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "0000000000000000000000000000000000000000000000000000000000000000",
       "reason": "OK",
       "receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "receipt_id": "rcp_73cdac9a6553b6a89373d967f006187a",
       "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
       "runtime_digest": "model:v1",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "gdzp5c/qIn2niofLbuDI7UaGB+2urybyK/UevVNpZJaJOgwa1upvHqDX1ClrIliWTcHlmlXwzuQhWdniYAMOAA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 0
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "b821fb333f616025646d644efb8ae9f9",
        "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
        "signature_b64": "e18ByZ6iJC161/ugBJKVmUyiSSl0h2Hsmi1iD5Cl+X0Q2C1wXVNI9EVhGAGoaK0Xo1p0A8tvUS9+/64SXPuWAg==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "echo",
         "hi"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v1",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 0
      }
     },
     {
      "receipt": {
       "completed_at_ms": 1790000000000,
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decision_receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "execution_failed": false,
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "outcome",
       "prev_receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "product": "openshell",
       "product_result_digest": "b1795c9b65f02ee1d81dfd8f28292a37f6c4c9196166ebcf1fc4d8d672019a9b",
       "receipt_hash": "672456316c3cc1605dfd87c3abb297b99ac1c5bb13cd6ac15e7521bb7cf80670",
       "receipt_id": "rcp_37e4fdd39759647bb0bf011dfdfbf70b",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "vasKSJF4EuSjk7MuuAWu3Ev/PEJLQTJ/m2nPwrmGenz+uAE9lXROgcQ1suSRHn+Czsa77dc7RWOcMJFCqPzwBQ==",
       "tenant": "tenant-a"
      },
      "replay": null
     },
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "DENY",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "672456316c3cc1605dfd87c3abb297b99ac1c5bb13cd6ac15e7521bb7cf80670",
       "reason": "CONDITION_ARGV0_IN",
       "receipt_hash": "9b892f9ccf47e586e7be7266b89bad87d273fe382b5c2ec3db29823a3e789101",
       "receipt_id": "rcp_890280a2c4a76bc9a81e2edcdf895046",
       "request_hash": "c11c230ba3e83a6b3e2c37d5ef1dd8be0ca983e28035f3e75b09243181f2a05c",
       "runtime_digest": "model:v1",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "N+pwYfU7vpKuKkdOUq0kXTWiZQI1yyDmTvZb/YeX+i3I2+tDR548b1iRt5el5gWcLm6SqQk5+GzbuBIE4gaBBA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "f6ddb73aee397474a9e700f89249aeac",
        "request_hash": "c11c230ba3e83a6b3e2c37d5ef1dd8be0ca983e28035f3e75b09243181f2a05c",
        "signature_b64": "wVYyVRd46ToePYphTVDKlt9zWtcZtcgckhDSfvpJop95bEPZdT46qkAvu2JxfmilFJO6XvbKo51BWaD2qzKWAw==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "rm",
         "x"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v1",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      }
     },
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "DENY",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "9b892f9ccf47e586e7be7266b89bad87d273fe382b5c2ec3db29823a3e789101",
       "reason": "MODEL_SUBSTITUTION",
       "receipt_hash": "ab92cadee860ba24b4f156203bd427e1a8dea34860e4000a6a86b96a441c12e6",
       "receipt_id": "rcp_0924abc66a047dd115c5fff284aa5f54",
       "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
       "runtime_digest": "model:v2",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "IJhQYolDB7xm2jazueKukypAOIn701HEefnZVEQWrAi4KLDKpMGrpkKKbyrzcUZqGWbxYgbLkR8232VEZo/jDA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "3d79ba5794715a3aeaf88b15a8e4e89e",
        "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
        "signature_b64": "GPz4B/Fsi7C94tkMchjXudnJ/R2xeji2Gne8+MRWdb+2J+DN0BHLcTqIAKTKNxp0z6doT+NAKA+V2DgWF8+KAQ==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "echo",
         "hi"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v2",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      }
     }
    ],
    "revocation": null,
    "state": "ACTIVE",
    "subject_sig": "BaUeGlHQVe3yZ4lgHlefHStGp0CymuMHLrn4BwUf8WI262swg91KNSsYuAuc7mDvPZixYjBt0CNx/q4E2hT+Cw=="
   },
   "name": "valid_exec_with_receipts"
  },
  {
   "expect_ok": true,
   "export": {
    "authority_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
    "consent_from": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
    "consent_mode": "carried",
    "contract": {
     "action": {
      "kind": "exec",
      "request_hash": ""
     },
     "annotations": {
      "ticket": "OPS-1"
     },
     "authority": {
      "agent_chain": [
       "alice"
      ],
      "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
      "source": "rig"
     },
     "capability": {
      "action": "openshell.exec",
      "audience": "",
      "max_uses": 3,
      "resource": "/tmp"
     },
     "conditions": [
      {
       "arg": [
        "echo",
        "ls"
       ],
       "op": "argv0_in"
      }
     ],
     "environment": {
      "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
      "model_runtime_digest": "model:v1"
     },
     "evidence_policy": {
      "payload_type": "application/cain-contract-receipt+json",
      "record_outputs": "digest",
      "scitt_required": true
     },
     "execution_path": {
      "adapter_version": "1",
      "engine": "cain_openshell_gateway",
      "product": "openshell"
     },
     "header": {
      "contract_id": "ctr_e21c20345d15278b7feb0c4528bd2c58",
      "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
      "schema": "cain.contract.v1",
      "supersedes": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
      "tenant": "tenant-a",
      "version": 2
     },
     "policy": {
      "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
      "policy_id": "default",
      "product": "openshell",
      "rules": {}
     },
     "purpose": {
      "statement": "run tools"
     },
     "risk": {
      "max_risk_score": 100,
      "risk_class": "high"
     },
     "subject": {
      "agent_id": "alice",
      "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
      "runtime_digest": "model:v1",
      "spiffe_id": "spiffe://cainstudio.online/agent/alice"
     },
     "validity": {
      "epoch": 0,
      "expires_at_ms": 1790000300000,
      "issued_at_ms": 1790000000000,
      "not_before_ms": 1790000000000
     }
    },
    "fingerprint": "5320b997baafdaffa4edb84227a460a04dd8d7e52ca7f4f893107570a047fff5",
    "issuer_key_id": "51e6ef10f4df23df",
    "issuer_public_key_b64": "MvnpQB6/RQDfIIYNfZ9U4fO2onjFAwTkp4AwJYs5m9g=",
    "issuer_sig": "duNOUlyF7Uop9MDP9dMv7Y9qzuQrC3NKvwMS8WN0jOlX0/pX1hZgcuRXSrMgvKCsST3BOIcLFzFWWOz8mjopCg==",
    "predecessor": {
     "body": {
      "action": {
       "kind": "exec",
       "request_hash": ""
      },
      "annotations": {},
      "authority": {
       "agent_chain": [
        "alice"
       ],
       "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "source": "rig"
      },
      "capability": {
       "action": "openshell.exec",
       "audience": "",
       "max_uses": 3,
       "resource": "/tmp"
      },
      "conditions": [
       {
        "arg": [
         "echo",
         "ls"
        ],
        "op": "argv0_in"
       }
      ],
      "environment": {
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "model_runtime_digest": "model:v1"
      },
      "evidence_policy": {
       "payload_type": "application/cain-contract-receipt+json",
       "record_outputs": "digest",
       "scitt_required": true
      },
      "execution_path": {
       "adapter_version": "1",
       "engine": "cain_openshell_gateway",
       "product": "openshell"
      },
      "header": {
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
       "schema": "cain.contract.v1",
       "supersedes": "",
       "tenant": "tenant-a",
       "version": 1
      },
      "policy": {
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "policy_id": "default",
       "product": "openshell",
       "rules": {}
      },
      "purpose": {
       "statement": "run tools"
      },
      "risk": {
       "max_risk_score": 100,
       "risk_class": "high"
      },
      "subject": {
       "agent_id": "alice",
       "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
       "runtime_digest": "model:v1",
       "spiffe_id": "spiffe://cainstudio.online/agent/alice"
      },
      "validity": {
       "epoch": 0,
       "expires_at_ms": 1790000300000,
       "issued_at_ms": 1790000000000,
       "not_before_ms": 1790000000000
      }
     },
     "subject_sig": "BaUeGlHQVe3yZ4lgHlefHStGp0CymuMHLrn4BwUf8WI262swg91KNSsYuAuc7mDvPZixYjBt0CNx/q4E2hT+Cw=="
    },
    "receipts": [],
    "revocation": null,
    "state": "ACTIVE",
    "subject_sig": "BaUeGlHQVe3yZ4lgHlefHStGp0CymuMHLrn4BwUf8WI262swg91KNSsYuAuc7mDvPZixYjBt0CNx/q4E2hT+Cw=="
   },
   "name": "valid_carried_consent"
  },
  {
   "expect_ok": true,
   "export": {
    "authority_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
    "consent_from": "",
    "consent_mode": "direct",
    "contract": {
     "action": {
      "kind": "exec",
      "request_hash": ""
     },
     "annotations": {},
     "authority": {
      "agent_chain": [
       "alice"
      ],
      "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
      "source": "rig"
     },
     "capability": {
      "action": "openshell.exec",
      "audience": "",
      "max_uses": 3,
      "resource": "/tmp"
     },
     "conditions": [
      {
       "arg": [
        "echo",
        "ls"
       ],
       "op": "argv0_in"
      }
     ],
     "environment": {
      "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
      "model_runtime_digest": "model:v1"
     },
     "evidence_policy": {
      "payload_type": "application/cain-contract-receipt+json",
      "record_outputs": "digest",
      "scitt_required": true
     },
     "execution_path": {
      "adapter_version": "1",
      "engine": "cain_openshell_gateway",
      "product": "openshell"
     },
     "header": {
      "contract_id": "ctr_c0b0f214c16db454101f111ded1cc3d9",
      "lineage_id": "lin_26d8bd403a6d5e82341d637b1d61db89",
      "schema": "cain.contract.v1",
      "supersedes": "",
      "tenant": "tenant-a",
      "version": 1
     },
     "policy": {
      "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
      "policy_id": "default",
      "product": "openshell",
      "rules": {}
     },
     "purpose": {
      "statement": "run tools"
     },
     "risk": {
      "max_risk_score": 100,
      "risk_class": "high"
     },
     "subject": {
      "agent_id": "alice",
      "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
      "runtime_digest": "model:v1",
      "spiffe_id": "spiffe://cainstudio.online/agent/alice"
     },
     "validity": {
      "epoch": 0,
      "expires_at_ms": 1790000300000,
      "issued_at_ms": 1790000000000,
      "not_before_ms": 1790000000000
     }
    },
    "fingerprint": "cb2dc2476d002a212a92d8152b8beeb7ac74b206032b44c7d3446bf7553e5079",
    "issuer_key_id": "51e6ef10f4df23df",
    "issuer_public_key_b64": "MvnpQB6/RQDfIIYNfZ9U4fO2onjFAwTkp4AwJYs5m9g=",
    "issuer_sig": "5jFtSnJIUFEZZDtKWQ2ZyV52ffKQyNayhR8lzfuAfaUfNca1shYqE9b6f+Uw8QmdPNFGV5TkbHioqoFG9WVJCQ==",
    "predecessor": null,
    "receipts": [],
    "revocation": {
     "contract_id": "ctr_c0b0f214c16db454101f111ded1cc3d9",
     "fingerprint": "cb2dc2476d002a212a92d8152b8beeb7ac74b206032b44c7d3446bf7553e5079",
     "issuer_key_id": "51e6ef10f4df23df",
     "reason": "incident",
     "revoked_at_ms": 1790000000000,
     "revoked_by": "soc",
     "schema": "cain.contract.revocation.v1",
     "signature_b64": "gcKIMrpCm3F95W1n3+Dk4ioY/QS8hsHF7EPOovI88jxzNKhvmCf46pM/C+yyi6Ly5Aok+wjjU9TV/TJbTUakCg==",
     "tenant": "tenant-a"
    },
    "state": "REVOKED",
    "subject_sig": "GFYHD+m/QO3uMI+qI7rY4S71VU9o4WZteJWo7pL7q1wwectrytKoCdkIyiKmvsyDQSccYG/VJLb4yJO3XOWVDw=="
   },
   "name": "valid_revoked"
  },
  {
   "expect_ok": false,
   "export": {
    "authority_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
    "consent_from": "",
    "consent_mode": "direct",
    "contract": {
     "action": {
      "kind": "exec",
      "request_hash": ""
     },
     "annotations": {},
     "authority": {
      "agent_chain": [
       "alice"
      ],
      "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
      "source": "rig"
     },
     "capability": {
      "action": "openshell.exec",
      "audience": "",
      "max_uses": 3,
      "resource": "/tmp"
     },
     "conditions": [
      {
       "arg": [
        "echo",
        "ls"
       ],
       "op": "argv0_in"
      }
     ],
     "environment": {
      "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
      "model_runtime_digest": "model:v1"
     },
     "evidence_policy": {
      "payload_type": "application/cain-contract-receipt+json",
      "record_outputs": "digest",
      "scitt_required": true
     },
     "execution_path": {
      "adapter_version": "1",
      "engine": "cain_openshell_gateway",
      "product": "openshell"
     },
     "header": {
      "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
      "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
      "schema": "cain.contract.v1",
      "supersedes": "",
      "tenant": "tenant-a",
      "version": 1
     },
     "policy": {
      "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
      "policy_id": "default",
      "product": "openshell",
      "rules": {}
     },
     "purpose": {
      "statement": "different"
     },
     "risk": {
      "max_risk_score": 100,
      "risk_class": "high"
     },
     "subject": {
      "agent_id": "alice",
      "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
      "runtime_digest": "model:v1",
      "spiffe_id": "spiffe://cainstudio.online/agent/alice"
     },
     "validity": {
      "epoch": 0,
      "expires_at_ms": 1790000300000,
      "issued_at_ms": 1790000000000,
      "not_before_ms": 1790000000000
     }
    },
    "fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
    "issuer_key_id": "51e6ef10f4df23df",
    "issuer_public_key_b64": "MvnpQB6/RQDfIIYNfZ9U4fO2onjFAwTkp4AwJYs5m9g=",
    "issuer_sig": "r5S+Y+oFzdP/L1zU9UzkVZxP7sNX6KhS+Vjam/UG4iUyh5jUyJp61DfIh4FC/SR42jtT7HJ6CJA3ujRlZnS5AQ==",
    "predecessor": null,
    "receipts": [
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "ALLOW",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "0000000000000000000000000000000000000000000000000000000000000000",
       "reason": "OK",
       "receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "receipt_id": "rcp_73cdac9a6553b6a89373d967f006187a",
       "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
       "runtime_digest": "model:v1",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "gdzp5c/qIn2niofLbuDI7UaGB+2urybyK/UevVNpZJaJOgwa1upvHqDX1ClrIliWTcHlmlXwzuQhWdniYAMOAA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 0
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "b821fb333f616025646d644efb8ae9f9",
        "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
        "signature_b64": "e18ByZ6iJC161/ugBJKVmUyiSSl0h2Hsmi1iD5Cl+X0Q2C1wXVNI9EVhGAGoaK0Xo1p0A8tvUS9+/64SXPuWAg==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "echo",
         "hi"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v1",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 0
      }
     },
     {
      "receipt": {
       "completed_at_ms": 1790000000000,
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decision_receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "execution_failed": false,
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "outcome",
       "prev_receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "product": "openshell",
       "product_result_digest": "b1795c9b65f02ee1d81dfd8f28292a37f6c4c9196166ebcf1fc4d8d672019a9b",
       "receipt_hash": "672456316c3cc1605dfd87c3abb297b99ac1c5bb13cd6ac15e7521bb7cf80670",
       "receipt_id": "rcp_37e4fdd39759647bb0bf011dfdfbf70b",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "vasKSJF4EuSjk7MuuAWu3Ev/PEJLQTJ/m2nPwrmGenz+uAE9lXROgcQ1suSRHn+Czsa77dc7RWOcMJFCqPzwBQ==",
       "tenant": "tenant-a"
      },
      "replay": null
     },
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "DENY",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "672456316c3cc1605dfd87c3abb297b99ac1c5bb13cd6ac15e7521bb7cf80670",
       "reason": "CONDITION_ARGV0_IN",
       "receipt_hash": "9b892f9ccf47e586e7be7266b89bad87d273fe382b5c2ec3db29823a3e789101",
       "receipt_id": "rcp_890280a2c4a76bc9a81e2edcdf895046",
       "request_hash": "c11c230ba3e83a6b3e2c37d5ef1dd8be0ca983e28035f3e75b09243181f2a05c",
       "runtime_digest": "model:v1",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "N+pwYfU7vpKuKkdOUq0kXTWiZQI1yyDmTvZb/YeX+i3I2+tDR548b1iRt5el5gWcLm6SqQk5+GzbuBIE4gaBBA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "f6ddb73aee397474a9e700f89249aeac",
        "request_hash": "c11c230ba3e83a6b3e2c37d5ef1dd8be0ca983e28035f3e75b09243181f2a05c",
        "signature_b64": "wVYyVRd46ToePYphTVDKlt9zWtcZtcgckhDSfvpJop95bEPZdT46qkAvu2JxfmilFJO6XvbKo51BWaD2qzKWAw==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "rm",
         "x"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v1",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      }
     },
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "DENY",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "9b892f9ccf47e586e7be7266b89bad87d273fe382b5c2ec3db29823a3e789101",
       "reason": "MODEL_SUBSTITUTION",
       "receipt_hash": "ab92cadee860ba24b4f156203bd427e1a8dea34860e4000a6a86b96a441c12e6",
       "receipt_id": "rcp_0924abc66a047dd115c5fff284aa5f54",
       "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
       "runtime_digest": "model:v2",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "IJhQYolDB7xm2jazueKukypAOIn701HEefnZVEQWrAi4KLDKpMGrpkKKbyrzcUZqGWbxYgbLkR8232VEZo/jDA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "3d79ba5794715a3aeaf88b15a8e4e89e",
        "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
        "signature_b64": "GPz4B/Fsi7C94tkMchjXudnJ/R2xeji2Gne8+MRWdb+2J+DN0BHLcTqIAKTKNxp0z6doT+NAKA+V2DgWF8+KAQ==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "echo",
         "hi"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v2",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      }
     }
    ],
    "revocation": null,
    "state": "ACTIVE",
    "subject_sig": "BaUeGlHQVe3yZ4lgHlefHStGp0CymuMHLrn4BwUf8WI262swg91KNSsYuAuc7mDvPZixYjBt0CNx/q4E2hT+Cw=="
   },
   "name": "purpose_edited"
  },
  {
   "expect_ok": false,
   "export": {
    "authority_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
    "consent_from": "",
    "consent_mode": "direct",
    "contract": {
     "action": {
      "kind": "exec",
      "request_hash": ""
     },
     "annotations": {},
     "authority": {
      "agent_chain": [
       "alice"
      ],
      "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
      "source": "rig"
     },
     "capability": {
      "action": "openshell.exec",
      "audience": "",
      "max_uses": 3,
      "resource": "/tmp"
     },
     "conditions": [
      {
       "arg": [
        "echo",
        "ls"
       ],
       "op": "argv0_in"
      }
     ],
     "environment": {
      "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
      "model_runtime_digest": "model:v1"
     },
     "evidence_policy": {
      "payload_type": "application/cain-contract-receipt+json",
      "record_outputs": "digest",
      "scitt_required": true
     },
     "execution_path": {
      "adapter_version": "1",
      "engine": "cain_openshell_gateway",
      "product": "openshell"
     },
     "header": {
      "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
      "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
      "schema": "cain.contract.v1",
      "supersedes": "",
      "tenant": "tenant-b",
      "version": 1
     },
     "policy": {
      "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
      "policy_id": "default",
      "product": "openshell",
      "rules": {}
     },
     "purpose": {
      "statement": "run tools"
     },
     "risk": {
      "max_risk_score": 100,
      "risk_class": "high"
     },
     "subject": {
      "agent_id": "alice",
      "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
      "runtime_digest": "model:v1",
      "spiffe_id": "spiffe://cainstudio.online/agent/alice"
     },
     "validity": {
      "epoch": 0,
      "expires_at_ms": 1790000300000,
      "issued_at_ms": 1790000000000,
      "not_before_ms": 1790000000000
     }
    },
    "fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
    "issuer_key_id": "51e6ef10f4df23df",
    "issuer_public_key_b64": "MvnpQB6/RQDfIIYNfZ9U4fO2onjFAwTkp4AwJYs5m9g=",
    "issuer_sig": "r5S+Y+oFzdP/L1zU9UzkVZxP7sNX6KhS+Vjam/UG4iUyh5jUyJp61DfIh4FC/SR42jtT7HJ6CJA3ujRlZnS5AQ==",
    "predecessor": null,
    "receipts": [
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "ALLOW",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "0000000000000000000000000000000000000000000000000000000000000000",
       "reason": "OK",
       "receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "receipt_id": "rcp_73cdac9a6553b6a89373d967f006187a",
       "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
       "runtime_digest": "model:v1",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "gdzp5c/qIn2niofLbuDI7UaGB+2urybyK/UevVNpZJaJOgwa1upvHqDX1ClrIliWTcHlmlXwzuQhWdniYAMOAA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 0
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "b821fb333f616025646d644efb8ae9f9",
        "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
        "signature_b64": "e18ByZ6iJC161/ugBJKVmUyiSSl0h2Hsmi1iD5Cl+X0Q2C1wXVNI9EVhGAGoaK0Xo1p0A8tvUS9+/64SXPuWAg==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "echo",
         "hi"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v1",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 0
      }
     },
     {
      "receipt": {
       "completed_at_ms": 1790000000000,
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decision_receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "execution_failed": false,
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "outcome",
       "prev_receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "product": "openshell",
       "product_result_digest": "b1795c9b65f02ee1d81dfd8f28292a37f6c4c9196166ebcf1fc4d8d672019a9b",
       "receipt_hash": "672456316c3cc1605dfd87c3abb297b99ac1c5bb13cd6ac15e7521bb7cf80670",
       "receipt_id": "rcp_37e4fdd39759647bb0bf011dfdfbf70b",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "vasKSJF4EuSjk7MuuAWu3Ev/PEJLQTJ/m2nPwrmGenz+uAE9lXROgcQ1suSRHn+Czsa77dc7RWOcMJFCqPzwBQ==",
       "tenant": "tenant-a"
      },
      "replay": null
     },
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "DENY",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "672456316c3cc1605dfd87c3abb297b99ac1c5bb13cd6ac15e7521bb7cf80670",
       "reason": "CONDITION_ARGV0_IN",
       "receipt_hash": "9b892f9ccf47e586e7be7266b89bad87d273fe382b5c2ec3db29823a3e789101",
       "receipt_id": "rcp_890280a2c4a76bc9a81e2edcdf895046",
       "request_hash": "c11c230ba3e83a6b3e2c37d5ef1dd8be0ca983e28035f3e75b09243181f2a05c",
       "runtime_digest": "model:v1",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "N+pwYfU7vpKuKkdOUq0kXTWiZQI1yyDmTvZb/YeX+i3I2+tDR548b1iRt5el5gWcLm6SqQk5+GzbuBIE4gaBBA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "f6ddb73aee397474a9e700f89249aeac",
        "request_hash": "c11c230ba3e83a6b3e2c37d5ef1dd8be0ca983e28035f3e75b09243181f2a05c",
        "signature_b64": "wVYyVRd46ToePYphTVDKlt9zWtcZtcgckhDSfvpJop95bEPZdT46qkAvu2JxfmilFJO6XvbKo51BWaD2qzKWAw==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "rm",
         "x"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v1",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      }
     },
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "DENY",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "9b892f9ccf47e586e7be7266b89bad87d273fe382b5c2ec3db29823a3e789101",
       "reason": "MODEL_SUBSTITUTION",
       "receipt_hash": "ab92cadee860ba24b4f156203bd427e1a8dea34860e4000a6a86b96a441c12e6",
       "receipt_id": "rcp_0924abc66a047dd115c5fff284aa5f54",
       "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
       "runtime_digest": "model:v2",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "IJhQYolDB7xm2jazueKukypAOIn701HEefnZVEQWrAi4KLDKpMGrpkKKbyrzcUZqGWbxYgbLkR8232VEZo/jDA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "3d79ba5794715a3aeaf88b15a8e4e89e",
        "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
        "signature_b64": "GPz4B/Fsi7C94tkMchjXudnJ/R2xeji2Gne8+MRWdb+2J+DN0BHLcTqIAKTKNxp0z6doT+NAKA+V2DgWF8+KAQ==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "echo",
         "hi"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v2",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      }
     }
    ],
    "revocation": null,
    "state": "ACTIVE",
    "subject_sig": "BaUeGlHQVe3yZ4lgHlefHStGp0CymuMHLrn4BwUf8WI262swg91KNSsYuAuc7mDvPZixYjBt0CNx/q4E2hT+Cw=="
   },
   "name": "tenant_swapped"
  },
  {
   "expect_ok": false,
   "export": {
    "authority_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
    "consent_from": "",
    "consent_mode": "direct",
    "contract": {
     "action": {
      "kind": "exec",
      "request_hash": ""
     },
     "annotations": {},
     "authority": {
      "agent_chain": [
       "alice"
      ],
      "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
      "source": "rig"
     },
     "capability": {
      "action": "openshell.exec",
      "audience": "",
      "max_uses": 3,
      "resource": "/tmp"
     },
     "conditions": [
      {
       "arg": [
        "echo",
        "ls"
       ],
       "op": "argv0_in"
      }
     ],
     "environment": {
      "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
      "model_runtime_digest": "model:v1"
     },
     "evidence_policy": {
      "payload_type": "application/cain-contract-receipt+json",
      "record_outputs": "digest",
      "scitt_required": true
     },
     "execution_path": {
      "adapter_version": "1",
      "engine": "cain_openshell_gateway",
      "product": "openshell"
     },
     "header": {
      "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
      "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
      "schema": "cain.contract.v1",
      "supersedes": "",
      "tenant": "tenant-a",
      "version": 1
     },
     "policy": {
      "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
      "policy_id": "default",
      "product": "openshell",
      "rules": {}
     },
     "purpose": {
      "statement": "run tools"
     },
     "risk": {
      "max_risk_score": 100,
      "risk_class": "low"
     },
     "subject": {
      "agent_id": "alice",
      "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
      "runtime_digest": "model:v1",
      "spiffe_id": "spiffe://cainstudio.online/agent/alice"
     },
     "validity": {
      "epoch": 0,
      "expires_at_ms": 1790000300000,
      "issued_at_ms": 1790000000000,
      "not_before_ms": 1790000000000
     }
    },
    "fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
    "issuer_key_id": "51e6ef10f4df23df",
    "issuer_public_key_b64": "MvnpQB6/RQDfIIYNfZ9U4fO2onjFAwTkp4AwJYs5m9g=",
    "issuer_sig": "r5S+Y+oFzdP/L1zU9UzkVZxP7sNX6KhS+Vjam/UG4iUyh5jUyJp61DfIh4FC/SR42jtT7HJ6CJA3ujRlZnS5AQ==",
    "predecessor": null,
    "receipts": [
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "ALLOW",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "0000000000000000000000000000000000000000000000000000000000000000",
       "reason": "OK",
       "receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "receipt_id": "rcp_73cdac9a6553b6a89373d967f006187a",
       "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
       "runtime_digest": "model:v1",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "gdzp5c/qIn2niofLbuDI7UaGB+2urybyK/UevVNpZJaJOgwa1upvHqDX1ClrIliWTcHlmlXwzuQhWdniYAMOAA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 0
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "b821fb333f616025646d644efb8ae9f9",
        "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
        "signature_b64": "e18ByZ6iJC161/ugBJKVmUyiSSl0h2Hsmi1iD5Cl+X0Q2C1wXVNI9EVhGAGoaK0Xo1p0A8tvUS9+/64SXPuWAg==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "echo",
         "hi"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v1",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 0
      }
     },
     {
      "receipt": {
       "completed_at_ms": 1790000000000,
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decision_receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "execution_failed": false,
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "outcome",
       "prev_receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "product": "openshell",
       "product_result_digest": "b1795c9b65f02ee1d81dfd8f28292a37f6c4c9196166ebcf1fc4d8d672019a9b",
       "receipt_hash": "672456316c3cc1605dfd87c3abb297b99ac1c5bb13cd6ac15e7521bb7cf80670",
       "receipt_id": "rcp_37e4fdd39759647bb0bf011dfdfbf70b",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "vasKSJF4EuSjk7MuuAWu3Ev/PEJLQTJ/m2nPwrmGenz+uAE9lXROgcQ1suSRHn+Czsa77dc7RWOcMJFCqPzwBQ==",
       "tenant": "tenant-a"
      },
      "replay": null
     },
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "DENY",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "672456316c3cc1605dfd87c3abb297b99ac1c5bb13cd6ac15e7521bb7cf80670",
       "reason": "CONDITION_ARGV0_IN",
       "receipt_hash": "9b892f9ccf47e586e7be7266b89bad87d273fe382b5c2ec3db29823a3e789101",
       "receipt_id": "rcp_890280a2c4a76bc9a81e2edcdf895046",
       "request_hash": "c11c230ba3e83a6b3e2c37d5ef1dd8be0ca983e28035f3e75b09243181f2a05c",
       "runtime_digest": "model:v1",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "N+pwYfU7vpKuKkdOUq0kXTWiZQI1yyDmTvZb/YeX+i3I2+tDR548b1iRt5el5gWcLm6SqQk5+GzbuBIE4gaBBA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "f6ddb73aee397474a9e700f89249aeac",
        "request_hash": "c11c230ba3e83a6b3e2c37d5ef1dd8be0ca983e28035f3e75b09243181f2a05c",
        "signature_b64": "wVYyVRd46ToePYphTVDKlt9zWtcZtcgckhDSfvpJop95bEPZdT46qkAvu2JxfmilFJO6XvbKo51BWaD2qzKWAw==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "rm",
         "x"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v1",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      }
     },
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "DENY",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "9b892f9ccf47e586e7be7266b89bad87d273fe382b5c2ec3db29823a3e789101",
       "reason": "MODEL_SUBSTITUTION",
       "receipt_hash": "ab92cadee860ba24b4f156203bd427e1a8dea34860e4000a6a86b96a441c12e6",
       "receipt_id": "rcp_0924abc66a047dd115c5fff284aa5f54",
       "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
       "runtime_digest": "model:v2",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "IJhQYolDB7xm2jazueKukypAOIn701HEefnZVEQWrAi4KLDKpMGrpkKKbyrzcUZqGWbxYgbLkR8232VEZo/jDA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "3d79ba5794715a3aeaf88b15a8e4e89e",
        "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
        "signature_b64": "GPz4B/Fsi7C94tkMchjXudnJ/R2xeji2Gne8+MRWdb+2J+DN0BHLcTqIAKTKNxp0z6doT+NAKA+V2DgWF8+KAQ==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "echo",
         "hi"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v2",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      }
     }
    ],
    "revocation": null,
    "state": "ACTIVE",
    "subject_sig": "BaUeGlHQVe3yZ4lgHlefHStGp0CymuMHLrn4BwUf8WI262swg91KNSsYuAuc7mDvPZixYjBt0CNx/q4E2hT+Cw=="
   },
   "name": "risk_downgraded"
  },
  {
   "expect_ok": false,
   "export": {
    "authority_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
    "consent_from": "",
    "consent_mode": "direct",
    "contract": {
     "action": {
      "kind": "exec",
      "request_hash": ""
     },
     "annotations": {},
     "authority": {
      "agent_chain": [
       "alice"
      ],
      "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
      "source": "rig"
     },
     "capability": {
      "action": "openshell.exec",
      "audience": "",
      "max_uses": 3,
      "resource": "/tmp"
     },
     "conditions": [
      {
       "arg": [
        "echo",
        "ls"
       ],
       "op": "argv0_in"
      }
     ],
     "environment": {
      "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
      "model_runtime_digest": "model:v1"
     },
     "evidence_policy": {
      "payload_type": "application/cain-contract-receipt+json",
      "record_outputs": "digest",
      "scitt_required": true
     },
     "execution_path": {
      "adapter_version": "1",
      "engine": "cain_openshell_gateway",
      "product": "openshell"
     },
     "header": {
      "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
      "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
      "schema": "cain.contract.v1",
      "supersedes": "",
      "tenant": "tenant-a",
      "version": 1
     },
     "policy": {
      "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
      "policy_id": "default",
      "product": "openshell",
      "rules": {}
     },
     "purpose": {
      "statement": "run tools"
     },
     "risk": {
      "max_risk_score": 100,
      "risk_class": "high"
     },
     "subject": {
      "agent_id": "alice",
      "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
      "runtime_digest": "model:v1",
      "spiffe_id": "spiffe://cainstudio.online/agent/alice"
     },
     "validity": {
      "epoch": 0,
      "expires_at_ms": 1790000300000,
      "issued_at_ms": 1790000000000,
      "not_before_ms": 1790000000000
     }
    },
    "fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
    "issuer_key_id": "51e6ef10f4df23df",
    "issuer_public_key_b64": "MvnpQB6/RQDfIIYNfZ9U4fO2onjFAwTkp4AwJYs5m9g=",
    "issuer_sig": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",
    "predecessor": null,
    "receipts": [
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "ALLOW",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "0000000000000000000000000000000000000000000000000000000000000000",
       "reason": "OK",
       "receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "receipt_id": "rcp_73cdac9a6553b6a89373d967f006187a",
       "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
       "runtime_digest": "model:v1",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "gdzp5c/qIn2niofLbuDI7UaGB+2urybyK/UevVNpZJaJOgwa1upvHqDX1ClrIliWTcHlmlXwzuQhWdniYAMOAA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 0
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "b821fb333f616025646d644efb8ae9f9",
        "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
        "signature_b64": "e18ByZ6iJC161/ugBJKVmUyiSSl0h2Hsmi1iD5Cl+X0Q2C1wXVNI9EVhGAGoaK0Xo1p0A8tvUS9+/64SXPuWAg==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "echo",
         "hi"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v1",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 0
      }
     },
     {
      "receipt": {
       "completed_at_ms": 1790000000000,
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decision_receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "execution_failed": false,
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "outcome",
       "prev_receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "product": "openshell",
       "product_result_digest": "b1795c9b65f02ee1d81dfd8f28292a37f6c4c9196166ebcf1fc4d8d672019a9b",
       "receipt_hash": "672456316c3cc1605dfd87c3abb297b99ac1c5bb13cd6ac15e7521bb7cf80670",
       "receipt_id": "rcp_37e4fdd39759647bb0bf011dfdfbf70b",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "vasKSJF4EuSjk7MuuAWu3Ev/PEJLQTJ/m2nPwrmGenz+uAE9lXROgcQ1suSRHn+Czsa77dc7RWOcMJFCqPzwBQ==",
       "tenant": "tenant-a"
      },
      "replay": null
     },
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "DENY",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "672456316c3cc1605dfd87c3abb297b99ac1c5bb13cd6ac15e7521bb7cf80670",
       "reason": "CONDITION_ARGV0_IN",
       "receipt_hash": "9b892f9ccf47e586e7be7266b89bad87d273fe382b5c2ec3db29823a3e789101",
       "receipt_id": "rcp_890280a2c4a76bc9a81e2edcdf895046",
       "request_hash": "c11c230ba3e83a6b3e2c37d5ef1dd8be0ca983e28035f3e75b09243181f2a05c",
       "runtime_digest": "model:v1",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "N+pwYfU7vpKuKkdOUq0kXTWiZQI1yyDmTvZb/YeX+i3I2+tDR548b1iRt5el5gWcLm6SqQk5+GzbuBIE4gaBBA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "f6ddb73aee397474a9e700f89249aeac",
        "request_hash": "c11c230ba3e83a6b3e2c37d5ef1dd8be0ca983e28035f3e75b09243181f2a05c",
        "signature_b64": "wVYyVRd46ToePYphTVDKlt9zWtcZtcgckhDSfvpJop95bEPZdT46qkAvu2JxfmilFJO6XvbKo51BWaD2qzKWAw==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "rm",
         "x"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v1",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      }
     },
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "DENY",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "9b892f9ccf47e586e7be7266b89bad87d273fe382b5c2ec3db29823a3e789101",
       "reason": "MODEL_SUBSTITUTION",
       "receipt_hash": "ab92cadee860ba24b4f156203bd427e1a8dea34860e4000a6a86b96a441c12e6",
       "receipt_id": "rcp_0924abc66a047dd115c5fff284aa5f54",
       "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
       "runtime_digest": "model:v2",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "IJhQYolDB7xm2jazueKukypAOIn701HEefnZVEQWrAi4KLDKpMGrpkKKbyrzcUZqGWbxYgbLkR8232VEZo/jDA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "3d79ba5794715a3aeaf88b15a8e4e89e",
        "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
        "signature_b64": "GPz4B/Fsi7C94tkMchjXudnJ/R2xeji2Gne8+MRWdb+2J+DN0BHLcTqIAKTKNxp0z6doT+NAKA+V2DgWF8+KAQ==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "echo",
         "hi"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v2",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      }
     }
    ],
    "revocation": null,
    "state": "ACTIVE",
    "subject_sig": "BaUeGlHQVe3yZ4lgHlefHStGp0CymuMHLrn4BwUf8WI262swg91KNSsYuAuc7mDvPZixYjBt0CNx/q4E2hT+Cw=="
   },
   "name": "issuer_sig_zeroed"
  },
  {
   "expect_ok": false,
   "export": {
    "authority_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
    "consent_from": "",
    "consent_mode": "direct",
    "contract": {
     "action": {
      "kind": "exec",
      "request_hash": ""
     },
     "annotations": {},
     "authority": {
      "agent_chain": [
       "alice"
      ],
      "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
      "source": "rig"
     },
     "capability": {
      "action": "openshell.exec",
      "audience": "",
      "max_uses": 3,
      "resource": "/tmp"
     },
     "conditions": [
      {
       "arg": [
        "echo",
        "ls"
       ],
       "op": "argv0_in"
      }
     ],
     "environment": {
      "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
      "model_runtime_digest": "model:v1"
     },
     "evidence_policy": {
      "payload_type": "application/cain-contract-receipt+json",
      "record_outputs": "digest",
      "scitt_required": true
     },
     "execution_path": {
      "adapter_version": "1",
      "engine": "cain_openshell_gateway",
      "product": "openshell"
     },
     "header": {
      "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
      "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
      "schema": "cain.contract.v1",
      "supersedes": "",
      "tenant": "tenant-a",
      "version": 1
     },
     "policy": {
      "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
      "policy_id": "default",
      "product": "openshell",
      "rules": {}
     },
     "purpose": {
      "statement": "run tools"
     },
     "risk": {
      "max_risk_score": 100,
      "risk_class": "high"
     },
     "subject": {
      "agent_id": "alice",
      "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
      "runtime_digest": "model:v1",
      "spiffe_id": "spiffe://cainstudio.online/agent/alice"
     },
     "validity": {
      "epoch": 0,
      "expires_at_ms": 1790000300000,
      "issued_at_ms": 1790000000000,
      "not_before_ms": 1790000000000
     }
    },
    "fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
    "issuer_key_id": "51e6ef10f4df23df",
    "issuer_public_key_b64": "MvnpQB6/RQDfIIYNfZ9U4fO2onjFAwTkp4AwJYs5m9g=",
    "issuer_sig": "r5S+Y+oFzdP/L1zU9UzkVZxP7sNX6KhS+Vjam/UG4iUyh5jUyJp61DfIh4FC/SR42jtT7HJ6CJA3ujRlZnS5AQ==",
    "predecessor": null,
    "receipts": [
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "ALLOW",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "0000000000000000000000000000000000000000000000000000000000000000",
       "reason": "OK",
       "receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "receipt_id": "rcp_73cdac9a6553b6a89373d967f006187a",
       "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
       "runtime_digest": "model:v1",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "gdzp5c/qIn2niofLbuDI7UaGB+2urybyK/UevVNpZJaJOgwa1upvHqDX1ClrIliWTcHlmlXwzuQhWdniYAMOAA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 0
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "b821fb333f616025646d644efb8ae9f9",
        "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
        "signature_b64": "e18ByZ6iJC161/ugBJKVmUyiSSl0h2Hsmi1iD5Cl+X0Q2C1wXVNI9EVhGAGoaK0Xo1p0A8tvUS9+/64SXPuWAg==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "echo",
         "hi"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v1",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 0
      }
     },
     {
      "receipt": {
       "completed_at_ms": 1790000000000,
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decision_receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "execution_failed": false,
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "outcome",
       "prev_receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "product": "openshell",
       "product_result_digest": "b1795c9b65f02ee1d81dfd8f28292a37f6c4c9196166ebcf1fc4d8d672019a9b",
       "receipt_hash": "672456316c3cc1605dfd87c3abb297b99ac1c5bb13cd6ac15e7521bb7cf80670",
       "receipt_id": "rcp_37e4fdd39759647bb0bf011dfdfbf70b",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "vasKSJF4EuSjk7MuuAWu3Ev/PEJLQTJ/m2nPwrmGenz+uAE9lXROgcQ1suSRHn+Czsa77dc7RWOcMJFCqPzwBQ==",
       "tenant": "tenant-a"
      },
      "replay": null
     },
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "DENY",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "672456316c3cc1605dfd87c3abb297b99ac1c5bb13cd6ac15e7521bb7cf80670",
       "reason": "CONDITION_ARGV0_IN",
       "receipt_hash": "9b892f9ccf47e586e7be7266b89bad87d273fe382b5c2ec3db29823a3e789101",
       "receipt_id": "rcp_890280a2c4a76bc9a81e2edcdf895046",
       "request_hash": "c11c230ba3e83a6b3e2c37d5ef1dd8be0ca983e28035f3e75b09243181f2a05c",
       "runtime_digest": "model:v1",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "N+pwYfU7vpKuKkdOUq0kXTWiZQI1yyDmTvZb/YeX+i3I2+tDR548b1iRt5el5gWcLm6SqQk5+GzbuBIE4gaBBA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "f6ddb73aee397474a9e700f89249aeac",
        "request_hash": "c11c230ba3e83a6b3e2c37d5ef1dd8be0ca983e28035f3e75b09243181f2a05c",
        "signature_b64": "wVYyVRd46ToePYphTVDKlt9zWtcZtcgckhDSfvpJop95bEPZdT46qkAvu2JxfmilFJO6XvbKo51BWaD2qzKWAw==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "rm",
         "x"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v1",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      }
     },
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "DENY",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "9b892f9ccf47e586e7be7266b89bad87d273fe382b5c2ec3db29823a3e789101",
       "reason": "MODEL_SUBSTITUTION",
       "receipt_hash": "ab92cadee860ba24b4f156203bd427e1a8dea34860e4000a6a86b96a441c12e6",
       "receipt_id": "rcp_0924abc66a047dd115c5fff284aa5f54",
       "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
       "runtime_digest": "model:v2",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "IJhQYolDB7xm2jazueKukypAOIn701HEefnZVEQWrAi4KLDKpMGrpkKKbyrzcUZqGWbxYgbLkR8232VEZo/jDA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "3d79ba5794715a3aeaf88b15a8e4e89e",
        "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
        "signature_b64": "GPz4B/Fsi7C94tkMchjXudnJ/R2xeji2Gne8+MRWdb+2J+DN0BHLcTqIAKTKNxp0z6doT+NAKA+V2DgWF8+KAQ==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "echo",
         "hi"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v2",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      }
     }
    ],
    "revocation": null,
    "state": "ACTIVE",
    "subject_sig": "GFYHD+m/QO3uMI+qI7rY4S71VU9o4WZteJWo7pL7q1wwectrytKoCdkIyiKmvsyDQSccYG/VJLb4yJO3XOWVDw=="
   },
   "name": "subject_sig_from_other_contract"
  },
  {
   "expect_ok": false,
   "export": {
    "authority_digest": "abababababababababababababababababababababababababababababababab",
    "consent_from": "",
    "consent_mode": "direct",
    "contract": {
     "action": {
      "kind": "exec",
      "request_hash": ""
     },
     "annotations": {},
     "authority": {
      "agent_chain": [
       "alice"
      ],
      "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
      "source": "rig"
     },
     "capability": {
      "action": "openshell.exec",
      "audience": "",
      "max_uses": 3,
      "resource": "/tmp"
     },
     "conditions": [
      {
       "arg": [
        "echo",
        "ls"
       ],
       "op": "argv0_in"
      }
     ],
     "environment": {
      "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
      "model_runtime_digest": "model:v1"
     },
     "evidence_policy": {
      "payload_type": "application/cain-contract-receipt+json",
      "record_outputs": "digest",
      "scitt_required": true
     },
     "execution_path": {
      "adapter_version": "1",
      "engine": "cain_openshell_gateway",
      "product": "openshell"
     },
     "header": {
      "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
      "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
      "schema": "cain.contract.v1",
      "supersedes": "",
      "tenant": "tenant-a",
      "version": 1
     },
     "policy": {
      "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
      "policy_id": "default",
      "product": "openshell",
      "rules": {}
     },
     "purpose": {
      "statement": "run tools"
     },
     "risk": {
      "max_risk_score": 100,
      "risk_class": "high"
     },
     "subject": {
      "agent_id": "alice",
      "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
      "runtime_digest": "model:v1",
      "spiffe_id": "spiffe://cainstudio.online/agent/alice"
     },
     "validity": {
      "epoch": 0,
      "expires_at_ms": 1790000300000,
      "issued_at_ms": 1790000000000,
      "not_before_ms": 1790000000000
     }
    },
    "fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
    "issuer_key_id": "51e6ef10f4df23df",
    "issuer_public_key_b64": "MvnpQB6/RQDfIIYNfZ9U4fO2onjFAwTkp4AwJYs5m9g=",
    "issuer_sig": "r5S+Y+oFzdP/L1zU9UzkVZxP7sNX6KhS+Vjam/UG4iUyh5jUyJp61DfIh4FC/SR42jtT7HJ6CJA3ujRlZnS5AQ==",
    "predecessor": null,
    "receipts": [
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "ALLOW",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "0000000000000000000000000000000000000000000000000000000000000000",
       "reason": "OK",
       "receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "receipt_id": "rcp_73cdac9a6553b6a89373d967f006187a",
       "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
       "runtime_digest": "model:v1",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "gdzp5c/qIn2niofLbuDI7UaGB+2urybyK/UevVNpZJaJOgwa1upvHqDX1ClrIliWTcHlmlXwzuQhWdniYAMOAA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 0
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "b821fb333f616025646d644efb8ae9f9",
        "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
        "signature_b64": "e18ByZ6iJC161/ugBJKVmUyiSSl0h2Hsmi1iD5Cl+X0Q2C1wXVNI9EVhGAGoaK0Xo1p0A8tvUS9+/64SXPuWAg==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "echo",
         "hi"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v1",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 0
      }
     },
     {
      "receipt": {
       "completed_at_ms": 1790000000000,
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decision_receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "execution_failed": false,
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "outcome",
       "prev_receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "product": "openshell",
       "product_result_digest": "b1795c9b65f02ee1d81dfd8f28292a37f6c4c9196166ebcf1fc4d8d672019a9b",
       "receipt_hash": "672456316c3cc1605dfd87c3abb297b99ac1c5bb13cd6ac15e7521bb7cf80670",
       "receipt_id": "rcp_37e4fdd39759647bb0bf011dfdfbf70b",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "vasKSJF4EuSjk7MuuAWu3Ev/PEJLQTJ/m2nPwrmGenz+uAE9lXROgcQ1suSRHn+Czsa77dc7RWOcMJFCqPzwBQ==",
       "tenant": "tenant-a"
      },
      "replay": null
     },
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "DENY",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "672456316c3cc1605dfd87c3abb297b99ac1c5bb13cd6ac15e7521bb7cf80670",
       "reason": "CONDITION_ARGV0_IN",
       "receipt_hash": "9b892f9ccf47e586e7be7266b89bad87d273fe382b5c2ec3db29823a3e789101",
       "receipt_id": "rcp_890280a2c4a76bc9a81e2edcdf895046",
       "request_hash": "c11c230ba3e83a6b3e2c37d5ef1dd8be0ca983e28035f3e75b09243181f2a05c",
       "runtime_digest": "model:v1",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "N+pwYfU7vpKuKkdOUq0kXTWiZQI1yyDmTvZb/YeX+i3I2+tDR548b1iRt5el5gWcLm6SqQk5+GzbuBIE4gaBBA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "f6ddb73aee397474a9e700f89249aeac",
        "request_hash": "c11c230ba3e83a6b3e2c37d5ef1dd8be0ca983e28035f3e75b09243181f2a05c",
        "signature_b64": "wVYyVRd46ToePYphTVDKlt9zWtcZtcgckhDSfvpJop95bEPZdT46qkAvu2JxfmilFJO6XvbKo51BWaD2qzKWAw==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "rm",
         "x"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v1",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      }
     },
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "DENY",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "9b892f9ccf47e586e7be7266b89bad87d273fe382b5c2ec3db29823a3e789101",
       "reason": "MODEL_SUBSTITUTION",
       "receipt_hash": "ab92cadee860ba24b4f156203bd427e1a8dea34860e4000a6a86b96a441c12e6",
       "receipt_id": "rcp_0924abc66a047dd115c5fff284aa5f54",
       "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
       "runtime_digest": "model:v2",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "IJhQYolDB7xm2jazueKukypAOIn701HEefnZVEQWrAi4KLDKpMGrpkKKbyrzcUZqGWbxYgbLkR8232VEZo/jDA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "3d79ba5794715a3aeaf88b15a8e4e89e",
        "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
        "signature_b64": "GPz4B/Fsi7C94tkMchjXudnJ/R2xeji2Gne8+MRWdb+2J+DN0BHLcTqIAKTKNxp0z6doT+NAKA+V2DgWF8+KAQ==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "echo",
         "hi"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v2",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      }
     }
    ],
    "revocation": null,
    "state": "ACTIVE",
    "subject_sig": "BaUeGlHQVe3yZ4lgHlefHStGp0CymuMHLrn4BwUf8WI262swg91KNSsYuAuc7mDvPZixYjBt0CNx/q4E2hT+Cw=="
   },
   "name": "authority_digest_swapped"
  },
  {
   "expect_ok": false,
   "export": {
    "authority_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
    "consent_from": "",
    "consent_mode": "direct",
    "contract": {
     "action": {
      "kind": "exec",
      "request_hash": ""
     },
     "annotations": {},
     "authority": {
      "agent_chain": [
       "alice"
      ],
      "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
      "source": "rig"
     },
     "capability": {
      "action": "openshell.exec",
      "audience": "",
      "max_uses": 3,
      "resource": "/tmp"
     },
     "conditions": [
      {
       "arg": [
        "echo",
        "ls"
       ],
       "op": "argv0_in"
      }
     ],
     "environment": {
      "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
      "model_runtime_digest": "model:v1"
     },
     "evidence_policy": {
      "payload_type": "application/cain-contract-receipt+json",
      "record_outputs": "digest",
      "scitt_required": true
     },
     "execution_path": {
      "adapter_version": "1",
      "engine": "cain_openshell_gateway",
      "product": "openshell"
     },
     "header": {
      "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
      "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
      "schema": "cain.contract.v1",
      "supersedes": "",
      "tenant": "tenant-a",
      "version": 1
     },
     "policy": {
      "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
      "policy_id": "default",
      "product": "openshell",
      "rules": {}
     },
     "purpose": {
      "statement": "run tools"
     },
     "risk": {
      "max_risk_score": 100,
      "risk_class": "high"
     },
     "subject": {
      "agent_id": "alice",
      "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
      "runtime_digest": "model:v1",
      "spiffe_id": "spiffe://cainstudio.online/agent/alice"
     },
     "validity": {
      "epoch": 0,
      "expires_at_ms": 1790000300000,
      "issued_at_ms": 1790000000000,
      "not_before_ms": 1790000000000
     }
    },
    "fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
    "issuer_key_id": "51e6ef10f4df23df",
    "issuer_public_key_b64": "MvnpQB6/RQDfIIYNfZ9U4fO2onjFAwTkp4AwJYs5m9g=",
    "issuer_sig": "r5S+Y+oFzdP/L1zU9UzkVZxP7sNX6KhS+Vjam/UG4iUyh5jUyJp61DfIh4FC/SR42jtT7HJ6CJA3ujRlZnS5AQ==",
    "predecessor": null,
    "receipts": [
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "ALLOW",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "0000000000000000000000000000000000000000000000000000000000000000",
       "reason": "OK",
       "receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "receipt_id": "rcp_73cdac9a6553b6a89373d967f006187a",
       "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
       "runtime_digest": "model:v1",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "gdzp5c/qIn2niofLbuDI7UaGB+2urybyK/UevVNpZJaJOgwa1upvHqDX1ClrIliWTcHlmlXwzuQhWdniYAMOAA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 0
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "b821fb333f616025646d644efb8ae9f9",
        "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
        "signature_b64": "e18ByZ6iJC161/ugBJKVmUyiSSl0h2Hsmi1iD5Cl+X0Q2C1wXVNI9EVhGAGoaK0Xo1p0A8tvUS9+/64SXPuWAg==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "echo",
         "hi"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v1",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 0
      }
     },
     {
      "receipt": {
       "completed_at_ms": 1790000000000,
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decision": "ALLOW",
       "decision_receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "execution_failed": false,
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "outcome",
       "prev_receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "product": "openshell",
       "product_result_digest": "b1795c9b65f02ee1d81dfd8f28292a37f6c4c9196166ebcf1fc4d8d672019a9b",
       "receipt_hash": "672456316c3cc1605dfd87c3abb297b99ac1c5bb13cd6ac15e7521bb7cf80670",
       "receipt_id": "rcp_37e4fdd39759647bb0bf011dfdfbf70b",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "vasKSJF4EuSjk7MuuAWu3Ev/PEJLQTJ/m2nPwrmGenz+uAE9lXROgcQ1suSRHn+Czsa77dc7RWOcMJFCqPzwBQ==",
       "tenant": "tenant-a"
      },
      "replay": null
     },
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "DENY",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "672456316c3cc1605dfd87c3abb297b99ac1c5bb13cd6ac15e7521bb7cf80670",
       "reason": "CONDITION_ARGV0_IN",
       "receipt_hash": "9b892f9ccf47e586e7be7266b89bad87d273fe382b5c2ec3db29823a3e789101",
       "receipt_id": "rcp_890280a2c4a76bc9a81e2edcdf895046",
       "request_hash": "c11c230ba3e83a6b3e2c37d5ef1dd8be0ca983e28035f3e75b09243181f2a05c",
       "runtime_digest": "model:v1",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "N+pwYfU7vpKuKkdOUq0kXTWiZQI1yyDmTvZb/YeX+i3I2+tDR548b1iRt5el5gWcLm6SqQk5+GzbuBIE4gaBBA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "f6ddb73aee397474a9e700f89249aeac",
        "request_hash": "c11c230ba3e83a6b3e2c37d5ef1dd8be0ca983e28035f3e75b09243181f2a05c",
        "signature_b64": "wVYyVRd46ToePYphTVDKlt9zWtcZtcgckhDSfvpJop95bEPZdT46qkAvu2JxfmilFJO6XvbKo51BWaD2qzKWAw==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "rm",
         "x"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v1",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      }
     },
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "DENY",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "9b892f9ccf47e586e7be7266b89bad87d273fe382b5c2ec3db29823a3e789101",
       "reason": "MODEL_SUBSTITUTION",
       "receipt_hash": "ab92cadee860ba24b4f156203bd427e1a8dea34860e4000a6a86b96a441c12e6",
       "receipt_id": "rcp_0924abc66a047dd115c5fff284aa5f54",
       "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
       "runtime_digest": "model:v2",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "IJhQYolDB7xm2jazueKukypAOIn701HEefnZVEQWrAi4KLDKpMGrpkKKbyrzcUZqGWbxYgbLkR8232VEZo/jDA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "3d79ba5794715a3aeaf88b15a8e4e89e",
        "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
        "signature_b64": "GPz4B/Fsi7C94tkMchjXudnJ/R2xeji2Gne8+MRWdb+2J+DN0BHLcTqIAKTKNxp0z6doT+NAKA+V2DgWF8+KAQ==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "echo",
         "hi"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v2",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      }
     }
    ],
    "revocation": null,
    "state": "ACTIVE",
    "subject_sig": "BaUeGlHQVe3yZ4lgHlefHStGp0CymuMHLrn4BwUf8WI262swg91KNSsYuAuc7mDvPZixYjBt0CNx/q4E2hT+Cw=="
   },
   "name": "receipt_decision_flipped"
  },
  {
   "expect_ok": false,
   "export": {
    "authority_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
    "consent_from": "",
    "consent_mode": "direct",
    "contract": {
     "action": {
      "kind": "exec",
      "request_hash": ""
     },
     "annotations": {},
     "authority": {
      "agent_chain": [
       "alice"
      ],
      "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
      "source": "rig"
     },
     "capability": {
      "action": "openshell.exec",
      "audience": "",
      "max_uses": 3,
      "resource": "/tmp"
     },
     "conditions": [
      {
       "arg": [
        "echo",
        "ls"
       ],
       "op": "argv0_in"
      }
     ],
     "environment": {
      "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
      "model_runtime_digest": "model:v1"
     },
     "evidence_policy": {
      "payload_type": "application/cain-contract-receipt+json",
      "record_outputs": "digest",
      "scitt_required": true
     },
     "execution_path": {
      "adapter_version": "1",
      "engine": "cain_openshell_gateway",
      "product": "openshell"
     },
     "header": {
      "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
      "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
      "schema": "cain.contract.v1",
      "supersedes": "",
      "tenant": "tenant-a",
      "version": 1
     },
     "policy": {
      "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
      "policy_id": "default",
      "product": "openshell",
      "rules": {}
     },
     "purpose": {
      "statement": "run tools"
     },
     "risk": {
      "max_risk_score": 100,
      "risk_class": "high"
     },
     "subject": {
      "agent_id": "alice",
      "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
      "runtime_digest": "model:v1",
      "spiffe_id": "spiffe://cainstudio.online/agent/alice"
     },
     "validity": {
      "epoch": 0,
      "expires_at_ms": 1790000300000,
      "issued_at_ms": 1790000000000,
      "not_before_ms": 1790000000000
     }
    },
    "fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
    "issuer_key_id": "51e6ef10f4df23df",
    "issuer_public_key_b64": "MvnpQB6/RQDfIIYNfZ9U4fO2onjFAwTkp4AwJYs5m9g=",
    "issuer_sig": "r5S+Y+oFzdP/L1zU9UzkVZxP7sNX6KhS+Vjam/UG4iUyh5jUyJp61DfIh4FC/SR42jtT7HJ6CJA3ujRlZnS5AQ==",
    "predecessor": null,
    "receipts": [
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "ALLOW",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "0000000000000000000000000000000000000000000000000000000000000000",
       "reason": "OK",
       "receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "receipt_id": "rcp_73cdac9a6553b6a89373d967f006187a",
       "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
       "runtime_digest": "model:v1",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "gdzp5c/qIn2niofLbuDI7UaGB+2urybyK/UevVNpZJaJOgwa1upvHqDX1ClrIliWTcHlmlXwzuQhWdniYAMOAA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 0
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000001,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "b821fb333f616025646d644efb8ae9f9",
        "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
        "signature_b64": "e18ByZ6iJC161/ugBJKVmUyiSSl0h2Hsmi1iD5Cl+X0Q2C1wXVNI9EVhGAGoaK0Xo1p0A8tvUS9+/64SXPuWAg==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "echo",
         "hi"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v1",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 0
      }
     },
     {
      "receipt": {
       "completed_at_ms": 1790000000000,
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decision_receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "execution_failed": false,
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "outcome",
       "prev_receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "product": "openshell",
       "product_result_digest": "b1795c9b65f02ee1d81dfd8f28292a37f6c4c9196166ebcf1fc4d8d672019a9b",
       "receipt_hash": "672456316c3cc1605dfd87c3abb297b99ac1c5bb13cd6ac15e7521bb7cf80670",
       "receipt_id": "rcp_37e4fdd39759647bb0bf011dfdfbf70b",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "vasKSJF4EuSjk7MuuAWu3Ev/PEJLQTJ/m2nPwrmGenz+uAE9lXROgcQ1suSRHn+Czsa77dc7RWOcMJFCqPzwBQ==",
       "tenant": "tenant-a"
      },
      "replay": null
     },
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "DENY",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "672456316c3cc1605dfd87c3abb297b99ac1c5bb13cd6ac15e7521bb7cf80670",
       "reason": "CONDITION_ARGV0_IN",
       "receipt_hash": "9b892f9ccf47e586e7be7266b89bad87d273fe382b5c2ec3db29823a3e789101",
       "receipt_id": "rcp_890280a2c4a76bc9a81e2edcdf895046",
       "request_hash": "c11c230ba3e83a6b3e2c37d5ef1dd8be0ca983e28035f3e75b09243181f2a05c",
       "runtime_digest": "model:v1",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "N+pwYfU7vpKuKkdOUq0kXTWiZQI1yyDmTvZb/YeX+i3I2+tDR548b1iRt5el5gWcLm6SqQk5+GzbuBIE4gaBBA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "f6ddb73aee397474a9e700f89249aeac",
        "request_hash": "c11c230ba3e83a6b3e2c37d5ef1dd8be0ca983e28035f3e75b09243181f2a05c",
        "signature_b64": "wVYyVRd46ToePYphTVDKlt9zWtcZtcgckhDSfvpJop95bEPZdT46qkAvu2JxfmilFJO6XvbKo51BWaD2qzKWAw==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "rm",
         "x"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v1",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      }
     },
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "DENY",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "9b892f9ccf47e586e7be7266b89bad87d273fe382b5c2ec3db29823a3e789101",
       "reason": "MODEL_SUBSTITUTION",
       "receipt_hash": "ab92cadee860ba24b4f156203bd427e1a8dea34860e4000a6a86b96a441c12e6",
       "receipt_id": "rcp_0924abc66a047dd115c5fff284aa5f54",
       "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
       "runtime_digest": "model:v2",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "IJhQYolDB7xm2jazueKukypAOIn701HEefnZVEQWrAi4KLDKpMGrpkKKbyrzcUZqGWbxYgbLkR8232VEZo/jDA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "3d79ba5794715a3aeaf88b15a8e4e89e",
        "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
        "signature_b64": "GPz4B/Fsi7C94tkMchjXudnJ/R2xeji2Gne8+MRWdb+2J+DN0BHLcTqIAKTKNxp0z6doT+NAKA+V2DgWF8+KAQ==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "echo",
         "hi"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v2",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      }
     }
    ],
    "revocation": null,
    "state": "ACTIVE",
    "subject_sig": "BaUeGlHQVe3yZ4lgHlefHStGp0CymuMHLrn4BwUf8WI262swg91KNSsYuAuc7mDvPZixYjBt0CNx/q4E2hT+Cw=="
   },
   "name": "receipt_replay_time_shifted"
  },
  {
   "expect_ok": false,
   "export": {
    "authority_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
    "consent_from": "",
    "consent_mode": "direct",
    "contract": {
     "action": {
      "kind": "exec",
      "request_hash": ""
     },
     "annotations": {},
     "authority": {
      "agent_chain": [
       "alice"
      ],
      "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
      "source": "rig"
     },
     "capability": {
      "action": "openshell.exec",
      "audience": "",
      "max_uses": 3,
      "resource": "/tmp"
     },
     "conditions": [
      {
       "arg": [
        "echo",
        "ls"
       ],
       "op": "argv0_in"
      }
     ],
     "environment": {
      "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
      "model_runtime_digest": "model:v1"
     },
     "evidence_policy": {
      "payload_type": "application/cain-contract-receipt+json",
      "record_outputs": "digest",
      "scitt_required": true
     },
     "execution_path": {
      "adapter_version": "1",
      "engine": "cain_openshell_gateway",
      "product": "openshell"
     },
     "header": {
      "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
      "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
      "schema": "cain.contract.v1",
      "supersedes": "",
      "tenant": "tenant-a",
      "version": 1
     },
     "policy": {
      "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
      "policy_id": "default",
      "product": "openshell",
      "rules": {}
     },
     "purpose": {
      "statement": "run tools"
     },
     "risk": {
      "max_risk_score": 100,
      "risk_class": "high"
     },
     "subject": {
      "agent_id": "alice",
      "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
      "runtime_digest": "model:v1",
      "spiffe_id": "spiffe://cainstudio.online/agent/alice"
     },
     "validity": {
      "epoch": 0,
      "expires_at_ms": 1790000300000,
      "issued_at_ms": 1790000000000,
      "not_before_ms": 1790000000000
     }
    },
    "fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
    "issuer_key_id": "51e6ef10f4df23df",
    "issuer_public_key_b64": "MvnpQB6/RQDfIIYNfZ9U4fO2onjFAwTkp4AwJYs5m9g=",
    "issuer_sig": "r5S+Y+oFzdP/L1zU9UzkVZxP7sNX6KhS+Vjam/UG4iUyh5jUyJp61DfIh4FC/SR42jtT7HJ6CJA3ujRlZnS5AQ==",
    "predecessor": null,
    "receipts": [
     {
      "receipt": {
       "completed_at_ms": 1790000000000,
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decision_receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "execution_failed": false,
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "outcome",
       "prev_receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "product": "openshell",
       "product_result_digest": "b1795c9b65f02ee1d81dfd8f28292a37f6c4c9196166ebcf1fc4d8d672019a9b",
       "receipt_hash": "672456316c3cc1605dfd87c3abb297b99ac1c5bb13cd6ac15e7521bb7cf80670",
       "receipt_id": "rcp_37e4fdd39759647bb0bf011dfdfbf70b",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "vasKSJF4EuSjk7MuuAWu3Ev/PEJLQTJ/m2nPwrmGenz+uAE9lXROgcQ1suSRHn+Czsa77dc7RWOcMJFCqPzwBQ==",
       "tenant": "tenant-a"
      },
      "replay": null
     },
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "DENY",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "672456316c3cc1605dfd87c3abb297b99ac1c5bb13cd6ac15e7521bb7cf80670",
       "reason": "CONDITION_ARGV0_IN",
       "receipt_hash": "9b892f9ccf47e586e7be7266b89bad87d273fe382b5c2ec3db29823a3e789101",
       "receipt_id": "rcp_890280a2c4a76bc9a81e2edcdf895046",
       "request_hash": "c11c230ba3e83a6b3e2c37d5ef1dd8be0ca983e28035f3e75b09243181f2a05c",
       "runtime_digest": "model:v1",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "N+pwYfU7vpKuKkdOUq0kXTWiZQI1yyDmTvZb/YeX+i3I2+tDR548b1iRt5el5gWcLm6SqQk5+GzbuBIE4gaBBA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "f6ddb73aee397474a9e700f89249aeac",
        "request_hash": "c11c230ba3e83a6b3e2c37d5ef1dd8be0ca983e28035f3e75b09243181f2a05c",
        "signature_b64": "wVYyVRd46ToePYphTVDKlt9zWtcZtcgckhDSfvpJop95bEPZdT46qkAvu2JxfmilFJO6XvbKo51BWaD2qzKWAw==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "rm",
         "x"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v1",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      }
     },
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "DENY",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "9b892f9ccf47e586e7be7266b89bad87d273fe382b5c2ec3db29823a3e789101",
       "reason": "MODEL_SUBSTITUTION",
       "receipt_hash": "ab92cadee860ba24b4f156203bd427e1a8dea34860e4000a6a86b96a441c12e6",
       "receipt_id": "rcp_0924abc66a047dd115c5fff284aa5f54",
       "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
       "runtime_digest": "model:v2",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "IJhQYolDB7xm2jazueKukypAOIn701HEefnZVEQWrAi4KLDKpMGrpkKKbyrzcUZqGWbxYgbLkR8232VEZo/jDA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "3d79ba5794715a3aeaf88b15a8e4e89e",
        "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
        "signature_b64": "GPz4B/Fsi7C94tkMchjXudnJ/R2xeji2Gne8+MRWdb+2J+DN0BHLcTqIAKTKNxp0z6doT+NAKA+V2DgWF8+KAQ==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "echo",
         "hi"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v2",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      }
     }
    ],
    "revocation": null,
    "state": "ACTIVE",
    "subject_sig": "BaUeGlHQVe3yZ4lgHlefHStGp0CymuMHLrn4BwUf8WI262swg91KNSsYuAuc7mDvPZixYjBt0CNx/q4E2hT+Cw=="
   },
   "name": "receipt_dropped_decision_kept_outcome"
  },
  {
   "expect_ok": false,
   "export": {
    "authority_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
    "consent_from": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
    "consent_mode": "carried",
    "contract": {
     "action": {
      "kind": "exec",
      "request_hash": ""
     },
     "annotations": {
      "ticket": "OPS-1"
     },
     "authority": {
      "agent_chain": [
       "alice"
      ],
      "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
      "source": "rig"
     },
     "capability": {
      "action": "openshell.exec",
      "audience": "",
      "max_uses": 3,
      "resource": "/tmp"
     },
     "conditions": [
      {
       "arg": [
        "echo",
        "ls"
       ],
       "op": "argv0_in"
      }
     ],
     "environment": {
      "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
      "model_runtime_digest": "model:v1"
     },
     "evidence_policy": {
      "payload_type": "application/cain-contract-receipt+json",
      "record_outputs": "digest",
      "scitt_required": true
     },
     "execution_path": {
      "adapter_version": "1",
      "engine": "cain_openshell_gateway",
      "product": "openshell"
     },
     "header": {
      "contract_id": "ctr_e21c20345d15278b7feb0c4528bd2c58",
      "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
      "schema": "cain.contract.v1",
      "supersedes": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
      "tenant": "tenant-a",
      "version": 2
     },
     "policy": {
      "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
      "policy_id": "default",
      "product": "openshell",
      "rules": {}
     },
     "purpose": {
      "statement": "run tools"
     },
     "risk": {
      "max_risk_score": 100,
      "risk_class": "high"
     },
     "subject": {
      "agent_id": "alice",
      "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
      "runtime_digest": "model:v1",
      "spiffe_id": "spiffe://cainstudio.online/agent/alice"
     },
     "validity": {
      "epoch": 0,
      "expires_at_ms": 1790000300000,
      "issued_at_ms": 1790000000000,
      "not_before_ms": 1790000000000
     }
    },
    "fingerprint": "5320b997baafdaffa4edb84227a460a04dd8d7e52ca7f4f893107570a047fff5",
    "issuer_key_id": "51e6ef10f4df23df",
    "issuer_public_key_b64": "MvnpQB6/RQDfIIYNfZ9U4fO2onjFAwTkp4AwJYs5m9g=",
    "issuer_sig": "duNOUlyF7Uop9MDP9dMv7Y9qzuQrC3NKvwMS8WN0jOlX0/pX1hZgcuRXSrMgvKCsST3BOIcLFzFWWOz8mjopCg==",
    "predecessor": {
     "body": {
      "action": {
       "kind": "exec",
       "request_hash": ""
      },
      "annotations": {},
      "authority": {
       "agent_chain": [
        "alice"
       ],
       "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "source": "rig"
      },
      "capability": {
       "action": "openshell.exec",
       "audience": "",
       "max_uses": 3,
       "resource": "/tmp"
      },
      "conditions": [
       {
        "arg": [
         "echo",
         "ls"
        ],
        "op": "argv0_in"
       }
      ],
      "environment": {
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "model_runtime_digest": "model:v1"
      },
      "evidence_policy": {
       "payload_type": "application/cain-contract-receipt+json",
       "record_outputs": "digest",
       "scitt_required": true
      },
      "execution_path": {
       "adapter_version": "1",
       "engine": "cain_openshell_gateway",
       "product": "openshell"
      },
      "header": {
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
       "schema": "cain.contract.v1",
       "supersedes": "",
       "tenant": "tenant-a",
       "version": 1
      },
      "policy": {
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "policy_id": "default",
       "product": "openshell",
       "rules": {}
      },
      "purpose": {
       "statement": "run tools"
      },
      "risk": {
       "max_risk_score": 100,
       "risk_class": "high"
      },
      "subject": {
       "agent_id": "alice",
       "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
       "runtime_digest": "model:v1",
       "spiffe_id": "spiffe://cainstudio.online/agent/alice"
      },
      "validity": {
       "epoch": 0,
       "expires_at_ms": 1790000300000,
       "issued_at_ms": 1790000000000,
       "not_before_ms": 1790000000000
      }
     },
     "subject_sig": "BaUeGlHQVe3yZ4lgHlefHStGp0CymuMHLrn4BwUf8WI262swg91KNSsYuAuc7mDvPZixYjBt0CNx/q4E2hT+Cw=="
    },
    "receipts": [
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "ALLOW",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "0000000000000000000000000000000000000000000000000000000000000000",
       "reason": "OK",
       "receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "receipt_id": "rcp_73cdac9a6553b6a89373d967f006187a",
       "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
       "runtime_digest": "model:v1",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "gdzp5c/qIn2niofLbuDI7UaGB+2urybyK/UevVNpZJaJOgwa1upvHqDX1ClrIliWTcHlmlXwzuQhWdniYAMOAA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 0
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "b821fb333f616025646d644efb8ae9f9",
        "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
        "signature_b64": "e18ByZ6iJC161/ugBJKVmUyiSSl0h2Hsmi1iD5Cl+X0Q2C1wXVNI9EVhGAGoaK0Xo1p0A8tvUS9+/64SXPuWAg==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "echo",
         "hi"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v1",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 0
      }
     },
     {
      "receipt": {
       "completed_at_ms": 1790000000000,
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decision_receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "execution_failed": false,
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "outcome",
       "prev_receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "product": "openshell",
       "product_result_digest": "b1795c9b65f02ee1d81dfd8f28292a37f6c4c9196166ebcf1fc4d8d672019a9b",
       "receipt_hash": "672456316c3cc1605dfd87c3abb297b99ac1c5bb13cd6ac15e7521bb7cf80670",
       "receipt_id": "rcp_37e4fdd39759647bb0bf011dfdfbf70b",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "vasKSJF4EuSjk7MuuAWu3Ev/PEJLQTJ/m2nPwrmGenz+uAE9lXROgcQ1suSRHn+Czsa77dc7RWOcMJFCqPzwBQ==",
       "tenant": "tenant-a"
      },
      "replay": null
     },
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "DENY",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "672456316c3cc1605dfd87c3abb297b99ac1c5bb13cd6ac15e7521bb7cf80670",
       "reason": "CONDITION_ARGV0_IN",
       "receipt_hash": "9b892f9ccf47e586e7be7266b89bad87d273fe382b5c2ec3db29823a3e789101",
       "receipt_id": "rcp_890280a2c4a76bc9a81e2edcdf895046",
       "request_hash": "c11c230ba3e83a6b3e2c37d5ef1dd8be0ca983e28035f3e75b09243181f2a05c",
       "runtime_digest": "model:v1",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "N+pwYfU7vpKuKkdOUq0kXTWiZQI1yyDmTvZb/YeX+i3I2+tDR548b1iRt5el5gWcLm6SqQk5+GzbuBIE4gaBBA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "f6ddb73aee397474a9e700f89249aeac",
        "request_hash": "c11c230ba3e83a6b3e2c37d5ef1dd8be0ca983e28035f3e75b09243181f2a05c",
        "signature_b64": "wVYyVRd46ToePYphTVDKlt9zWtcZtcgckhDSfvpJop95bEPZdT46qkAvu2JxfmilFJO6XvbKo51BWaD2qzKWAw==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "rm",
         "x"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v1",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      }
     },
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "DENY",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "9b892f9ccf47e586e7be7266b89bad87d273fe382b5c2ec3db29823a3e789101",
       "reason": "MODEL_SUBSTITUTION",
       "receipt_hash": "ab92cadee860ba24b4f156203bd427e1a8dea34860e4000a6a86b96a441c12e6",
       "receipt_id": "rcp_0924abc66a047dd115c5fff284aa5f54",
       "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
       "runtime_digest": "model:v2",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "IJhQYolDB7xm2jazueKukypAOIn701HEefnZVEQWrAi4KLDKpMGrpkKKbyrzcUZqGWbxYgbLkR8232VEZo/jDA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "3d79ba5794715a3aeaf88b15a8e4e89e",
        "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
        "signature_b64": "GPz4B/Fsi7C94tkMchjXudnJ/R2xeji2Gne8+MRWdb+2J+DN0BHLcTqIAKTKNxp0z6doT+NAKA+V2DgWF8+KAQ==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "echo",
         "hi"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v2",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      }
     }
    ],
    "revocation": null,
    "state": "ACTIVE",
    "subject_sig": "BaUeGlHQVe3yZ4lgHlefHStGp0CymuMHLrn4BwUf8WI262swg91KNSsYuAuc7mDvPZixYjBt0CNx/q4E2hT+Cw=="
   },
   "name": "receipts_from_other_contract"
  },
  {
   "expect_ok": false,
   "export": {
    "authority_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
    "consent_from": "",
    "consent_mode": "direct",
    "contract": {
     "action": {
      "kind": "exec",
      "request_hash": ""
     },
     "annotations": {},
     "authority": {
      "agent_chain": [
       "alice"
      ],
      "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
      "source": "rig"
     },
     "capability": {
      "action": "openshell.exec",
      "audience": "",
      "max_uses": 3.0,
      "resource": "/tmp"
     },
     "conditions": [
      {
       "arg": [
        "echo",
        "ls"
       ],
       "op": "argv0_in"
      }
     ],
     "environment": {
      "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
      "model_runtime_digest": "model:v1"
     },
     "evidence_policy": {
      "payload_type": "application/cain-contract-receipt+json",
      "record_outputs": "digest",
      "scitt_required": true
     },
     "execution_path": {
      "adapter_version": "1",
      "engine": "cain_openshell_gateway",
      "product": "openshell"
     },
     "header": {
      "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
      "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
      "schema": "cain.contract.v1",
      "supersedes": "",
      "tenant": "tenant-a",
      "version": 1
     },
     "policy": {
      "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
      "policy_id": "default",
      "product": "openshell",
      "rules": {}
     },
     "purpose": {
      "statement": "run tools"
     },
     "risk": {
      "max_risk_score": 100,
      "risk_class": "high"
     },
     "subject": {
      "agent_id": "alice",
      "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
      "runtime_digest": "model:v1",
      "spiffe_id": "spiffe://cainstudio.online/agent/alice"
     },
     "validity": {
      "epoch": 0,
      "expires_at_ms": 1790000300000,
      "issued_at_ms": 1790000000000,
      "not_before_ms": 1790000000000
     }
    },
    "fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
    "issuer_key_id": "51e6ef10f4df23df",
    "issuer_public_key_b64": "MvnpQB6/RQDfIIYNfZ9U4fO2onjFAwTkp4AwJYs5m9g=",
    "issuer_sig": "r5S+Y+oFzdP/L1zU9UzkVZxP7sNX6KhS+Vjam/UG4iUyh5jUyJp61DfIh4FC/SR42jtT7HJ6CJA3ujRlZnS5AQ==",
    "predecessor": null,
    "receipts": [
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "ALLOW",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "0000000000000000000000000000000000000000000000000000000000000000",
       "reason": "OK",
       "receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "receipt_id": "rcp_73cdac9a6553b6a89373d967f006187a",
       "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
       "runtime_digest": "model:v1",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "gdzp5c/qIn2niofLbuDI7UaGB+2urybyK/UevVNpZJaJOgwa1upvHqDX1ClrIliWTcHlmlXwzuQhWdniYAMOAA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 0
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "b821fb333f616025646d644efb8ae9f9",
        "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
        "signature_b64": "e18ByZ6iJC161/ugBJKVmUyiSSl0h2Hsmi1iD5Cl+X0Q2C1wXVNI9EVhGAGoaK0Xo1p0A8tvUS9+/64SXPuWAg==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "echo",
         "hi"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v1",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 0
      }
     },
     {
      "receipt": {
       "completed_at_ms": 1790000000000,
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decision_receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "execution_failed": false,
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "outcome",
       "prev_receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "product": "openshell",
       "product_result_digest": "b1795c9b65f02ee1d81dfd8f28292a37f6c4c9196166ebcf1fc4d8d672019a9b",
       "receipt_hash": "672456316c3cc1605dfd87c3abb297b99ac1c5bb13cd6ac15e7521bb7cf80670",
       "receipt_id": "rcp_37e4fdd39759647bb0bf011dfdfbf70b",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "vasKSJF4EuSjk7MuuAWu3Ev/PEJLQTJ/m2nPwrmGenz+uAE9lXROgcQ1suSRHn+Czsa77dc7RWOcMJFCqPzwBQ==",
       "tenant": "tenant-a"
      },
      "replay": null
     },
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "DENY",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "672456316c3cc1605dfd87c3abb297b99ac1c5bb13cd6ac15e7521bb7cf80670",
       "reason": "CONDITION_ARGV0_IN",
       "receipt_hash": "9b892f9ccf47e586e7be7266b89bad87d273fe382b5c2ec3db29823a3e789101",
       "receipt_id": "rcp_890280a2c4a76bc9a81e2edcdf895046",
       "request_hash": "c11c230ba3e83a6b3e2c37d5ef1dd8be0ca983e28035f3e75b09243181f2a05c",
       "runtime_digest": "model:v1",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "N+pwYfU7vpKuKkdOUq0kXTWiZQI1yyDmTvZb/YeX+i3I2+tDR548b1iRt5el5gWcLm6SqQk5+GzbuBIE4gaBBA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "f6ddb73aee397474a9e700f89249aeac",
        "request_hash": "c11c230ba3e83a6b3e2c37d5ef1dd8be0ca983e28035f3e75b09243181f2a05c",
        "signature_b64": "wVYyVRd46ToePYphTVDKlt9zWtcZtcgckhDSfvpJop95bEPZdT46qkAvu2JxfmilFJO6XvbKo51BWaD2qzKWAw==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "rm",
         "x"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v1",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      }
     },
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "DENY",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "9b892f9ccf47e586e7be7266b89bad87d273fe382b5c2ec3db29823a3e789101",
       "reason": "MODEL_SUBSTITUTION",
       "receipt_hash": "ab92cadee860ba24b4f156203bd427e1a8dea34860e4000a6a86b96a441c12e6",
       "receipt_id": "rcp_0924abc66a047dd115c5fff284aa5f54",
       "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
       "runtime_digest": "model:v2",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "IJhQYolDB7xm2jazueKukypAOIn701HEefnZVEQWrAi4KLDKpMGrpkKKbyrzcUZqGWbxYgbLkR8232VEZo/jDA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "3d79ba5794715a3aeaf88b15a8e4e89e",
        "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
        "signature_b64": "GPz4B/Fsi7C94tkMchjXudnJ/R2xeji2Gne8+MRWdb+2J+DN0BHLcTqIAKTKNxp0z6doT+NAKA+V2DgWF8+KAQ==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "echo",
         "hi"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v2",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      }
     }
    ],
    "revocation": null,
    "state": "ACTIVE",
    "subject_sig": "BaUeGlHQVe3yZ4lgHlefHStGp0CymuMHLrn4BwUf8WI262swg91KNSsYuAuc7mDvPZixYjBt0CNx/q4E2hT+Cw=="
   },
   "name": "float_smuggled"
  },
  {
   "expect_ok": false,
   "export": {
    "authority_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
    "consent_from": "",
    "consent_mode": "direct",
    "contract": {
     "action": {
      "kind": "exec",
      "request_hash": ""
     },
     "annotations": {},
     "authority": {
      "agent_chain": [
       "alice"
      ],
      "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
      "source": "rig"
     },
     "capability": {
      "action": "openshell.exec",
      "audience": "",
      "max_uses": 3,
      "resource": "/tmp"
     },
     "conditions": [
      {
       "arg": [
        "echo",
        "ls"
       ],
       "op": "argv0_in"
      }
     ],
     "environment": {
      "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
      "model_runtime_digest": "model:v1"
     },
     "evidence_policy": {
      "payload_type": "application/cain-contract-receipt+json",
      "record_outputs": "digest",
      "scitt_required": true
     },
     "execution_path": {
      "adapter_version": "1",
      "engine": "cain_openshell_gateway",
      "product": "openshell"
     },
     "header": {
      "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
      "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
      "schema": "cain.contract.v1",
      "supersedes": "",
      "tenant": "tenant-a",
      "version": 1
     },
     "policy": {
      "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
      "policy_id": "default",
      "product": "openshell",
      "rules": {}
     },
     "purpose": {
      "statement": "cafe\u0301"
     },
     "risk": {
      "max_risk_score": 100,
      "risk_class": "high"
     },
     "subject": {
      "agent_id": "alice",
      "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
      "runtime_digest": "model:v1",
      "spiffe_id": "spiffe://cainstudio.online/agent/alice"
     },
     "validity": {
      "epoch": 0,
      "expires_at_ms": 1790000300000,
      "issued_at_ms": 1790000000000,
      "not_before_ms": 1790000000000
     }
    },
    "fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
    "issuer_key_id": "51e6ef10f4df23df",
    "issuer_public_key_b64": "MvnpQB6/RQDfIIYNfZ9U4fO2onjFAwTkp4AwJYs5m9g=",
    "issuer_sig": "r5S+Y+oFzdP/L1zU9UzkVZxP7sNX6KhS+Vjam/UG4iUyh5jUyJp61DfIh4FC/SR42jtT7HJ6CJA3ujRlZnS5AQ==",
    "predecessor": null,
    "receipts": [
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "ALLOW",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "0000000000000000000000000000000000000000000000000000000000000000",
       "reason": "OK",
       "receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "receipt_id": "rcp_73cdac9a6553b6a89373d967f006187a",
       "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
       "runtime_digest": "model:v1",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "gdzp5c/qIn2niofLbuDI7UaGB+2urybyK/UevVNpZJaJOgwa1upvHqDX1ClrIliWTcHlmlXwzuQhWdniYAMOAA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 0
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "b821fb333f616025646d644efb8ae9f9",
        "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
        "signature_b64": "e18ByZ6iJC161/ugBJKVmUyiSSl0h2Hsmi1iD5Cl+X0Q2C1wXVNI9EVhGAGoaK0Xo1p0A8tvUS9+/64SXPuWAg==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "echo",
         "hi"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v1",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 0
      }
     },
     {
      "receipt": {
       "completed_at_ms": 1790000000000,
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decision_receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "execution_failed": false,
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "outcome",
       "prev_receipt_hash": "fc1d7eb9c7d65dcc76d993344330afac337e4947e92b132798ea9737de74e505",
       "product": "openshell",
       "product_result_digest": "b1795c9b65f02ee1d81dfd8f28292a37f6c4c9196166ebcf1fc4d8d672019a9b",
       "receipt_hash": "672456316c3cc1605dfd87c3abb297b99ac1c5bb13cd6ac15e7521bb7cf80670",
       "receipt_id": "rcp_37e4fdd39759647bb0bf011dfdfbf70b",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "vasKSJF4EuSjk7MuuAWu3Ev/PEJLQTJ/m2nPwrmGenz+uAE9lXROgcQ1suSRHn+Czsa77dc7RWOcMJFCqPzwBQ==",
       "tenant": "tenant-a"
      },
      "replay": null
     },
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "DENY",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "672456316c3cc1605dfd87c3abb297b99ac1c5bb13cd6ac15e7521bb7cf80670",
       "reason": "CONDITION_ARGV0_IN",
       "receipt_hash": "9b892f9ccf47e586e7be7266b89bad87d273fe382b5c2ec3db29823a3e789101",
       "receipt_id": "rcp_890280a2c4a76bc9a81e2edcdf895046",
       "request_hash": "c11c230ba3e83a6b3e2c37d5ef1dd8be0ca983e28035f3e75b09243181f2a05c",
       "runtime_digest": "model:v1",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "N+pwYfU7vpKuKkdOUq0kXTWiZQI1yyDmTvZb/YeX+i3I2+tDR548b1iRt5el5gWcLm6SqQk5+GzbuBIE4gaBBA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "f6ddb73aee397474a9e700f89249aeac",
        "request_hash": "c11c230ba3e83a6b3e2c37d5ef1dd8be0ca983e28035f3e75b09243181f2a05c",
        "signature_b64": "wVYyVRd46ToePYphTVDKlt9zWtcZtcgckhDSfvpJop95bEPZdT46qkAvu2JxfmilFJO6XvbKo51BWaD2qzKWAw==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "rm",
         "x"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v1",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      }
     },
     {
      "receipt": {
       "authority_snapshot_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
       "contract_fingerprint": "6024193925833dcabd36d44052d1bea12117e10d43e170c06fdd4d39050d2581",
       "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
       "contract_version": 1,
       "decided_at_ms": 1790000000000,
       "decision": "DENY",
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "issuer_key_id": "51e6ef10f4df23df",
       "kind": "decision",
       "nonce_used": false,
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "prev_receipt_hash": "9b892f9ccf47e586e7be7266b89bad87d273fe382b5c2ec3db29823a3e789101",
       "reason": "MODEL_SUBSTITUTION",
       "receipt_hash": "ab92cadee860ba24b4f156203bd427e1a8dea34860e4000a6a86b96a441c12e6",
       "receipt_id": "rcp_0924abc66a047dd115c5fff284aa5f54",
       "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
       "runtime_digest": "model:v2",
       "schema": "cain.contract.receipt.v1",
       "signature_b64": "IJhQYolDB7xm2jazueKukypAOIn701HEefnZVEQWrAi4KLDKpMGrpkKKbyrzcUZqGWbxYgbLkR8232VEZo/jDA==",
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      },
      "replay": {
       "contract": {
        "action": {
         "kind": "exec",
         "request_hash": ""
        },
        "annotations": {},
        "authority": {
         "agent_chain": [
          "alice"
         ],
         "grant_digest": "47591fa2dcc5a88787dfd9c21dfae1b19c0acb967e5d9093f6e918dc87c75cab",
         "source": "rig"
        },
        "capability": {
         "action": "openshell.exec",
         "audience": "",
         "max_uses": 3,
         "resource": "/tmp"
        },
        "conditions": [
         {
          "arg": [
           "echo",
           "ls"
          ],
          "op": "argv0_in"
         }
        ],
        "environment": {
         "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
         "model_runtime_digest": "model:v1"
        },
        "evidence_policy": {
         "payload_type": "application/cain-contract-receipt+json",
         "record_outputs": "digest",
         "scitt_required": true
        },
        "execution_path": {
         "adapter_version": "1",
         "engine": "cain_openshell_gateway",
         "product": "openshell"
        },
        "header": {
         "contract_id": "ctr_b00ceee73955d9f1165df77e0f34d290",
         "lineage_id": "lin_c442bd1022792b0ab02e263f50858727",
         "schema": "cain.contract.v1",
         "supersedes": "",
         "tenant": "tenant-a",
         "version": 1
        },
        "policy": {
         "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
         "policy_id": "default",
         "product": "openshell",
         "rules": {}
        },
        "purpose": {
         "statement": "run tools"
        },
        "risk": {
         "max_risk_score": 100,
         "risk_class": "high"
        },
        "subject": {
         "agent_id": "alice",
         "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
         "runtime_digest": "model:v1",
         "spiffe_id": "spiffe://cainstudio.online/agent/alice"
        },
        "validity": {
         "epoch": 0,
         "expires_at_ms": 1790000300000,
         "issued_at_ms": 1790000000000,
         "not_before_ms": 1790000000000
        }
       },
       "decided_at_ms": 1790000000000,
       "environment_digest": "f2132b063d033a804ddb0330c61cd52f4ef1a8418853663c2291983f7959b237",
       "invocation": {
        "nonce": "3d79ba5794715a3aeaf88b15a8e4e89e",
        "request_hash": "32324edbf208dc5ae6d31384e30f9390858b3404b1e68a0d5d8f3d78c811e354",
        "signature_b64": "GPz4B/Fsi7C94tkMchjXudnJ/R2xeji2Gne8+MRWdb+2J+DN0BHLcTqIAKTKNxp0z6doT+NAKA+V2DgWF8+KAQ==",
        "ts_ms": 1790000000000
       },
       "nonce_used": false,
       "nondeterministic_inputs": [
        "decided_at_ms: wall clock at decision time (recorded; replay uses the recorded value)",
        "receipt_id: random 128-bit id",
        "product execution: process scheduling, stdout/stderr, exit code, MemVault classifier output, SCITT index -- recorded as digests in product_result_digest, not replayed"
       ],
       "policy_digest": "970b1d71fef1c68ff828540aab3891468077a05942b8140d4bb341e1f25aecf5",
       "request": {
        "argv": [
         "echo",
         "hi"
        ],
        "cwd": "/tmp",
        "timeout_s": 5
       },
       "runtime_digest": "model:v2",
       "snapshot": {
        "agents": [
         {
          "actions": [
           "memvault.memory_read",
           "memvault.memory_write",
           "openshell.exec",
           "scitt.evidence_register"
          ],
          "agent_id": "alice",
          "parent_agent_id": "",
          "public_key_b64": "UnzJWFuMLt4snMFokocW5TMicCvmHH8huzIDdrpg93w=",
          "runtime_digest": "model:v1",
          "scopes": [
           "/tmp",
           "memvault/ns/alice",
           "memvault/ns/shared",
           "scitt/*"
          ],
          "status": "ACTIVE"
         }
        ],
        "complete": true,
        "missing": ""
       },
       "state_before": "ACTIVE",
       "tenant": "tenant-a",
       "uses_before": 1
      }
     }
    ],
    "revocation": null,
    "state": "ACTIVE",
    "subject_sig": "BaUeGlHQVe3yZ4lgHlefHStGp0CymuMHLrn4BwUf8WI262swg91KNSsYuAuc7mDvPZixYjBt0CNx/q4E2hT+Cw=="
   },
   "name": "nfd_purpose"
  }
 ]
}
