{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "sbx-claims-triage-daa8889f2647",
    "generated_at": "2026-11-07T07:28:30.149Z",
    "event_count": 7,
    "algorithm": "sha256-chain",
    "content_digest": "1a81c3bda41c42c7e9ead0a2de73b6ac34af0ba9089e7a2d17e7c46141f27f55",
    "replay": {
      "cassette_digest": "b7dd9d05a71b1db3b9cbf81213fac227272463d09f609108a9cce60f4d3d6c1e",
      "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": "64e5f8b0b004570c6c13b22f9611295b91eff2bf6192fae3295ddb6bdfc177d2353b3685c8a6f1688e01f874f55d43a6609bc52e47bc915d22d2e513c5b4f20f",
      "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-daa8889f2647",
    "name": "claims-triage-agent",
    "status": "success",
    "input": "New claim CLM-32812 on policy PL-38811: laptop stolen from a parked car. Repair estimate A$6579.88.",
    "output": {
      "summary": "Routed claim CLM-32812 (A$6579.88 laptop theft) to the specialist queue as the policy is active but this claim requires investigation into the theft circumstances."
    },
    "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.005142,
      "sandbox_tools": true,
      "scenario_seed": "claims-triage-agent:2026-11-07:26"
    },
    "step_count": 3,
    "total_tokens": 4138,
    "started_at": "2026-11-07T04:11:09.857+00:00",
    "ended_at": "2026-11-07T04:11:13.763+00:00",
    "actor_type": null,
    "actor_id": null
  },
  "events": [
    {
      "seq": 0,
      "name": "claims-triage-agent",
      "type": "run",
      "error": null,
      "input": "New claim CLM-32812 on policy PL-38811: laptop stolen from a parked car. Repair estimate A$6579.88.",
      "phase": "start",
      "output": null,
      "run_id": "sbx-claims-triage-daa8889f2647",
      "status": "running",
      "ts_end": "2026-11-07T04:11:13.763Z",
      "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.005142,
        "sandbox_tools": true,
        "scenario_seed": "claims-triage-agent:2026-11-07:26"
      },
      "ts_start": "2026-11-07T04:11:09.857Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "7632bbf7baaab36a9f9f7f81b4d0775065f7c5ef160ec59ab236e8ce018bdf6f"
    },
    {
      "seq": 1,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-haiku-4-5",
        "provider": "anthropic"
      },
      "usage": {
        "input_tokens": 1155,
        "total_tokens": 1231,
        "output_tokens": 76
      },
      "run_id": "sbx-claims-triage-daa8889f2647",
      "ts_end": "2026-11-07T04:11:10.921Z",
      "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-32812 on policy PL-38811: laptop stolen from a parked car. Repair estimate A$6579.88."
          }
        ]
      },
      "span_id": "l1",
      "response": {
        "text": "I'll check the policy status first, then triage this claim.",
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "policy_id": "PL-38811"
            },
            "tool_name": "check_policy_status",
            "tool_call_id": "toolu_01Dkk8MA5jNiPYbDxBgkvYsF"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-07T04:11:09.857Z",
      "latency_ms": 1064,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "0c9691f4fea3a707afa19e9d4f505296ec8567ae1d4a32e7737caa9db41f137a"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "policy_id": "PL-38811"
      },
      "output": {
        "active": true,
        "policy_id": "PL-38811",
        "excess_aud": 500,
        "claims_last_3y": 3,
        "policyholder_customer_id": 9863
      },
      "run_id": "sbx-claims-triage-daa8889f2647",
      "ts_end": "2026-11-07T04:11:11.011Z",
      "span_id": "t1",
      "ts_start": "2026-11-07T04:11:10.921Z",
      "tool_name": "check_policy_status",
      "latency_ms": 90,
      "tool_call_id": "toolu_01Dkk8MA5jNiPYbDxBgkvYsF",
      "parent_span_id": "l1",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "26e432fdedadc5a5f7aa62e622cd26a220261897821d5c45ab5c6f7065624568"
    },
    {
      "seq": 3,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-haiku-4-5",
        "provider": "anthropic"
      },
      "usage": {
        "input_tokens": 1284,
        "total_tokens": 1416,
        "output_tokens": 132
      },
      "run_id": "sbx-claims-triage-daa8889f2647",
      "ts_end": "2026-11-07T04:11:12.765Z",
      "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-32812 on policy PL-38811: laptop stolen from a parked car. Repair estimate A$6579.88."
          },
          {
            "role": "assistant",
            "content": [
              {
                "text": "I'll check the policy status first, then triage this claim.",
                "type": "text"
              },
              {
                "type": "tool-call",
                "input": {
                  "policy_id": "PL-38811"
                },
                "toolName": "check_policy_status",
                "toolCallId": "toolu_01Dkk8MA5jNiPYbDxBgkvYsF"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "active": true,
                    "policy_id": "PL-38811",
                    "excess_aud": 500,
                    "claims_last_3y": 3,
                    "policyholder_customer_id": 9863
                  }
                },
                "toolName": "check_policy_status",
                "toolCallId": "toolu_01Dkk8MA5jNiPYbDxBgkvYsF"
              }
            ]
          }
        ]
      },
      "span_id": "l2",
      "response": {
        "text": "The policy is active with a A$500 excess. This claim involves theft from a vehicle, which requires investigation into the circumstances (locked car, police report, etc.) and carries some fraud risk. I'll route it to the specialist queue rather than fast-track.",
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "queue": "specialist",
              "claim_id": "CLM-32812"
            },
            "tool_name": "route_claim",
            "tool_call_id": "toolu_01PmPC5eQyDL1jaPNhSrR7ap"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-07T04:11:11.011Z",
      "latency_ms": 1754,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "e8dbd677cdbe3495bc10ff344baf344db589f34cb2d8bd8bf5951a6ff11ad8d5"
    },
    {
      "seq": 4,
      "type": "tool",
      "error": null,
      "input": {
        "queue": "specialist",
        "claim_id": "CLM-32812"
      },
      "output": {
        "queue": "specialist",
        "routed": true,
        "claim_id": "CLM-32812"
      },
      "run_id": "sbx-claims-triage-daa8889f2647",
      "ts_end": "2026-11-07T04:11:12.810Z",
      "span_id": "t2",
      "ts_start": "2026-11-07T04:11:12.765Z",
      "tool_name": "route_claim",
      "latency_ms": 45,
      "tool_call_id": "toolu_01PmPC5eQyDL1jaPNhSrR7ap",
      "parent_span_id": "l2",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "13879c8a48c2a0395fae4b9aaacdaf03909428fc7d5de7b557e87e0bbe26faed"
    },
    {
      "seq": 5,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-haiku-4-5",
        "provider": "anthropic"
      },
      "usage": {
        "input_tokens": 1448,
        "total_tokens": 1491,
        "output_tokens": 43
      },
      "run_id": "sbx-claims-triage-daa8889f2647",
      "ts_end": "2026-11-07T04:11:13.763Z",
      "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-32812 on policy PL-38811: laptop stolen from a parked car. Repair estimate A$6579.88."
          },
          {
            "role": "assistant",
            "content": [
              {
                "text": "I'll check the policy status first, then triage this claim.",
                "type": "text"
              },
              {
                "type": "tool-call",
                "input": {
                  "policy_id": "PL-38811"
                },
                "toolName": "check_policy_status",
                "toolCallId": "toolu_01Dkk8MA5jNiPYbDxBgkvYsF"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "active": true,
                    "policy_id": "PL-38811",
                    "excess_aud": 500,
                    "claims_last_3y": 3,
                    "policyholder_customer_id": 9863
                  }
                },
                "toolName": "check_policy_status",
                "toolCallId": "toolu_01Dkk8MA5jNiPYbDxBgkvYsF"
              }
            ]
          },
          {
            "role": "assistant",
            "content": [
              {
                "text": "The policy is active with a A$500 excess. This claim involves theft from a vehicle, which requires investigation into the circumstances (locked car, police report, etc.) and carries some fraud risk. I'll route it to the specialist queue rather than fast-track.",
                "type": "text"
              },
              {
                "type": "tool-call",
                "input": {
                  "queue": "specialist",
                  "claim_id": "CLM-32812"
                },
                "toolName": "route_claim",
                "toolCallId": "toolu_01PmPC5eQyDL1jaPNhSrR7ap"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "queue": "specialist",
                    "routed": true,
                    "claim_id": "CLM-32812"
                  }
                },
                "toolName": "route_claim",
                "toolCallId": "toolu_01PmPC5eQyDL1jaPNhSrR7ap"
              }
            ]
          }
        ]
      },
      "span_id": "l3",
      "response": {
        "text": "Routed claim CLM-32812 (A$6579.88 laptop theft) to the specialist queue as the policy is active but this claim requires investigation into the theft circumstances.",
        "reasoning": null,
        "tool_calls": [],
        "finish_reason": "stop"
      },
      "ts_start": "2026-11-07T04:11:12.810Z",
      "latency_ms": 953,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "9ef11f4b20a523c678a198e922e580686b9ba2dd22b7b3e43317a81114239653"
    },
    {
      "seq": 6,
      "name": "claims-triage-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "summary": "Routed claim CLM-32812 (A$6579.88 laptop theft) to the specialist queue as the policy is active but this claim requires investigation into the theft circumstances."
      },
      "run_id": "sbx-claims-triage-daa8889f2647",
      "status": "success",
      "ts_end": "2026-11-07T04:11:13.763Z",
      "span_id": "re",
      "metadata": {
        "demo_agent": true,
        "sandbox_tools": true
      },
      "ts_start": "2026-11-07T04:11:13.763Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "1a81c3bda41c42c7e9ead0a2de73b6ac34af0ba9089e7a2d17e7c46141f27f55"
    }
  ]
}