{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "demo-notify-a2ae15",
    "generated_at": "2026-09-22T11:05:04.341Z",
    "event_count": 14,
    "algorithm": "sha256-chain",
    "content_digest": "24d9cc9377d29bfde67501ca0052f220e2b9fec4844db4926d6e0e11165b871b",
    "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": "0712484ded9ef0f582291d9886e9886b302ef51874d03f634d32a2c93a1011a5934741fdd97866e7adf1c0bdf1ef9ddb76213970c5cdcc243539daa3ab4dd405",
      "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-a2ae15",
    "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:51:22.131+00:00",
    "ended_at": "2026-09-21T19:54:08.431+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-a2ae15",
      "status": "running",
      "ts_end": "2026-09-21T19:51:23.731Z",
      "span_id": "r",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-21T19:51:22.131Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "e3e4f8c1d1228f8f9db552eb9476539dfc233aa3611b9a33af23a6e6175edf95"
    },
    {
      "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-a2ae15",
      "ts_end": "2026-09-21T19:51:23.031Z",
      "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:51:22.161Z",
      "latency_ms": 870,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "b7fea1807e061eab24c082ef9dc200838ea23fc419985a7fe533eb74e97417e2"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-a2ae15",
      "ts_end": "2026-09-21T19:51:23.251Z",
      "span_id": "t1",
      "ts_start": "2026-09-21T19:51:23.131Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t1",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "b63e074c3c0613f67f3d1b2d3221a8380ae017cdde6247ebb3ef49fbef4335bb"
    },
    {
      "seq": 3,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-a2ae15",
      "ts_end": "2026-09-21T19:51:38.251Z",
      "span_id": "t2",
      "ts_start": "2026-09-21T19:51:38.131Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t2",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "f485ea567ad747c26c352f2a510ad0e56ce27c8819f5725540bbc76ff07455de"
    },
    {
      "seq": 4,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-a2ae15",
      "ts_end": "2026-09-21T19:51:53.251Z",
      "span_id": "t3",
      "ts_start": "2026-09-21T19:51:53.131Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t3",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "72ce435c7af99b2e0d174d74e8640bec4c0b83c8c3654bf23e3e32f65ecf2743"
    },
    {
      "seq": 5,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-a2ae15",
      "ts_end": "2026-09-21T19:52:08.251Z",
      "span_id": "t4",
      "ts_start": "2026-09-21T19:52:08.131Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t4",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "2fea4172cb9a3a6a829144cbcf270d9f86b1cec40a023a1ee9d53f5fc3582735"
    },
    {
      "seq": 6,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-a2ae15",
      "ts_end": "2026-09-21T19:52:23.251Z",
      "span_id": "t5",
      "ts_start": "2026-09-21T19:52:23.131Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t5",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "559e99ff197099eb38e166b0e5c2340f41cace82a6da85b89979561a97c2b704"
    },
    {
      "seq": 7,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-a2ae15",
      "ts_end": "2026-09-21T19:52:38.251Z",
      "span_id": "t6",
      "ts_start": "2026-09-21T19:52:38.131Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t6",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "a3ba8ecb5658611dbba7bee12a9090fecb6a1cb4559b6b0f7a9a93fc5bdbf20f"
    },
    {
      "seq": 8,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-a2ae15",
      "ts_end": "2026-09-21T19:52:53.251Z",
      "span_id": "t7",
      "ts_start": "2026-09-21T19:52:53.131Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t7",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "6f975a462bc0cf04dd538e2c67bc1f372718a7cd3f525af8eae29cdc7bbbe03b"
    },
    {
      "seq": 9,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-a2ae15",
      "ts_end": "2026-09-21T19:53:08.251Z",
      "span_id": "t8",
      "ts_start": "2026-09-21T19:53:08.131Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t8",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "f5a1d3842fafa80b1c12427ecb9ecf013a42360d34ab6fb02052b42a092abceb"
    },
    {
      "seq": 10,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-a2ae15",
      "ts_end": "2026-09-21T19:53:23.251Z",
      "span_id": "t9",
      "ts_start": "2026-09-21T19:53:23.131Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t9",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "2cefdd6316ef008497ebb1183d92ad33346b9bc840fcbe2b86b37a93af9f8c6c"
    },
    {
      "seq": 11,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-a2ae15",
      "ts_end": "2026-09-21T19:53:38.251Z",
      "span_id": "t10",
      "ts_start": "2026-09-21T19:53:38.131Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t10",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "224c9b5a1aed59a0a39666cd188191172e14791e5822abd5e5cb94cf7490af03"
    },
    {
      "seq": 12,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 9,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-a2ae15",
      "ts_end": "2026-09-21T19:53:53.251Z",
      "span_id": "t11",
      "ts_start": "2026-09-21T19:53:53.131Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t11",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "a386b4fcefcddddbdf12a7e0abe8b4225858265dd94c8a17980b43e71e02a749"
    },
    {
      "seq": 13,
      "name": "notify-customer-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "sent": 11
      },
      "run_id": "demo-notify-a2ae15",
      "status": "success",
      "ts_end": "2026-09-21T19:54:08.431Z",
      "span_id": "re",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-21T19:54:08.131Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "24d9cc9377d29bfde67501ca0052f220e2b9fec4844db4926d6e0e11165b871b"
    }
  ]
}