{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "demo-kyc-0584c5",
    "generated_at": "2026-09-22T11:06:37.817Z",
    "event_count": 5,
    "algorithm": "sha256-chain",
    "content_digest": "ebbe8223d43982ca145a1775b25144a506cb9e6f49b022076760c9dd01506f67",
    "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": "d9530ba91a2c5bf7def98dc264596a1753cd71e5f3790e5f613cf2b04ccab65773f2fc3c20e4795e0ba0a0312a1fdb5c8e4b4ea83e4a9a4fe264c48661033008",
      "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-0584c5",
    "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-22T00:18:02.326+00:00",
    "ended_at": "2026-09-22T00:18:04.226+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-0584c5",
      "status": "running",
      "ts_end": "2026-09-22T00:18:04.226Z",
      "span_id": "r",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-22T00:18:02.326Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "f75693a6353217994649c4370e5c60933b0188efc07181b5f1f3e4987c6b92ed"
    },
    {
      "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-0584c5",
      "ts_end": "2026-09-22T00:18:02.846Z",
      "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-22T00:18:02.356Z",
      "latency_ms": 490,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "9208b542146e8a3eafdc6d37bd7743ace5c1deacb03b98eeb338f71f886d0aa4"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "entity": "Acme Pty Ltd"
      },
      "output": {
        "lists": [
          "DFAT",
          "OFAC",
          "UN"
        ],
        "match": false
      },
      "run_id": "demo-kyc-0584c5",
      "ts_end": "2026-09-22T00:18:02.966Z",
      "span_id": "t1",
      "ts_start": "2026-09-22T00:18:02.856Z",
      "tool_name": "sanctions_screen",
      "latency_ms": 110,
      "tool_call_id": "t1",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "694c7a2ca4fc9cfd1183c6d259f72a7174679c696412b979f7e167ed1b823cf5"
    },
    {
      "seq": 3,
      "type": "tool",
      "error": null,
      "input": {
        "abn": "51824753556"
      },
      "output": {
        "valid": true,
        "status": "active"
      },
      "run_id": "demo-kyc-0584c5",
      "ts_end": "2026-09-22T00:18:03.626Z",
      "span_id": "t2",
      "ts_start": "2026-09-22T00:18:03.486Z",
      "tool_name": "verify_abn",
      "latency_ms": 140,
      "tool_call_id": "t2",
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "7979cdc4d35cf164cce90717ea3760b0178e13610c19e2a407e41f3f05908c69"
    },
    {
      "seq": 4,
      "name": "kyc-onboarding-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "risk": "low",
        "decision": "approved"
      },
      "run_id": "demo-kyc-0584c5",
      "status": "success",
      "ts_end": "2026-09-22T00:18:04.226Z",
      "span_id": "re",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-22T00:18:04.146Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "ebbe8223d43982ca145a1775b25144a506cb9e6f49b022076760c9dd01506f67"
    }
  ]
}