{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "sbx-claims-triage-209f7a26bd0c",
    "generated_at": "2026-11-07T07:25:50.670Z",
    "event_count": 7,
    "algorithm": "sha256-chain",
    "content_digest": "349da4c5479198a4f7e73734ac090ebbcfc4047ba661816d1b674698c5aec290",
    "replay": {
      "cassette_digest": "ebed71517a6bbbaa19c534ec4f429f7b32e49f809d3a3b201150f9c4afd5a944",
      "entry_count": 5,
      "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": "d5736df9b6cf120eb4f6f9da0d00b2067555ae836e3dadae9c7d4d697146ce89c6bd92368159e66b02c84a3e59a61fff51ae37357b0eba33310971b42bf0f902",
      "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": "sbx-claims-triage-209f7a26bd0c",
    "name": "claims-triage-agent",
    "status": "error",
    "input": "New claim CLM-84784 on policy PL-65863: windscreen cracked by a stone on the freeway. Repair estimate A$8494.31.",
    "output": {
      "awaiting_approval": "d86ec65c-2dc7-4f11-aae3-82fd4e93d8b5"
    },
    "error": {
      "name": "ApprovalRequired",
      "message": "approve_payout is waiting for a person to approve it; the sandbox agent stopped here."
    },
    "metadata": {
      "agent": {
        "description": "Routes incoming claims to the right queue. Runback demo agent: real model calls and real policy decisions; its tools act on a sandbox of synthetic customers, orders and accounts.",
        "systemOfRecord": "Runback demo sandbox (synthetic data)"
      },
      "model": "claude-haiku-4-5",
      "demo_agent": true,
      "est_cost_usd": 0.003804,
      "sandbox_tools": true,
      "scenario_seed": "claims-triage-agent:2026-11-06:114"
    },
    "step_count": 2,
    "total_tokens": 2720,
    "started_at": "2026-11-06T21:11:00.586+00:00",
    "ended_at": "2026-11-06T21:11:04.127+00:00",
    "actor_type": null,
    "actor_id": null
  },
  "events": [
    {
      "seq": 0,
      "name": "claims-triage-agent",
      "type": "run",
      "error": null,
      "input": "New claim CLM-84784 on policy PL-65863: windscreen cracked by a stone on the freeway. Repair estimate A$8494.31.",
      "phase": "start",
      "output": null,
      "run_id": "sbx-claims-triage-209f7a26bd0c",
      "status": "running",
      "ts_end": "2026-11-06T21:11:04.127Z",
      "span_id": "r",
      "metadata": {
        "agent": {
          "description": "Routes incoming claims to the right queue. Runback demo agent: real model calls and real policy decisions; its tools act on a sandbox of synthetic customers, orders and accounts.",
          "systemOfRecord": "Runback demo sandbox (synthetic data)"
        },
        "model": "claude-haiku-4-5",
        "demo_agent": true,
        "est_cost_usd": 0.003804,
        "sandbox_tools": true,
        "scenario_seed": "claims-triage-agent:2026-11-06:114"
      },
      "ts_start": "2026-11-06T21:11:00.586Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "1b57fb168bbd83715584d4ff9b0e7a6ae942a688fa697f73cb80748e8fe133b4"
    },
    {
      "seq": 1,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-haiku-4-5",
        "provider": "anthropic"
      },
      "usage": {
        "input_tokens": 1159,
        "total_tokens": 1236,
        "output_tokens": 77
      },
      "run_id": "sbx-claims-triage-209f7a26bd0c",
      "ts_end": "2026-11-06T21:11:01.764Z",
      "request": {
        "tools": [
          {
            "name": "check_policy_status",
            "parameters": {
              "type": "object",
              "required": [
                "policy_id"
              ],
              "properties": {
                "policy_id": {
                  "type": "string",
                  "description": "Policy id, e.g. PL-12345"
                }
              },
              "additionalProperties": false
            },
            "description": "Check whether a policy is active and its excess."
          },
          {
            "name": "route_claim",
            "parameters": {
              "type": "object",
              "required": [
                "claim_id",
                "queue"
              ],
              "properties": {
                "queue": {
                  "enum": [
                    "fast_track",
                    "standard",
                    "specialist",
                    "fraud_review"
                  ],
                  "type": "string"
                },
                "claim_id": {
                  "type": "string",
                  "description": "Claim id"
                }
              },
              "additionalProperties": false
            },
            "description": "Route a claim to a queue."
          },
          {
            "name": "approve_payout",
            "parameters": {
              "type": "object",
              "required": [
                "claim_id",
                "amount"
              ],
              "properties": {
                "amount": {
                  "type": "number",
                  "description": "Amount in AUD"
                },
                "claim_id": {
                  "type": "string",
                  "description": "Claim id"
                }
              },
              "additionalProperties": false
            },
            "description": "Approve a payout in AUD for a claim."
          },
          {
            "name": "handoff_refund",
            "parameters": {
              "type": "object",
              "required": [
                "claim_id",
                "customer_id",
                "amount",
                "reason"
              ],
              "properties": {
                "amount": {
                  "type": "number",
                  "description": "Refund amount in AUD"
                },
                "reason": {
                  "type": "string",
                  "description": "Why the money is owed"
                },
                "claim_id": {
                  "type": "string",
                  "description": "Claim id"
                },
                "customer_id": {
                  "type": "number",
                  "description": "Policyholder customer id"
                }
              },
              "additionalProperties": false
            },
            "description": "Hand a refund owed to the policyholder (for example premium taken after a policy lapsed) to the support refund agent, which runs as its own agent. Not for claim payouts."
          }
        ],
        "params": {
          "temperature": 0,
          "max_output_tokens": 500
        },
        "system": "You are Acme Insurance's claims triage agent. You are running in Runback's public demo sandbox: every customer, order, invoice and account is synthetic, and your tools act on test data only. Check the policy is active, then route each claim to fast_track, standard, specialist or fraud_review. Approve a payout yourself only for straightforward fast-track claims, net of the excess. Money owed back to a policyholder that is not a claim payout is the refund agent's job, not yours. Use the tools to act; when you are done, reply with a one-sentence summary of what you did.",
        "messages": [
          {
            "role": "user",
            "content": "New claim CLM-84784 on policy PL-65863: windscreen cracked by a stone on the freeway. Repair estimate A$8494.31."
          }
        ]
      },
      "span_id": "l1",
      "response": {
        "text": "I'll check the policy status and then triage this windscreen claim.",
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "policy_id": "PL-65863"
            },
            "tool_name": "check_policy_status",
            "tool_call_id": "toolu_01SHyX73gc2sbe9jfoMdxUub"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-06T21:11:00.586Z",
      "latency_ms": 1177,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "324591364018e34e794fb06e83051b1aa9e8356b7fedab4d908ab925c746e7ed"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "policy_id": "PL-65863"
      },
      "output": {
        "active": true,
        "policy_id": "PL-65863",
        "excess_aud": 1000,
        "claims_last_3y": 3,
        "policyholder_customer_id": 7915
      },
      "run_id": "sbx-claims-triage-209f7a26bd0c",
      "ts_end": "2026-11-06T21:11:01.882Z",
      "span_id": "t1",
      "ts_start": "2026-11-06T21:11:01.764Z",
      "tool_name": "check_policy_status",
      "latency_ms": 118,
      "tool_call_id": "toolu_01SHyX73gc2sbe9jfoMdxUub",
      "parent_span_id": "l1",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "cb0d3a25be3da82c22d05463bb8dfa26529ca6e0673da96a61299d161b98e412"
    },
    {
      "seq": 3,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-haiku-4-5",
        "provider": "anthropic"
      },
      "usage": {
        "input_tokens": 1290,
        "total_tokens": 1484,
        "output_tokens": 194
      },
      "run_id": "sbx-claims-triage-209f7a26bd0c",
      "ts_end": "2026-11-06T21:11:03.958Z",
      "request": {
        "tools": [
          {
            "name": "check_policy_status",
            "parameters": {
              "type": "object",
              "required": [
                "policy_id"
              ],
              "properties": {
                "policy_id": {
                  "type": "string",
                  "description": "Policy id, e.g. PL-12345"
                }
              },
              "additionalProperties": false
            },
            "description": "Check whether a policy is active and its excess."
          },
          {
            "name": "route_claim",
            "parameters": {
              "type": "object",
              "required": [
                "claim_id",
                "queue"
              ],
              "properties": {
                "queue": {
                  "enum": [
                    "fast_track",
                    "standard",
                    "specialist",
                    "fraud_review"
                  ],
                  "type": "string"
                },
                "claim_id": {
                  "type": "string",
                  "description": "Claim id"
                }
              },
              "additionalProperties": false
            },
            "description": "Route a claim to a queue."
          },
          {
            "name": "approve_payout",
            "parameters": {
              "type": "object",
              "required": [
                "claim_id",
                "amount"
              ],
              "properties": {
                "amount": {
                  "type": "number",
                  "description": "Amount in AUD"
                },
                "claim_id": {
                  "type": "string",
                  "description": "Claim id"
                }
              },
              "additionalProperties": false
            },
            "description": "Approve a payout in AUD for a claim."
          },
          {
            "name": "handoff_refund",
            "parameters": {
              "type": "object",
              "required": [
                "claim_id",
                "customer_id",
                "amount",
                "reason"
              ],
              "properties": {
                "amount": {
                  "type": "number",
                  "description": "Refund amount in AUD"
                },
                "reason": {
                  "type": "string",
                  "description": "Why the money is owed"
                },
                "claim_id": {
                  "type": "string",
                  "description": "Claim id"
                },
                "customer_id": {
                  "type": "number",
                  "description": "Policyholder customer id"
                }
              },
              "additionalProperties": false
            },
            "description": "Hand a refund owed to the policyholder (for example premium taken after a policy lapsed) to the support refund agent, which runs as its own agent. Not for claim payouts."
          }
        ],
        "params": {
          "temperature": 0,
          "max_output_tokens": 500
        },
        "system": "You are Acme Insurance's claims triage agent. You are running in Runback's public demo sandbox: every customer, order, invoice and account is synthetic, and your tools act on test data only. Check the policy is active, then route each claim to fast_track, standard, specialist or fraud_review. Approve a payout yourself only for straightforward fast-track claims, net of the excess. Money owed back to a policyholder that is not a claim payout is the refund agent's job, not yours. Use the tools to act; when you are done, reply with a one-sentence summary of what you did.",
        "messages": [
          {
            "role": "user",
            "content": "New claim CLM-84784 on policy PL-65863: windscreen cracked by a stone on the freeway. Repair estimate A$8494.31."
          },
          {
            "role": "assistant",
            "content": [
              {
                "text": "I'll check the policy status and then triage this windscreen claim.",
                "type": "text"
              },
              {
                "type": "tool-call",
                "input": {
                  "policy_id": "PL-65863"
                },
                "toolName": "check_policy_status",
                "toolCallId": "toolu_01SHyX73gc2sbe9jfoMdxUub"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "active": true,
                    "policy_id": "PL-65863",
                    "excess_aud": 1000,
                    "claims_last_3y": 3,
                    "policyholder_customer_id": 7915
                  }
                },
                "toolName": "check_policy_status",
                "toolCallId": "toolu_01SHyX73gc2sbe9jfoMdxUub"
              }
            ]
          }
        ]
      },
      "span_id": "l2",
      "response": {
        "text": "The policy is active with a A$1000 excess. This is a straightforward windscreen damage claim from a road hazard—a fast-track case. I'll route it to fast_track and approve the payout net of the excess.",
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "queue": "fast_track",
              "claim_id": "CLM-84784"
            },
            "tool_name": "route_claim",
            "tool_call_id": "toolu_01UcY7p4KynRGnnzEXC1trkj"
          },
          {
            "input": {
              "amount": 7494.31,
              "claim_id": "CLM-84784"
            },
            "tool_name": "approve_payout",
            "tool_call_id": "toolu_01PojvyCBSXTxNJaEkzavQkW"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-06T21:11:01.882Z",
      "latency_ms": 2076,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "f5e931ccf5bcd380dc908dab3084ebdc53754dd253ac390e0cd74ed939e25737"
    },
    {
      "seq": 4,
      "type": "tool",
      "error": null,
      "input": {
        "queue": "fast_track",
        "claim_id": "CLM-84784"
      },
      "output": {
        "queue": "fast_track",
        "routed": true,
        "claim_id": "CLM-84784"
      },
      "run_id": "sbx-claims-triage-209f7a26bd0c",
      "ts_end": "2026-11-06T21:11:03.999Z",
      "span_id": "t2",
      "ts_start": "2026-11-06T21:11:03.958Z",
      "tool_name": "route_claim",
      "latency_ms": 41,
      "tool_call_id": "toolu_01UcY7p4KynRGnnzEXC1trkj",
      "parent_span_id": "l2",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "8e7244b826bcc480860db9361dc14fa5a2e947e90976d659608a3adb9228d912"
    },
    {
      "seq": 5,
      "type": "tool",
      "error": {
        "name": "ApprovalRequired",
        "message": "must not (approve_payout.amount gt 5000) — violated — held for approval d86ec65c-2dc7-4f11-aae3-82fd4e93d8b5"
      },
      "input": {
        "amount": 7494.31,
        "claim_id": "CLM-84784"
      },
      "output": null,
      "run_id": "sbx-claims-triage-209f7a26bd0c",
      "ts_end": "2026-11-06T21:11:04.127Z",
      "span_id": "t3",
      "metadata": {
        "approval_id": "d86ec65c-2dc7-4f11-aae3-82fd4e93d8b5"
      },
      "ts_start": "2026-11-06T21:11:03.999Z",
      "tool_name": "approve_payout",
      "latency_ms": 128,
      "policy_block": {
        "rule": "payout-over-a5000-needs-approval",
        "detail": "must not (approve_payout.amount gt 5000) — violated — held for approval d86ec65c-2dc7-4f11-aae3-82fd4e93d8b5"
      },
      "tool_call_id": "toolu_01PojvyCBSXTxNJaEkzavQkW",
      "parent_span_id": "l2",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": false
      },
      "_hash": "b264fa18e010c0c8e231cdc6be041c73a102fa42850d7f4980975da4fbaf4f35"
    },
    {
      "seq": 6,
      "name": "claims-triage-agent",
      "type": "run",
      "error": {
        "name": "ApprovalRequired",
        "message": "approve_payout is waiting for a person to approve it; the sandbox agent stopped here."
      },
      "input": null,
      "phase": "end",
      "output": {
        "awaiting_approval": "d86ec65c-2dc7-4f11-aae3-82fd4e93d8b5"
      },
      "run_id": "sbx-claims-triage-209f7a26bd0c",
      "status": "error",
      "ts_end": "2026-11-06T21:11:04.127Z",
      "span_id": "re",
      "metadata": {
        "demo_agent": true,
        "sandbox_tools": true
      },
      "ts_start": "2026-11-06T21:11:04.127Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "349da4c5479198a4f7e73734ac090ebbcfc4047ba661816d1b674698c5aec290"
    }
  ]
}