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

Trade surveillance

A surveillance workflow that creates cases from meaningful signal pairs instead of alerting on noise.

What this example teachesComposite triggers and correlation windows

Standing rules correlate independent signals before opening one governed case.

Reference agent / keylessCI asserted
Before

A block order and a rebalance notice are uninteresting alone. Alert on each and analysts drown; build the correlation yourself and you have created another stateful service before the first case opens.

With Areev

Composite triggers correlate signals on the same instrument inside a declared window, creating one case per pattern and preserving every analyst disposition.

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 Independent feeds Orders, notices, and market events
02 Correlation window Match instrument and time
03 Open one case No case for isolated noise
04 Analyst gate Investigate and disposition
05 Record outcome No automatic closure path
06 Recall precedent Prior patterns shape the next review
Where it becomes adaptive

Production history changes the next run—after review.

The next correlated case arrives with how the same pattern was previously dispositioned, informing a person without auto-closing a surveillance alert.

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

    Eight independent signals become three correlated cases.

  2. 02

    Zero cases are auto-closed.

  3. 03

    Each review arrives with relevant prior pattern disposition.

Use it as a pattern

What you will learn by rebuilding it.

  • How composite triggers represent correlation as durable data.
  • How to scope deduplication and windows without adding a separate event service.
  • How prior dispositions improve context while preserving analyst authority.
Run the two actsno API key required
$ git clone https://github.com/AreevAI/areev
$ cd areev/examples/agents/trade-surveillance
$ python/smoke.sh
$ python/improve.sh
committed fixtures deterministic floor human gates asserted
Read the complete README