{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "demo-notify-8fd895",
    "generated_at": "2026-09-22T11:05:12.690Z",
    "event_count": 14,
    "algorithm": "sha256-chain",
    "content_digest": "af41b73e5d4bf4ea35111eb5632ed93802037c6d18b5199a48874493d30906db",
    "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": "2ce7593d3f6a033924f0e2529027e11e5c975a5053f8591b87cbe849381734d353f62dc7d6986eca433190d03efca464515535155a393068f1eda9a3c328d801",
      "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-8fd895",
    "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-21T19:47:47.408+00:00",
    "ended_at": "2026-09-21T19:50:33.708+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-8fd895",
      "status": "running",
      "ts_end": "2026-09-21T19:47:49.008Z",
      "span_id": "r",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-21T19:47:47.408Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "5ff709fc49233af1eb7b435ab2fcae3d4c8beeb3349741241d46d16972f11c6e"
    },
    {
      "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-8fd895",
      "ts_end": "2026-09-21T19:47:48.308Z",
      "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-21T19:47:47.438Z",
      "latency_ms": 870,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "1b82a2e8d336e5231301ce26e70e6a269585a1e3d11d2673691b12542ad52f5e"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-8fd895",
      "ts_end": "2026-09-21T19:47:48.528Z",
      "span_id": "t1",
      "ts_start": "2026-09-21T19:47:48.408Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t1",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "91bd3476c1aa982087912aa598fbaa30fed059c7ed150a6ba274b6afc8646c8d"
    },
    {
      "seq": 3,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-8fd895",
      "ts_end": "2026-09-21T19:48:03.528Z",
      "span_id": "t2",
      "ts_start": "2026-09-21T19:48:03.408Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t2",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "0859c770ca6b26c71638670c44fbb2547091bdb883193550b0863b81515c6b44"
    },
    {
      "seq": 4,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-8fd895",
      "ts_end": "2026-09-21T19:48:18.528Z",
      "span_id": "t3",
      "ts_start": "2026-09-21T19:48:18.408Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t3",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "16c3499043464ba2c4c31c62d3b3399600246f06486aa6326594c3493475c2df"
    },
    {
      "seq": 5,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-8fd895",
      "ts_end": "2026-09-21T19:48:33.528Z",
      "span_id": "t4",
      "ts_start": "2026-09-21T19:48:33.408Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t4",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "9e1216960b7ee8bddd990133a94c62079b8ad1efd819b478e6ea8757113686a6"
    },
    {
      "seq": 6,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-8fd895",
      "ts_end": "2026-09-21T19:48:48.528Z",
      "span_id": "t5",
      "ts_start": "2026-09-21T19:48:48.408Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t5",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "ad8ffda6fec0657c134f16b92bee8706f4b9dd6e67461ae35f5a3876663a40d7"
    },
    {
      "seq": 7,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-8fd895",
      "ts_end": "2026-09-21T19:49:03.528Z",
      "span_id": "t6",
      "ts_start": "2026-09-21T19:49:03.408Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t6",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "6ce65e73b977df17edeeac9c4cf0ac50573c7c5b2e063d9c8d9bc635e54805aa"
    },
    {
      "seq": 8,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-8fd895",
      "ts_end": "2026-09-21T19:49:18.528Z",
      "span_id": "t7",
      "ts_start": "2026-09-21T19:49:18.408Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t7",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "2bdda21e91d868d95d6dc078295550cdda65a6ecc72f2f9be1b5c656c405dec0"
    },
    {
      "seq": 9,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-8fd895",
      "ts_end": "2026-09-21T19:49:33.528Z",
      "span_id": "t8",
      "ts_start": "2026-09-21T19:49:33.408Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t8",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "652fe4fed4bca7336779ec7d69b3e1d6298d00395b8f506e25f9c499c45c31b4"
    },
    {
      "seq": 10,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-8fd895",
      "ts_end": "2026-09-21T19:49:48.528Z",
      "span_id": "t9",
      "ts_start": "2026-09-21T19:49:48.408Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t9",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "1d087665b809a8017b30f271213b94a50afbf5a508f19e9f638edfad5c3cc9cc"
    },
    {
      "seq": 11,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-8fd895",
      "ts_end": "2026-09-21T19:50:03.528Z",
      "span_id": "t10",
      "ts_start": "2026-09-21T19:50:03.408Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t10",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "232cf9c6c9a61fcd1b94b4a5b1efabe17b7c6d0c5e9275238fcb4e76c5f95fef"
    },
    {
      "seq": 12,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 9,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-8fd895",
      "ts_end": "2026-09-21T19:50:18.528Z",
      "span_id": "t11",
      "ts_start": "2026-09-21T19:50:18.408Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t11",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "581e847b153073ae7f94888f89e59a5deffd301cf4897a22d674c164ed2909e8"
    },
    {
      "seq": 13,
      "name": "notify-customer-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "sent": 11
      },
      "run_id": "demo-notify-8fd895",
      "status": "success",
      "ts_end": "2026-09-21T19:50:33.708Z",
      "span_id": "re",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-21T19:50:33.408Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "af41b73e5d4bf4ea35111eb5632ed93802037c6d18b5199a48874493d30906db"
    }
  ]
}