{
  "$schema": "runback.audit/v2",
  "manifest": {
    "run_id": "demo-sanctions-ok-9a89a6",
    "generated_at": "2026-09-22T11:06:40.316Z",
    "event_count": 4,
    "algorithm": "sha256-chain",
    "content_digest": "b0482ad8283ba54482491b7a4b9e574c68a9c0e63334b6da655ea4a8113bf764",
    "replay": {
      "cassette_digest": "d78b7a31d2a2ed32d9be2a4af38a82b62bf09b39c4236eb1d42342d304e0d7ff",
      "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": "72cb22b247be86e4666d6432a587a92a2a9d680525bb414a99d473b4895e029a0b2f4f572e548df8cbc12799b80fea804653cfaeb2a2deff241b44b591c06606",
      "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-ok-9a89a6",
    "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": 679,
    "started_at": "2026-09-13T18:09:02.705+00:00",
    "ended_at": "2026-09-13T18:09:04.205+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-ok-9a89a6",
      "status": "running",
      "ts_end": "2026-09-13T18:09:04.205Z",
      "span_id": "r",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-13T18:09:02.705Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "07675258824ab7389e567a72daa4341a3a45562806ef2a509cd78a13787afaaf"
    },
    {
      "seq": 1,
      "type": "llm",
      "error": null,
      "model": {
        "model_id": "claude-sonnet-4-6",
        "provider": "openai"
      },
      "usage": {
        "input_tokens": 475,
        "total_tokens": 679,
        "output_tokens": 204
      },
      "run_id": "demo-sanctions-ok-9a89a6",
      "ts_end": "2026-09-13T18:09:03.325Z",
      "request": {
        "tools": [],
        "params": {
          "temperature": 0
        },
        "system": "You are a careful enterprise agent. Follow policy.",
        "messages": [
          {
            "role": "user",
            "content": "Re-screen Northwind Traders against updated sanctions lists."
          }
        ]
      },
      "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-13T18:09:02.735Z",
      "latency_ms": 590,
      "parent_span_id": "r",
      "schema_version": 1,
      "_hash": "b7ba390f368547b97c24343ad0b011cc2fe9355660e67c6e5ca4938eed420129"
    },
    {
      "seq": 2,
      "type": "tool",
      "error": null,
      "input": {
        "entity": "Northwind Traders"
      },
      "output": {
        "lists": [
          "DFAT",
          "OFAC",
          "UN"
        ],
        "match": false
      },
      "run_id": "demo-sanctions-ok-9a89a6",
      "ts_end": "2026-09-13T18:09:03.605Z",
      "span_id": "t1",
      "ts_start": "2026-09-13T18:09:03.335Z",
      "tool_name": "sanctions_screen",
      "latency_ms": 270,
      "tool_call_id": "t1",
      "parent_span_id": "r",
      "schema_version": 1,
      "policy_evaluated": {
        "passed": true
      },
      "_hash": "483ac45a3255aa1383db3ad88de5ca9438bdb955285d0948b474502bd826993e"
    },
    {
      "seq": 3,
      "name": "kyc-onboarding-agent",
      "type": "run",
      "error": null,
      "input": null,
      "phase": "end",
      "output": {
        "decision": "cleared",
        "next_review": "90d"
      },
      "run_id": "demo-sanctions-ok-9a89a6",
      "status": "success",
      "ts_end": "2026-09-13T18:09:04.205Z",
      "span_id": "re",
      "metadata": {
        "demo": true
      },
      "ts_start": "2026-09-13T18:09:04.155Z",
      "parent_span_id": null,
      "schema_version": 1,
      "_hash": "b0482ad8283ba54482491b7a4b9e574c68a9c0e63334b6da655ea4a8113bf764"
    }
  ]
}