{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "sbx-claims-triage-0a6d796b7fb2",
    "generated_at": "2026-11-07T07:28:30.103Z",
    "event_count": 8,
    "algorithm": "sha256-chain",
    "content_digest": "00b6f1b98611e4dbeebd5720d38fd564548c2e9838017af281476a8ae593104a",
    "replay": {
      "cassette_digest": "51c98b28cefb2371877c409a0b4f759d86acb5c12b3c81ee3ced4d3e78cf031c",
      "entry_count": 6,
      "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": "9003339820aaafca584a488a5a47ccc0a69f79638775e8f64a1495fa28635de6a83bb24e2debf4ecb66a652ae73ca5cf7511467545c1791344b9bf92fc21c600",
      "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-0a6d796b7fb2",
    "name": "claims-triage-agent",
    "status": "success",
    "input": "New claim CLM-98598 on policy PL-42680: rear-end collision at low speed, bumper and tail-light damage. Repair estimate A$2095.81.",
    "output": {
      "summary": "Routed CLM-98598 to fast-track and approved a payout of A$1,845.81 (repair estimate of A$2,095.81 less the A$250 excess)."
    },
    "error": null,
    "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.005643,
      "sandbox_tools": true,
      "scenario_seed": "claims-triage-agent:2026-11-06:74"
    },
    "step_count": 3,
    "total_tokens": 4371,
    "started_at": "2026-11-06T14:10:48.658+00:00",
    "ended_at": "2026-11-06T14:10:53.328+00:00",
    "actor_type": null,
    "actor_id": null
  },
  "events": [
    {
      "seq": 0,
      "name": "claims-triage-agent",
      "type": "run",
      "error": null,
      "input": "New claim CLM-98598 on policy PL-42680: rear-end collision at low speed, bumper and tail-light damage. Repair estimate A$2095.81.",
      "phase": "start",
      "output": null,
      "run_id": "sbx-claims-triage-0a6d796b7fb2",
      "status": "running",
      "ts_end": "2026-11-06T14:10:53.328Z",
      "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.005643,
        "sandbox_tools": true,
        "scenario_seed": "claims-triage-agent:2026-11-06:74"
      },
      "ts_start": "2026-11-06T14:10:48.658Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "7c7c488cdcb75c98bec7305ebe3572182ee693a3445b4ad1590d58e4f8f9dd13"
    },
    {
      "seq": 1,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-haiku-4-5",
        "provider": "anthropic"
      },
      "usage": {
        "input_tokens": 1163,
        "total_tokens": 1239,
        "output_tokens": 76
      },
      "run_id": "sbx-claims-triage-0a6d796b7fb2",
      "ts_end": "2026-11-06T14:10:49.917Z",
      "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-98598 on policy PL-42680: rear-end collision at low speed, bumper and tail-light damage. Repair estimate A$2095.81."
          }
        ]
      },
      "span_id": "l1",
      "response": {
        "text": "I'll check the policy status and then route this claim appropriately.",
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "policy_id": "PL-42680"
            },
            "tool_name": "check_policy_status",
            "tool_call_id": "toolu_01UYqZjgKzk2hFQVDYsH5xt2"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-06T14:10:48.658Z",
      "latency_ms": 1259,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "eeaf0fc22eca28bb7086089a647fbe07ffb2ecb568468badca5e8c675aadfe4a"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "policy_id": "PL-42680"
      },
      "output": {
        "active": true,
        "policy_id": "PL-42680",
        "excess_aud": 250,
        "claims_last_3y": 3,
        "policyholder_customer_id": 5390
      },
      "run_id": "sbx-claims-triage-0a6d796b7fb2",
      "ts_end": "2026-11-06T14:10:50.044Z",
      "span_id": "t1",
      "ts_start": "2026-11-06T14:10:49.918Z",
      "tool_name": "check_policy_status",
      "latency_ms": 126,
      "tool_call_id": "toolu_01UYqZjgKzk2hFQVDYsH5xt2",
      "parent_span_id": "l1",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "80d01d7ed9273fd8a1185aac8d52e976b2149cb81831d5df0ba79ba8717cc2e5"
    },
    {
      "seq": 3,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-haiku-4-5",
        "provider": "anthropic"
      },
      "usage": {
        "input_tokens": 1292,
        "total_tokens": 1484,
        "output_tokens": 192
      },
      "run_id": "sbx-claims-triage-0a6d796b7fb2",
      "ts_end": "2026-11-06T14:10:52.209Z",
      "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-98598 on policy PL-42680: rear-end collision at low speed, bumper and tail-light damage. Repair estimate A$2095.81."
          },
          {
            "role": "assistant",
            "content": [
              {
                "text": "I'll check the policy status and then route this claim appropriately.",
                "type": "text"
              },
              {
                "type": "tool-call",
                "input": {
                  "policy_id": "PL-42680"
                },
                "toolName": "check_policy_status",
                "toolCallId": "toolu_01UYqZjgKzk2hFQVDYsH5xt2"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "active": true,
                    "policy_id": "PL-42680",
                    "excess_aud": 250,
                    "claims_last_3y": 3,
                    "policyholder_customer_id": 5390
                  }
                },
                "toolName": "check_policy_status",
                "toolCallId": "toolu_01UYqZjgKzk2hFQVDYsH5xt2"
              }
            ]
          }
        ]
      },
      "span_id": "l2",
      "response": {
        "text": "The policy is active with a A$250 excess. This is a straightforward low-speed collision with minor damage and a clear repair estimate—a good candidate for fast-track processing. I'll approve the payout net of the excess.",
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "queue": "fast_track",
              "claim_id": "CLM-98598"
            },
            "tool_name": "route_claim",
            "tool_call_id": "toolu_016ck1uGv3fDcxRjT7pxbX9F"
          },
          {
            "input": {
              "amount": 1845.81,
              "claim_id": "CLM-98598"
            },
            "tool_name": "approve_payout",
            "tool_call_id": "toolu_01KD6ba4ERGNGLshri6yHmtz"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-06T14:10:50.044Z",
      "latency_ms": 2164,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "25a2c8ef69f14e9d383c8afbdace57922ea14decc41de037f20a308af1d2bd43"
    },
    {
      "seq": 4,
      "type": "tool",
      "error": null,
      "input": {
        "queue": "fast_track",
        "claim_id": "CLM-98598"
      },
      "output": {
        "queue": "fast_track",
        "routed": true,
        "claim_id": "CLM-98598"
      },
      "run_id": "sbx-claims-triage-0a6d796b7fb2",
      "ts_end": "2026-11-06T14:10:52.241Z",
      "span_id": "t2",
      "ts_start": "2026-11-06T14:10:52.209Z",
      "tool_name": "route_claim",
      "latency_ms": 32,
      "tool_call_id": "toolu_016ck1uGv3fDcxRjT7pxbX9F",
      "parent_span_id": "l2",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "4c844ea85e408161aa39bbfaf4d3a231a64381b3e59e7a259f947715d29153c3"
    },
    {
      "seq": 5,
      "type": "tool",
      "error": null,
      "input": {
        "amount": 1845.81,
        "claim_id": "CLM-98598"
      },
      "output": {
        "sandbox": true,
        "approved": true,
        "claim_id": "CLM-98598",
        "amount_aud": 1845.81
      },
      "run_id": "sbx-claims-triage-0a6d796b7fb2",
      "ts_end": "2026-11-06T14:10:52.266Z",
      "span_id": "t3",
      "ts_start": "2026-11-06T14:10:52.241Z",
      "tool_name": "approve_payout",
      "latency_ms": 25,
      "tool_call_id": "toolu_01KD6ba4ERGNGLshri6yHmtz",
      "parent_span_id": "l2",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "6b64c866a6c2f28c8786e7b27557658b8aa823a423ff77082aa04a30d5463336"
    },
    {
      "seq": 6,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-haiku-4-5",
        "provider": "anthropic"
      },
      "usage": {
        "input_tokens": 1598,
        "total_tokens": 1648,
        "output_tokens": 50
      },
      "run_id": "sbx-claims-triage-0a6d796b7fb2",
      "ts_end": "2026-11-06T14:10:53.328Z",
      "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-98598 on policy PL-42680: rear-end collision at low speed, bumper and tail-light damage. Repair estimate A$2095.81."
          },
          {
            "role": "assistant",
            "content": [
              {
                "text": "I'll check the policy status and then route this claim appropriately.",
                "type": "text"
              },
              {
                "type": "tool-call",
                "input": {
                  "policy_id": "PL-42680"
                },
                "toolName": "check_policy_status",
                "toolCallId": "toolu_01UYqZjgKzk2hFQVDYsH5xt2"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "active": true,
                    "policy_id": "PL-42680",
                    "excess_aud": 250,
                    "claims_last_3y": 3,
                    "policyholder_customer_id": 5390
                  }
                },
                "toolName": "check_policy_status",
                "toolCallId": "toolu_01UYqZjgKzk2hFQVDYsH5xt2"
              }
            ]
          },
          {
            "role": "assistant",
            "content": [
              {
                "text": "The policy is active with a A$250 excess. This is a straightforward low-speed collision with minor damage and a clear repair estimate—a good candidate for fast-track processing. I'll approve the payout net of the excess.",
                "type": "text"
              },
              {
                "type": "tool-call",
                "input": {
                  "queue": "fast_track",
                  "claim_id": "CLM-98598"
                },
                "toolName": "route_claim",
                "toolCallId": "toolu_016ck1uGv3fDcxRjT7pxbX9F"
              },
              {
                "type": "tool-call",
                "input": {
                  "amount": 1845.81,
                  "claim_id": "CLM-98598"
                },
                "toolName": "approve_payout",
                "toolCallId": "toolu_01KD6ba4ERGNGLshri6yHmtz"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "queue": "fast_track",
                    "routed": true,
                    "claim_id": "CLM-98598"
                  }
                },
                "toolName": "route_claim",
                "toolCallId": "toolu_016ck1uGv3fDcxRjT7pxbX9F"
              },
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "sandbox": true,
                    "approved": true,
                    "claim_id": "CLM-98598",
                    "amount_aud": 1845.81
                  }
                },
                "toolName": "approve_payout",
                "toolCallId": "toolu_01KD6ba4ERGNGLshri6yHmtz"
              }
            ]
          }
        ]
      },
      "span_id": "l3",
      "response": {
        "text": "Routed CLM-98598 to fast-track and approved a payout of A$1,845.81 (repair estimate of A$2,095.81 less the A$250 excess).",
        "reasoning": null,
        "tool_calls": [],
        "finish_reason": "stop"
      },
      "ts_start": "2026-11-06T14:10:52.266Z",
      "latency_ms": 1062,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "c981c46b0994a1863bafa592795857139d003e06633c80e2b213ae2c46dd22ff"
    },
    {
      "seq": 7,
      "name": "claims-triage-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "summary": "Routed CLM-98598 to fast-track and approved a payout of A$1,845.81 (repair estimate of A$2,095.81 less the A$250 excess)."
      },
      "run_id": "sbx-claims-triage-0a6d796b7fb2",
      "status": "success",
      "ts_end": "2026-11-06T14:10:53.328Z",
      "span_id": "re",
      "metadata": {
        "demo_agent": true,
        "sandbox_tools": true
      },
      "ts_start": "2026-11-06T14:10:53.328Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "00b6f1b98611e4dbeebd5720d38fd564548c2e9838017af281476a8ae593104a"
    }
  ]
}