{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "sbx-claims-triage-3daf1f3c3eb5",
    "generated_at": "2026-11-07T07:36:19.506Z",
    "event_count": 8,
    "algorithm": "sha256-chain",
    "content_digest": "0ef17b026424ce0f5a9dca0634f6af7197b0e040c85f23f5b432f5e70142f086",
    "replay": {
      "cassette_digest": "70618894281b811d1a92913ec4d194ab7633e94945382202a5d4fad7e19f2810",
      "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": "ac02d8bf42f7b01b15675bf006e3fcc0641619f67dca214c5147a74cc81fdff68242878be7f18afd15ec103b1e78aee6472e37ac6fd77f224f58babde868b703",
      "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-3daf1f3c3eb5",
    "name": "claims-triage-agent",
    "status": "success",
    "input": "New claim CLM-72289 on policy PL-33737: laptop stolen from a parked car. Repair estimate A$807.71.",
    "output": {
      "summary": "Routed claim CLM-72289 to fast-track and approved a payout of A$307.71 (repair estimate A$807.71 less the A$500 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.005014,
      "sandbox_tools": true,
      "scenario_seed": "claims-triage-agent:2026-10-24:10"
    },
    "step_count": 3,
    "total_tokens": 3702,
    "started_at": "2026-10-24T15:10:49.289+00:00",
    "ended_at": "2026-10-24T15:10:54.221+00:00",
    "actor_type": null,
    "actor_id": null
  },
  "events": [
    {
      "seq": 0,
      "name": "claims-triage-agent",
      "type": "run",
      "error": null,
      "input": "New claim CLM-72289 on policy PL-33737: laptop stolen from a parked car. Repair estimate A$807.71.",
      "phase": "start",
      "output": null,
      "run_id": "sbx-claims-triage-3daf1f3c3eb5",
      "status": "running",
      "ts_end": "2026-10-24T15:10:54.221Z",
      "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.005014,
        "sandbox_tools": true,
        "scenario_seed": "claims-triage-agent:2026-10-24:10"
      },
      "ts_start": "2026-10-24T15:10:49.289Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "e9398c75f50f76477982a3637a5394f9a568c9e402bb5621a45ba8d1e39df7e9"
    },
    {
      "seq": 1,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-haiku-4-5",
        "provider": "anthropic"
      },
      "usage": {
        "input_tokens": 940,
        "total_tokens": 1015,
        "output_tokens": 75
      },
      "run_id": "sbx-claims-triage-3daf1f3c3eb5",
      "ts_end": "2026-10-24T15:10:50.639Z",
      "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."
          }
        ],
        "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. 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-72289 on policy PL-33737: laptop stolen from a parked car. Repair estimate A$807.71."
          }
        ]
      },
      "span_id": "l1",
      "response": {
        "text": "I'll check the policy status and then triage this claim.",
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "policy_id": "PL-33737"
            },
            "tool_name": "check_policy_status",
            "tool_call_id": "toolu_01T6FNynJ554jDz9jBVeSg7e"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-10-24T15:10:49.289Z",
      "latency_ms": 1348,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "6082699602022d32862eac4968f6f0a9ba50c7f6736766c80fcf84a98a78e012"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "policy_id": "PL-33737"
      },
      "output": {
        "active": true,
        "policy_id": "PL-33737",
        "excess_aud": 500,
        "claims_last_3y": 4
      },
      "run_id": "sbx-claims-triage-3daf1f3c3eb5",
      "ts_end": "2026-10-24T15:10:50.779Z",
      "span_id": "t1",
      "ts_start": "2026-10-24T15:10:50.639Z",
      "tool_name": "check_policy_status",
      "latency_ms": 140,
      "tool_call_id": "toolu_01T6FNynJ554jDz9jBVeSg7e",
      "parent_span_id": "l1",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "562552ff9126facd5721dee9323e534a4f6a168ff7b67fd775f9645d61006cb9"
    },
    {
      "seq": 3,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-haiku-4-5",
        "provider": "anthropic"
      },
      "usage": {
        "input_tokens": 1057,
        "total_tokens": 1264,
        "output_tokens": 207
      },
      "run_id": "sbx-claims-triage-3daf1f3c3eb5",
      "ts_end": "2026-10-24T15:10:53.032Z",
      "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."
          }
        ],
        "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. 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-72289 on policy PL-33737: laptop stolen from a parked car. Repair estimate A$807.71."
          },
          {
            "role": "assistant",
            "content": [
              {
                "text": "I'll check the policy status and then triage this claim.",
                "type": "text"
              },
              {
                "type": "tool-call",
                "input": {
                  "policy_id": "PL-33737"
                },
                "toolName": "check_policy_status",
                "toolCallId": "toolu_01T6FNynJ554jDz9jBVeSg7e"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "active": true,
                    "policy_id": "PL-33737",
                    "excess_aud": 500,
                    "claims_last_3y": 4
                  }
                },
                "toolName": "check_policy_status",
                "toolCallId": "toolu_01T6FNynJ554jDz9jBVeSg7e"
              }
            ]
          }
        ]
      },
      "span_id": "l2",
      "response": {
        "text": "Now I'll route this claim and approve the payout. The policy is active with a $500 excess. The claim is for $807.71, so the net payout is $307.71. This is a straightforward theft claim with a clear repair estimate, so it qualifies for fast-track processing.",
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "queue": "fast_track",
              "claim_id": "CLM-72289"
            },
            "tool_name": "route_claim",
            "tool_call_id": "toolu_01KU4nPvc5ukZ9GNP6dax2mT"
          },
          {
            "input": {
              "amount": 307.71,
              "claim_id": "CLM-72289"
            },
            "tool_name": "approve_payout",
            "tool_call_id": "toolu_011ykKVUgqVEpg4iANG4kSbM"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-10-24T15:10:50.779Z",
      "latency_ms": 2253,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "025abb98962d217b53db01c8761535e46d3828f857fef2fe1d3e6e63e49ebbf6"
    },
    {
      "seq": 4,
      "type": "tool",
      "error": null,
      "input": {
        "queue": "fast_track",
        "claim_id": "CLM-72289"
      },
      "output": {
        "queue": "fast_track",
        "routed": true,
        "claim_id": "CLM-72289"
      },
      "run_id": "sbx-claims-triage-3daf1f3c3eb5",
      "ts_end": "2026-10-24T15:10:53.073Z",
      "span_id": "t2",
      "ts_start": "2026-10-24T15:10:53.032Z",
      "tool_name": "route_claim",
      "latency_ms": 41,
      "tool_call_id": "toolu_01KU4nPvc5ukZ9GNP6dax2mT",
      "parent_span_id": "l2",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "4547fd399868c518508ca0629eadf01e6dd48962075d16bf9bfc3fcb66018b71"
    },
    {
      "seq": 5,
      "type": "tool",
      "error": null,
      "input": {
        "amount": 307.71,
        "claim_id": "CLM-72289"
      },
      "output": {
        "sandbox": true,
        "approved": true,
        "claim_id": "CLM-72289",
        "amount_aud": 307.71
      },
      "run_id": "sbx-claims-triage-3daf1f3c3eb5",
      "ts_end": "2026-10-24T15:10:53.120Z",
      "span_id": "t3",
      "ts_start": "2026-10-24T15:10:53.073Z",
      "tool_name": "approve_payout",
      "latency_ms": 47,
      "tool_call_id": "toolu_011ykKVUgqVEpg4iANG4kSbM",
      "parent_span_id": "l2",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "00a4c4dcdb102de6a17121348865d06fce104e9a8a38861480501769e22a254b"
    },
    {
      "seq": 6,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-haiku-4-5",
        "provider": "anthropic"
      },
      "usage": {
        "input_tokens": 1377,
        "total_tokens": 1423,
        "output_tokens": 46
      },
      "run_id": "sbx-claims-triage-3daf1f3c3eb5",
      "ts_end": "2026-10-24T15:10:54.221Z",
      "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."
          }
        ],
        "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. 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-72289 on policy PL-33737: laptop stolen from a parked car. Repair estimate A$807.71."
          },
          {
            "role": "assistant",
            "content": [
              {
                "text": "I'll check the policy status and then triage this claim.",
                "type": "text"
              },
              {
                "type": "tool-call",
                "input": {
                  "policy_id": "PL-33737"
                },
                "toolName": "check_policy_status",
                "toolCallId": "toolu_01T6FNynJ554jDz9jBVeSg7e"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "active": true,
                    "policy_id": "PL-33737",
                    "excess_aud": 500,
                    "claims_last_3y": 4
                  }
                },
                "toolName": "check_policy_status",
                "toolCallId": "toolu_01T6FNynJ554jDz9jBVeSg7e"
              }
            ]
          },
          {
            "role": "assistant",
            "content": [
              {
                "text": "Now I'll route this claim and approve the payout. The policy is active with a $500 excess. The claim is for $807.71, so the net payout is $307.71. This is a straightforward theft claim with a clear repair estimate, so it qualifies for fast-track processing.",
                "type": "text"
              },
              {
                "type": "tool-call",
                "input": {
                  "queue": "fast_track",
                  "claim_id": "CLM-72289"
                },
                "toolName": "route_claim",
                "toolCallId": "toolu_01KU4nPvc5ukZ9GNP6dax2mT"
              },
              {
                "type": "tool-call",
                "input": {
                  "amount": 307.71,
                  "claim_id": "CLM-72289"
                },
                "toolName": "approve_payout",
                "toolCallId": "toolu_011ykKVUgqVEpg4iANG4kSbM"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "queue": "fast_track",
                    "routed": true,
                    "claim_id": "CLM-72289"
                  }
                },
                "toolName": "route_claim",
                "toolCallId": "toolu_01KU4nPvc5ukZ9GNP6dax2mT"
              },
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "sandbox": true,
                    "approved": true,
                    "claim_id": "CLM-72289",
                    "amount_aud": 307.71
                  }
                },
                "toolName": "approve_payout",
                "toolCallId": "toolu_011ykKVUgqVEpg4iANG4kSbM"
              }
            ]
          }
        ]
      },
      "span_id": "l3",
      "response": {
        "text": "Routed claim CLM-72289 to fast-track and approved a payout of A$307.71 (repair estimate A$807.71 less the A$500 excess).",
        "reasoning": null,
        "tool_calls": [],
        "finish_reason": "stop"
      },
      "ts_start": "2026-10-24T15:10:53.121Z",
      "latency_ms": 1100,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "7e382575650d972de8075a47df6240c8341173fdfc1ed3b82b63fc9de6e559fd"
    },
    {
      "seq": 7,
      "name": "claims-triage-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "summary": "Routed claim CLM-72289 to fast-track and approved a payout of A$307.71 (repair estimate A$807.71 less the A$500 excess)."
      },
      "run_id": "sbx-claims-triage-3daf1f3c3eb5",
      "status": "success",
      "ts_end": "2026-10-24T15:10:54.221Z",
      "span_id": "re",
      "metadata": {
        "demo_agent": true,
        "sandbox_tools": true
      },
      "ts_start": "2026-10-24T15:10:54.221Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "0ef17b026424ce0f5a9dca0634f6af7197b0e040c85f23f5b432f5e70142f086"
    }
  ]
}