{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "demo-notify-9bf924",
    "generated_at": "2026-09-22T11:05:10.838Z",
    "event_count": 14,
    "algorithm": "sha256-chain",
    "content_digest": "24121992d82aa3aa49c174ec9aaf4fb269ac92884517258e9761c49158c188b8",
    "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": "81592a8a2ed930fb68adcc145fc7041084752c0f99849ac83b8c8c0eb11906c5982eeae7cfe2bb4bab67808abe0e76d97da80993aef81c388f672e0db343d30c",
      "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-9bf924",
    "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:35.082+00:00",
    "ended_at": "2026-09-21T19:54:21.382+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-9bf924",
      "status": "running",
      "ts_end": "2026-09-21T19:51:36.682Z",
      "span_id": "r",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-21T19:51:35.082Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "f965c25202b0fe09f0b17c66b536a1aed12be2b36ca5c81cbf7895b6d5225574"
    },
    {
      "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-9bf924",
      "ts_end": "2026-09-21T19:51:35.982Z",
      "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:35.112Z",
      "latency_ms": 870,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "c17ed273738145a4ba89392d5086455962e32b3526b564b14a6c93b539c77afc"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-9bf924",
      "ts_end": "2026-09-21T19:51:36.202Z",
      "span_id": "t1",
      "ts_start": "2026-09-21T19:51:36.082Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t1",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "44643e8b533c8f57c26bc327da8c583fe59eec72df6158ef2e22c19b99ae6e03"
    },
    {
      "seq": 3,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-9bf924",
      "ts_end": "2026-09-21T19:51:51.202Z",
      "span_id": "t2",
      "ts_start": "2026-09-21T19:51:51.082Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t2",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "371611ad9543393f8f874df1c7596e54f6eb03220c6ac790887928ab28076136"
    },
    {
      "seq": 4,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-9bf924",
      "ts_end": "2026-09-21T19:52:06.202Z",
      "span_id": "t3",
      "ts_start": "2026-09-21T19:52:06.082Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t3",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "ce515c7303c7a73617c2594c7d6fe0e1207c72ecf5505902d459f54cc1dec211"
    },
    {
      "seq": 5,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-9bf924",
      "ts_end": "2026-09-21T19:52:21.202Z",
      "span_id": "t4",
      "ts_start": "2026-09-21T19:52:21.082Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t4",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "21921fc271c445f6dce4f411ebff6f1d3c621f7677e966a7d110d5b8c492b9bb"
    },
    {
      "seq": 6,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-9bf924",
      "ts_end": "2026-09-21T19:52:36.202Z",
      "span_id": "t5",
      "ts_start": "2026-09-21T19:52:36.082Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t5",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "01bc98a098d5cb69638c55e50aef44ecd342da5581600ddc381c98fa0a2c2294"
    },
    {
      "seq": 7,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-9bf924",
      "ts_end": "2026-09-21T19:52:51.202Z",
      "span_id": "t6",
      "ts_start": "2026-09-21T19:52:51.082Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t6",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "30e9bb7466832d2c68825bb0ea1ee7baaf97c0019d5e99320c6bbe29cfbaf15f"
    },
    {
      "seq": 8,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-9bf924",
      "ts_end": "2026-09-21T19:53:06.202Z",
      "span_id": "t7",
      "ts_start": "2026-09-21T19:53:06.082Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t7",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "6f28dfe4dc8dc4e0d6aef9f8f3a4b3c3168ce1a69455a86f15e7c8994936c31c"
    },
    {
      "seq": 9,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-9bf924",
      "ts_end": "2026-09-21T19:53:21.202Z",
      "span_id": "t8",
      "ts_start": "2026-09-21T19:53:21.082Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t8",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "ba1abda6e13ab21ea6f8109508ee982605bc447d3ab31a5d5f6a256f2153c19f"
    },
    {
      "seq": 10,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-9bf924",
      "ts_end": "2026-09-21T19:53:36.202Z",
      "span_id": "t9",
      "ts_start": "2026-09-21T19:53:36.082Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t9",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "7dc4ab0f3f6d91cb5395f2bc06e226ec6faef84303a1875514d47fd00fc14e6b"
    },
    {
      "seq": 11,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-9bf924",
      "ts_end": "2026-09-21T19:53:51.202Z",
      "span_id": "t10",
      "ts_start": "2026-09-21T19:53:51.082Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t10",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "4643a95b9bcb0b084e7dae26ca56873c03b033d5864c210df3acd72e0e1d5475"
    },
    {
      "seq": 12,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 9,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-9bf924",
      "ts_end": "2026-09-21T19:54:06.202Z",
      "span_id": "t11",
      "ts_start": "2026-09-21T19:54:06.082Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t11",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "660cfc69736814f9da0b4ddcc4701f011ba9d2e6cdf80fb3f9639dcf724817ae"
    },
    {
      "seq": 13,
      "name": "notify-customer-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "sent": 11
      },
      "run_id": "demo-notify-9bf924",
      "status": "success",
      "ts_end": "2026-09-21T19:54:21.382Z",
      "span_id": "re",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-21T19:54:21.082Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "24121992d82aa3aa49c174ec9aaf4fb269ac92884517258e9761c49158c188b8"
    }
  ]
}