{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "sbx-fraud-screening-8c42578773c7",
    "generated_at": "2026-11-07T07:28:29.643Z",
    "event_count": 7,
    "algorithm": "sha256-chain",
    "content_digest": "164b65bf2fdf10bb074cc8c66973b8042ee6b96cf4394c7c0063402f8d85cfc8",
    "replay": {
      "cassette_digest": "ab6d9477a2616bf02583ca0e61bceef7f6617a59b04d3ace06b0f911d3710927",
      "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": "4be3e4dc130f0af234dbfe792e62a1ccbc9a860a3ca5f94df4690bb7bed7c0928c7cefa7a4bcd39758d56dca77e9444810c7e5c62c2f3f7b070169a7ee540906",
      "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-8c42578773c7",
    "name": "fraud-screening-agent",
    "status": "success",
    "input": "Screen payment PAY-70156: A$1849.70 from customer #5908 to Placeholder Logistics.",
    "output": {
      "summary": "Held payment PAY-70156 for review due to high risk score, new device usage, and 10 payments in the last 24 hours."
    },
    "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": "openai/gpt-oss-20b",
      "demo_agent": true,
      "est_cost_usd": 0.000062,
      "sandbox_tools": true,
      "scenario_seed": "fraud-screening-agent:2026-11-06:47"
    },
    "step_count": 3,
    "total_tokens": 1356,
    "started_at": "2026-11-06T08:11:09.498+00:00",
    "ended_at": "2026-11-06T08:11:10.409+00:00",
    "actor_type": null,
    "actor_id": null
  },
  "events": [
    {
      "seq": 0,
      "name": "fraud-screening-agent",
      "type": "run",
      "error": null,
      "input": "Screen payment PAY-70156: A$1849.70 from customer #5908 to Placeholder Logistics.",
      "phase": "start",
      "output": null,
      "run_id": "sbx-fraud-screening-8c42578773c7",
      "status": "running",
      "ts_end": "2026-11-06T08:11:10.409Z",
      "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": "openai/gpt-oss-20b",
        "demo_agent": true,
        "est_cost_usd": 0.000062,
        "sandbox_tools": true,
        "scenario_seed": "fraud-screening-agent:2026-11-06:47"
      },
      "ts_start": "2026-11-06T08:11:09.498Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "fbcb789181a96e9d29afc2a4055efd4561616842ba33b8f3d9166017d21fa8c7"
    },
    {
      "seq": 1,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "openai/gpt-oss-20b",
        "provider": "groq"
      },
      "usage": {
        "input_tokens": 314,
        "total_tokens": 379,
        "output_tokens": 65
      },
      "run_id": "sbx-fraud-screening-8c42578773c7",
      "ts_end": "2026-11-06T08:11:09.642Z",
      "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-70156: A$1849.70 from customer #5908 to Placeholder Logistics."
          }
        ]
      },
      "span_id": "l1",
      "response": {
        "text": null,
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "payment_id": "PAY-70156"
            },
            "tool_name": "get_risk_signals",
            "tool_call_id": "fc_d5d9256e-1410-4001-9c92-d54efa5a4805"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-06T08:11:09.498Z",
      "latency_ms": 144,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "c669b4f0e723a35e190864169ef339f1f5c780000f40b3c72570bf72f1fec3e8"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "payment_id": "PAY-70156"
      },
      "output": {
        "new_device": true,
        "payment_id": "PAY-70156",
        "risk_score": 84,
        "geo_mismatch": false,
        "payments_last_24h": 10
      },
      "run_id": "sbx-fraud-screening-8c42578773c7",
      "ts_end": "2026-11-06T08:11:09.731Z",
      "span_id": "t1",
      "ts_start": "2026-11-06T08:11:09.642Z",
      "tool_name": "get_risk_signals",
      "latency_ms": 89,
      "tool_call_id": "fc_d5d9256e-1410-4001-9c92-d54efa5a4805",
      "parent_span_id": "l1",
      "schema_version": 1,
      "_hash": "2d8433d7c12fbef88dd6aa91a0970f537b07b7eb563cd4c340e006ea6fad0e3b"
    },
    {
      "seq": 3,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "openai/gpt-oss-20b",
        "provider": "groq"
      },
      "usage": {
        "input_tokens": 381,
        "total_tokens": 469,
        "output_tokens": 88
      },
      "run_id": "sbx-fraud-screening-8c42578773c7",
      "ts_end": "2026-11-06T08:11:10.203Z",
      "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-70156: A$1849.70 from customer #5908 to Placeholder Logistics."
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "payment_id": "PAY-70156"
                },
                "toolName": "get_risk_signals",
                "toolCallId": "fc_d5d9256e-1410-4001-9c92-d54efa5a4805"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "new_device": true,
                    "payment_id": "PAY-70156",
                    "risk_score": 84,
                    "geo_mismatch": false,
                    "payments_last_24h": 10
                  }
                },
                "toolName": "get_risk_signals",
                "toolCallId": "fc_d5d9256e-1410-4001-9c92-d54efa5a4805"
              }
            ]
          }
        ]
      },
      "span_id": "l2",
      "response": {
        "text": null,
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "reason": "High risk score (84), new device, and 10 payments in last 24h",
              "payment_id": "PAY-70156"
            },
            "tool_name": "hold_payment",
            "tool_call_id": "fc_480c945d-f705-4de1-90f7-ad10cc3c9f66"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-06T08:11:09.731Z",
      "latency_ms": 472,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "88831e3fab4b63c20023f8414a0ea410b0dc7ddcd4a51b017699f236c0fc0f23"
    },
    {
      "seq": 4,
      "type": "tool",
      "error": null,
      "input": {
        "reason": "High risk score (84), new device, and 10 payments in last 24h",
        "payment_id": "PAY-70156"
      },
      "output": {
        "held": true,
        "sandbox": true,
        "payment_id": "PAY-70156"
      },
      "run_id": "sbx-fraud-screening-8c42578773c7",
      "ts_end": "2026-11-06T08:11:10.230Z",
      "span_id": "t2",
      "ts_start": "2026-11-06T08:11:10.203Z",
      "tool_name": "hold_payment",
      "latency_ms": 27,
      "tool_call_id": "fc_480c945d-f705-4de1-90f7-ad10cc3c9f66",
      "parent_span_id": "l2",
      "schema_version": 1,
      "_hash": "e296b7027afe5720795e933abf90c91fe3e0cd8a9798822bf166537ab457c9fd"
    },
    {
      "seq": 5,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "openai/gpt-oss-20b",
        "provider": "groq"
      },
      "usage": {
        "input_tokens": 449,
        "total_tokens": 508,
        "output_tokens": 59
      },
      "run_id": "sbx-fraud-screening-8c42578773c7",
      "ts_end": "2026-11-06T08:11:10.409Z",
      "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-70156: A$1849.70 from customer #5908 to Placeholder Logistics."
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "payment_id": "PAY-70156"
                },
                "toolName": "get_risk_signals",
                "toolCallId": "fc_d5d9256e-1410-4001-9c92-d54efa5a4805"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "new_device": true,
                    "payment_id": "PAY-70156",
                    "risk_score": 84,
                    "geo_mismatch": false,
                    "payments_last_24h": 10
                  }
                },
                "toolName": "get_risk_signals",
                "toolCallId": "fc_d5d9256e-1410-4001-9c92-d54efa5a4805"
              }
            ]
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "reason": "High risk score (84), new device, and 10 payments in last 24h",
                  "payment_id": "PAY-70156"
                },
                "toolName": "hold_payment",
                "toolCallId": "fc_480c945d-f705-4de1-90f7-ad10cc3c9f66"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "held": true,
                    "sandbox": true,
                    "payment_id": "PAY-70156"
                  }
                },
                "toolName": "hold_payment",
                "toolCallId": "fc_480c945d-f705-4de1-90f7-ad10cc3c9f66"
              }
            ]
          }
        ]
      },
      "span_id": "l3",
      "response": {
        "text": "Held payment PAY-70156 for review due to high risk score, new device usage, and 10 payments in the last 24 hours.",
        "reasoning": null,
        "tool_calls": [],
        "finish_reason": "stop"
      },
      "ts_start": "2026-11-06T08:11:10.230Z",
      "latency_ms": 179,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "a98bbd27338292291768eef0e3561b80883b7fe79610240104cd87734e9ef82b"
    },
    {
      "seq": 6,
      "name": "fraud-screening-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "summary": "Held payment PAY-70156 for review due to high risk score, new device usage, and 10 payments in the last 24 hours."
      },
      "run_id": "sbx-fraud-screening-8c42578773c7",
      "status": "success",
      "ts_end": "2026-11-06T08:11:10.409Z",
      "span_id": "re",
      "metadata": {
        "demo_agent": true,
        "sandbox_tools": true
      },
      "ts_start": "2026-11-06T08:11:10.409Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "164b65bf2fdf10bb074cc8c66973b8042ee6b96cf4394c7c0063402f8d85cfc8"
    }
  ]
}