{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "demo-claims-ok-1ab2c4",
    "generated_at": "2026-09-22T11:07:03.873Z",
    "event_count": 4,
    "algorithm": "sha256-chain",
    "content_digest": "e1bbb30cfcf0f8623ef54bf95a1ca8c8ae9fa11250542b146f1a64253b1143b6",
    "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": "6355efcd0508050ddb63228ce557c53ca01879dcfc5860a4cdf30bf148a686961c9cf6913c4c5f05a4bc624d268af222c81949bc6a1769a1239b1d61aecbbd03",
      "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-1ab2c4",
    "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": 605,
    "started_at": "2026-09-14T00:41:36.99+00:00",
    "ended_at": "2026-09-14T00:41:38.49+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-1ab2c4",
      "status": "running",
      "ts_end": "2026-09-14T00:41:38.490Z",
      "span_id": "r",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-14T00:41:36.990Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "d7968e96dddc76b5997835c2ecad1378639e9880376e76e0d24f350a242365a8"
    },
    {
      "seq": 1,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-sonnet-4-6",
        "provider": "openai"
      },
      "usage": {
        "input_tokens": 424,
        "total_tokens": 605,
        "output_tokens": 182
      },
      "run_id": "demo-claims-ok-1ab2c4",
      "ts_end": "2026-09-14T00:41:37.610Z",
      "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-14T00:41:37.020Z",
      "latency_ms": 590,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "3e66ed66c045d8d0a7cf094792fbe010cee726289d43d2e17741def2149f1867"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "policy_id": "PL-44120"
      },
      "output": {
        "active": true,
        "excess": 500
      },
      "run_id": "demo-claims-ok-1ab2c4",
      "ts_end": "2026-09-14T00:41:37.890Z",
      "span_id": "t1",
      "ts_start": "2026-09-14T00:41:37.620Z",
      "tool_name": "check_policy_status",
      "latency_ms": 270,
      "tool_call_id": "t1",
      "parent_span_id": "r",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "3436cc979d912753eaf81bec051dd445403a323e9418ca339a8443f453fdd64b"
    },
    {
      "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-1ab2c4",
      "status": "success",
      "ts_end": "2026-09-14T00:41:38.490Z",
      "span_id": "re",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-14T00:41:38.440Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "e1bbb30cfcf0f8623ef54bf95a1ca8c8ae9fa11250542b146f1a64253b1143b6"
    }
  ]
}