{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "sbx-claims-triage-dfbaa44d1fe0",
    "generated_at": "2026-11-07T07:36:15.048Z",
    "event_count": 8,
    "algorithm": "sha256-chain",
    "content_digest": "ecf0491262e3ae25e20c50e8e5b479344c88b36baa86177bf9828539aa16cada",
    "replay": {
      "cassette_digest": "2e8706262c39bb8d1e6f8daf52249ca935e697dd81a74e8df6a30afa9ba2ebb6",
      "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": "bd3516451c9723b122e6559626eacee694d8f8a12de5fefdba987d69e0f67f581a65f821903009f21deb7bcca6692e4f3d1129c1eb78c4c2e67e9a99e6ca080d",
      "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-dfbaa44d1fe0",
    "name": "claims-triage-agent",
    "status": "error",
    "input": "New claim CLM-29776 on policy PL-90029: windscreen cracked by a stone on the freeway. Repair estimate A$6185.42.",
    "output": {
      "awaiting_approval": "415023a1-4783-43a9-baa3-e3e9be20a256"
    },
    "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": "gpt-4o-mini",
      "demo_agent": true,
      "est_cost_usd": 0.000246,
      "sandbox_tools": true,
      "scenario_seed": "claims-triage-agent:2026-11-04:26"
    },
    "step_count": 3,
    "total_tokens": 1418,
    "started_at": "2026-11-04T05:10:48.719+00:00",
    "ended_at": "2026-11-04T05:10:54.005+00:00",
    "actor_type": null,
    "actor_id": null
  },
  "events": [
    {
      "seq": 0,
      "name": "claims-triage-agent",
      "type": "run",
      "error": null,
      "input": "New claim CLM-29776 on policy PL-90029: windscreen cracked by a stone on the freeway. Repair estimate A$6185.42.",
      "phase": "start",
      "output": null,
      "run_id": "sbx-claims-triage-dfbaa44d1fe0",
      "status": "running",
      "ts_end": "2026-11-04T05:10:54.005Z",
      "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.000246,
        "sandbox_tools": true,
        "scenario_seed": "claims-triage-agent:2026-11-04:26"
      },
      "ts_start": "2026-11-04T05:10:48.719Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "3897fb5d01284b2fff951e44b6fb92c1715ed46f9be1956dc7fa9f1c2e446b59"
    },
    {
      "seq": 1,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "gpt-4o-mini",
        "provider": "openai"
      },
      "usage": {
        "input_tokens": 390,
        "total_tokens": 410,
        "output_tokens": 20
      },
      "run_id": "sbx-claims-triage-dfbaa44d1fe0",
      "ts_end": "2026-11-04T05:10:50.874Z",
      "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-29776 on policy PL-90029: windscreen cracked by a stone on the freeway. Repair estimate A$6185.42."
          }
        ]
      },
      "span_id": "l1",
      "response": {
        "text": null,
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "policy_id": "PL-90029"
            },
            "tool_name": "check_policy_status",
            "tool_call_id": "call_R5YxTWkG8y76YzBZpUZGIzbt"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-04T05:10:48.719Z",
      "latency_ms": 2154,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "b4177f0de6494be0aacb4d27779bbd8c4d37e43dd7975f78454113f9325555f4"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "policy_id": "PL-90029"
      },
      "output": {
        "active": true,
        "policy_id": "PL-90029",
        "excess_aud": 250,
        "claims_last_3y": 2,
        "policyholder_customer_id": 4930
      },
      "run_id": "sbx-claims-triage-dfbaa44d1fe0",
      "ts_end": "2026-11-04T05:10:51.013Z",
      "span_id": "t1",
      "ts_start": "2026-11-04T05:10:50.874Z",
      "tool_name": "check_policy_status",
      "latency_ms": 139,
      "tool_call_id": "call_R5YxTWkG8y76YzBZpUZGIzbt",
      "parent_span_id": "l1",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "489b6b35ed42318aab3003c666c69001f241bb8d4283d0057583e09821e2a9b2"
    },
    {
      "seq": 3,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "gpt-4o-mini",
        "provider": "openai"
      },
      "usage": {
        "input_tokens": 452,
        "total_tokens": 477,
        "output_tokens": 25
      },
      "run_id": "sbx-claims-triage-dfbaa44d1fe0",
      "ts_end": "2026-11-04T05:10:52.150Z",
      "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-29776 on policy PL-90029: windscreen cracked by a stone on the freeway. Repair estimate A$6185.42."
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "policy_id": "PL-90029"
                },
                "toolName": "check_policy_status",
                "toolCallId": "call_R5YxTWkG8y76YzBZpUZGIzbt"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "active": true,
                    "policy_id": "PL-90029",
                    "excess_aud": 250,
                    "claims_last_3y": 2,
                    "policyholder_customer_id": 4930
                  }
                },
                "toolName": "check_policy_status",
                "toolCallId": "call_R5YxTWkG8y76YzBZpUZGIzbt"
              }
            ]
          }
        ]
      },
      "span_id": "l2",
      "response": {
        "text": null,
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "queue": "fast_track",
              "claim_id": "CLM-29776"
            },
            "tool_name": "route_claim",
            "tool_call_id": "call_dNRIwbuunqp6wCEjZ0A5KjgP"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-04T05:10:51.013Z",
      "latency_ms": 1137,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "67cc241c38145ac17499dd6828b55825202d16dbfd8f10d08bba6bcd0627d911"
    },
    {
      "seq": 4,
      "type": "tool",
      "error": null,
      "input": {
        "queue": "fast_track",
        "claim_id": "CLM-29776"
      },
      "output": {
        "queue": "fast_track",
        "routed": true,
        "claim_id": "CLM-29776"
      },
      "run_id": "sbx-claims-triage-dfbaa44d1fe0",
      "ts_end": "2026-11-04T05:10:52.180Z",
      "span_id": "t2",
      "ts_start": "2026-11-04T05:10:52.150Z",
      "tool_name": "route_claim",
      "latency_ms": 30,
      "tool_call_id": "call_dNRIwbuunqp6wCEjZ0A5KjgP",
      "parent_span_id": "l2",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "8167802936f535d07ee18f01947b9ad0de53f242247d0c6a5dc8cdde1e1430c3"
    },
    {
      "seq": 5,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "gpt-4o-mini",
        "provider": "openai"
      },
      "usage": {
        "input_tokens": 502,
        "total_tokens": 531,
        "output_tokens": 29
      },
      "run_id": "sbx-claims-triage-dfbaa44d1fe0",
      "ts_end": "2026-11-04T05:10:53.847Z",
      "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-29776 on policy PL-90029: windscreen cracked by a stone on the freeway. Repair estimate A$6185.42."
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "policy_id": "PL-90029"
                },
                "toolName": "check_policy_status",
                "toolCallId": "call_R5YxTWkG8y76YzBZpUZGIzbt"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "active": true,
                    "policy_id": "PL-90029",
                    "excess_aud": 250,
                    "claims_last_3y": 2,
                    "policyholder_customer_id": 4930
                  }
                },
                "toolName": "check_policy_status",
                "toolCallId": "call_R5YxTWkG8y76YzBZpUZGIzbt"
              }
            ]
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "queue": "fast_track",
                  "claim_id": "CLM-29776"
                },
                "toolName": "route_claim",
                "toolCallId": "call_dNRIwbuunqp6wCEjZ0A5KjgP"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "queue": "fast_track",
                    "routed": true,
                    "claim_id": "CLM-29776"
                  }
                },
                "toolName": "route_claim",
                "toolCallId": "call_dNRIwbuunqp6wCEjZ0A5KjgP"
              }
            ]
          }
        ]
      },
      "span_id": "l3",
      "response": {
        "text": null,
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "amount": 5935.42,
              "claim_id": "CLM-29776"
            },
            "tool_name": "approve_payout",
            "tool_call_id": "call_ugmKwOjMSEu07zTQWWeal4Wl"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-04T05:10:52.180Z",
      "latency_ms": 1666,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "fd54c9d3464a3317c4f6bcec8d162acb44d108f8594da74c6e3bc5e5608d4186"
    },
    {
      "seq": 6,
      "type": "tool",
      "error": {
        "name": "ApprovalRequired",
        "message": "must not (approve_payout.amount gt 5000) — violated — held for approval 415023a1-4783-43a9-baa3-e3e9be20a256"
      },
      "input": {
        "amount": 5935.42,
        "claim_id": "CLM-29776"
      },
      "output": null,
      "run_id": "sbx-claims-triage-dfbaa44d1fe0",
      "ts_end": "2026-11-04T05:10:54.005Z",
      "span_id": "t3",
      "metadata": {
        "approval_id": "415023a1-4783-43a9-baa3-e3e9be20a256"
      },
      "ts_start": "2026-11-04T05:10:53.847Z",
      "tool_name": "approve_payout",
      "latency_ms": 158,
      "policy_block": {
        "rule": "payout-over-a5000-needs-approval",
        "detail": "must not (approve_payout.amount gt 5000) — violated — held for approval 415023a1-4783-43a9-baa3-e3e9be20a256"
      },
      "tool_call_id": "call_ugmKwOjMSEu07zTQWWeal4Wl",
      "parent_span_id": "l3",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": false
      },
      "_hash": "8f03aedc074ad9aefe7ea7f4ec1ed35e3a38443a6a9025bb4da01a3d6cb12f36"
    },
    {
      "seq": 7,
      "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": "415023a1-4783-43a9-baa3-e3e9be20a256"
      },
      "run_id": "sbx-claims-triage-dfbaa44d1fe0",
      "status": "error",
      "ts_end": "2026-11-04T05:10:54.005Z",
      "span_id": "re",
      "metadata": {
        "demo_agent": true,
        "sandbox_tools": true
      },
      "ts_start": "2026-11-04T05:10:54.005Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "ecf0491262e3ae25e20c50e8e5b479344c88b36baa86177bf9828539aa16cada"
    }
  ]
}