{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "sbx-kyc-onboarding-e627f1fb3e1c",
    "generated_at": "2026-11-07T07:28:23.472Z",
    "event_count": 8,
    "algorithm": "sha256-chain",
    "content_digest": "45f8401eca922a0c2d5e5a7e90257b2773cb4f9968e4fa01a0988dc1f81a8544",
    "replay": {
      "cassette_digest": "da1712479546c03ec34996dbe665645458d1917c7e78632ea1c23957d7cc0079",
      "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": "1e8a6c60039dce58a294cdb90cedae94220b776597aed18915b126acb4c038326e7a921ce49d7240c5fd8a66d08d86ecd653be84fec65e004eb18a5a2db6b90b",
      "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-e627f1fb3e1c",
    "name": "kyc-onboarding-agent",
    "status": "success",
    "input": "Onboard Bluegum Example Foods (ABN 76149934270) as a new business customer.",
    "output": {
      "summary": "I've successfully onboarded Bluegum Example Foods as a new business customer after verifying their ABN and confirming they have no sanctions 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.004718,
      "sandbox_tools": true,
      "scenario_seed": "kyc-onboarding-agent:2026-11-06:43"
    },
    "step_count": 3,
    "total_tokens": 3706,
    "started_at": "2026-11-06T08:10:48.779+00:00",
    "ended_at": "2026-11-06T08:10:52.438+00:00",
    "actor_type": null,
    "actor_id": null
  },
  "events": [
    {
      "seq": 0,
      "name": "kyc-onboarding-agent",
      "type": "run",
      "error": null,
      "input": "Onboard Bluegum Example Foods (ABN 76149934270) as a new business customer.",
      "phase": "start",
      "output": null,
      "run_id": "sbx-kyc-onboarding-e627f1fb3e1c",
      "status": "running",
      "ts_end": "2026-11-06T08:10:52.438Z",
      "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.004718,
        "sandbox_tools": true,
        "scenario_seed": "kyc-onboarding-agent:2026-11-06:43"
      },
      "ts_start": "2026-11-06T08:10:48.779Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "af83e70d7248da32fc7fd12d9f9bb0b94a0eb5267ec5303bd462aeb1521a6166"
    },
    {
      "seq": 1,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-haiku-4-5",
        "provider": "anthropic"
      },
      "usage": {
        "input_tokens": 960,
        "total_tokens": 1081,
        "output_tokens": 121
      },
      "run_id": "sbx-kyc-onboarding-e627f1fb3e1c",
      "ts_end": "2026-11-06T08:10:50.199Z",
      "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 Bluegum Example Foods (ABN 76149934270) as a new business customer."
          }
        ]
      },
      "span_id": "l1",
      "response": {
        "text": "I'll verify the ABN and screen the entity against sanctions lists for Bluegum Example Foods.",
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "abn": "76149934270"
            },
            "tool_name": "verify_abn",
            "tool_call_id": "toolu_0135RBiJQJfqeXB2dJRCjCPW"
          },
          {
            "input": {
              "entity": "Bluegum Example Foods"
            },
            "tool_name": "sanctions_screen",
            "tool_call_id": "toolu_015NXHsDuizc1NpE2WNSQJdW"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-06T08:10:48.779Z",
      "latency_ms": 1418,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "a2beeb430abf91eff2677b9e548cff21736fb02e45afd169b619b389560c6f4c"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "abn": "76149934270"
      },
      "output": {
        "valid": true,
        "status": "active",
        "entity_name": "Bluegum Example Foods"
      },
      "run_id": "sbx-kyc-onboarding-e627f1fb3e1c",
      "ts_end": "2026-11-06T08:10:50.352Z",
      "span_id": "t1",
      "ts_start": "2026-11-06T08:10:50.199Z",
      "tool_name": "verify_abn",
      "latency_ms": 153,
      "tool_call_id": "toolu_0135RBiJQJfqeXB2dJRCjCPW",
      "parent_span_id": "l1",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "df39197d07c290bee60c2357117df0f410fa7c0fa188572e4d6ab3cb9edefa60"
    },
    {
      "seq": 3,
      "type": "tool",
      "error": null,
      "input": {
        "entity": "Bluegum Example Foods"
      },
      "output": {
        "lists": [
          "DFAT",
          "OFAC",
          "UN"
        ],
        "match": false
      },
      "run_id": "sbx-kyc-onboarding-e627f1fb3e1c",
      "ts_end": "2026-11-06T08:10:50.398Z",
      "span_id": "t2",
      "ts_start": "2026-11-06T08:10:50.352Z",
      "tool_name": "sanctions_screen",
      "latency_ms": 46,
      "tool_call_id": "toolu_015NXHsDuizc1NpE2WNSQJdW",
      "parent_span_id": "l1",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "b3f33ff8ddda9b9b1d595317cb802f40ba197e3df62beca525e7c9b95e6e631d"
    },
    {
      "seq": 4,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-haiku-4-5",
        "provider": "anthropic"
      },
      "usage": {
        "input_tokens": 1183,
        "total_tokens": 1280,
        "output_tokens": 97
      },
      "run_id": "sbx-kyc-onboarding-e627f1fb3e1c",
      "ts_end": "2026-11-06T08:10:51.584Z",
      "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 Bluegum Example Foods (ABN 76149934270) as a new business customer."
          },
          {
            "role": "assistant",
            "content": [
              {
                "text": "I'll verify the ABN and screen the entity against sanctions lists for Bluegum Example Foods.",
                "type": "text"
              },
              {
                "type": "tool-call",
                "input": {
                  "abn": "76149934270"
                },
                "toolName": "verify_abn",
                "toolCallId": "toolu_0135RBiJQJfqeXB2dJRCjCPW"
              },
              {
                "type": "tool-call",
                "input": {
                  "entity": "Bluegum Example Foods"
                },
                "toolName": "sanctions_screen",
                "toolCallId": "toolu_015NXHsDuizc1NpE2WNSQJdW"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "valid": true,
                    "status": "active",
                    "entity_name": "Bluegum Example Foods"
                  }
                },
                "toolName": "verify_abn",
                "toolCallId": "toolu_0135RBiJQJfqeXB2dJRCjCPW"
              },
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "lists": [
                      "DFAT",
                      "OFAC",
                      "UN"
                    ],
                    "match": false
                  }
                },
                "toolName": "sanctions_screen",
                "toolCallId": "toolu_015NXHsDuizc1NpE2WNSQJdW"
              }
            ]
          }
        ]
      },
      "span_id": "l2",
      "response": {
        "text": "Great! Both checks passed. Now I'll approve the onboarding.",
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "abn": "76149934270",
              "entity": "Bluegum Example Foods"
            },
            "tool_name": "approve_onboarding",
            "tool_call_id": "toolu_01TUSZAGAAGKngsgMbiuTXw3"
          }
        ],
        "finish_reason": "tool-calls"
      },
      "ts_start": "2026-11-06T08:10:50.398Z",
      "latency_ms": 1186,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "9b55b6b9bfb959306be4cc10f478c9c4d9c9ba0f79c7a795772b21a65af0c62f"
    },
    {
      "seq": 5,
      "type": "tool",
      "error": null,
      "input": {
        "abn": "76149934270",
        "entity": "Bluegum Example Foods"
      },
      "output": {
        "sandbox": true,
        "approved": true,
        "customer_ref": "BUS-34270"
      },
      "run_id": "sbx-kyc-onboarding-e627f1fb3e1c",
      "ts_end": "2026-11-06T08:10:51.626Z",
      "span_id": "t3",
      "ts_start": "2026-11-06T08:10:51.584Z",
      "tool_name": "approve_onboarding",
      "latency_ms": 42,
      "tool_call_id": "toolu_01TUSZAGAAGKngsgMbiuTXw3",
      "parent_span_id": "l2",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "322ff270d19f9f7869c0bd5549236610e0717c22dc191dcb8424aba664c1e358"
    },
    {
      "seq": 6,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-haiku-4-5",
        "provider": "anthropic"
      },
      "usage": {
        "input_tokens": 1310,
        "total_tokens": 1345,
        "output_tokens": 35
      },
      "run_id": "sbx-kyc-onboarding-e627f1fb3e1c",
      "ts_end": "2026-11-06T08:10:52.438Z",
      "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 Bluegum Example Foods (ABN 76149934270) as a new business customer."
          },
          {
            "role": "assistant",
            "content": [
              {
                "text": "I'll verify the ABN and screen the entity against sanctions lists for Bluegum Example Foods.",
                "type": "text"
              },
              {
                "type": "tool-call",
                "input": {
                  "abn": "76149934270"
                },
                "toolName": "verify_abn",
                "toolCallId": "toolu_0135RBiJQJfqeXB2dJRCjCPW"
              },
              {
                "type": "tool-call",
                "input": {
                  "entity": "Bluegum Example Foods"
                },
                "toolName": "sanctions_screen",
                "toolCallId": "toolu_015NXHsDuizc1NpE2WNSQJdW"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "valid": true,
                    "status": "active",
                    "entity_name": "Bluegum Example Foods"
                  }
                },
                "toolName": "verify_abn",
                "toolCallId": "toolu_0135RBiJQJfqeXB2dJRCjCPW"
              },
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "lists": [
                      "DFAT",
                      "OFAC",
                      "UN"
                    ],
                    "match": false
                  }
                },
                "toolName": "sanctions_screen",
                "toolCallId": "toolu_015NXHsDuizc1NpE2WNSQJdW"
              }
            ]
          },
          {
            "role": "assistant",
            "content": [
              {
                "text": "Great! Both checks passed. Now I'll approve the onboarding.",
                "type": "text"
              },
              {
                "type": "tool-call",
                "input": {
                  "abn": "76149934270",
                  "entity": "Bluegum Example Foods"
                },
                "toolName": "approve_onboarding",
                "toolCallId": "toolu_01TUSZAGAAGKngsgMbiuTXw3"
              }
            ]
          },
          {
            "role": "tool",
            "content": [
              {
                "type": "tool-result",
                "output": {
                  "type": "json",
                  "value": {
                    "sandbox": true,
                    "approved": true,
                    "customer_ref": "BUS-34270"
                  }
                },
                "toolName": "approve_onboarding",
                "toolCallId": "toolu_01TUSZAGAAGKngsgMbiuTXw3"
              }
            ]
          }
        ]
      },
      "span_id": "l3",
      "response": {
        "text": "I've successfully onboarded Bluegum Example Foods as a new business customer after verifying their ABN and confirming they have no sanctions matches.",
        "reasoning": null,
        "tool_calls": [],
        "finish_reason": "stop"
      },
      "ts_start": "2026-11-06T08:10:51.627Z",
      "latency_ms": 811,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "d03d9ba3ccdfd196dd07dc2bb47d71e1bdf2076ea9871e393d32e61fc0b2f75b"
    },
    {
      "seq": 7,
      "name": "kyc-onboarding-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "summary": "I've successfully onboarded Bluegum Example Foods as a new business customer after verifying their ABN and confirming they have no sanctions matches."
      },
      "run_id": "sbx-kyc-onboarding-e627f1fb3e1c",
      "status": "success",
      "ts_end": "2026-11-06T08:10:52.438Z",
      "span_id": "re",
      "metadata": {
        "demo_agent": true,
        "sandbox_tools": true
      },
      "ts_start": "2026-11-06T08:10:52.438Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "45f8401eca922a0c2d5e5a7e90257b2773cb4f9968e4fa01a0988dc1f81a8544"
    }
  ]
}