{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "demo-claims-ok-c905d2",
    "generated_at": "2026-09-22T11:07:01.357Z",
    "event_count": 4,
    "algorithm": "sha256-chain",
    "content_digest": "bc3ce813d17ca5053abcb6d0db596dc6b650849f67ad8e244f8dc86b77540052",
    "replay": {
      "cassette_digest": "80620c28bb5d973194e875fa68625860061a954c4fed6036483622b693a07e0f",
      "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": "65439a0923ace3ac7b465b2312ad1bdf4eb80c6696ff43785d4ccfff4fd2690f20a5031ba01d4e2ab502ec11651ef9fc3ce09fe090d2fb99a5ea4c181c71a005",
      "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-ok-c905d2",
    "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": 485,
    "started_at": "2026-09-14T05:56:11.276+00:00",
    "ended_at": "2026-09-14T05:56:12.776+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-ok-c905d2",
      "status": "running",
      "ts_end": "2026-09-14T05:56:12.776Z",
      "span_id": "r",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-14T05:56:11.276Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "9fb3c80f758b9149f722e896d0fba982918b867ffa579a3d3bc83539b2c7e3a7"
    },
    {
      "seq": 1,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-sonnet-4-6",
        "provider": "openai"
      },
      "usage": {
        "input_tokens": 340,
        "total_tokens": 485,
        "output_tokens": 146
      },
      "run_id": "demo-claims-ok-c905d2",
      "ts_end": "2026-09-14T05:56:11.896Z",
      "request": {
        "tools": [],
        "params": {
          "temperature": 0
        },
        "system": "You are a careful enterprise agent. Follow policy.",
        "messages": [
          {
            "role": "user",
            "content": "Assess claim #44120 — rear-end collision, $4,200 estimate."
          }
        ]
      },
      "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-14T05:56:11.306Z",
      "latency_ms": 590,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "c1a02d0397e991b6098945a3495d26a0b14c9e555cb4be23064cb455a3ff9b58"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "policy_id": "PL-44120"
      },
      "output": {
        "active": true,
        "excess": 500
      },
      "run_id": "demo-claims-ok-c905d2",
      "ts_end": "2026-09-14T05:56:12.176Z",
      "span_id": "t1",
      "ts_start": "2026-09-14T05:56:11.906Z",
      "tool_name": "check_policy_status",
      "latency_ms": 270,
      "tool_call_id": "t1",
      "parent_span_id": "r",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "ee069a0cb254a6ee0669fee78d1b77c7f904913a8177037b6ad3edf3c2f4cf96"
    },
    {
      "seq": 3,
      "name": "claims-triage-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "payable": 3700,
        "decision": "auto-approve"
      },
      "run_id": "demo-claims-ok-c905d2",
      "status": "success",
      "ts_end": "2026-09-14T05:56:12.776Z",
      "span_id": "re",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-14T05:56:12.726Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "bc3ce813d17ca5053abcb6d0db596dc6b650849f67ad8e244f8dc86b77540052"
    }
  ]
}