{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "demo-notify-0584c5",
    "generated_at": "2026-09-22T11:05:47.621Z",
    "event_count": 14,
    "algorithm": "sha256-chain",
    "content_digest": "87e5f28aed285f8165f49cc4149130e2dfd780a647c1ceb239996197241ef7fa",
    "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": "3c9ea6b92eb6a895168999220d4350be9363c65b9e4cc73d9e2f784ba83470e09d01f09e2478d6c9ce571c11ce32ad1666f18727dc8991f4e674de1887435a0c",
      "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-0584c5",
    "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:48:02.326+00:00",
    "ended_at": "2026-09-21T19:50:48.626+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-0584c5",
      "status": "running",
      "ts_end": "2026-09-21T19:48:03.926Z",
      "span_id": "r",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-21T19:48:02.326Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "22a363b11ac0dc8c78822a93e03ddf6d680e187f393ce0bf89c153aa36763dd5"
    },
    {
      "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-0584c5",
      "ts_end": "2026-09-21T19:48:03.226Z",
      "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:48:02.356Z",
      "latency_ms": 870,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "6af92f3a01a39fc440f07f66ef7d193bbdfea3f322d8f4a5d33b709c62fb80bd"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-0584c5",
      "ts_end": "2026-09-21T19:48:03.446Z",
      "span_id": "t1",
      "ts_start": "2026-09-21T19:48:03.326Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t1",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "d6b878e48fed2f717133c6cdd6ab6c741aa66a978ee39483277a57bfffad2ec7"
    },
    {
      "seq": 3,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-0584c5",
      "ts_end": "2026-09-21T19:48:18.446Z",
      "span_id": "t2",
      "ts_start": "2026-09-21T19:48:18.326Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t2",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "91b49a7279e2c83d543c10ee33dde49a91b53a5a1898ff66fbd3e8e13af8aa72"
    },
    {
      "seq": 4,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-0584c5",
      "ts_end": "2026-09-21T19:48:33.446Z",
      "span_id": "t3",
      "ts_start": "2026-09-21T19:48:33.326Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t3",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "043e697b758d744a61510a0fdcebe9122c148018176c2dd33e23e07e30bbd21a"
    },
    {
      "seq": 5,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-0584c5",
      "ts_end": "2026-09-21T19:48:48.446Z",
      "span_id": "t4",
      "ts_start": "2026-09-21T19:48:48.326Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t4",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "81a2875eed852e128ff88cf45fb95acd3a675b1e2408083ff7812681ca9ddf4c"
    },
    {
      "seq": 6,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-0584c5",
      "ts_end": "2026-09-21T19:49:03.446Z",
      "span_id": "t5",
      "ts_start": "2026-09-21T19:49:03.326Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t5",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "617811fb95b194aa0b91de87b544676e552a6bffcc25ac9133f910ae19aa5fb7"
    },
    {
      "seq": 7,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-0584c5",
      "ts_end": "2026-09-21T19:49:18.446Z",
      "span_id": "t6",
      "ts_start": "2026-09-21T19:49:18.326Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t6",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "3852a8ba9981e75eb064844272b9b994cd329a189c7c5b6d23dce4951c1d3b45"
    },
    {
      "seq": 8,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-0584c5",
      "ts_end": "2026-09-21T19:49:33.446Z",
      "span_id": "t7",
      "ts_start": "2026-09-21T19:49:33.326Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t7",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "7ab2f6db5ab49042581606a54b4a3e84cb6fd6515ddf5dc9cf1e63036a3159ac"
    },
    {
      "seq": 9,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-0584c5",
      "ts_end": "2026-09-21T19:49:48.446Z",
      "span_id": "t8",
      "ts_start": "2026-09-21T19:49:48.326Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t8",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "06de05b18394f3e123ce367356e62ef5b0500ecd4276485574ba05216d5d622c"
    },
    {
      "seq": 10,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-0584c5",
      "ts_end": "2026-09-21T19:50:03.446Z",
      "span_id": "t9",
      "ts_start": "2026-09-21T19:50:03.326Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t9",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "bb1ce1a3afe0370b77aaebf2c85e27697f86d80bfd8bfb38155ad996ed63732d"
    },
    {
      "seq": 11,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-0584c5",
      "ts_end": "2026-09-21T19:50:18.446Z",
      "span_id": "t10",
      "ts_start": "2026-09-21T19:50:18.326Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t10",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "820e91bfab544b6c0be4058a779dfedb0ffcad0be0ef56f3b7019b3c4ed90f0f"
    },
    {
      "seq": 12,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 9,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-0584c5",
      "ts_end": "2026-09-21T19:50:33.446Z",
      "span_id": "t11",
      "ts_start": "2026-09-21T19:50:33.326Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t11",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "9fb32d30f7e84a4a1cdb81c70bfada5cee0df1266c69d499b904007ff05bab98"
    },
    {
      "seq": 13,
      "name": "notify-customer-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "sent": 11
      },
      "run_id": "demo-notify-0584c5",
      "status": "success",
      "ts_end": "2026-09-21T19:50:48.626Z",
      "span_id": "re",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-21T19:50:48.326Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "87e5f28aed285f8165f49cc4149130e2dfd780a647c1ceb239996197241ef7fa"
    }
  ]
}