{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "demo-notify-5c7e02",
    "generated_at": "2026-09-22T11:05:14.270Z",
    "event_count": 14,
    "algorithm": "sha256-chain",
    "content_digest": "6c5fdb0e08c7ce6913daee48fa4052e8fd334708708e424a061980c2ce902c21",
    "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": "ef24007054d2e4ec645f029721acee76d67283110655e424b450d05c957482e34ddf0c0d695803bf65270f493fa0c062bdbf7c05fb3cb0fa90650b798150700d",
      "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-5c7e02",
    "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:21.169+00:00",
    "ended_at": "2026-09-21T21:13:07.469+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-5c7e02",
      "status": "running",
      "ts_end": "2026-09-21T21:10:22.769Z",
      "span_id": "r",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-21T21:10:21.169Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "ea53b947bf0b733f241e11c13a2a7f384dfe491a3c8df6a95c4b9f78f6fbf891"
    },
    {
      "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-5c7e02",
      "ts_end": "2026-09-21T21:10:22.069Z",
      "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:21.199Z",
      "latency_ms": 870,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "d49bb7f175d351412f0fe0d4af54accc2a2d4822ea37ee62f0e4d1d8f9163d09"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-5c7e02",
      "ts_end": "2026-09-21T21:10:22.289Z",
      "span_id": "t1",
      "ts_start": "2026-09-21T21:10:22.169Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t1",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "111a261ca2d2bd87537e396d01e493f398fc4c82674bcbe54aa4b8482208a0c9"
    },
    {
      "seq": 3,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-5c7e02",
      "ts_end": "2026-09-21T21:10:37.289Z",
      "span_id": "t2",
      "ts_start": "2026-09-21T21:10:37.169Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t2",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "15ee4dac1d95acc65e73b6308b899d71c90d66e2c3475fd0788a818bd4d455be"
    },
    {
      "seq": 4,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-5c7e02",
      "ts_end": "2026-09-21T21:10:52.289Z",
      "span_id": "t3",
      "ts_start": "2026-09-21T21:10:52.169Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t3",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "1d2e8c97e26c800b60af00f51017e0412d9a235c0bef3d4c3008f141d8867196"
    },
    {
      "seq": 5,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-5c7e02",
      "ts_end": "2026-09-21T21:11:07.289Z",
      "span_id": "t4",
      "ts_start": "2026-09-21T21:11:07.169Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t4",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "581c00e589c1dc7df6697338b1041568673bfd7432a0830f5783940212d2fc69"
    },
    {
      "seq": 6,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-5c7e02",
      "ts_end": "2026-09-21T21:11:22.289Z",
      "span_id": "t5",
      "ts_start": "2026-09-21T21:11:22.169Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t5",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "7a602b10ede07077446f8d614b0331f9df19dfb60c4380a2037df3937e19c40e"
    },
    {
      "seq": 7,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-5c7e02",
      "ts_end": "2026-09-21T21:11:37.289Z",
      "span_id": "t6",
      "ts_start": "2026-09-21T21:11:37.169Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t6",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "2bc37d87b505c5de59a32872db27204bcbb36279887ee4507e3173b5fd761c2a"
    },
    {
      "seq": 8,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-5c7e02",
      "ts_end": "2026-09-21T21:11:52.289Z",
      "span_id": "t7",
      "ts_start": "2026-09-21T21:11:52.169Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t7",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "b0c127873f4151c7023745296b007c98ee9e2561f23e5070d2c0ccc806df96f2"
    },
    {
      "seq": 9,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-5c7e02",
      "ts_end": "2026-09-21T21:12:07.289Z",
      "span_id": "t8",
      "ts_start": "2026-09-21T21:12:07.169Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t8",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "aa22f53471ca9f83fe50e445ef45d96679f8eaccf2ce766fce16f9d3d45690ba"
    },
    {
      "seq": 10,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-5c7e02",
      "ts_end": "2026-09-21T21:12:22.289Z",
      "span_id": "t9",
      "ts_start": "2026-09-21T21:12:22.169Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t9",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "bb5a57539f8689ab487a8d439ae5abc805ac3f25c8fac527dfb64d49f9fd159b"
    },
    {
      "seq": 11,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-5c7e02",
      "ts_end": "2026-09-21T21:12:37.289Z",
      "span_id": "t10",
      "ts_start": "2026-09-21T21:12:37.169Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t10",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "b2388a0416f400b2384db8cba2491e3c147bd750c10b45e5a1a93e7741b3301a"
    },
    {
      "seq": 12,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 9,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-5c7e02",
      "ts_end": "2026-09-21T21:12:52.289Z",
      "span_id": "t11",
      "ts_start": "2026-09-21T21:12:52.169Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t11",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "da62b12bb2dad9165d331f9ea2135219e346bfbda2dbf6d577ec4cfc20bc38dc"
    },
    {
      "seq": 13,
      "name": "notify-customer-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "sent": 11
      },
      "run_id": "demo-notify-5c7e02",
      "status": "success",
      "ts_end": "2026-09-21T21:13:07.469Z",
      "span_id": "re",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-21T21:13:07.169Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "6c5fdb0e08c7ce6913daee48fa4052e8fd334708708e424a061980c2ce902c21"
    }
  ]
}