{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "demo-notify-e8e1b5",
    "generated_at": "2026-09-22T11:04:35.844Z",
    "event_count": 14,
    "algorithm": "sha256-chain",
    "content_digest": "c3fab73ca5e7a2d8a1264e5fea32594e150470efb6a623dd2da1e899b83dacff",
    "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": "d9f1ac2f8d2ac1a2f1396e0feb4eba86dc9267b89d7064fd1ef816626e93f816435e184c89573d9792ba1a5dc2021b3c5b5a606f4c0d5cbd42e070288a633602",
      "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-e8e1b5",
    "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-13T21:20:56.592+00:00",
    "ended_at": "2026-09-13T21:23:42.892+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-e8e1b5",
      "status": "running",
      "ts_end": "2026-09-13T21:20:58.192Z",
      "span_id": "r",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-13T21:20:56.592Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "2a4edc5b49792ae1a6e5b43c13191b3e943106622788312c950f6219b4675a57"
    },
    {
      "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-e8e1b5",
      "ts_end": "2026-09-13T21:20:57.492Z",
      "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-13T21:20:56.622Z",
      "latency_ms": 870,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "f8580064fdb7261222f75b6b0661060033a27b11b74b21c2c5cc429757fb77ea"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-e8e1b5",
      "ts_end": "2026-09-13T21:20:57.712Z",
      "span_id": "t1",
      "ts_start": "2026-09-13T21:20:57.592Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t1",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "e3d48b722fb38a9b2c22b9bfd3373cb96bbcb3bf01e077f6eb84d7adf482d55c"
    },
    {
      "seq": 3,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-e8e1b5",
      "ts_end": "2026-09-13T21:21:12.712Z",
      "span_id": "t2",
      "ts_start": "2026-09-13T21:21:12.592Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t2",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "ff9d3754029d761e1b4a797dd394e8b060c2ee1fe23f2f62d2701cb717ff1fd8"
    },
    {
      "seq": 4,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-e8e1b5",
      "ts_end": "2026-09-13T21:21:27.712Z",
      "span_id": "t3",
      "ts_start": "2026-09-13T21:21:27.592Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t3",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "2ebf5587c54533618e4b90b989bde07334a1df170b5f4c786639283bbba91c3e"
    },
    {
      "seq": 5,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-e8e1b5",
      "ts_end": "2026-09-13T21:21:42.712Z",
      "span_id": "t4",
      "ts_start": "2026-09-13T21:21:42.592Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t4",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "c020108aaf6bab333ccfc5fccad81c318b429fd4c81d459ac94f8eb5fb9275ce"
    },
    {
      "seq": 6,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-e8e1b5",
      "ts_end": "2026-09-13T21:21:57.712Z",
      "span_id": "t5",
      "ts_start": "2026-09-13T21:21:57.592Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t5",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "487c4b73a7800d54aa2ebefd29bea5dc69ba03173cd9afeb502de5b5af1b5811"
    },
    {
      "seq": 7,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-e8e1b5",
      "ts_end": "2026-09-13T21:22:12.712Z",
      "span_id": "t6",
      "ts_start": "2026-09-13T21:22:12.592Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t6",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "20fb28cccaaa225f74d9cfc0c999d5e8f051cb89bd7f1e6700108d0ffd167bd0"
    },
    {
      "seq": 8,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-e8e1b5",
      "ts_end": "2026-09-13T21:22:27.712Z",
      "span_id": "t7",
      "ts_start": "2026-09-13T21:22:27.592Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t7",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "5f46131eec1c814988bcded2fdbcbd0a3554eac30f98276a4148235590c662b5"
    },
    {
      "seq": 9,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-e8e1b5",
      "ts_end": "2026-09-13T21:22:42.712Z",
      "span_id": "t8",
      "ts_start": "2026-09-13T21:22:42.592Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t8",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "41c7a492d29163d1d490dcfd4292b13acd64037b6dde158fa20d5f42ca045564"
    },
    {
      "seq": 10,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-e8e1b5",
      "ts_end": "2026-09-13T21:22:57.712Z",
      "span_id": "t9",
      "ts_start": "2026-09-13T21:22:57.592Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t9",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "fe3db5208020655a3db0fab532ba84c9fb788d57d11b12415d39d010e42d2459"
    },
    {
      "seq": 11,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-e8e1b5",
      "ts_end": "2026-09-13T21:23:12.712Z",
      "span_id": "t10",
      "ts_start": "2026-09-13T21:23:12.592Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t10",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "947402e92f8472aafe708b82120fc8c6655649f2eb2b2459aa1910788a65c38a"
    },
    {
      "seq": 12,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 9,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-e8e1b5",
      "ts_end": "2026-09-13T21:23:27.712Z",
      "span_id": "t11",
      "ts_start": "2026-09-13T21:23:27.592Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t11",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "e9a90274cdb53f74d412ae2fa745b58747976ddb3b23d9baca62459d42b32617"
    },
    {
      "seq": 13,
      "name": "notify-customer-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "sent": 11
      },
      "run_id": "demo-notify-e8e1b5",
      "status": "success",
      "ts_end": "2026-09-13T21:23:42.892Z",
      "span_id": "re",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-13T21:23:42.592Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "c3fab73ca5e7a2d8a1264e5fea32594e150470efb6a623dd2da1e899b83dacff"
    }
  ]
}