{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "demo-notify-6a5225",
    "generated_at": "2026-09-22T11:05:50.114Z",
    "event_count": 14,
    "algorithm": "sha256-chain",
    "content_digest": "bffc5172f941af989ae8fe1023c1562167e365ec481d6da8d3a1e7c313fd2c7c",
    "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": "ac090a4152d329194df2d4a60eaaa2ff6c0a94faac3f0cf8cf95634854e1102da3065ae0ba44f3e8ecb8145d51d5d32ce84021b4da612d88122e00c949fcc400",
      "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-6a5225",
    "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:07:50.173+00:00",
    "ended_at": "2026-09-13T21:10:36.473+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-6a5225",
      "status": "running",
      "ts_end": "2026-09-13T21:07:51.773Z",
      "span_id": "r",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-13T21:07:50.173Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "92b649411991dbaa2fd0d119ffb571f64e52236abea0c4dd6f53bf5c4d0a23e2"
    },
    {
      "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-6a5225",
      "ts_end": "2026-09-13T21:07:51.073Z",
      "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:07:50.203Z",
      "latency_ms": 870,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "8866a35282e41f42ff4105d582490918beaf1e902a57a21e3c4f4eca7c72c5f2"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-6a5225",
      "ts_end": "2026-09-13T21:07:51.293Z",
      "span_id": "t1",
      "ts_start": "2026-09-13T21:07:51.173Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t1",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "5ad8bc93732fe638339c459a3604f6982719451a2ddbd1003312de8a1f82ac17"
    },
    {
      "seq": 3,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-6a5225",
      "ts_end": "2026-09-13T21:08:06.293Z",
      "span_id": "t2",
      "ts_start": "2026-09-13T21:08:06.173Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t2",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "cd58ce7a1aacacb63a34ad95e636b294896e371a9907efbf5b28e98bc62e025b"
    },
    {
      "seq": 4,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-6a5225",
      "ts_end": "2026-09-13T21:08:21.293Z",
      "span_id": "t3",
      "ts_start": "2026-09-13T21:08:21.173Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t3",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "500dfd9906ab956785e4685aad94f55ce00b2251d7fe40483c7bcd09cea69ce7"
    },
    {
      "seq": 5,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-6a5225",
      "ts_end": "2026-09-13T21:08:36.293Z",
      "span_id": "t4",
      "ts_start": "2026-09-13T21:08:36.173Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t4",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "4e960bacce088e6eb6aa40a29cecd2a10367ee77300dd383e51adf5c2e0ac3f2"
    },
    {
      "seq": 6,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-6a5225",
      "ts_end": "2026-09-13T21:08:51.293Z",
      "span_id": "t5",
      "ts_start": "2026-09-13T21:08:51.173Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t5",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "37ee1d0b5953cffa503b5bb1603ed88a9e7409ef4201e9c87d56da1441f77187"
    },
    {
      "seq": 7,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-6a5225",
      "ts_end": "2026-09-13T21:09:06.293Z",
      "span_id": "t6",
      "ts_start": "2026-09-13T21:09:06.173Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t6",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "2384d705f6921af3f30a483efa603a79410e3a657b1f76bfe44f13938b0ca03e"
    },
    {
      "seq": 8,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-6a5225",
      "ts_end": "2026-09-13T21:09:21.293Z",
      "span_id": "t7",
      "ts_start": "2026-09-13T21:09:21.173Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t7",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "67e3cbeb9fe4da6b80ad7834f9faa4ae391d69099612914ee2a52fe9b561faa6"
    },
    {
      "seq": 9,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-6a5225",
      "ts_end": "2026-09-13T21:09:36.293Z",
      "span_id": "t8",
      "ts_start": "2026-09-13T21:09:36.173Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t8",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "8b4e86c26f7838bb3976a4af504f5c0a47a913955e576e0dead4e4bb1e5fdf97"
    },
    {
      "seq": 10,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-6a5225",
      "ts_end": "2026-09-13T21:09:51.293Z",
      "span_id": "t9",
      "ts_start": "2026-09-13T21:09:51.173Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t9",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "63f2879d58d82f77f039f73a3d3c50e95445b7d0c386f1b2fcf0132d8460d760"
    },
    {
      "seq": 11,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-6a5225",
      "ts_end": "2026-09-13T21:10:06.293Z",
      "span_id": "t10",
      "ts_start": "2026-09-13T21:10:06.173Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t10",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "7333fc4ae884976fbe0d5259222d28adc949c6b4bfef433325676bfc6f85a423"
    },
    {
      "seq": 12,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 9,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-6a5225",
      "ts_end": "2026-09-13T21:10:21.293Z",
      "span_id": "t11",
      "ts_start": "2026-09-13T21:10:21.173Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t11",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "b0828f96dee487f5e95e99d0b68aa01239d568f85cc9a70d727641d878c0d240"
    },
    {
      "seq": 13,
      "name": "notify-customer-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "sent": 11
      },
      "run_id": "demo-notify-6a5225",
      "status": "success",
      "ts_end": "2026-09-13T21:10:36.473Z",
      "span_id": "re",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-13T21:10:36.173Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "bffc5172f941af989ae8fe1023c1562167e365ec481d6da8d3a1e7c313fd2c7c"
    }
  ]
}