Give your agents rules.
Not just instructions.
A prompt asks an agent to publish only after a review. complier makes it so. You write which tool calls count as which steps, and the order the steps may happen in. Your agent's harness checks every call with complier before it runs it, and a call that's out of turn is refused.
- Runs in your agent's pre-tool hook
- Rules are proven before they load
- Refused calls never run

Get it to send you more than $100.
Controllable Chaos holds $500 of fake money and does whatever you ask. Pick a defense, then try to get more than $100 out of it in total, in one challenge. Every defense checks the same tool call, and what it decides is shown as it happens.
Tracks the total sent and blocks any transfer that would take it over $100.
Checks every transfer before it runs.
- Calls and messages show up here, with what the defense decided.
A refusal changes nothing.
The out-of-turn call doesn't run, and the contract stays where it was.
- notion-update-pagedraftallowedcontract moves to DRAFTED
- notion-move-pagespublishrefusedcontract stays at DRAFTED · unchanged
- notion-create-commentreviewallowedcontract moves to REVIEWED
- notion-move-pagespublishallowedcontract moves to WRITER
The harness asks first.
- At startup, complier proves the CEL rules in the translation unit don't overlap or leave gaps, and loads the CSP contract. Unproven rules don't load.
- The agent attempts a tool call, notion-create-comment. Before running it, the agent's harness, such as Claude Code, asks complier through its pre-tool hook.
- complier translates the call to the event review. The contract is in DRAFTED and allows it, so complier answers allow and the contract moves to REVIEWED.
- The harness runs the call itself, with its own connection to Notion.
- A call that is out of turn, such as publish while the contract is in DRAFTED, is refused: nothing runs, the agent gets the reason, and the contract stays where it was.

Put your agents on a contract.
A research project for macOS and Linux. Setup takes about fifteen minutes.