{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "demo-sanctions-9bf924",
    "generated_at": "2026-09-22T11:07:34.218Z",
    "event_count": 4,
    "algorithm": "sha256-chain",
    "content_digest": "2c8cdb76042a10edb4dddb09c2619542f906b006a873c7e9d7ad6d933021d610",
    "replay": {
      "cassette_digest": "0140572acc1f29049c2b9c47f621586be806941d4ec24bac5c9489a37faf378d",
      "entry_count": 2,
      "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": "70fec0c37ab0df8ffd49758979bb25eb7651278917a5d6ccf25ab360df358f4b543224cb27f9914843992d2aec50e1794648c86497439166b401eb91aff6fc0d",
      "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-sanctions-9bf924",
    "name": "kyc-onboarding-agent",
    "status": "success",
    "input": "Re-screen Northwind Traders against updated sanctions lists.",
    "output": {
      "decision": "cleared",
      "next_review": "90d"
    },
    "error": null,
    "metadata": {
      "demo": true
    },
    "step_count": 1,
    "total_tokens": 480,
    "started_at": "2026-09-21T23:51:35.082+00:00",
    "ended_at": "2026-09-21T23:51:36.582+00:00",
    "actor_type": null,
    "actor_id": null
  },
  "events": [
    {
      "seq": 0,
      "name": "kyc-onboarding-agent",
      "type": "run",
      "error": null,
      "input": "Re-screen Northwind Traders against updated sanctions lists.",
      "phase": "start",
      "output": null,
      "run_id": "demo-sanctions-9bf924",
      "status": "running",
      "ts_end": "2026-09-21T23:51:36.582Z",
      "span_id": "r",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-21T23:51:35.082Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "66123e5503b134b3a42fe987d212604110bb343e12ff68d98c87b6218b26032e"
    },
    {
      "seq": 1,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-sonnet-4-6",
        "provider": "openai"
      },
      "usage": {
        "input_tokens": 336,
        "total_tokens": 480,
        "output_tokens": 144
      },
      "run_id": "demo-sanctions-9bf924",
      "ts_end": "2026-09-21T23:51:35.702Z",
      "request": {
        "tools": [],
        "params": {
          "temperature": 0
        },
        "system": "You are a careful enterprise agent. Follow policy.",
        "messages": [
          {
            "role": "user",
            "content": "No match on any list — clearing the periodic review."
          }
        ]
      },
      "span_id": "l1",
      "response": {
        "text": "No match on any list — clearing the periodic review.",
        "reasoning": null,
        "tool_calls": [
          {
            "input": {
              "entity": "Northwind Traders"
            },
            "tool_name": "sanctions_screen",
            "tool_call_id": "t1"
          }
        ],
        "finish_reason": "tool-call"
      },
      "ts_start": "2026-09-21T23:51:35.112Z",
      "latency_ms": 590,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "5436611017332764455025e201f63451cace293b70734972a3bd5a9ac1853344"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "entity": "Northwind Traders"
      },
      "output": {
        "lists": [
          "DFAT",
          "OFAC",
          "UN"
        ],
        "match": false
      },
      "run_id": "demo-sanctions-9bf924",
      "ts_end": "2026-09-21T23:51:35.982Z",
      "span_id": "t1",
      "ts_start": "2026-09-21T23:51:35.712Z",
      "tool_name": "sanctions_screen",
      "latency_ms": 270,
      "tool_call_id": "t1",
      "parent_span_id": "r",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "e86bbd801726687cab8021f9441cbccbd65c62b05abae5e232df08f15eb3e1a9"
    },
    {
      "seq": 3,
      "name": "kyc-onboarding-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "decision": "cleared",
        "next_review": "90d"
      },
      "run_id": "demo-sanctions-9bf924",
      "status": "success",
      "ts_end": "2026-09-21T23:51:36.582Z",
      "span_id": "re",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-21T23:51:36.532Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "2c8cdb76042a10edb4dddb09c2619542f906b006a873c7e9d7ad6d933021d610"
    }
  ]
}