{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "sample-6efc576b-4bfe-4a62-95b3-bc3622a87516",
    "generated_at": "2026-11-07T07:43:52.976Z",
    "event_count": 4,
    "algorithm": "sha256-chain",
    "content_digest": "3a61156f69743754ee40c63c039dadf83718029bc7ebc5f7fc4a47f2a5250ee4",
    "replay": {
      "cassette_digest": "5d374bd6d81700899ee1b1ca3f23086d45461e0c049f6eda856a87af47e05e72",
      "entry_count": 3,
      "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": "5c7d0cc914c52aeb205bc6100a192d1711c95d606d494ea6d8bcb67ad8d8c7a26cb57ce31bd13bc24976b4bbc32792011c0177b525cd8c4041165ee95c54530e",
      "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": "sample-6efc576b-4bfe-4a62-95b3-bc3622a87516",
    "name": "runback-sample-agent",
    "status": "success",
    "input": "Sample run — Triage claim #2209 and hand the refund to the support agent.",
    "output": "Handed claim #2209 to support-refund-agent.",
    "error": null,
    "metadata": {
      "demo": true,
      "note": "Generated by Runback so you have something to look at. Not a record of your agents.",
      "scenario": "multi-agent-handoff",
      "runback:sample-run": true
    },
    "step_count": 1,
    "total_tokens": 2740,
    "started_at": "2026-11-06T11:42:26.113+00:00",
    "ended_at": "2026-11-06T11:42:32.213+00:00",
    "actor_type": null,
    "actor_id": null
  },
  "events": [
    {
      "seq": 0,
      "name": "runback-sample-agent",
      "type": "run",
      "error": null,
      "input": "Sample run — Triage claim #2209 and hand the refund to the support agent.",
      "phase": "start",
      "output": null,
      "run_id": "sample-6efc576b-4bfe-4a62-95b3-bc3622a87516",
      "status": "running",
      "ts_end": null,
      "span_id": "r0",
      "metadata": {
        "demo": true,
        "note": "Generated by Runback so you have something to look at. Not a record of your agents.",
        "scenario": "multi-agent-handoff",
        "runback:sample-run": true
      },
      "ts_start": "2026-11-06T11:42:26.113Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "4a63e548e324ea5bf9e62aa0b64a91e187261721c1144b012e293ef90a8362a6"
    },
    {
      "seq": 1,
      "type": "tool",
      "error": null,
      "input": {
        "claim_id": "2209"
      },
      "output": {
        "category": "refund",
        "claim_id": "2209",
        "amount_aud": 120
      },
      "run_id": "sample-6efc576b-4bfe-4a62-95b3-bc3622a87516",
      "ts_end": "2026-11-06T11:42:27.211Z",
      "span_id": "t1",
      "metadata": {
        "demo": true,
        "note": "Generated by Runback so you have something to look at. Not a record of your agents.",
        "scenario": "multi-agent-handoff",
        "runback:sample-run": true
      },
      "ts_start": "2026-11-06T11:42:26.723Z",
      "tool_name": "triage_claim",
      "tool_call_id": "call_1",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "7ca942cd5b876744029dafb4be59c90fef55418786d0b43edffe6abba0b90e9d"
    },
    {
      "seq": 2,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-sonnet-4-6",
        "provider": "anthropic"
      },
      "usage": {
        "input_tokens": 2192,
        "total_tokens": 2740,
        "output_tokens": 548
      },
      "run_id": "sample-6efc576b-4bfe-4a62-95b3-bc3622a87516",
      "ts_end": "2026-11-06T11:42:29.895Z",
      "request": {
        "tools": [],
        "params": {
          "temperature": 0,
          "max_output_tokens": 300
        },
        "system": "You are a claims triage agent. Route each claim to the agent that handles it.",
        "messages": [
          {
            "role": "user",
            "content": "Triage claim #2209."
          },
          {
            "role": "assistant",
            "content": "Calling triage_claim."
          },
          {
            "role": "user",
            "content": "{\"claim_id\":\"2209\",\"category\":\"refund\",\"amount_aud\":120}"
          }
        ]
      },
      "span_id": "l1",
      "metadata": {
        "demo": true,
        "note": "Generated by Runback so you have something to look at. Not a record of your agents.",
        "scenario": "multi-agent-handoff",
        "runback:sample-run": true
      },
      "response": {
        "text": "Claim #2209 is an A$120 refund request. Handing it to the support refund agent.",
        "reasoning": null,
        "tool_calls": [],
        "finish_reason": "stop"
      },
      "ts_start": "2026-11-06T11:42:27.333Z",
      "latency_ms": 2562,
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "48de2f7534dbb4a850fec20de90206ff7ee9228536add138105d8b37b4c8c7aa"
    },
    {
      "seq": 3,
      "type": "tool",
      "error": null,
      "input": {
        "agent": "support-refund-agent",
        "claim_id": "2209"
      },
      "output": {
        "accepted": true
      },
      "run_id": "sample-6efc576b-4bfe-4a62-95b3-bc3622a87516",
      "ts_end": "2026-11-06T11:42:30.383Z",
      "span_id": "t2",
      "metadata": {
        "demo": true,
        "note": "Generated by Runback so you have something to look at. Not a record of your agents.",
        "scenario": "multi-agent-handoff",
        "runback:sample-run": true
      },
      "ts_start": "2026-11-06T11:42:30.078Z",
      "tool_name": "handoff_to_agent",
      "tool_call_id": "call_2",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "3a61156f69743754ee40c63c039dadf83718029bc7ebc5f7fc4a47f2a5250ee4"
    }
  ]
}