{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "sbx-kyc-onboarding-0067407714a3",
    "generated_at": "2026-11-07T07:25:51.041Z",
    "event_count": 8,
    "algorithm": "sha256-chain",
    "content_digest": "15a4931beea4c9fd2229ec5ff3854f10ea1ec8219f1c8a3b3186e38150475fe0",
    "replay": {
      "cassette_digest": "bc55f2e4a9e025ca4e9446e6ef80a7294503ab0280e16355613bcb9598574f3c",
      "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": "0ecc957a9e2470708e6890a78b6411fedd9077bcdd3c9dd733d82b4d915281245fd1fd50adce944d50efa9bca577bc212e1ea7e19e5954482d84da390f3b0800",
      "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-0067407714a3",
    "name": "kyc-onboarding-agent",
    "status": "success",
    "input": "Onboard Southern Fixture Co (ABN 60964926936) as a new business customer.",
    "output": {
      "summary": "I've requested documentation from Southern Fixture Co to clarify their cancelled ABN status before proceeding with onboarding, as the business is not currently active."
    },
    "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.004793,
      "sandbox_tools": true,
      "scenario_seed": "kyc-onboarding-agent:2026-11-06:59"
    },
    "step_count": 3,
    "total_tokens": 3713,
    "started_at": "2026-11-06T11:10:48.577+00:00",
    "ended_at": "2026-11-06T11:10:53.332+00:00",
    "actor_type": null,
    "actor_id": null
  },
  "events": [
    {
      "seq": 0,
      "name": "kyc-onboarding-agent",
      "type": "run",
      "error": null,
      "input": "Onboard Southern Fixture Co (ABN 60964926936) as a new business customer.",
      "phase": "start",
      "output": null,
      "run_id": "sbx-kyc-onboarding-0067407714a3",
      "status": "running",
      "ts_end": "2026-11-06T11:10:53.332Z",
      "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.004793,
        "sandbox_tools": true,
        "scenario_seed": "kyc-onboarding-agent:2026-11-06:59"
      },
      "ts_start": "2026-11-06T11:10:48.577Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "0f31e14ce02dfe1e5b10b4e5925290095337b65303111eac842f8db9cb278519"
    },
    {
      "seq": 1,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-haiku-4-5",
        "provider": "anthropic"
      },
      "usage": {
        "input_tokens": 958,
        "total_tokens": 1056,
        "output_tokens": 98
      },
      "run_id": "sbx-kyc-onboarding-0067407714a3",
      "ts_end": "2026-11-06T11:10:50.018Z",
      "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 Southern Fixture Co (ABN 60964926936) as a new business customer."
          }
        ]
      },
      "span_id": "l1",
      "response": {
        "text": null,
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "abn": "60964926936"
            },
            "tool_name": "verify_abn",
            "tool_call_id": "toolu_01RmCscTL1cEiXce5xKZhCZK"
          },
          {
            "input": {
              "entity": "Southern Fixture Co"
            },
            "tool_name": "sanctions_screen",
            "tool_call_id": "toolu_01TksnAE3FVG2yR7xmwuBF61"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-06T11:10:48.577Z",
      "latency_ms": 1441,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "453cd121f5dcf83a40dad1aa21ec938cee8a7ff78cd8c4db7d468d891965e346"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "abn": "60964926936"
      },
      "output": {
        "valid": true,
        "status": "cancelled",
        "entity_name": "Southern Fixture Co"
      },
      "run_id": "sbx-kyc-onboarding-0067407714a3",
      "ts_end": "2026-11-06T11:10:50.162Z",
      "span_id": "t1",
      "ts_start": "2026-11-06T11:10:50.018Z",
      "tool_name": "verify_abn",
      "latency_ms": 144,
      "tool_call_id": "toolu_01RmCscTL1cEiXce5xKZhCZK",
      "parent_span_id": "l1",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "3aa6ff30973486253a51402bed6eccb850e8440e79e30b6771928bc0e7b0732a"
    },
    {
      "seq": 3,
      "type": "tool",
      "error": null,
      "input": {
        "entity": "Southern Fixture Co"
      },
      "output": {
        "lists": [
          "DFAT",
          "OFAC",
          "UN"
        ],
        "match": false
      },
      "run_id": "sbx-kyc-onboarding-0067407714a3",
      "ts_end": "2026-11-06T11:10:50.190Z",
      "span_id": "t2",
      "ts_start": "2026-11-06T11:10:50.162Z",
      "tool_name": "sanctions_screen",
      "latency_ms": 28,
      "tool_call_id": "toolu_01TksnAE3FVG2yR7xmwuBF61",
      "parent_span_id": "l1",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "d7efe6391f7fd0b593326de7a51b5a3ccc0347aa36ff5a93806bb746d4883a44"
    },
    {
      "seq": 4,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-haiku-4-5",
        "provider": "anthropic"
      },
      "usage": {
        "input_tokens": 1156,
        "total_tokens": 1292,
        "output_tokens": 136
      },
      "run_id": "sbx-kyc-onboarding-0067407714a3",
      "ts_end": "2026-11-06T11:10:52.392Z",
      "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 Southern Fixture Co (ABN 60964926936) as a new business customer."
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "abn": "60964926936"
                },
                "toolName": "verify_abn",
                "toolCallId": "toolu_01RmCscTL1cEiXce5xKZhCZK"
              },
              {
                "type": "tool-call",
                "input": {
                  "entity": "Southern Fixture Co"
                },
                "toolName": "sanctions_screen",
                "toolCallId": "toolu_01TksnAE3FVG2yR7xmwuBF61"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "valid": true,
                    "status": "cancelled",
                    "entity_name": "Southern Fixture Co"
                  }
                },
                "toolName": "verify_abn",
                "toolCallId": "toolu_01RmCscTL1cEiXce5xKZhCZK"
              },
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "lists": [
                      "DFAT",
                      "OFAC",
                      "UN"
                    ],
                    "match": false
                  }
                },
                "toolName": "sanctions_screen",
                "toolCallId": "toolu_01TksnAE3FVG2yR7xmwuBF61"
              }
            ]
          }
        ]
      },
      "span_id": "l2",
      "response": {
        "text": "The ABN is valid but the business status is \"cancelled\", which means this entity is not currently active. I cannot approve onboarding for an inactive business. Let me request documentation to clarify the business status:",
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "entity": "Southern Fixture Co",
              "documents": [
                "Current business registration or ABN status confirmation",
                "Explanation of cancelled ABN status"
              ]
            },
            "tool_name": "request_documents",
            "tool_call_id": "toolu_01FRZ8RLgQYRWFCjHUnYVetP"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-06T11:10:50.191Z",
      "latency_ms": 2201,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "58f4bc3f6be5727def5f04f77b6b754d4e0b67bd4cdcec7186801a81190826c7"
    },
    {
      "seq": 5,
      "type": "tool",
      "error": null,
      "input": {
        "entity": "Southern Fixture Co",
        "documents": [
          "Current business registration or ABN status confirmation",
          "Explanation of cancelled ABN status"
        ]
      },
      "output": {
        "documents": [
          "Current business registration or ABN status confirmation",
          "Explanation of cancelled ABN status"
        ],
        "requested": true
      },
      "run_id": "sbx-kyc-onboarding-0067407714a3",
      "ts_end": "2026-11-06T11:10:52.423Z",
      "span_id": "t3",
      "ts_start": "2026-11-06T11:10:52.392Z",
      "tool_name": "request_documents",
      "latency_ms": 31,
      "tool_call_id": "toolu_01FRZ8RLgQYRWFCjHUnYVetP",
      "parent_span_id": "l2",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "b35e8eba40c572a1b9d28969caa5082f0f6930000c42e7b49e452ef7190c6ab2"
    },
    {
      "seq": 6,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-haiku-4-5",
        "provider": "anthropic"
      },
      "usage": {
        "input_tokens": 1329,
        "total_tokens": 1365,
        "output_tokens": 36
      },
      "run_id": "sbx-kyc-onboarding-0067407714a3",
      "ts_end": "2026-11-06T11:10:53.332Z",
      "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 Southern Fixture Co (ABN 60964926936) as a new business customer."
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "abn": "60964926936"
                },
                "toolName": "verify_abn",
                "toolCallId": "toolu_01RmCscTL1cEiXce5xKZhCZK"
              },
              {
                "type": "tool-call",
                "input": {
                  "entity": "Southern Fixture Co"
                },
                "toolName": "sanctions_screen",
                "toolCallId": "toolu_01TksnAE3FVG2yR7xmwuBF61"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "valid": true,
                    "status": "cancelled",
                    "entity_name": "Southern Fixture Co"
                  }
                },
                "toolName": "verify_abn",
                "toolCallId": "toolu_01RmCscTL1cEiXce5xKZhCZK"
              },
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "lists": [
                      "DFAT",
                      "OFAC",
                      "UN"
                    ],
                    "match": false
                  }
                },
                "toolName": "sanctions_screen",
                "toolCallId": "toolu_01TksnAE3FVG2yR7xmwuBF61"
              }
            ]
          },
          {
            "role": "assistant",
            "content": [
              {
                "text": "The ABN is valid but the business status is \"cancelled\", which means this entity is not currently active. I cannot approve onboarding for an inactive business. Let me request documentation to clarify the business status:",
                "type": "text"
              },
              {
                "type": "tool-call",
                "input": {
                  "entity": "Southern Fixture Co",
                  "documents": [
                    "Current business registration or ABN status confirmation",
                    "Explanation of cancelled ABN status"
                  ]
                },
                "toolName": "request_documents",
                "toolCallId": "toolu_01FRZ8RLgQYRWFCjHUnYVetP"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "documents": [
                      "Current business registration or ABN status confirmation",
                      "Explanation of cancelled ABN status"
                    ],
                    "requested": true
                  }
                },
                "toolName": "request_documents",
                "toolCallId": "toolu_01FRZ8RLgQYRWFCjHUnYVetP"
              }
            ]
          }
        ]
      },
      "span_id": "l3",
      "response": {
        "text": "I've requested documentation from Southern Fixture Co to clarify their cancelled ABN status before proceeding with onboarding, as the business is not currently active.",
        "reasoning": null,
        "tool_calls": [],
        "finish_reason": "stop"
      },
      "ts_start": "2026-11-06T11:10:52.423Z",
      "latency_ms": 909,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "57bf384b77b3297f0abc2a382edf4efa7f304b0b3fcb07744f2b76d5ca713a25"
    },
    {
      "seq": 7,
      "name": "kyc-onboarding-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "summary": "I've requested documentation from Southern Fixture Co to clarify their cancelled ABN status before proceeding with onboarding, as the business is not currently active."
      },
      "run_id": "sbx-kyc-onboarding-0067407714a3",
      "status": "success",
      "ts_end": "2026-11-06T11:10:53.332Z",
      "span_id": "re",
      "metadata": {
        "demo_agent": true,
        "sandbox_tools": true
      },
      "ts_start": "2026-11-06T11:10:53.332Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "15a4931beea4c9fd2229ec5ff3854f10ea1ec8219f1c8a3b3186e38150475fe0"
    }
  ]
}