{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "demo-kyc-56638f",
    "generated_at": "2026-09-22T11:06:33.658Z",
    "event_count": 5,
    "algorithm": "sha256-chain",
    "content_digest": "572d6a58b1ac55944ee9d0d415cc4be62ca37f3c66d4a626aca1cbd28e863b2c",
    "replay": {
      "cassette_digest": "1aabc73115a580d04a0987505c2ffd9b4bacfbac92437d1fa28d99c91a401c2c",
      "entry_count": 3,
      "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": "11a6184391732336341a9abf2663f13089fbbe63a855c64a571f3e4e1712f3f475bce38299ec2382106ba1a2505b560e7a3d1e4e767b8c5315fc18e9ef5eee0a",
      "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": "demo-kyc-56638f",
    "name": "kyc-onboarding-agent",
    "status": "success",
    "input": "Onboard Acme Pty Ltd (ABN 51 824 753 556).",
    "output": {
      "risk": "low",
      "decision": "approved"
    },
    "error": null,
    "metadata": {
      "demo": true
    },
    "step_count": 1,
    "total_tokens": 540,
    "started_at": "2026-09-14T01:24:37.399+00:00",
    "ended_at": "2026-09-14T01:24:39.299+00:00",
    "actor_type": null,
    "actor_id": null
  },
  "events": [
    {
      "seq": 0,
      "name": "kyc-onboarding-agent",
      "type": "run",
      "error": null,
      "input": "Onboard Acme Pty Ltd (ABN 51 824 753 556).",
      "phase": "start",
      "output": null,
      "run_id": "demo-kyc-56638f",
      "status": "running",
      "ts_end": "2026-09-14T01:24:39.299Z",
      "span_id": "r",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-14T01:24:37.399Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "95a0a0223975f1c97a43f5fbb700a690a58158b9e0dbd710c542529450dacdb2"
    },
    {
      "seq": 1,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-sonnet-4-6",
        "provider": "openai"
      },
      "usage": {
        "input_tokens": 378,
        "total_tokens": 540,
        "output_tokens": 162
      },
      "run_id": "demo-kyc-56638f",
      "ts_end": "2026-09-14T01:24:37.919Z",
      "request": {
        "tools": [],
        "params": {
          "temperature": 0
        },
        "system": "You are a careful enterprise agent. Follow policy.",
        "messages": [
          {
            "role": "user",
            "content": "Screening for sanctions first."
          }
        ]
      },
      "span_id": "l1",
      "response": {
        "text": "Screening for sanctions first.",
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "entity": "Acme Pty Ltd"
            },
            "tool_name": "sanctions_screen",
            "tool_call_id": "t1"
          }
        ],
        "finish_reason": "tool-call"
      },
      "ts_start": "2026-09-14T01:24:37.429Z",
      "latency_ms": 490,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "bdb4ca6d5c8a5b2e7308020d3c2e647d4cde0bc1f70440fb788bc366157a7c35"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "entity": "Acme Pty Ltd"
      },
      "output": {
        "lists": [
          "DFAT",
          "OFAC",
          "UN"
        ],
        "match": false
      },
      "run_id": "demo-kyc-56638f",
      "ts_end": "2026-09-14T01:24:38.039Z",
      "span_id": "t1",
      "ts_start": "2026-09-14T01:24:37.929Z",
      "tool_name": "sanctions_screen",
      "latency_ms": 110,
      "tool_call_id": "t1",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "02c18174bf6bf35c4184feaf10300f7508537d2ac104934b67883490d681b143"
    },
    {
      "seq": 3,
      "type": "tool",
      "error": null,
      "input": {
        "abn": "51824753556"
      },
      "output": {
        "valid": true,
        "status": "active"
      },
      "run_id": "demo-kyc-56638f",
      "ts_end": "2026-09-14T01:24:38.699Z",
      "span_id": "t2",
      "ts_start": "2026-09-14T01:24:38.559Z",
      "tool_name": "verify_abn",
      "latency_ms": 140,
      "tool_call_id": "t2",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "66d1752a4cc71d5e65a2153f0c1244ce2d625e92512775c4f188c59070b295b0"
    },
    {
      "seq": 4,
      "name": "kyc-onboarding-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "risk": "low",
        "decision": "approved"
      },
      "run_id": "demo-kyc-56638f",
      "status": "success",
      "ts_end": "2026-09-14T01:24:39.299Z",
      "span_id": "re",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-14T01:24:39.219Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "572d6a58b1ac55944ee9d0d415cc4be62ca37f3c66d4a626aca1cbd28e863b2c"
    }
  ]
}