{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "demo-claims-a2ae15",
    "generated_at": "2026-09-22T11:06:33.153Z",
    "event_count": 4,
    "algorithm": "sha256-chain",
    "content_digest": "96f3b8b83c981202600a0865ba8a5d4f3f31bac0c004b716a392ba222dce74c4",
    "replay": {
      "cassette_digest": "11e24860c19fd03588c39dd6340db0a4116b3edde986b79a89dc0c6d8bf38978",
      "entry_count": 2,
      "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": "62d78d824748a38c732c2a99cfba891cec1d07768764f00eb458049d9cda157495356acc323ce63e564a47c5ca178526133eb4dffdda91561a19af79dd9d680c",
      "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-claims-a2ae15",
    "name": "claims-triage-agent",
    "status": "success",
    "input": "Assess claim #44120 — rear-end collision, $4,200 estimate.",
    "output": {
      "payable": 3700,
      "decision": "auto-approve"
    },
    "error": null,
    "metadata": {
      "demo": true
    },
    "step_count": 1,
    "total_tokens": 480,
    "started_at": "2026-09-22T01:46:22.131+00:00",
    "ended_at": "2026-09-22T01:46:23.631+00:00",
    "actor_type": null,
    "actor_id": null
  },
  "events": [
    {
      "seq": 0,
      "name": "claims-triage-agent",
      "type": "run",
      "error": null,
      "input": "Assess claim #44120 — rear-end collision, $4,200 estimate.",
      "phase": "start",
      "output": null,
      "run_id": "demo-claims-a2ae15",
      "status": "running",
      "ts_end": "2026-09-22T01:46:23.631Z",
      "span_id": "r",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-22T01:46:22.131Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "880bc9452efd002d10820d08fb2f9bb9e8647271cf79056d08794812a57d0c61"
    },
    {
      "seq": 1,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-sonnet-4-6",
        "provider": "openai"
      },
      "usage": {
        "input_tokens": 336,
        "total_tokens": 480,
        "output_tokens": 144
      },
      "run_id": "demo-claims-a2ae15",
      "ts_end": "2026-09-22T01:46:22.751Z",
      "request": {
        "tools": [],
        "params": {
          "temperature": 0
        },
        "system": "You are a careful enterprise agent. Follow policy.",
        "messages": [
          {
            "role": "user",
            "content": "Estimate is inside the auto-approve band and the policy is current."
          }
        ]
      },
      "span_id": "l1",
      "response": {
        "text": "Estimate is inside the auto-approve band and the policy is current.",
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "policy_id": "PL-44120"
            },
            "tool_name": "check_policy_status",
            "tool_call_id": "t1"
          }
        ],
        "finish_reason": "tool-call"
      },
      "ts_start": "2026-09-22T01:46:22.161Z",
      "latency_ms": 590,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "b0318b3f68851fddac93d1f8d6774c769078c7a54edafe9f99a1e2cc234d5e06"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "policy_id": "PL-44120"
      },
      "output": {
        "active": true,
        "excess": 500
      },
      "run_id": "demo-claims-a2ae15",
      "ts_end": "2026-09-22T01:46:23.031Z",
      "span_id": "t1",
      "ts_start": "2026-09-22T01:46:22.761Z",
      "tool_name": "check_policy_status",
      "latency_ms": 270,
      "tool_call_id": "t1",
      "parent_span_id": "r",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "28afb68806a421ea44bdb54473ccd3c1260449871224cd14138f6d50fb49ee34"
    },
    {
      "seq": 3,
      "name": "claims-triage-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "payable": 3700,
        "decision": "auto-approve"
      },
      "run_id": "demo-claims-a2ae15",
      "status": "success",
      "ts_end": "2026-09-22T01:46:23.631Z",
      "span_id": "re",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-22T01:46:23.581Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "96f3b8b83c981202600a0865ba8a5d4f3f31bac0c004b716a392ba222dce74c4"
    }
  ]
}