{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "sbx-kyc-onboarding-b1d294e0f7fb",
    "generated_at": "2026-11-07T07:36:16.701Z",
    "event_count": 8,
    "algorithm": "sha256-chain",
    "content_digest": "12025d9a5eb961ef1c84cd40d6459b47232159c4e3f7cdcfe0b8ed9bd1891184",
    "replay": {
      "cassette_digest": "8a98e4cc3791c0bf1ecd568dd9cb9cf3e95530f9fae26afe4971c5a9d4645bd3",
      "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": "1f58c7d6a6ed6edaf31192cb0d2130c9e8670af602813d69617c935eec6946b61dc32de01bfa754bd784bd027f3da5eafc9c2941d65c5c01a771faa750e45009",
      "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-kyc-onboarding-b1d294e0f7fb",
    "name": "kyc-onboarding-agent",
    "status": "success",
    "input": "Onboard Placeholder Logistics (ABN 95657405742) as a new business customer.",
    "output": {
      "summary": "I've successfully onboarded Placeholder Logistics (ABN 95657405742) as a new business customer after verifying the ABN as valid and active and confirming no sanctions list matches."
    },
    "error": null,
    "metadata": {
      "agent": {
        "description": "Screens and onboards business customers. 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.004724,
      "sandbox_tools": true,
      "scenario_seed": "kyc-onboarding-agent:2026-11-06:115"
    },
    "step_count": 3,
    "total_tokens": 3692,
    "started_at": "2026-11-06T21:11:04.471+00:00",
    "ended_at": "2026-11-06T21:11:08.194+00:00",
    "actor_type": null,
    "actor_id": null
  },
  "events": [
    {
      "seq": 0,
      "name": "kyc-onboarding-agent",
      "type": "run",
      "error": null,
      "input": "Onboard Placeholder Logistics (ABN 95657405742) as a new business customer.",
      "phase": "start",
      "output": null,
      "run_id": "sbx-kyc-onboarding-b1d294e0f7fb",
      "status": "running",
      "ts_end": "2026-11-06T21:11:08.194Z",
      "span_id": "r",
      "metadata": {
        "agent": {
          "description": "Screens and onboards business customers. 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.004724,
        "sandbox_tools": true,
        "scenario_seed": "kyc-onboarding-agent:2026-11-06:115"
      },
      "ts_start": "2026-11-06T21:11:04.471Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "92adde1133067436c4a5db41f24011e9f094472e737437d8d51173a16c75f406"
    },
    {
      "seq": 1,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-haiku-4-5",
        "provider": "anthropic"
      },
      "usage": {
        "input_tokens": 958,
        "total_tokens": 1075,
        "output_tokens": 117
      },
      "run_id": "sbx-kyc-onboarding-b1d294e0f7fb",
      "ts_end": "2026-11-06T21:11:05.786Z",
      "request": {
        "tools": [
          {
            "name": "verify_abn",
            "parameters": {
              "type": "object",
              "required": [
                "abn"
              ],
              "properties": {
                "abn": {
                  "type": "string",
                  "description": "11-digit ABN"
                }
              },
              "additionalProperties": false
            },
            "description": "Verify an Australian Business Number."
          },
          {
            "name": "sanctions_screen",
            "parameters": {
              "type": "object",
              "required": [
                "entity"
              ],
              "properties": {
                "entity": {
                  "type": "string",
                  "description": "Legal entity name"
                }
              },
              "additionalProperties": false
            },
            "description": "Screen an entity against DFAT, OFAC and UN lists."
          },
          {
            "name": "approve_onboarding",
            "parameters": {
              "type": "object",
              "required": [
                "entity",
                "abn"
              ],
              "properties": {
                "abn": {
                  "type": "string",
                  "description": "ABN"
                },
                "entity": {
                  "type": "string",
                  "description": "Legal entity name"
                }
              },
              "additionalProperties": false
            },
            "description": "Approve the business as a customer."
          },
          {
            "name": "request_documents",
            "parameters": {
              "type": "object",
              "required": [
                "entity",
                "documents"
              ],
              "properties": {
                "entity": {
                  "type": "string",
                  "description": "Legal entity name"
                },
                "documents": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "additionalProperties": false
            },
            "description": "Ask the applicant for more documents."
          }
        ],
        "params": {
          "temperature": 0,
          "max_output_tokens": 500
        },
        "system": "You are Acme's business onboarding 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. Verify the ABN and screen the entity against sanctions lists. Approve onboarding when both are clean; otherwise request documents. Use the tools to act; when you are done, reply with a one-sentence summary of what you did.",
        "messages": [
          {
            "role": "user",
            "content": "Onboard Placeholder Logistics (ABN 95657405742) as a new business customer."
          }
        ]
      },
      "span_id": "l1",
      "response": {
        "text": "I'll verify the ABN and screen the entity against sanctions lists for Placeholder Logistics.",
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "abn": "95657405742"
            },
            "tool_name": "verify_abn",
            "tool_call_id": "toolu_016JWM4FFE4ebDsKRzY7hyjz"
          },
          {
            "input": {
              "entity": "Placeholder Logistics"
            },
            "tool_name": "sanctions_screen",
            "tool_call_id": "toolu_01PXu3djUKs7k2337yPZqTDs"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-06T21:11:04.471Z",
      "latency_ms": 1315,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "8f8a48523c3c7ba99372b8915ca25bc34e466d6c43804ef4734bd1fcd6bbcf88"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "abn": "95657405742"
      },
      "output": {
        "valid": true,
        "status": "active",
        "entity_name": "Placeholder Logistics"
      },
      "run_id": "sbx-kyc-onboarding-b1d294e0f7fb",
      "ts_end": "2026-11-06T21:11:05.805Z",
      "span_id": "t1",
      "ts_start": "2026-11-06T21:11:05.786Z",
      "tool_name": "verify_abn",
      "latency_ms": 19,
      "tool_call_id": "toolu_016JWM4FFE4ebDsKRzY7hyjz",
      "parent_span_id": "l1",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "d2fef6590203157fe87679819b1f713c3016589edaf9dd21af889c314a4279f6"
    },
    {
      "seq": 3,
      "type": "tool",
      "error": null,
      "input": {
        "entity": "Placeholder Logistics"
      },
      "output": {
        "lists": [
          "DFAT",
          "OFAC",
          "UN"
        ],
        "match": false
      },
      "run_id": "sbx-kyc-onboarding-b1d294e0f7fb",
      "ts_end": "2026-11-06T21:11:05.830Z",
      "span_id": "t2",
      "ts_start": "2026-11-06T21:11:05.805Z",
      "tool_name": "sanctions_screen",
      "latency_ms": 25,
      "tool_call_id": "toolu_01PXu3djUKs7k2337yPZqTDs",
      "parent_span_id": "l1",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "103fc8d39429fb3297ba0e32c0aa0b0656733f067ee3c42f778fea2b521beeb0"
    },
    {
      "seq": 4,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-haiku-4-5",
        "provider": "anthropic"
      },
      "usage": {
        "input_tokens": 1175,
        "total_tokens": 1271,
        "output_tokens": 96
      },
      "run_id": "sbx-kyc-onboarding-b1d294e0f7fb",
      "ts_end": "2026-11-06T21:11:07.117Z",
      "request": {
        "tools": [
          {
            "name": "verify_abn",
            "parameters": {
              "type": "object",
              "required": [
                "abn"
              ],
              "properties": {
                "abn": {
                  "type": "string",
                  "description": "11-digit ABN"
                }
              },
              "additionalProperties": false
            },
            "description": "Verify an Australian Business Number."
          },
          {
            "name": "sanctions_screen",
            "parameters": {
              "type": "object",
              "required": [
                "entity"
              ],
              "properties": {
                "entity": {
                  "type": "string",
                  "description": "Legal entity name"
                }
              },
              "additionalProperties": false
            },
            "description": "Screen an entity against DFAT, OFAC and UN lists."
          },
          {
            "name": "approve_onboarding",
            "parameters": {
              "type": "object",
              "required": [
                "entity",
                "abn"
              ],
              "properties": {
                "abn": {
                  "type": "string",
                  "description": "ABN"
                },
                "entity": {
                  "type": "string",
                  "description": "Legal entity name"
                }
              },
              "additionalProperties": false
            },
            "description": "Approve the business as a customer."
          },
          {
            "name": "request_documents",
            "parameters": {
              "type": "object",
              "required": [
                "entity",
                "documents"
              ],
              "properties": {
                "entity": {
                  "type": "string",
                  "description": "Legal entity name"
                },
                "documents": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "additionalProperties": false
            },
            "description": "Ask the applicant for more documents."
          }
        ],
        "params": {
          "temperature": 0,
          "max_output_tokens": 500
        },
        "system": "You are Acme's business onboarding 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. Verify the ABN and screen the entity against sanctions lists. Approve onboarding when both are clean; otherwise request documents. Use the tools to act; when you are done, reply with a one-sentence summary of what you did.",
        "messages": [
          {
            "role": "user",
            "content": "Onboard Placeholder Logistics (ABN 95657405742) as a new business customer."
          },
          {
            "role": "assistant",
            "content": [
              {
                "text": "I'll verify the ABN and screen the entity against sanctions lists for Placeholder Logistics.",
                "type": "text"
              },
              {
                "type": "tool-call",
                "input": {
                  "abn": "95657405742"
                },
                "toolName": "verify_abn",
                "toolCallId": "toolu_016JWM4FFE4ebDsKRzY7hyjz"
              },
              {
                "type": "tool-call",
                "input": {
                  "entity": "Placeholder Logistics"
                },
                "toolName": "sanctions_screen",
                "toolCallId": "toolu_01PXu3djUKs7k2337yPZqTDs"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "valid": true,
                    "status": "active",
                    "entity_name": "Placeholder Logistics"
                  }
                },
                "toolName": "verify_abn",
                "toolCallId": "toolu_016JWM4FFE4ebDsKRzY7hyjz"
              },
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "lists": [
                      "DFAT",
                      "OFAC",
                      "UN"
                    ],
                    "match": false
                  }
                },
                "toolName": "sanctions_screen",
                "toolCallId": "toolu_01PXu3djUKs7k2337yPZqTDs"
              }
            ]
          }
        ]
      },
      "span_id": "l2",
      "response": {
        "text": "Excellent! Both checks passed. Now I'll approve the onboarding.",
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "abn": "95657405742",
              "entity": "Placeholder Logistics"
            },
            "tool_name": "approve_onboarding",
            "tool_call_id": "toolu_01GgHvgTnXhLWR6tz7CAaD2Y"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-06T21:11:05.830Z",
      "latency_ms": 1287,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "021ef7bde8dc97f777c8f7f115cd9b539d63a384f7e50f99dd290ae533d81c81"
    },
    {
      "seq": 5,
      "type": "tool",
      "error": null,
      "input": {
        "abn": "95657405742",
        "entity": "Placeholder Logistics"
      },
      "output": {
        "sandbox": true,
        "approved": true,
        "customer_ref": "BUS-05742"
      },
      "run_id": "sbx-kyc-onboarding-b1d294e0f7fb",
      "ts_end": "2026-11-06T21:11:07.185Z",
      "span_id": "t3",
      "ts_start": "2026-11-06T21:11:07.117Z",
      "tool_name": "approve_onboarding",
      "latency_ms": 68,
      "tool_call_id": "toolu_01GgHvgTnXhLWR6tz7CAaD2Y",
      "parent_span_id": "l2",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "db84f833f7672dbea56f9ec1a20d633025f661fb228b9beb334789f2f1fe2e18"
    },
    {
      "seq": 6,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-haiku-4-5",
        "provider": "anthropic"
      },
      "usage": {
        "input_tokens": 1301,
        "total_tokens": 1346,
        "output_tokens": 45
      },
      "run_id": "sbx-kyc-onboarding-b1d294e0f7fb",
      "ts_end": "2026-11-06T21:11:08.194Z",
      "request": {
        "tools": [
          {
            "name": "verify_abn",
            "parameters": {
              "type": "object",
              "required": [
                "abn"
              ],
              "properties": {
                "abn": {
                  "type": "string",
                  "description": "11-digit ABN"
                }
              },
              "additionalProperties": false
            },
            "description": "Verify an Australian Business Number."
          },
          {
            "name": "sanctions_screen",
            "parameters": {
              "type": "object",
              "required": [
                "entity"
              ],
              "properties": {
                "entity": {
                  "type": "string",
                  "description": "Legal entity name"
                }
              },
              "additionalProperties": false
            },
            "description": "Screen an entity against DFAT, OFAC and UN lists."
          },
          {
            "name": "approve_onboarding",
            "parameters": {
              "type": "object",
              "required": [
                "entity",
                "abn"
              ],
              "properties": {
                "abn": {
                  "type": "string",
                  "description": "ABN"
                },
                "entity": {
                  "type": "string",
                  "description": "Legal entity name"
                }
              },
              "additionalProperties": false
            },
            "description": "Approve the business as a customer."
          },
          {
            "name": "request_documents",
            "parameters": {
              "type": "object",
              "required": [
                "entity",
                "documents"
              ],
              "properties": {
                "entity": {
                  "type": "string",
                  "description": "Legal entity name"
                },
                "documents": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "additionalProperties": false
            },
            "description": "Ask the applicant for more documents."
          }
        ],
        "params": {
          "temperature": 0,
          "max_output_tokens": 500
        },
        "system": "You are Acme's business onboarding 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. Verify the ABN and screen the entity against sanctions lists. Approve onboarding when both are clean; otherwise request documents. Use the tools to act; when you are done, reply with a one-sentence summary of what you did.",
        "messages": [
          {
            "role": "user",
            "content": "Onboard Placeholder Logistics (ABN 95657405742) as a new business customer."
          },
          {
            "role": "assistant",
            "content": [
              {
                "text": "I'll verify the ABN and screen the entity against sanctions lists for Placeholder Logistics.",
                "type": "text"
              },
              {
                "type": "tool-call",
                "input": {
                  "abn": "95657405742"
                },
                "toolName": "verify_abn",
                "toolCallId": "toolu_016JWM4FFE4ebDsKRzY7hyjz"
              },
              {
                "type": "tool-call",
                "input": {
                  "entity": "Placeholder Logistics"
                },
                "toolName": "sanctions_screen",
                "toolCallId": "toolu_01PXu3djUKs7k2337yPZqTDs"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "valid": true,
                    "status": "active",
                    "entity_name": "Placeholder Logistics"
                  }
                },
                "toolName": "verify_abn",
                "toolCallId": "toolu_016JWM4FFE4ebDsKRzY7hyjz"
              },
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "lists": [
                      "DFAT",
                      "OFAC",
                      "UN"
                    ],
                    "match": false
                  }
                },
                "toolName": "sanctions_screen",
                "toolCallId": "toolu_01PXu3djUKs7k2337yPZqTDs"
              }
            ]
          },
          {
            "role": "assistant",
            "content": [
              {
                "text": "Excellent! Both checks passed. Now I'll approve the onboarding.",
                "type": "text"
              },
              {
                "type": "tool-call",
                "input": {
                  "abn": "95657405742",
                  "entity": "Placeholder Logistics"
                },
                "toolName": "approve_onboarding",
                "toolCallId": "toolu_01GgHvgTnXhLWR6tz7CAaD2Y"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "sandbox": true,
                    "approved": true,
                    "customer_ref": "BUS-05742"
                  }
                },
                "toolName": "approve_onboarding",
                "toolCallId": "toolu_01GgHvgTnXhLWR6tz7CAaD2Y"
              }
            ]
          }
        ]
      },
      "span_id": "l3",
      "response": {
        "text": "I've successfully onboarded Placeholder Logistics (ABN 95657405742) as a new business customer after verifying the ABN as valid and active and confirming no sanctions list matches.",
        "reasoning": null,
        "tool_calls": [],
        "finish_reason": "stop"
      },
      "ts_start": "2026-11-06T21:11:07.185Z",
      "latency_ms": 1009,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "118c2008119fcd65ec462dc18068818e2269d56716a6dc508fcf30210f9a1b10"
    },
    {
      "seq": 7,
      "name": "kyc-onboarding-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "summary": "I've successfully onboarded Placeholder Logistics (ABN 95657405742) as a new business customer after verifying the ABN as valid and active and confirming no sanctions list matches."
      },
      "run_id": "sbx-kyc-onboarding-b1d294e0f7fb",
      "status": "success",
      "ts_end": "2026-11-06T21:11:08.194Z",
      "span_id": "re",
      "metadata": {
        "demo_agent": true,
        "sandbox_tools": true
      },
      "ts_start": "2026-11-06T21:11:08.194Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "12025d9a5eb961ef1c84cd40d6459b47232159c4e3f7cdcfe0b8ed9bd1891184"
    }
  ]
}