Trade surveillance
A surveillance workflow that creates cases from meaningful signal pairs instead of alerting on noise.
Standing rules correlate independent signals before opening one governed case.
CI assertedA 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.
Composite triggers correlate signals on the same instrument inside a declared window, creating one case per pattern and preserving every analyst disposition.
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.
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.
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.
- 01
Eight independent signals become three correlated cases.
- 02
Zero cases are auto-closed.
- 03
Each review arrives with relevant prior pattern disposition.
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.
no API key required$ git clone https://github.com/AreevAI/areev
$ cd areev/examples/agents/trade-surveillance
$ python/smoke.sh
$ python/improve.sh