{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "sbx-claims-triage-1bbb56ddaebc",
    "generated_at": "2026-11-07T07:28:26.242Z",
    "event_count": 7,
    "algorithm": "sha256-chain",
    "content_digest": "ebb39d0a3e42ef47310493a69a55589aee8c35150c7c8fccef33a202c86953e9",
    "replay": {
      "cassette_digest": "d8fe9fcb731f4abf61cb87ccd26dc313d80e02ce9f9f18fe97904729a34aa370",
      "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": "ff6c38893ebab75cce67f674c22b0101caf793b6e0dd39013d25788c0d5a59a349b8e8ec317ae90d3657598af70650562f7d411cd9053748438d26ea6b12d809",
      "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-1bbb56ddaebc",
    "name": "claims-triage-agent",
    "status": "success",
    "input": "New claim CLM-39697 on policy PL-95132: laptop stolen from a parked car. Repair estimate A$3845.15.",
    "output": {
      "summary": "I checked the policy status and confirmed it is active, then routed the claim CLM-39697 to the specialist queue."
    },
    "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": "gpt-4o-mini",
      "demo_agent": true,
      "est_cost_usd": 0.000244,
      "sandbox_tools": true,
      "scenario_seed": "claims-triage-agent:2026-11-06:58"
    },
    "step_count": 3,
    "total_tokens": 1409,
    "started_at": "2026-11-06T10:11:12.251+00:00",
    "ended_at": "2026-11-06T10:11:16.185+00:00",
    "actor_type": null,
    "actor_id": null
  },
  "events": [
    {
      "seq": 0,
      "name": "claims-triage-agent",
      "type": "run",
      "error": null,
      "input": "New claim CLM-39697 on policy PL-95132: laptop stolen from a parked car. Repair estimate A$3845.15.",
      "phase": "start",
      "output": null,
      "run_id": "sbx-claims-triage-1bbb56ddaebc",
      "status": "running",
      "ts_end": "2026-11-06T10:11:16.185Z",
      "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": "gpt-4o-mini",
        "demo_agent": true,
        "est_cost_usd": 0.000244,
        "sandbox_tools": true,
        "scenario_seed": "claims-triage-agent:2026-11-06:58"
      },
      "ts_start": "2026-11-06T10:11:12.251Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "3dbdfcaf34c85dee3759f14f37dd1adf9b9261c7f925eba6c9df05a0123417e5"
    },
    {
      "seq": 1,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "gpt-4o-mini",
        "provider": "openai"
      },
      "usage": {
        "input_tokens": 387,
        "total_tokens": 407,
        "output_tokens": 20
      },
      "run_id": "sbx-claims-triage-1bbb56ddaebc",
      "ts_end": "2026-11-06T10:11:13.397Z",
      "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-39697 on policy PL-95132: laptop stolen from a parked car. Repair estimate A$3845.15."
          }
        ]
      },
      "span_id": "l1",
      "response": {
        "text": null,
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "policy_id": "PL-95132"
            },
            "tool_name": "check_policy_status",
            "tool_call_id": "call_CEfwjSuzKDqOQ7pP4Xbe1Ko2"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-06T10:11:12.251Z",
      "latency_ms": 1146,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "3e8aa8bc14ed79ef90aedf66994cc71d8b5dd645ff774541c4edb7e23fe0cb64"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "policy_id": "PL-95132"
      },
      "output": {
        "active": true,
        "policy_id": "PL-95132",
        "excess_aud": 1000,
        "claims_last_3y": 3,
        "policyholder_customer_id": 8812
      },
      "run_id": "sbx-claims-triage-1bbb56ddaebc",
      "ts_end": "2026-11-06T10:11:13.510Z",
      "span_id": "t1",
      "ts_start": "2026-11-06T10:11:13.397Z",
      "tool_name": "check_policy_status",
      "latency_ms": 113,
      "tool_call_id": "call_CEfwjSuzKDqOQ7pP4Xbe1Ko2",
      "parent_span_id": "l1",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "fb5659b03703395c36b1d6010053c0f958ecef708a7988f35005473f715c2a60"
    },
    {
      "seq": 3,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "gpt-4o-mini",
        "provider": "openai"
      },
      "usage": {
        "input_tokens": 450,
        "total_tokens": 475,
        "output_tokens": 25
      },
      "run_id": "sbx-claims-triage-1bbb56ddaebc",
      "ts_end": "2026-11-06T10:11:14.923Z",
      "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-39697 on policy PL-95132: laptop stolen from a parked car. Repair estimate A$3845.15."
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "policy_id": "PL-95132"
                },
                "toolName": "check_policy_status",
                "toolCallId": "call_CEfwjSuzKDqOQ7pP4Xbe1Ko2"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "active": true,
                    "policy_id": "PL-95132",
                    "excess_aud": 1000,
                    "claims_last_3y": 3,
                    "policyholder_customer_id": 8812
                  }
                },
                "toolName": "check_policy_status",
                "toolCallId": "call_CEfwjSuzKDqOQ7pP4Xbe1Ko2"
              }
            ]
          }
        ]
      },
      "span_id": "l2",
      "response": {
        "text": null,
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "queue": "specialist",
              "claim_id": "CLM-39697"
            },
            "tool_name": "route_claim",
            "tool_call_id": "call_dzPIblE2lNOFoijuaSgR4P2o"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-06T10:11:13.510Z",
      "latency_ms": 1413,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "72155521f4f132cae00124cebcea4658ac6109d8cb2ea7e03a2e966386d4281c"
    },
    {
      "seq": 4,
      "type": "tool",
      "error": null,
      "input": {
        "queue": "specialist",
        "claim_id": "CLM-39697"
      },
      "output": {
        "queue": "specialist",
        "routed": true,
        "claim_id": "CLM-39697"
      },
      "run_id": "sbx-claims-triage-1bbb56ddaebc",
      "ts_end": "2026-11-06T10:11:14.944Z",
      "span_id": "t2",
      "ts_start": "2026-11-06T10:11:14.923Z",
      "tool_name": "route_claim",
      "latency_ms": 21,
      "tool_call_id": "call_dzPIblE2lNOFoijuaSgR4P2o",
      "parent_span_id": "l2",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "59f8c698d53d968c1ef8e368f5ca4ac516aab7000a7c1a0ff326795d15ba999f"
    },
    {
      "seq": 5,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "gpt-4o-mini",
        "provider": "openai"
      },
      "usage": {
        "input_tokens": 500,
        "total_tokens": 527,
        "output_tokens": 27
      },
      "run_id": "sbx-claims-triage-1bbb56ddaebc",
      "ts_end": "2026-11-06T10:11:16.185Z",
      "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-39697 on policy PL-95132: laptop stolen from a parked car. Repair estimate A$3845.15."
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "policy_id": "PL-95132"
                },
                "toolName": "check_policy_status",
                "toolCallId": "call_CEfwjSuzKDqOQ7pP4Xbe1Ko2"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "active": true,
                    "policy_id": "PL-95132",
                    "excess_aud": 1000,
                    "claims_last_3y": 3,
                    "policyholder_customer_id": 8812
                  }
                },
                "toolName": "check_policy_status",
                "toolCallId": "call_CEfwjSuzKDqOQ7pP4Xbe1Ko2"
              }
            ]
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "queue": "specialist",
                  "claim_id": "CLM-39697"
                },
                "toolName": "route_claim",
                "toolCallId": "call_dzPIblE2lNOFoijuaSgR4P2o"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "queue": "specialist",
                    "routed": true,
                    "claim_id": "CLM-39697"
                  }
                },
                "toolName": "route_claim",
                "toolCallId": "call_dzPIblE2lNOFoijuaSgR4P2o"
              }
            ]
          }
        ]
      },
      "span_id": "l3",
      "response": {
        "text": "I checked the policy status and confirmed it is active, then routed the claim CLM-39697 to the specialist queue.",
        "reasoning": null,
        "tool_calls": [],
        "finish_reason": "stop"
      },
      "ts_start": "2026-11-06T10:11:14.944Z",
      "latency_ms": 1241,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "bc1cc01b0bc1d6f404693276fe318df8f7162bf04781a1e7eba175ebaa909858"
    },
    {
      "seq": 6,
      "name": "claims-triage-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "summary": "I checked the policy status and confirmed it is active, then routed the claim CLM-39697 to the specialist queue."
      },
      "run_id": "sbx-claims-triage-1bbb56ddaebc",
      "status": "success",
      "ts_end": "2026-11-06T10:11:16.185Z",
      "span_id": "re",
      "metadata": {
        "demo_agent": true,
        "sandbox_tools": true
      },
      "ts_start": "2026-11-06T10:11:16.185Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "ebb39d0a3e42ef47310493a69a55589aee8c35150c7c8fccef33a202c86953e9"
    }
  ]
}