{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "demo-notify-912c3e",
    "generated_at": "2026-09-22T11:05:38.252Z",
    "event_count": 14,
    "algorithm": "sha256-chain",
    "content_digest": "27b395466cdb1ba836fef1e050c1e0c80fe0eb90a89fa6c26010edf0e7ca4e15",
    "replay": {
      "cassette_digest": "c4230495733954a839d125ced0037048f5453009c0c685b453247e32a65e8e80",
      "entry_count": 12,
      "algorithm": "oracle-chain/sha256",
      "note": "The run's oracle stream — every model response and tool output, hash-chained. Re-execute the agent against `events` with @runback/replay and the cassette digest must reproduce. This is proof the recording IS the deterministic input stream of the run — an audit you can re-run, not just read."
    },
    "signed": true,
    "signature": {
      "alg": "Ed25519",
      "value": "b32c1b169dab552420b549348b0d9a8952ad629b3508b284bcd3b83cc94effa795682a599b79fd0087445ce72114bddf3864dea838785bc6da3dd5d174dd1f05",
      "pubkey": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEArDPmR+Gvu1HawnSvM6xjZao7BVPPQ80Qq3sa1hAYvDU=\n-----END PUBLIC KEY-----\n"
    },
    "verify": "Recompute the event chain h_i = SHA-256(h_{i-1} + canonical(event_i)) over `events` → must equal content_digest. Recompute the oracle-stream digest from `events` → must equal replay.cassette_digest. The signature covers `${content_digest}:${cassette_digest}`. Ed25519: verify with the public key embedded in manifest.signature.pubkey (no server key needed — fully offline-verifiable). HMAC-SHA256 (legacy): requires AUDIT_SIGNING_KEY. POST this record to /api/audit/verify.",
    "spec_url": "https://runback.dev/spec",
    "verifier_url": "https://runback.dev/verify"
  },
  "run": {
    "run_id": "demo-notify-912c3e",
    "name": "notify-customer-agent",
    "status": "success",
    "input": "Send today's priority notifications to the queue.",
    "output": {
      "sent": 11
    },
    "error": null,
    "metadata": {
      "demo": true
    },
    "step_count": 1,
    "total_tokens": 300,
    "started_at": "2026-09-21T21:10:08.75+00:00",
    "ended_at": "2026-09-21T21:12:55.05+00:00",
    "actor_type": null,
    "actor_id": null
  },
  "events": [
    {
      "seq": 0,
      "name": "notify-customer-agent",
      "type": "run",
      "error": null,
      "input": "Send today's priority notifications to the queue.",
      "phase": "start",
      "output": null,
      "run_id": "demo-notify-912c3e",
      "status": "running",
      "ts_end": "2026-09-21T21:10:10.350Z",
      "span_id": "r",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-21T21:10:08.750Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "bbdad8b371bd4fcf5b1ee84797b31d0b17fc358fb8656800b2866470c7c11452"
    },
    {
      "seq": 1,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "gpt-4o",
        "provider": "openai"
      },
      "usage": {
        "input_tokens": 210,
        "total_tokens": 300,
        "output_tokens": 90
      },
      "run_id": "demo-notify-912c3e",
      "ts_end": "2026-09-21T21:10:09.650Z",
      "request": {
        "tools": [],
        "params": {
          "temperature": 0
        },
        "system": "You are a careful enterprise agent. Follow policy.",
        "messages": [
          {
            "role": "user",
            "content": "Working through the notification queue."
          }
        ]
      },
      "span_id": "l1",
      "response": {
        "text": "Working through the notification queue.",
        "reasoning": null,
        "tool_calls": [],
        "finish_reason": "stop"
      },
      "ts_start": "2026-09-21T21:10:08.780Z",
      "latency_ms": 870,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "f76b9f152b27a5b3ca00ad3b397f98dd157570b68cda7dfd04888ef0e7c97260"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-912c3e",
      "ts_end": "2026-09-21T21:10:09.870Z",
      "span_id": "t1",
      "ts_start": "2026-09-21T21:10:09.750Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t1",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "84049c52461fd846431217624c09dcdca9bf590a74a53673e9d8f20de9d3eeb2"
    },
    {
      "seq": 3,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-912c3e",
      "ts_end": "2026-09-21T21:10:24.870Z",
      "span_id": "t2",
      "ts_start": "2026-09-21T21:10:24.750Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t2",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "29d6b5fff11f6eb733fbcdf6543ed6c7c4c8892db4fcaf3722c4161dd305e7e5"
    },
    {
      "seq": 4,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-912c3e",
      "ts_end": "2026-09-21T21:10:39.870Z",
      "span_id": "t3",
      "ts_start": "2026-09-21T21:10:39.750Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t3",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "29f4778476dea97fde2712bf1cf64ddae859fdac1a527ad11be6a5e9439a35a2"
    },
    {
      "seq": 5,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-912c3e",
      "ts_end": "2026-09-21T21:10:54.870Z",
      "span_id": "t4",
      "ts_start": "2026-09-21T21:10:54.750Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t4",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "b478d853f1212196cb5ccd5cd2eacdd17559fe085397f72269bc33232fbe8cfe"
    },
    {
      "seq": 6,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-912c3e",
      "ts_end": "2026-09-21T21:11:09.870Z",
      "span_id": "t5",
      "ts_start": "2026-09-21T21:11:09.750Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t5",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "c465ae5381e7a786810a33e34914d035d630c6fb3e6c92bafc3d0581f22bbe15"
    },
    {
      "seq": 7,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-912c3e",
      "ts_end": "2026-09-21T21:11:24.870Z",
      "span_id": "t6",
      "ts_start": "2026-09-21T21:11:24.750Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t6",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "66ffafd5b55afdac670a13c8360097a08bf4675f489aa1bb82d1402e833565af"
    },
    {
      "seq": 8,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-912c3e",
      "ts_end": "2026-09-21T21:11:39.870Z",
      "span_id": "t7",
      "ts_start": "2026-09-21T21:11:39.750Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t7",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "b0a39d6e69cda1f1b79f7a70d047859470280ca8b2a56618b813c013b7b5aa9d"
    },
    {
      "seq": 9,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-912c3e",
      "ts_end": "2026-09-21T21:11:54.870Z",
      "span_id": "t8",
      "ts_start": "2026-09-21T21:11:54.750Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t8",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "731a2bf65cf40c528d99a2a5a650444dfe38728645e9629d58325bcee1782edb"
    },
    {
      "seq": 10,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-912c3e",
      "ts_end": "2026-09-21T21:12:09.870Z",
      "span_id": "t9",
      "ts_start": "2026-09-21T21:12:09.750Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t9",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "45a8553de0b5e5eb473300d8a39cf16fbfa67aa2320c3aab40b131d2a56acc6a"
    },
    {
      "seq": 11,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-912c3e",
      "ts_end": "2026-09-21T21:12:24.870Z",
      "span_id": "t10",
      "ts_start": "2026-09-21T21:12:24.750Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t10",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "f783a21aa22ce97e939b1251fcf6594789973896f494e7577db9d56fafe17bde"
    },
    {
      "seq": 12,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 9,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-912c3e",
      "ts_end": "2026-09-21T21:12:39.870Z",
      "span_id": "t11",
      "ts_start": "2026-09-21T21:12:39.750Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t11",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "0d4d028d9a1457bee17ad6e239a3b4704455f4b4b791e71eeac3dc924b316687"
    },
    {
      "seq": 13,
      "name": "notify-customer-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "sent": 11
      },
      "run_id": "demo-notify-912c3e",
      "status": "success",
      "ts_end": "2026-09-21T21:12:55.050Z",
      "span_id": "re",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-21T21:12:54.750Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "27b395466cdb1ba836fef1e050c1e0c80fe0eb90a89fa6c26010edf0e7ca4e15"
    }
  ]
}