How it works

How the whole thing works.

What each agent does, where the crypto sits, what's real and what's not, and exactly what happens when you click through the demo.

Open the live demo →
01

The three-phase flow

Phase 1Verify once, two agents + human sign-off
  1. 1
    Pick a scenario

    Northwind (false positive), Meridian (OFAC 50% rule), or Saffron (structuring).

  2. 2
    Onboarding Agent, fast pass

    Reads the entity + registry record, screens the primary name against the real OFAC SDN list, checks direct shareholders, and proposes a disposition. It is deliberately shallow, so it can be wrong.

  3. 3
    Audit Agent, deep re-verification

    Independently re-screens secondary identifiers (DOB, nationality, AKAs), recursively resolves the ownership graph (OFAC 50% Rule), and scans transaction typologies. It reaches its own verdict.

  4. 4
    Self-correction

    If the two disagree, the Audit Agent issues a correction and the Onboarding Agent revises, e.g. Meridian: CLEAR → BLOCK once the layered SDN owner is found.

  5. 5
    Human-in-the-loop

    The result pauses for a human: Approve & sign off, Override, or Stop. Nothing is issued before sign-off.

  6. 6
    Issuance

    On approval of a CLEAR case, the regulated Issuer signs 5 predicate credentials into the holder's vault.

Phase 2Prove everywhere, you be the institution
  1. 1
    Ask in plain language

    Type a request a bank/fund would send. The agent maps it to provable facts.

  2. 2
    Refuse over-collection

    If you ask for raw documents (“send all documents”), the agent refuses and offers a zero-knowledge proof instead, the privacy guarantee in action.

  3. 3
    Generate & verify

    The holder builds a verifier-bound ZK proof; the institution verifies it offline in milliseconds and learns only a true/false, nothing else.

  4. 4
    Attack it

    Use someone else's passport (ZK fails), tamper the claim (signature fails), or use a revoked credential (revocation fails), each rejects live, for a different real reason.

Phase 3Stay compliant, continuous monitoring
  1. 1
    Screen every counterparty

    Post-onboarding, transactions are screened against the real OFAC SDN list.

  2. 2
    Pause before settlement

    A sanctioned counterparty is held before the money moves, not caught after, and flagged to a human.

02

The two agents & the guardrails

Track-1 mandatory requirement: ≥2 interacting agents with a guardrail. Proofly runs two agents with genuinely different rigor, so the Audit Agent's catch is a real logic-level correction, not a scripted one.

Onboarding Agent
fast passshallow by design

Primary-name OFAC screen + direct-shareholder check. Proposes a disposition quickly. Because it only looks one layer deep, it can under- or over-flag, which is the point.

Audit / Compliance Agent
deep re-verifyguardrail

Secondary-identifier disposition, recursive OFAC 50%-Rule ownership resolution, and typology scans. Disagreement → a correction sent back to the Onboarding Agent.

Guardrail 1, Self-correction
Agent B fixes Agent A

The Audit Agent catches the Onboarding Agent's mistake and it is corrected in a second round. Fires in both directions (over-flag → downgrade, under-flag → upgrade).

Guardrail 2, Human-in-the-loop
EU AI Act Art. 14

Every disposition pauses for a human to Approve / Override / Stop. Nothing is issued autonomously. The Stop control is always available mid-run.

03

The cryptography (real, browser-verifiable)

Pedersen commitment
ristretto255hiding + binding

A private figure is committed as C = value·G + blinding·H, where H has an unknown discrete log. C reveals nothing about the value and can't be reopened to a different one.

Schnorr / Okamoto ZK proof
NIZKFiat-Shamir

A non-interactive proof of knowledge of the commitment opening, proves the holder knows the secret without revealing it, bound to the verifier's fresh nonce so it can't be replayed.

Ed25519 issuer signatures
@noble/curves

The regulated Issuer signs each predicate credential. Verification runs client-side, an institution needs no call back to Proofly.

Tamper-evident audit log
hash-chainedMerkle-anchored

Every agent action, correction and human override is appended to a hash-chained ledger and anchored to a single Merkle root, provably intact after the fact.

All of it runs on audited @noble/curves / @noble/hashes, no trusted setup, no external proof service. Check it yourself at /api/zk-selftest (10 assertions, incl. every fraud mode failing).

04

What runs where (API endpoints)

POST /api/onboardStreams the two-agent onboarding run (server-sent events): agent messages, the correction, the audit log, and the HITL pause.
POST /api/issueHITL-gated. Only after a human approves a CLEAR case, the Issuer mints signed credentials into the vault.
POST /api/institutionaction: interpret (parse a plain-language request / refuse over-collection), prove (build + verify ZK presentations, incl. fraud modes), revoke (issuer revokes a credential).
GET /api/monitorPhase 3, screens counterparties against the real OFAC SDN list and pauses SDN hits before settlement.
GET /api/zk-selftest10 crypto assertions proving the ZK stack + all fraud rejections.
05

The three demo scenarios & expected outcomes

Northwind Capital (SG)
false positive
Onboarding over-flags an OFAC transliteration hit → Audit disposes it on DOB + nationality → CLEAR → credentials minted.
Meridian Trade Holdings (AE)
OFAC 50% rule
Onboarding sees clean direct owners → CLEAR. Audit recurses the Cayman/Mauritius/nominee chain, finds an SDN at ≥50% → BLOCKED.
Saffron Remittance (GB)
structuring
Onboarding misses it → Audit finds sub-$10k structuring in the transaction sample → ESCALATE for a SAR.
06

What's real vs synthetic (disclosed)

Real & running
✓ Pedersen + Schnorr ZK proofs (ristretto255)
✓ Ed25519 issuer signatures, browser-verifiable
✓ OFAC SDN screening, 2,282 entries + 4,483 AKAs
✓ Two-agent self-correction + HITL logic
✓ Fraud modes fail live (stolen / tampered / revoked)
✓ Hash-chained + Merkle-anchored audit log
Synthetic / mocked
○ Customer entities & ownership graphs (synthetic)
○ Issuer is a self-hosted sandbox KRA (would be a licensed KRA)
○ No real customer documents collected
○ Registry / institution APIs are local stubs
○ LLM request-parser is deterministic (Claude-ready via AI SDK)

Stack: Next.js 16 (App Router) · TypeScript strict · @noble/curves & @noble/hashes · no external proof services, no API keys required.

Run the live demo →