{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "demo-notify-6aa01e",
    "generated_at": "2026-09-22T11:05:14.188Z",
    "event_count": 14,
    "algorithm": "sha256-chain",
    "content_digest": "6f8ee21696cc3969bc2947da6a733909da47b9df15ff6ade1f56b96ace683f4b",
    "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": "6d7d4df9518cc0395698b8845094490051af87ab1f8b7c35a555671eb8fb8f74885c50c26841bbbdcbd4cf4ad3628e2032393139e5c3c799c87c08edfad42408",
      "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-6aa01e",
    "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-01T18:17:27.297+00:00",
    "ended_at": "2026-09-01T18:20:13.597+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-6aa01e",
      "status": "running",
      "ts_end": "2026-09-01T18:17:28.897Z",
      "span_id": "r",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-01T18:17:27.297Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "e77c53855299ba72177ccd845a931290a62c57afa40cedc558e7e33eac23b0e9"
    },
    {
      "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-6aa01e",
      "ts_end": "2026-09-01T18:17:28.197Z",
      "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-01T18:17:27.327Z",
      "latency_ms": 870,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "e0558d2dffa3ef81259f0a71414b75152293cd7f1cf5aa64c40f03452015a437"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-6aa01e",
      "ts_end": "2026-09-01T18:17:28.417Z",
      "span_id": "t1",
      "ts_start": "2026-09-01T18:17:28.297Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t1",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "342d5ad305a89f052743a5783d6b7772cc55e29f526a26950e66a86ba259e243"
    },
    {
      "seq": 3,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-6aa01e",
      "ts_end": "2026-09-01T18:17:43.417Z",
      "span_id": "t2",
      "ts_start": "2026-09-01T18:17:43.297Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t2",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "c5901756aebd92c3f13a442d42d58904cfa3daa6b1ae257c048d0bc18dbb752f"
    },
    {
      "seq": 4,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-6aa01e",
      "ts_end": "2026-09-01T18:17:58.417Z",
      "span_id": "t3",
      "ts_start": "2026-09-01T18:17:58.297Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t3",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "8e9fa8bd7dadb60b61fec8b8f372b42baf56f00e15577e17b59bd7f61a683036"
    },
    {
      "seq": 5,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-6aa01e",
      "ts_end": "2026-09-01T18:18:13.417Z",
      "span_id": "t4",
      "ts_start": "2026-09-01T18:18:13.297Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t4",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "b2131f403ff2f89f48bc025168016cf4bf4c11df953c45ae070e873f96e189e6"
    },
    {
      "seq": 6,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-6aa01e",
      "ts_end": "2026-09-01T18:18:28.417Z",
      "span_id": "t5",
      "ts_start": "2026-09-01T18:18:28.297Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t5",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "4ce226e598e3becda35c3d6b6bbc21d260d8f753b86b5c52e125010244e1c203"
    },
    {
      "seq": 7,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-6aa01e",
      "ts_end": "2026-09-01T18:18:43.417Z",
      "span_id": "t6",
      "ts_start": "2026-09-01T18:18:43.297Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t6",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "57e1f1e837d2e65501e978cf1d4891bdc84ca9f3777094be41d56546b19a33c0"
    },
    {
      "seq": 8,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-6aa01e",
      "ts_end": "2026-09-01T18:18:58.417Z",
      "span_id": "t7",
      "ts_start": "2026-09-01T18:18:58.297Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t7",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "e72a9db342dd1fee1915f679a841945df2784b2ab8e71e19ee4af6a699af0227"
    },
    {
      "seq": 9,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 2,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-6aa01e",
      "ts_end": "2026-09-01T18:19:13.417Z",
      "span_id": "t8",
      "ts_start": "2026-09-01T18:19:13.297Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t8",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "189afb61571e425245607a6214e1c99b8335c9dc1d2f32e385c1b88a8a0150e3"
    },
    {
      "seq": 10,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-6aa01e",
      "ts_end": "2026-09-01T18:19:28.417Z",
      "span_id": "t9",
      "ts_start": "2026-09-01T18:19:28.297Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t9",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "1fbb5a85d0446d2b15d05e2f768400fb0dc10566dad2b67407d7b32c6ca00066"
    },
    {
      "seq": 11,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 1,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-6aa01e",
      "ts_end": "2026-09-01T18:19:43.417Z",
      "span_id": "t10",
      "ts_start": "2026-09-01T18:19:43.297Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t10",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "62ac58dddce8371ff119db4ee9f87b760199e6fd098bc5a47c162f17c4887084"
    },
    {
      "seq": 12,
      "type": "tool",
      "error": null,
      "input": {
        "priority": 9,
        "customer_id": "cust_9000"
      },
      "output": {
        "sent": true
      },
      "run_id": "demo-notify-6aa01e",
      "ts_end": "2026-09-01T18:19:58.417Z",
      "span_id": "t11",
      "ts_start": "2026-09-01T18:19:58.297Z",
      "tool_name": "notify_customer",
      "latency_ms": 120,
      "tool_call_id": "t11",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "e410679c42e4986dc25b1f0b5c6474ba6a4d61d1874d65ab95a119d00a4ca621"
    },
    {
      "seq": 13,
      "name": "notify-customer-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "sent": 11
      },
      "run_id": "demo-notify-6aa01e",
      "status": "success",
      "ts_end": "2026-09-01T18:20:13.597Z",
      "span_id": "re",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-01T18:20:13.297Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "6f8ee21696cc3969bc2947da6a733909da47b9df15ff6ade1f56b96ace683f4b"
    }
  ]
}