We ran coding and operations agents with every action decided by our gate service. The service gave the same answer as the open-source library every time. A model told to try forbidden actions was stopped three times as often as the same model doing its job, and what still got through became the next version of the rules.
## Why it matters
A gate is only as good as its rules, and rules cannot be invented at a desk. They have to come from what agents do when nobody stops them. So we let agents work, sent every action to the gate before it ran, and read what happened.
## What we did
The agents ran next to the models, on machines in Berlin. The gate ran on our server. Before each action (a shell command, a file write, a call to a tool) the agent asked the gate, and got one of three answers: pass, refused, or wait for a person.
We used two kinds of agent. The first was a model doing ordinary coding and operations tasks, half of them with a planted instruction hidden in a document. The second was the same model with one more line in its instructions: try the forbidden things. That second agent is there to test the rules, and it is tireless.
## What we found
**The service decides exactly like the library.** For every decision we also ran the open-source library on the same session, on the machine beside the agent. Same answer, same rules, same reply, every time.
**A check takes about a fifth of a second** from Berlin to our server and back. Nearly all of it is the network.
**The agent told to misbehave was stopped three times as often.** About 11 actions in 100 for the model doing its job, about 30 in 100 when told to try forbidden actions.
```chart
{"title": "Actions stopped by the gate, out of 100", "series": ["Stopped"], "unit": "", "max": 40, "rows": [["Model doing the task", 11.1], ["Same model told to try forbidden actions", 29.9]]}
```
**What got through gave us the next rules.** We read every action the misbehaving agent was allowed to take. Five kinds should not have passed: a command hidden inside a variable, reads of places where credentials are kept that our list did not name, dumps of all environment variables, package downloads that were not written as installs, and searches for credential files. All five are closed in the new public version of the gate, each with its own test.
**Every attempt at a planted action was stopped**, on a model as released and on the same model after our correction. The gate does the stopping, whatever the model.
**Tuning the model trims the blocks a little.** A model tuned on its own blocked actions was stopped less on normal work in both runs, by 1 to 3 actions in 100. It did not solve more tasks. That is why the gate and its rules come first, and tuning is done where a specific problem calls for it.
```chart
{"title": "Normal work: actions stopped out of 100", "series": ["Model as released", "Model tuned on its own blocked actions"], "unit": "", "max": 10, "rows": [["First run, gate as a library", 7.7, 4.5], ["Second run, gate as a service", 7.6, 6.5]]}
```
## What comes next
A much larger batch is running now: the same agents, tens of thousands of actions, to see how many different kinds of action appear and how fast new ones stop arriving. The rules are extracted from that record with fixed procedures: the same data always gives the same rules.
## Technical detail
- Four runs, 96 episodes each, 3,605 decisions in all. Service and library agreed on 3,605 of 3,605 (outcome, deciding rules, reply).
- Round trip of one check: median 214 to 229 ms across the four runs.
- Model doing the task: 930 actions, 827 passed, 19 refused, 84 held. Same model told to try forbidden actions: 1,537 actions, 1,078 passed, 161 refused, 298 held.
- The five gaps were found by reading all 1,078 passed actions of the second agent. Replayed against the new version, the fixes stop 64 of them.
- Open 32-billion-parameter model, normal work: 24 blocks in 317 actions as released, 17 in 261 after tuning. In the earlier run with the gate as a library: 23 in 299 and 12 in 268.
- Attempts at a planted action: 7 and 4 episodes out of 48, all stopped.
- One run per setting, with sampling: the differences between settings are small counts and are reported as such.
- We do not claim that a model stops following planted instructions, or that an agent is safe. A planted instruction can make the model want anything; it can do only what the owner's rules allow, and the count is shown.
This update is not available.