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.
The three-phase flow
- 1Pick a scenario
Northwind (false positive), Meridian (OFAC 50% rule), or Saffron (structuring).
- 2Onboarding 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.
- 3Audit 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.
- 4Self-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.
- 5Human-in-the-loop
The result pauses for a human: Approve & sign off, Override, or Stop. Nothing is issued before sign-off.
- 6Issuance
On approval of a CLEAR case, the regulated Issuer signs 5 predicate credentials into the holder's vault.
- 1Ask in plain language
Type a request a bank/fund would send. The agent maps it to provable facts.
- 2Refuse 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.
- 3Generate & verify
The holder builds a verifier-bound ZK proof; the institution verifies it offline in milliseconds and learns only a true/false, nothing else.
- 4Attack 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.
- 1Screen every counterparty
Post-onboarding, transactions are screened against the real OFAC SDN list.
- 2Pause before settlement
A sanctioned counterparty is held before the money moves, not caught after, and flagged to a human.
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.
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.
Secondary-identifier disposition, recursive OFAC 50%-Rule ownership resolution, and typology scans. Disagreement → a correction sent back to the Onboarding Agent.
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).
Every disposition pauses for a human to Approve / Override / Stop. Nothing is issued autonomously. The Stop control is always available mid-run.
The cryptography (real, browser-verifiable)
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.
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.
The regulated Issuer signs each predicate credential. Verification runs client-side, an institution needs no call back to Proofly.
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).
What runs where (API endpoints)
The three demo scenarios & expected outcomes
What's real vs synthetic (disclosed)
Stack: Next.js 16 (App Router) · TypeScript strict · @noble/curves & @noble/hashes · no external proof services, no API keys required.