{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "sbx-kyc-onboarding-983c1953c48f",
    "generated_at": "2026-11-07T07:28:25.857Z",
    "event_count": 8,
    "algorithm": "sha256-chain",
    "content_digest": "c8026cbd70527cc868b55472605108528cfd7272db5c733ec2c9a6febddc0b6e",
    "replay": {
      "cassette_digest": "c68511440b583cfc26cbaecdaf80218b545196ad40467d16f0fcf5f62efbde0f",
      "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": "06d871fc2a266224340a502c3e95f7de34bb87e7aa47605d72501f58f4afecb077ffb60e3963e55364ba04d4254cfff55aa4d9e1e9bf8050f9918a244f8af00c",
      "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-983c1953c48f",
    "name": "kyc-onboarding-agent",
    "status": "success",
    "input": "Onboard Harbour Mock Traders (ABN 69667212629) as a new business customer.",
    "output": {
      "summary": "I verified the ABN as valid and active, screened Harbour Mock Traders against DFAT, OFAC and UN sanctions lists with no matches, and approved them as a customer (reference: BUS-12629)."
    },
    "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.004633,
      "sandbox_tools": true,
      "scenario_seed": "kyc-onboarding-agent:2026-11-06:51"
    },
    "step_count": 3,
    "total_tokens": 3649,
    "started_at": "2026-11-06T09:11:04.177+00:00",
    "ended_at": "2026-11-06T09:11:07.589+00:00",
    "actor_type": null,
    "actor_id": null
  },
  "events": [
    {
      "seq": 0,
      "name": "kyc-onboarding-agent",
      "type": "run",
      "error": null,
      "input": "Onboard Harbour Mock Traders (ABN 69667212629) as a new business customer.",
      "phase": "start",
      "output": null,
      "run_id": "sbx-kyc-onboarding-983c1953c48f",
      "status": "running",
      "ts_end": "2026-11-06T09:11:07.589Z",
      "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.004633,
        "sandbox_tools": true,
        "scenario_seed": "kyc-onboarding-agent:2026-11-06:51"
      },
      "ts_start": "2026-11-06T09:11:04.177Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "7508c30c00f4892375c351fce9426afe613f905487fa664fd5b75e3c4b47f4c3"
    },
    {
      "seq": 1,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-haiku-4-5",
        "provider": "anthropic"
      },
      "usage": {
        "input_tokens": 959,
        "total_tokens": 1058,
        "output_tokens": 99
      },
      "run_id": "sbx-kyc-onboarding-983c1953c48f",
      "ts_end": "2026-11-06T09:11:05.330Z",
      "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 Harbour Mock Traders (ABN 69667212629) as a new business customer."
          }
        ]
      },
      "span_id": "l1",
      "response": {
        "text": null,
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "abn": "69667212629"
            },
            "tool_name": "verify_abn",
            "tool_call_id": "toolu_01721Sk4DfbXd71UaE3mDEvV"
          },
          {
            "input": {
              "entity": "Harbour Mock Traders"
            },
            "tool_name": "sanctions_screen",
            "tool_call_id": "toolu_01Bq4vh17HNTmCt3PMRZvYcj"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-06T09:11:04.177Z",
      "latency_ms": 1153,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "78a2c1c39b4f7ad070d753b0ca81cc5a1471520f5b96ca7223fbf22a032e4f39"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "abn": "69667212629"
      },
      "output": {
        "valid": true,
        "status": "active",
        "entity_name": "Harbour Mock Traders"
      },
      "run_id": "sbx-kyc-onboarding-983c1953c48f",
      "ts_end": "2026-11-06T09:11:05.369Z",
      "span_id": "t1",
      "ts_start": "2026-11-06T09:11:05.330Z",
      "tool_name": "verify_abn",
      "latency_ms": 39,
      "tool_call_id": "toolu_01721Sk4DfbXd71UaE3mDEvV",
      "parent_span_id": "l1",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "f3c1c2ddf6af9df57cd851d4c0b9d8fbf2014957bbd8722072af483a95b3d99f"
    },
    {
      "seq": 3,
      "type": "tool",
      "error": null,
      "input": {
        "entity": "Harbour Mock Traders"
      },
      "output": {
        "lists": [
          "DFAT",
          "OFAC",
          "UN"
        ],
        "match": false
      },
      "run_id": "sbx-kyc-onboarding-983c1953c48f",
      "ts_end": "2026-11-06T09:11:05.391Z",
      "span_id": "t2",
      "ts_start": "2026-11-06T09:11:05.369Z",
      "tool_name": "sanctions_screen",
      "latency_ms": 22,
      "tool_call_id": "toolu_01Bq4vh17HNTmCt3PMRZvYcj",
      "parent_span_id": "l1",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "00710df004276b709236dfba209f14a35973c66d6c436089857c2a3188a19ddd"
    },
    {
      "seq": 4,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-haiku-4-5",
        "provider": "anthropic"
      },
      "usage": {
        "input_tokens": 1159,
        "total_tokens": 1255,
        "output_tokens": 96
      },
      "run_id": "sbx-kyc-onboarding-983c1953c48f",
      "ts_end": "2026-11-06T09:11:06.544Z",
      "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 Harbour Mock Traders (ABN 69667212629) as a new business customer."
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "abn": "69667212629"
                },
                "toolName": "verify_abn",
                "toolCallId": "toolu_01721Sk4DfbXd71UaE3mDEvV"
              },
              {
                "type": "tool-call",
                "input": {
                  "entity": "Harbour Mock Traders"
                },
                "toolName": "sanctions_screen",
                "toolCallId": "toolu_01Bq4vh17HNTmCt3PMRZvYcj"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "valid": true,
                    "status": "active",
                    "entity_name": "Harbour Mock Traders"
                  }
                },
                "toolName": "verify_abn",
                "toolCallId": "toolu_01721Sk4DfbXd71UaE3mDEvV"
              },
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "lists": [
                      "DFAT",
                      "OFAC",
                      "UN"
                    ],
                    "match": false
                  }
                },
                "toolName": "sanctions_screen",
                "toolCallId": "toolu_01Bq4vh17HNTmCt3PMRZvYcj"
              }
            ]
          }
        ]
      },
      "span_id": "l2",
      "response": {
        "text": "Great! Both checks passed. Now I'll approve the onboarding:",
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "abn": "69667212629",
              "entity": "Harbour Mock Traders"
            },
            "tool_name": "approve_onboarding",
            "tool_call_id": "toolu_01MJBRfzLwfB53DjSa9H1oyi"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-06T09:11:05.391Z",
      "latency_ms": 1153,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "b7165ff564875af6df65c6d9319b3855c20e0ebcfd9c34d5caf46462d17d1d17"
    },
    {
      "seq": 5,
      "type": "tool",
      "error": null,
      "input": {
        "abn": "69667212629",
        "entity": "Harbour Mock Traders"
      },
      "output": {
        "sandbox": true,
        "approved": true,
        "customer_ref": "BUS-12629"
      },
      "run_id": "sbx-kyc-onboarding-983c1953c48f",
      "ts_end": "2026-11-06T09:11:06.568Z",
      "span_id": "t3",
      "ts_start": "2026-11-06T09:11:06.544Z",
      "tool_name": "approve_onboarding",
      "latency_ms": 24,
      "tool_call_id": "toolu_01MJBRfzLwfB53DjSa9H1oyi",
      "parent_span_id": "l2",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "664eb7c8cf497099a65e263f9bdec87efe362f0bd03d50a42e19ba4bbf2cd10a"
    },
    {
      "seq": 6,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-haiku-4-5",
        "provider": "anthropic"
      },
      "usage": {
        "input_tokens": 1285,
        "total_tokens": 1336,
        "output_tokens": 51
      },
      "run_id": "sbx-kyc-onboarding-983c1953c48f",
      "ts_end": "2026-11-06T09:11:07.589Z",
      "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 Harbour Mock Traders (ABN 69667212629) as a new business customer."
          },
          {
            "role": "assistant",
            "content": [
              {
                "type": "tool-call",
                "input": {
                  "abn": "69667212629"
                },
                "toolName": "verify_abn",
                "toolCallId": "toolu_01721Sk4DfbXd71UaE3mDEvV"
              },
              {
                "type": "tool-call",
                "input": {
                  "entity": "Harbour Mock Traders"
                },
                "toolName": "sanctions_screen",
                "toolCallId": "toolu_01Bq4vh17HNTmCt3PMRZvYcj"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "valid": true,
                    "status": "active",
                    "entity_name": "Harbour Mock Traders"
                  }
                },
                "toolName": "verify_abn",
                "toolCallId": "toolu_01721Sk4DfbXd71UaE3mDEvV"
              },
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "lists": [
                      "DFAT",
                      "OFAC",
                      "UN"
                    ],
                    "match": false
                  }
                },
                "toolName": "sanctions_screen",
                "toolCallId": "toolu_01Bq4vh17HNTmCt3PMRZvYcj"
              }
            ]
          },
          {
            "role": "assistant",
            "content": [
              {
                "text": "Great! Both checks passed. Now I'll approve the onboarding:",
                "type": "text"
              },
              {
                "type": "tool-call",
                "input": {
                  "abn": "69667212629",
                  "entity": "Harbour Mock Traders"
                },
                "toolName": "approve_onboarding",
                "toolCallId": "toolu_01MJBRfzLwfB53DjSa9H1oyi"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "sandbox": true,
                    "approved": true,
                    "customer_ref": "BUS-12629"
                  }
                },
                "toolName": "approve_onboarding",
                "toolCallId": "toolu_01MJBRfzLwfB53DjSa9H1oyi"
              }
            ]
          }
        ]
      },
      "span_id": "l3",
      "response": {
        "text": "I verified the ABN as valid and active, screened Harbour Mock Traders against DFAT, OFAC and UN sanctions lists with no matches, and approved them as a customer (reference: BUS-12629).",
        "reasoning": null,
        "tool_calls": [],
        "finish_reason": "stop"
      },
      "ts_start": "2026-11-06T09:11:06.568Z",
      "latency_ms": 1021,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "6f67c4ebf2e4464d1d8201a8743feeb54c3deeaf642d0d91c585b8d11301e205"
    },
    {
      "seq": 7,
      "name": "kyc-onboarding-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "summary": "I verified the ABN as valid and active, screened Harbour Mock Traders against DFAT, OFAC and UN sanctions lists with no matches, and approved them as a customer (reference: BUS-12629)."
      },
      "run_id": "sbx-kyc-onboarding-983c1953c48f",
      "status": "success",
      "ts_end": "2026-11-06T09:11:07.589Z",
      "span_id": "re",
      "metadata": {
        "demo_agent": true,
        "sandbox_tools": true
      },
      "ts_start": "2026-11-06T09:11:07.589Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "c8026cbd70527cc868b55472605108528cfd7272db5c733ec2c9a6febddc0b6e"
    }
  ]
}