{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "demo-claims-ok-db2663",
    "generated_at": "2026-09-22T11:07:01.850Z",
    "event_count": 4,
    "algorithm": "sha256-chain",
    "content_digest": "81cddee63e1ba71b14c41ac5c057bcdfe6cde0c4004aedb57efa4c13ea9ad858",
    "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": "c9bbc67be5a2d76763d804fbab6e103ce6fe40e5374973f3f9eec2ba56c5e35f5531620b0aacda7622ac885496be671b2f46a3f6f8d84f87dece97c64267a40e",
      "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-db2663",
    "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": 575,
    "started_at": "2026-09-13T21:01:32.705+00:00",
    "ended_at": "2026-09-13T21:01:34.205+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-db2663",
      "status": "running",
      "ts_end": "2026-09-13T21:01:34.205Z",
      "span_id": "r",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-13T21:01:32.705Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "e7b0f582e6f3f3ad6811f93167e687b56ed810302bb4d4e535643f4d1ce4ee0b"
    },
    {
      "seq": 1,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-sonnet-4-6",
        "provider": "openai"
      },
      "usage": {
        "input_tokens": 403,
        "total_tokens": 575,
        "output_tokens": 173
      },
      "run_id": "demo-claims-ok-db2663",
      "ts_end": "2026-09-13T21:01:33.325Z",
      "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-13T21:01:32.735Z",
      "latency_ms": 590,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "ac43438a730a532d515a41e893fb23610c8246126107b8e182efbb8475250ac5"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "policy_id": "PL-44120"
      },
      "output": {
        "active": true,
        "excess": 500
      },
      "run_id": "demo-claims-ok-db2663",
      "ts_end": "2026-09-13T21:01:33.605Z",
      "span_id": "t1",
      "ts_start": "2026-09-13T21:01:33.335Z",
      "tool_name": "check_policy_status",
      "latency_ms": 270,
      "tool_call_id": "t1",
      "parent_span_id": "r",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "2089cbce6a1f9bec824c8ae514b5cbb29e363c8baab9e99f0908543495ebbb6c"
    },
    {
      "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-db2663",
      "status": "success",
      "ts_end": "2026-09-13T21:01:34.205Z",
      "span_id": "re",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-13T21:01:34.155Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "81cddee63e1ba71b14c41ac5c057bcdfe6cde0c4004aedb57efa4c13ea9ad858"
    }
  ]
}