{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "demo-notify-56638f",
    "generated_at": "2026-09-22T11:05:43.316Z",
    "event_count": 14,
    "algorithm": "sha256-chain",
    "content_digest": "fe9f6910c5eb5ced0f7cbdc04294eeaf5f2ac7f3b6111f34c694ece4f4dcb658",
    "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": "dbcc9476c9bd25d28c8fe2654abbaa8bb4bf7c20bc9783807d8357a4e96c8d1b0bc121cc1a74fe79075f52a6718730db46cde32b6e3d79d2ef88cb2e030d4a08",
      "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-56638f",
    "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-13T20:54:37.399+00:00",
    "ended_at": "2026-09-13T20:57:23.699+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-56638f",
      "status": "running",
      "ts_end": "2026-09-13T20:54:38.999Z",
      "span_id": "r",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-13T20:54:37.399Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "b44a4f1caeb8b4e344a34c14a8ec4812fec6432b4dc35f36f0abbb188cc2d266"
    },
    {
      "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-56638f",
      "ts_end": "2026-09-13T20:54:38.299Z",
      "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-13T20:54:37.429Z",
      "latency_ms": 870,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "65bc8fa8ea63de4330218c33f949db07de4944eb83a0073d9323c7143e5affd4"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-56638f",
      "ts_end": "2026-09-13T20:54:38.519Z",
      "span_id": "t1",
      "ts_start": "2026-09-13T20:54:38.399Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t1",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "579385cc1b0c9edf66c6df9918bf2da2c51574d317b28473b51b9a07d3f80b56"
    },
    {
      "seq": 3,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-56638f",
      "ts_end": "2026-09-13T20:54:53.519Z",
      "span_id": "t2",
      "ts_start": "2026-09-13T20:54:53.399Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t2",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "3d2d819b41f6ebde304b8d58fcf4ff9ad6d2cf6171977cc26e2dc9151440d22d"
    },
    {
      "seq": 4,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-56638f",
      "ts_end": "2026-09-13T20:55:08.519Z",
      "span_id": "t3",
      "ts_start": "2026-09-13T20:55:08.399Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t3",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "bfa032f71e10b0faf5cd027f35d3ed7e2209555ac7d3de447e216528e077afe7"
    },
    {
      "seq": 5,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-56638f",
      "ts_end": "2026-09-13T20:55:23.519Z",
      "span_id": "t4",
      "ts_start": "2026-09-13T20:55:23.399Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t4",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "9685cd803abb4e65fcc71a82a45a325a7faaaf036a122149f8514748174da1e8"
    },
    {
      "seq": 6,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-56638f",
      "ts_end": "2026-09-13T20:55:38.519Z",
      "span_id": "t5",
      "ts_start": "2026-09-13T20:55:38.399Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t5",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "448f3c1bd54e9f556dc7a2d3dd8394936b1f2caa3e182fc93cc989754e9f0fcb"
    },
    {
      "seq": 7,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-56638f",
      "ts_end": "2026-09-13T20:55:53.519Z",
      "span_id": "t6",
      "ts_start": "2026-09-13T20:55:53.399Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t6",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "a1ee5f4e0bc6fec08137e9a6752fa3576d7203487fa3785f8cf932d94b54b15b"
    },
    {
      "seq": 8,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-56638f",
      "ts_end": "2026-09-13T20:56:08.519Z",
      "span_id": "t7",
      "ts_start": "2026-09-13T20:56:08.399Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t7",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "9f27b53380eea42345bcc993654c716970b04a8ccd7b6ff487d7960301721f28"
    },
    {
      "seq": 9,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-56638f",
      "ts_end": "2026-09-13T20:56:23.519Z",
      "span_id": "t8",
      "ts_start": "2026-09-13T20:56:23.399Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t8",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "b72ce857533e4d997586f2bfdc5ca476f2032d3a16a090acb176ca6697396da2"
    },
    {
      "seq": 10,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-56638f",
      "ts_end": "2026-09-13T20:56:38.519Z",
      "span_id": "t9",
      "ts_start": "2026-09-13T20:56:38.399Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t9",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "7bf53f199bafbb39613a2f3a594b76401663cc250149eafaab62bed52b9ebaa2"
    },
    {
      "seq": 11,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-56638f",
      "ts_end": "2026-09-13T20:56:53.519Z",
      "span_id": "t10",
      "ts_start": "2026-09-13T20:56:53.399Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t10",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "fb93c7d1394f77572623922ab310e167c4200149c389907153e42b81c681ab88"
    },
    {
      "seq": 12,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 9,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-56638f",
      "ts_end": "2026-09-13T20:57:08.519Z",
      "span_id": "t11",
      "ts_start": "2026-09-13T20:57:08.399Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t11",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "d98689caa0ab89f8a2dcd3922916254d294831e53da6711c2bac0ed13463004e"
    },
    {
      "seq": 13,
      "name": "notify-customer-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "sent": 11
      },
      "run_id": "demo-notify-56638f",
      "status": "success",
      "ts_end": "2026-09-13T20:57:23.699Z",
      "span_id": "re",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-13T20:57:23.399Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "fe9f6910c5eb5ced0f7cbdc04294eeaf5f2ac7f3b6111f34c694ece4f4dcb658"
    }
  ]
}