{
  "export_format": "p1-halo:audit-export:v1",
  "exported_at": "2026-07-27T14:03:05Z",
  "scope": "run",
  "tenant_id": "t-sample",
  "run_id": "run-sample-refactor-auth",
  "sample": true,
  "sample_note": "Illustrative run signed with a DEMO key so anyone can verify it in a browser. The cryptographic construction is identical to a real P1 Halo export; the run itself is a sample, not a customer run.",
  "chain": {
    "schema": "p1-warden:audit-chain:v1",
    "algorithm": "sha256",
    "signature_algorithm": "Ed25519",
    "signature_domain": "p1-warden:audit-entry:v1:",
    "hash_construction": "sha256(str(seq) || 0x00 || run_id || 0x00 || ts || 0x00 || payload || 0x00 || prev_hash)  [utf-8]",
    "signature_message": "signature_domain (utf-8) || entry_hash (utf-8 hex)",
    "genesis": "p1-warden:audit-chain:v1:genesis",
    "signer_pubkey": "98408c372b03d8da6b919cfe004392c1cb5a50b041c313e786a17e88cb77e71f"
  },
  "manifest": {
    "scope": "run",
    "tenant_id": "t-sample",
    "count": 9,
    "first_seq": 0,
    "last_seq": 8,
    "entries_digest": "8328f62539c490db3b5fc17774ca77062a134f08f21e253bfd83fe7070c2b480",
    "manifest_domain": "p1-warden:audit-manifest:v1:",
    "digest_construction": "sha256( for each entry in order: str(seq) 0x00 entry_hash 0x00 )",
    "signed_message": "manifest_domain (utf-8) || EXPORT_FORMAT 0x00 scope 0x00 tenant_id 0x00 count 0x00 first_seq 0x00 last_seq 0x00 entries_digest  [utf-8]",
    "signature": "2215e3b916630ac1512920b993649db3b9ec1c0a23610743e63ec8c67882a952cb4a8f47a35e0bfa1b1b7ccac0e67c0dd4024c7916b4d93d1d38862b016dc30c",
    "signer_pubkey": "98408c372b03d8da6b919cfe004392c1cb5a50b041c313e786a17e88cb77e71f"
  },
  "global_head": {
    "seq": 8,
    "entry_hash": "7326b15ae77818cce8572f61a14241e53a315fc946d18321725272d6966ac4bf"
  },
  "entries": [
    {
      "seq": 0,
      "run_id": "run-sample-refactor-auth",
      "ts": "2026-07-27T14:02:11Z",
      "payload": "{\"decision\":\"allow\",\"details\":{\"agent\":\"solo\",\"cost_cap_usd\":50.0,\"task\":\"refactor the auth module\",\"wall_clock_cap_s\":1800},\"event_type\":\"run.started\",\"model\":\"\",\"policy_hash\":\"9f2c1ab77d3e40518c6b0d9a4e7f2c81b5a63d0e9c4f18a27b6d3e5f0a1c8b47\",\"verdict\":\"allow\"}",
      "prev_hash": "p1-warden:audit-chain:v1:genesis",
      "entry_hash": "4d2d2a1b466a9ab1e0d24becd1a245e8534edded0caf2717d0a76a3e829484bd",
      "signature": "fa0c63d2212e3ca16d94b5c2f4906be0da389634a9b802d009d8d003eb1f47ff043832577b6299cd18bf08f26ee0473dad5f81d4d57c1c6dc85d15634b3a5805",
      "signer_pubkey": "98408c372b03d8da6b919cfe004392c1cb5a50b041c313e786a17e88cb77e71f",
      "signed_at": "2026-07-27T14:02:11Z"
    },
    {
      "seq": 1,
      "run_id": "run-sample-refactor-auth",
      "ts": "2026-07-27T14:02:12Z",
      "payload": "{\"decision\":\"allow\",\"details\":{\"egress_route\":\"none\",\"image\":\"p1-halo/toolchain:py312\",\"network\":\"none\",\"workspace\":\"/work\"},\"event_type\":\"sandbox.container.up\",\"model\":\"\",\"policy_hash\":\"9f2c1ab77d3e40518c6b0d9a4e7f2c81b5a63d0e9c4f18a27b6d3e5f0a1c8b47\",\"verdict\":\"allow\"}",
      "prev_hash": "4d2d2a1b466a9ab1e0d24becd1a245e8534edded0caf2717d0a76a3e829484bd",
      "entry_hash": "c0d6efbd801fb45743fdd97e37f5df29804a6ce8819a23069d57665c3d16d5a9",
      "signature": "25d582ef420c2c904dc7b29d5e4ac467f227ab094c5923aa85b1dd3485cd73bf86a83b0121351b247ceec58deba5784b1d55fee2eb472519a7f8df5ec2001c00",
      "signer_pubkey": "98408c372b03d8da6b919cfe004392c1cb5a50b041c313e786a17e88cb77e71f",
      "signed_at": "2026-07-27T14:02:12Z"
    },
    {
      "seq": 2,
      "run_id": "run-sample-refactor-auth",
      "ts": "2026-07-27T14:02:13Z",
      "payload": "{\"decision\":\"allow\",\"details\":{\"entered_container\":false,\"key_location\":\"broker_memory\",\"provider\":\"anthropic\"},\"event_type\":\"vault.key.resolved\",\"model\":\"\",\"policy_hash\":\"9f2c1ab77d3e40518c6b0d9a4e7f2c81b5a63d0e9c4f18a27b6d3e5f0a1c8b47\",\"verdict\":\"allow\"}",
      "prev_hash": "c0d6efbd801fb45743fdd97e37f5df29804a6ce8819a23069d57665c3d16d5a9",
      "entry_hash": "3f5ece1b97fee6a4c68da272c8ae7f4b81afdd2fab676f9657db5ae2106c96ce",
      "signature": "95af4d3c11f528135511d9116ca0aeb009ebcf89b07054da2a7f18793584bc787acd877061c82c6a4f48db46e0689195c78bb0116f3bf1a66de224f84e2f5603",
      "signer_pubkey": "98408c372b03d8da6b919cfe004392c1cb5a50b041c313e786a17e88cb77e71f",
      "signed_at": "2026-07-27T14:02:13Z"
    },
    {
      "seq": 3,
      "run_id": "run-sample-refactor-auth",
      "ts": "2026-07-27T14:02:19Z",
      "payload": "{\"decision\":\"allow\",\"details\":{\"cost_usd\":1.87,\"input_tokens\":4188,\"output_tokens\":951,\"policy_checks\":[\"model_allowed\",\"budget_ok\",\"kill_switch_clear\"],\"provider\":\"anthropic\"},\"event_type\":\"model.call\",\"model\":\"claude-haiku-4-5\",\"policy_hash\":\"9f2c1ab77d3e40518c6b0d9a4e7f2c81b5a63d0e9c4f18a27b6d3e5f0a1c8b47\",\"verdict\":\"allow\"}",
      "prev_hash": "3f5ece1b97fee6a4c68da272c8ae7f4b81afdd2fab676f9657db5ae2106c96ce",
      "entry_hash": "5904474602491d56b51b80986d458eec813043b7ad986d67f516f31c84df1fcf",
      "signature": "d138f0dbb93bb9a37c569925c7c1b1ca1e03157940774751d2ae274fcc32be6b524a7894ef82b8cc50991c705f0b7f9b5e1ff0a725800a94690ccd9ddf46bb0c",
      "signer_pubkey": "98408c372b03d8da6b919cfe004392c1cb5a50b041c313e786a17e88cb77e71f",
      "signed_at": "2026-07-27T14:02:19Z"
    },
    {
      "seq": 4,
      "run_id": "run-sample-refactor-auth",
      "ts": "2026-07-27T14:02:24Z",
      "payload": "{\"decision\":\"allow\",\"details\":{\"bytes\":7412,\"path\":\"auth/session.py\",\"tool\":\"read_file\"},\"event_type\":\"tool.exec\",\"model\":\"\",\"policy_hash\":\"9f2c1ab77d3e40518c6b0d9a4e7f2c81b5a63d0e9c4f18a27b6d3e5f0a1c8b47\",\"verdict\":\"allow\"}",
      "prev_hash": "5904474602491d56b51b80986d458eec813043b7ad986d67f516f31c84df1fcf",
      "entry_hash": "a6cbeb29715a2371e85aa0df0141add9c53262333483f804a6ae9cf39fb249c2",
      "signature": "e278f03e1108bb8676073759bc8c517778c5dba76d3bab2d51b544d5a7cf4563ee49f76f4ea44fde6d98b827d5f630a787daba5183b7c1219ce37a8bbea0ab0c",
      "signer_pubkey": "98408c372b03d8da6b919cfe004392c1cb5a50b041c313e786a17e88cb77e71f",
      "signed_at": "2026-07-27T14:02:24Z"
    },
    {
      "seq": 5,
      "run_id": "run-sample-refactor-auth",
      "ts": "2026-07-27T14:02:31Z",
      "payload": "{\"decision\":\"deny\",\"details\":{\"bytes_out\":0,\"enforced_at\":\"broker\",\"host\":\"paste.example.net\",\"reason\":\"not_on_allowlist\"},\"event_type\":\"egress.blocked\",\"model\":\"\",\"policy_hash\":\"9f2c1ab77d3e40518c6b0d9a4e7f2c81b5a63d0e9c4f18a27b6d3e5f0a1c8b47\",\"verdict\":\"deny\"}",
      "prev_hash": "a6cbeb29715a2371e85aa0df0141add9c53262333483f804a6ae9cf39fb249c2",
      "entry_hash": "40882096f285134d6167941e55fd9e1598aa4506da2598865c345b413aee933b",
      "signature": "2c548f184eaaca9b459b07280b2bc6d107aae06191bf527e2bb7e8486f519f1f82158b54492c95a2f62d60e28ef0b211093096761873f44104bef93050efef06",
      "signer_pubkey": "98408c372b03d8da6b919cfe004392c1cb5a50b041c313e786a17e88cb77e71f",
      "signed_at": "2026-07-27T14:02:31Z"
    },
    {
      "seq": 6,
      "run_id": "run-sample-refactor-auth",
      "ts": "2026-07-27T14:02:44Z",
      "payload": "{\"decision\":\"allow\",\"details\":{\"cost_usd\":4.53,\"input_tokens\":6120,\"output_tokens\":1733,\"policy_checks\":[\"model_allowed\",\"budget_ok\",\"kill_switch_clear\"],\"provider\":\"anthropic\"},\"event_type\":\"model.call\",\"model\":\"claude-haiku-4-5\",\"policy_hash\":\"9f2c1ab77d3e40518c6b0d9a4e7f2c81b5a63d0e9c4f18a27b6d3e5f0a1c8b47\",\"verdict\":\"allow\"}",
      "prev_hash": "40882096f285134d6167941e55fd9e1598aa4506da2598865c345b413aee933b",
      "entry_hash": "ac8c03c4e4b39bd8df8aeba1aa33db5b7ed483c56160cdf5a04b1d432c55b9e1",
      "signature": "d58cdff9ba1f01355c0686be30f5f8923bd9d0d922782cb765b46544b959690f4499d7797a487c5738659c222fea6a9db45183a3fac48e73936ddfff4fde6d05",
      "signer_pubkey": "98408c372b03d8da6b919cfe004392c1cb5a50b041c313e786a17e88cb77e71f",
      "signed_at": "2026-07-27T14:02:44Z"
    },
    {
      "seq": 7,
      "run_id": "run-sample-refactor-auth",
      "ts": "2026-07-27T14:02:52Z",
      "payload": "{\"decision\":\"allow\",\"details\":{\"bytes\":7688,\"diff\":\"+34 -11\",\"path\":\"auth/session.py\",\"tool\":\"write_file\"},\"event_type\":\"tool.exec\",\"model\":\"\",\"policy_hash\":\"9f2c1ab77d3e40518c6b0d9a4e7f2c81b5a63d0e9c4f18a27b6d3e5f0a1c8b47\",\"verdict\":\"allow\"}",
      "prev_hash": "ac8c03c4e4b39bd8df8aeba1aa33db5b7ed483c56160cdf5a04b1d432c55b9e1",
      "entry_hash": "3ad3709ca3cbe7b3acf1d496d19b67bbad9f23a7314b1d8e953bb89b6e7990ed",
      "signature": "d440c2f375475da2f93a052704743598542be37fd745c1050726d989e152544aefb2b0e09dfa75a365611f0fe4e4cb5960463fa7ec7dad7b6bcb31f8a906fd0b",
      "signer_pubkey": "98408c372b03d8da6b919cfe004392c1cb5a50b041c313e786a17e88cb77e71f",
      "signed_at": "2026-07-27T14:02:52Z"
    },
    {
      "seq": 8,
      "run_id": "run-sample-refactor-auth",
      "ts": "2026-07-27T14:03:02Z",
      "payload": "{\"decision\":\"allow\",\"details\":{\"cap_usd\":50.0,\"egress_denied\":1,\"elapsed_s\":51,\"files_changed\":1,\"spend_usd\":6.4,\"status\":\"success\"},\"event_type\":\"run.completed\",\"model\":\"\",\"policy_hash\":\"9f2c1ab77d3e40518c6b0d9a4e7f2c81b5a63d0e9c4f18a27b6d3e5f0a1c8b47\",\"verdict\":\"allow\"}",
      "prev_hash": "3ad3709ca3cbe7b3acf1d496d19b67bbad9f23a7314b1d8e953bb89b6e7990ed",
      "entry_hash": "7326b15ae77818cce8572f61a14241e53a315fc946d18321725272d6966ac4bf",
      "signature": "a1857f035137ead588d7548f6e8dd12dba1fd53e060e29f112f0c6eac30889d0099713298551033488da55d4244ba42501d3d26cbfe29b194409dc1487d02806",
      "signer_pubkey": "98408c372b03d8da6b919cfe004392c1cb5a50b041c313e786a17e88cb77e71f",
      "signed_at": "2026-07-27T14:03:02Z"
    }
  ],
  "anchors": {
    "enabled": false,
    "active_sinks": [],
    "proofs": []
  }
}
