Home/Resources/Guides/Set up a rule

Set up a rule

Rules in Avus start as a sentence. This guide takes one from a draft to production: what the engine will run, how it would have performed, and who has to agree before it goes live.

ForCompliance officer, Team leadSteps5Reading time4 min
01

Write it the way you would say it

Open the Rule studio and describe the behaviour you want to catch. Avus reads the action, the customer, the counterparty and the threshold in your sentence, and asks when a part could mean two things.

TipKeep one idea per rule. Two behaviours in one sentence make the backtest hard to read.

R-114 · draftRule studio

Raise a critical alert when a high-risk customer sends value to a counterparty with no EEA authorisation and more than 20% indirect darknet exposure within four hops.

02

Check what will actually run

Before anything else, look at the parameters the sentence compiles to, side by side with the version in production. This is exactly what the engine will evaluate, and nothing more.

What runsv3 → v4
ParameterProductionThis version
customer.classificationhigh-riskany
exposure.darknet.indirect> 25%> 20%
path.max_hops34
03

Backtest it on your own history

Run the change over the last 180 days of your transfers. You see how many filed cases it would have caught, how precise it is, and how much extra work it would create for the team.

TipMissed filings matter more than alert volume. Look at that number first.

Backtest · 180 days
34/36filed cases caught, up from 28
22%precision, from 24%
+3.4 hanalyst time a week
04

Stage it for a second approver

Staging sends the change to the approver your policy names. The person who wrote a rule can never promote it, and both names go on the record.

Approvals
R-114

Promote v4 to productionStaged by the team lead

Awaiting
05

Watch it after it goes live

Every version stays in the history with who changed what and why. The rule library shows how often each rule fires and how precise it is, so tuning becomes routine and rolling back takes one step.

Version history
v4 · productionThreshold 25% → 20%, four hops
v3 · retiredAll high-risk customers
v2 · retiredSeverity raised to critical

See it on your own cases.

We will walk through this with your team, on a scenario you choose.