Skip to content
Governed learning loop Context Graph Processing Graph Governed corpus How To? 10 reference agents Proof Documentation GitHub Open source Get started
02 / Financial compliance

Sanctions screening

A screening desk that can prove which exact rule decided every payment—and refuses stale code.

What this example teachesCode-carrying tools under governance

Exact rule bytes, plan, trigger, approval, and host authorization stay linked by content address.

Reference agent / keylessCI asserted
Before

An examiner eventually asks which rule version screened a payment. A script on a box leaves only a changelog and no guarantee that the desk is not still running last quarter’s logic.

With Areev

Every ledger row names the exact rule bytes that decided it. When a governed revision moves ahead of the operator’s host pin, the desk stops safely instead of executing stale or imported code.

The processing graph

The job, the gate, and the learning path.

The plan is content-addressed. Each run becomes a journal. The person is an explicit node—not an optimistic note in the system prompt.

01 Payment Inbound queue item
02 Pinned rule Content-addressed screening code
03 Triage Release clear items; open possible matches
04 Officer decision Release, block, or false positive
05 Ledger Decision plus exact rule hash
06 Govern revision Evaluate, approve, repoint, and re-pin
Where it becomes adaptive

Production history changes the next run—after review.

Repeated unreadable-counterparty failures produce a governed code revision. A person approves the full blob → tool → workflow → trigger chain, and the revised rule catches a match the old version could not see.

History→Evidence→Proposal→Person→Next run↺
What the example proves

Assertions, not a happy-path demo.

The repository runs the keyless floor on every release. The exact fixtures and expected outcomes are committed beside the agent.

  1. 01

    Unpinned code is refused before the first journal write.

  2. 02

    Every decision names the exact code address that made it.

  3. 03

    The revised plan will not run until the operator deliberately syncs the new host pin.

Use it as a pattern

What you will learn by rebuilding it.

  • Why code that is a grain can be governed while an arbitrary host file cannot.
  • How declarations can travel with an agent without carrying their own authorization.
  • How a code revision advances every content-addressed reference without silently leaving an old rule live.
Run the two actsno API key required
$ git clone https://github.com/AreevAI/areev
$ cd areev/examples/agents/sanctions-screening
$ python/smoke.sh
$ python/improve.sh
committed fixtures deterministic floor human gates asserted
Read the complete README