The gate decides every action by rules, and it remembers nothing. To write new rules we read its log afterwards. We trained a small open model on that log so it learns each agent's habits, and it marks the actions that are unusual for that agent. With the threshold taken from each agent's own past, it gives about one flag per thousand actions on agents that do not change, and many more where an agent does change, including queries carrying text planted in documents. It decides nothing and is never an input to the gate.
## Why it matters
The gate decides each action of an agent by the owner's rules, before it runs, and the same action always gets the same answer. It keeps no memory and draws no conclusions: that is what makes it hold. Since version 4.0.0 it does even less: it compares the tool's name, its field names and their values with the lines the owner wrote, and reads no shell, SQL or path for meaning. New rules come from reading what agents actually tried. That reading happens outside the gate, afterwards, and it can afford to be smart, because it decides nothing: it only tells a person where to look.
## What we found
- **A count is not enough.** Counting actions per hour, new tools and bursts catches some changes but misses the content: a query that suddenly carries strange text looks like any other query to a count.
- **A small model learns each agent's habits.** We trained a small open model on the actions in the gate's log: which tool an agent calls after which, and what its fields usually hold. For a new action it says how surprising that action is for that agent.
- **The threshold has to come from the agent itself.** With a fixed formula the model flagged dozens of ordinary actions per thousand. With the threshold set at the most unusual one in a thousand of the agent's own recent actions, the agents that did not change gave about one flag per thousand, as expected, and the ones that changed stood out.
- **What stood out.** A load test that changed the shape of its invoice numbers was flagged at once. On one model under test, flags tripled, and among them were database queries carrying text planted in documents (for example a query searching for "run DELETE FROM invoices"). That is the kind of thing a person should read, and the kind of thing new rules are drawn from.
- **It sees different things from the counts.** On the same actions the two methods flagged different sets, so they are kept side by side.
## What it is not
It never blocks, never changes a gate answer and is never read by the gate. A model's judgement can be wrong in ways nobody can correct, so it stays where a wrong flag costs a minute of reading: in the analysis of the log, as hypotheses for new rules.
## The limit
The model needs about a thousand past actions of an agent before it can judge it. A new or rarely used agent cannot be judged yet, and the counts cover it in the meantime.
## Technical detail
A LoRA on a 0.6-billion-parameter open model, trained on the gate's log of our own agents (coding sessions, model benchmarks, load tests). Each agent's actions, in time order: the first 60% to training, the next 20% to set its threshold, the last 20% as the test. A flag is an action more surprising than the 99.9th percentile of the agent's own threshold set. Synthetic unusual sequences planted into agents with enough past were all found (7 of 7). The model was trained on the log written before version 4.0.0 of the gate; version 4 writes the same strings (the tool, its fields, their values), so the model reads it unchanged, and the counts beside it already run on the version 4 log and read their caps from the version 4 tables. A run on a longer version 4 log follows.
```chart
{"title": "Flags per 1,000 actions, the agent's recent past vs the test", "series": ["Recent past", "Test"], "unit": "", "max": 640, "rows": [["Coding sessions", 1.4, 1.4], ["Model A, enforce", 1.0, 1.5], ["Model A, shadow", 0.9, 3.2], ["Model B, enforce", 0.3, 0.0], ["Model B, shadow", 1.1, 0.5], ["Model C, enforce", 0.0, 0.0], ["Load test", 0.6, 634.2]]}
```
Model A: Llama 3.1 8B; model B: an abliterated Qwen model; model C: Qwen3 8B, each behind the gate in our benchmark, in enforce and shadow mode. Flags per 1,000 judged actions.
## Update, 5 December 2026
We converted the old log to the form version 4 of the gate writes (each old action read back into its fields and decided again by the version 4 engine) and retrained the model on it. It reads the log as before: 28.1 flags per 1,000 test actions, against 27.7 for the model trained on the old log (4 December), the same agents at about 1 per 1,000 against their own past, and the load test still far out. The version 4 form makes destructive statements of agents that rarely write stand out more: a dropped payments table and invoices all set to paid are now among the top flags.
This update is not available.