{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "sbx-fraud-screening-11718d55f6be",
    "generated_at": "2026-11-07T07:28:25.775Z",
    "event_count": 7,
    "algorithm": "sha256-chain",
    "content_digest": "fb587d856905783321789e51dc0f5b4e62bfc2122786dd8d4f89bc488e56b696",
    "replay": {
      "cassette_digest": "7028270ac9d2157508161455d7b05ca5916c92bcf123d752d0fea6d1a7c89e2b",
      "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": "7998aa3f216f7a4dd5d83ca3480275a4b1177ba0657113cb04d4b9df71e15085017726e994e05c997f12efb3a39e1b2a0a30393fe117b0eb59455b0c43457708",
      "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-fraud-screening-11718d55f6be",
    "name": "fraud-screening-agent",
    "status": "success",
    "input": "Screen payment PAY-46497: A$1724.24 from customer #5010 to Placeholder Logistics.",
    "output": {
      "summary": "Payment PAY-46497 for A$1724.24 from customer #5010 to Placeholder Logistics was released to settle as it presented low fraud risk."
    },
    "error": null,
    "metadata": {
      "agent": {
        "description": "Screens payments for fraud before they settle. 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.004118,
      "sandbox_tools": true,
      "scenario_seed": "fraud-screening-agent:2026-11-06:55"
    },
    "step_count": 3,
    "total_tokens": 3202,
    "started_at": "2026-11-06T10:10:56.98+00:00",
    "ended_at": "2026-11-06T10:11:00.922+00:00",
    "actor_type": null,
    "actor_id": null
  },
  "events": [
    {
      "seq": 0,
      "name": "fraud-screening-agent",
      "type": "run",
      "error": null,
      "input": "Screen payment PAY-46497: A$1724.24 from customer #5010 to Placeholder Logistics.",
      "phase": "start",
      "output": null,
      "run_id": "sbx-fraud-screening-11718d55f6be",
      "status": "running",
      "ts_end": "2026-11-06T10:11:00.922Z",
      "span_id": "r",
      "metadata": {
        "agent": {
          "description": "Screens payments for fraud before they settle. 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.004118,
        "sandbox_tools": true,
        "scenario_seed": "fraud-screening-agent:2026-11-06:55"
      },
      "ts_start": "2026-11-06T10:10:56.980Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "05678e204261ba889e36650f9db539948ad886498a9ef899bc7995009540b9f6"
    },
    {
      "seq": 1,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-haiku-4-5",
        "provider": "anthropic"
      },
      "usage": {
        "input_tokens": 857,
        "total_tokens": 938,
        "output_tokens": 81
      },
      "run_id": "sbx-fraud-screening-11718d55f6be",
      "ts_end": "2026-11-06T10:10:58.327Z",
      "request": {
        "tools": [
          {
            "name": "get_risk_signals",
            "parameters": {
              "type": "object",
              "required": [
                "payment_id"
              ],
              "properties": {
                "payment_id": {
                  "type": "string",
                  "description": "Payment id"
                }
              },
              "additionalProperties": false
            },
            "description": "Risk signals for a payment."
          },
          {
            "name": "hold_payment",
            "parameters": {
              "type": "object",
              "required": [
                "payment_id",
                "reason"
              ],
              "properties": {
                "reason": {
                  "type": "string",
                  "description": "Why"
                },
                "payment_id": {
                  "type": "string",
                  "description": "Payment id"
                }
              },
              "additionalProperties": false
            },
            "description": "Hold a payment for review."
          },
          {
            "name": "release_payment",
            "parameters": {
              "type": "object",
              "required": [
                "payment_id"
              ],
              "properties": {
                "payment_id": {
                  "type": "string",
                  "description": "Payment id"
                }
              },
              "additionalProperties": false
            },
            "description": "Release a payment to settle."
          }
        ],
        "params": {
          "temperature": 0,
          "max_output_tokens": 500
        },
        "system": "You are Acme's payment fraud screening 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 risk signals for each payment before it settles. Hold anything that looks like fraud with a reason; release the rest. Use the tools to act; when you are done, reply with a one-sentence summary of what you did.",
        "messages": [
          {
            "role": "user",
            "content": "Screen payment PAY-46497: A$1724.24 from customer #5010 to Placeholder Logistics."
          }
        ]
      },
      "span_id": "l1",
      "response": {
        "text": "I'll check the risk signals for this payment to determine if it should be held or released.",
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "payment_id": "PAY-46497"
            },
            "tool_name": "get_risk_signals",
            "tool_call_id": "toolu_01YEVnN3WJ6BRrbCU8NrhUQd"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-06T10:10:56.980Z",
      "latency_ms": 1346,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "bfcd3ff9ee3dc399580704c4edb00dd9d70f5fdacf5ea93217b9da380f67f2fa"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "payment_id": "PAY-46497"
      },
      "output": {
        "new_device": false,
        "payment_id": "PAY-46497",
        "risk_score": 6,
        "geo_mismatch": false,
        "payments_last_24h": 3
      },
      "run_id": "sbx-fraud-screening-11718d55f6be",
      "ts_end": "2026-11-06T10:10:58.422Z",
      "span_id": "t1",
      "ts_start": "2026-11-06T10:10:58.328Z",
      "tool_name": "get_risk_signals",
      "latency_ms": 94,
      "tool_call_id": "toolu_01YEVnN3WJ6BRrbCU8NrhUQd",
      "parent_span_id": "l1",
      "schema_version": 1,
      "_hash": "209f827d27435f4eab632ed0a27c63194c984d3ec62636b5486112f7f423ee2e"
    },
    {
      "seq": 3,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-haiku-4-5",
        "provider": "anthropic"
      },
      "usage": {
        "input_tokens": 989,
        "total_tokens": 1097,
        "output_tokens": 108
      },
      "run_id": "sbx-fraud-screening-11718d55f6be",
      "ts_end": "2026-11-06T10:10:59.906Z",
      "request": {
        "tools": [
          {
            "name": "get_risk_signals",
            "parameters": {
              "type": "object",
              "required": [
                "payment_id"
              ],
              "properties": {
                "payment_id": {
                  "type": "string",
                  "description": "Payment id"
                }
              },
              "additionalProperties": false
            },
            "description": "Risk signals for a payment."
          },
          {
            "name": "hold_payment",
            "parameters": {
              "type": "object",
              "required": [
                "payment_id",
                "reason"
              ],
              "properties": {
                "reason": {
                  "type": "string",
                  "description": "Why"
                },
                "payment_id": {
                  "type": "string",
                  "description": "Payment id"
                }
              },
              "additionalProperties": false
            },
            "description": "Hold a payment for review."
          },
          {
            "name": "release_payment",
            "parameters": {
              "type": "object",
              "required": [
                "payment_id"
              ],
              "properties": {
                "payment_id": {
                  "type": "string",
                  "description": "Payment id"
                }
              },
              "additionalProperties": false
            },
            "description": "Release a payment to settle."
          }
        ],
        "params": {
          "temperature": 0,
          "max_output_tokens": 500
        },
        "system": "You are Acme's payment fraud screening 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 risk signals for each payment before it settles. Hold anything that looks like fraud with a reason; release the rest. Use the tools to act; when you are done, reply with a one-sentence summary of what you did.",
        "messages": [
          {
            "role": "user",
            "content": "Screen payment PAY-46497: A$1724.24 from customer #5010 to Placeholder Logistics."
          },
          {
            "role": "assistant",
            "content": [
              {
                "text": "I'll check the risk signals for this payment to determine if it should be held or released.",
                "type": "text"
              },
              {
                "type": "tool-call",
                "input": {
                  "payment_id": "PAY-46497"
                },
                "toolName": "get_risk_signals",
                "toolCallId": "toolu_01YEVnN3WJ6BRrbCU8NrhUQd"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "new_device": false,
                    "payment_id": "PAY-46497",
                    "risk_score": 6,
                    "geo_mismatch": false,
                    "payments_last_24h": 3
                  }
                },
                "toolName": "get_risk_signals",
                "toolCallId": "toolu_01YEVnN3WJ6BRrbCU8NrhUQd"
              }
            ]
          }
        ]
      },
      "span_id": "l2",
      "response": {
        "text": "The risk signals show a low risk score of 6 with no concerning indicators (no new device, no geographic mismatch, and 3 payments in the last 24 hours is reasonable). I'll release this payment.",
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "payment_id": "PAY-46497"
            },
            "tool_name": "release_payment",
            "tool_call_id": "toolu_01KPVqiFx1JEBi5yB1RLYM4x"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-06T10:10:58.422Z",
      "latency_ms": 1484,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "62a2499436cd4778d88e8150cb6341997fc66b862fa35a981688919a2b3bd13a"
    },
    {
      "seq": 4,
      "type": "tool",
      "error": null,
      "input": {
        "payment_id": "PAY-46497"
      },
      "output": {
        "sandbox": true,
        "released": true,
        "payment_id": "PAY-46497"
      },
      "run_id": "sbx-fraud-screening-11718d55f6be",
      "ts_end": "2026-11-06T10:10:59.928Z",
      "span_id": "t2",
      "ts_start": "2026-11-06T10:10:59.906Z",
      "tool_name": "release_payment",
      "latency_ms": 22,
      "tool_call_id": "toolu_01KPVqiFx1JEBi5yB1RLYM4x",
      "parent_span_id": "l2",
      "schema_version": 1,
      "_hash": "49d66b8f57be4ed2fc1cbae6137dd7e10c47187c16fa60098d193d115435509b"
    },
    {
      "seq": 5,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-haiku-4-5",
        "provider": "anthropic"
      },
      "usage": {
        "input_tokens": 1127,
        "total_tokens": 1167,
        "output_tokens": 40
      },
      "run_id": "sbx-fraud-screening-11718d55f6be",
      "ts_end": "2026-11-06T10:11:00.922Z",
      "request": {
        "tools": [
          {
            "name": "get_risk_signals",
            "parameters": {
              "type": "object",
              "required": [
                "payment_id"
              ],
              "properties": {
                "payment_id": {
                  "type": "string",
                  "description": "Payment id"
                }
              },
              "additionalProperties": false
            },
            "description": "Risk signals for a payment."
          },
          {
            "name": "hold_payment",
            "parameters": {
              "type": "object",
              "required": [
                "payment_id",
                "reason"
              ],
              "properties": {
                "reason": {
                  "type": "string",
                  "description": "Why"
                },
                "payment_id": {
                  "type": "string",
                  "description": "Payment id"
                }
              },
              "additionalProperties": false
            },
            "description": "Hold a payment for review."
          },
          {
            "name": "release_payment",
            "parameters": {
              "type": "object",
              "required": [
                "payment_id"
              ],
              "properties": {
                "payment_id": {
                  "type": "string",
                  "description": "Payment id"
                }
              },
              "additionalProperties": false
            },
            "description": "Release a payment to settle."
          }
        ],
        "params": {
          "temperature": 0,
          "max_output_tokens": 500
        },
        "system": "You are Acme's payment fraud screening 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 risk signals for each payment before it settles. Hold anything that looks like fraud with a reason; release the rest. Use the tools to act; when you are done, reply with a one-sentence summary of what you did.",
        "messages": [
          {
            "role": "user",
            "content": "Screen payment PAY-46497: A$1724.24 from customer #5010 to Placeholder Logistics."
          },
          {
            "role": "assistant",
            "content": [
              {
                "text": "I'll check the risk signals for this payment to determine if it should be held or released.",
                "type": "text"
              },
              {
                "type": "tool-call",
                "input": {
                  "payment_id": "PAY-46497"
                },
                "toolName": "get_risk_signals",
                "toolCallId": "toolu_01YEVnN3WJ6BRrbCU8NrhUQd"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "new_device": false,
                    "payment_id": "PAY-46497",
                    "risk_score": 6,
                    "geo_mismatch": false,
                    "payments_last_24h": 3
                  }
                },
                "toolName": "get_risk_signals",
                "toolCallId": "toolu_01YEVnN3WJ6BRrbCU8NrhUQd"
              }
            ]
          },
          {
            "role": "assistant",
            "content": [
              {
                "text": "The risk signals show a low risk score of 6 with no concerning indicators (no new device, no geographic mismatch, and 3 payments in the last 24 hours is reasonable). I'll release this payment.",
                "type": "text"
              },
              {
                "type": "tool-call",
                "input": {
                  "payment_id": "PAY-46497"
                },
                "toolName": "release_payment",
                "toolCallId": "toolu_01KPVqiFx1JEBi5yB1RLYM4x"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "sandbox": true,
                    "released": true,
                    "payment_id": "PAY-46497"
                  }
                },
                "toolName": "release_payment",
                "toolCallId": "toolu_01KPVqiFx1JEBi5yB1RLYM4x"
              }
            ]
          }
        ]
      },
      "span_id": "l3",
      "response": {
        "text": "Payment PAY-46497 for A$1724.24 from customer #5010 to Placeholder Logistics was released to settle as it presented low fraud risk.",
        "reasoning": null,
        "tool_calls": [],
        "finish_reason": "stop"
      },
      "ts_start": "2026-11-06T10:10:59.928Z",
      "latency_ms": 994,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "34486c5986b306a475e1c074a23118fe75ae32662dbb58f4384509ad50b2dbd4"
    },
    {
      "seq": 6,
      "name": "fraud-screening-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "summary": "Payment PAY-46497 for A$1724.24 from customer #5010 to Placeholder Logistics was released to settle as it presented low fraud risk."
      },
      "run_id": "sbx-fraud-screening-11718d55f6be",
      "status": "success",
      "ts_end": "2026-11-06T10:11:00.922Z",
      "span_id": "re",
      "metadata": {
        "demo_agent": true,
        "sandbox_tools": true
      },
      "ts_start": "2026-11-06T10:11:00.922Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "fb587d856905783321789e51dc0f5b4e62bfc2122786dd8d4f89bc488e56b696"
    }
  ]
}