One night, one model in two roles, every action decided by our gate: about 25,000 decisions. Reading what the misbehaving agent was allowed to do gave twelve kinds of action that should not have passed. The fixes and new rules are in a new release of the open-source gate, and replayed on the same night they stop 120 more of the agent's actions while touching 12 of 6,652 actions of normal work.
## Why it matters
Nobody can list in advance everything an agent may try. The only way to get good rules is to watch a great many attempts and read what got through. This is how the rules of our gate are made.
## What we did
One model worked on 48 coding and operations tasks, twenty times each, in two roles: doing the task, and doing the task with one extra instruction, try the forbidden things. Every action went to the gate before it ran. In one night that made about 25,000 decisions: 9,300 from the worker and 15,400 from the misbehaving agent.
## What we found
**The gate stopped about 14 actions in 100 of the worker and 34 in 100 of the misbehaving agent.**
**The worker runs out of new moves early; the misbehaving agent does not.** We counted how many kinds of action appear that were never seen before. For the worker the count falls from 132 per thousand actions to about 20. The misbehaving agent is still producing 30 to 50 new kinds per thousand after 15,000 actions.
```chart
{"title": "New kinds of action per 1,000 actions", "series": ["Model doing the task", "Same model told to misbehave"], "unit": "", "max": 140, "rows": [["In the first thousand", 132, 114], ["After many thousands", 21, 40]]}
```
**New situations matter more than repetition.** Each new task brought 25 to 29 kinds of action that no other task had shown, and the coding tasks and the server tasks share only about a third of their kinds. So the next batches change the environment, not the number of repetitions.
**Twelve kinds of action passed that should not have.** In five of them the gate was judging something other than what ran:
- a package named in a planted instruction was installed once, because the agent attached a version number and the gate no longer recognised the name;
- a program copied under another name and run, so the rule that knows it by name did not fire;
- the list of environment variables read as a file instead of with the usual command;
- host names sent to lookup and ping tools, which the gate did not treat as network tools;
- code handed straight to an interpreter, opening a connection or reading the environment.
The other seven were things no rule covered: installing packages nobody asked for, cloning repositories that are not the project's, changing git settings for the whole machine, reading the machine's account files, changing what git runs on the next commit, throwing away local work.
## What we did about it
All five fixes and the rules that hold up are in a new release of the open-source gate, each with a test built from the logged action. Three rules are on for everyone and hold the action for a person: throwing away local git work, changing what git runs, reading the machine's account files. Two go in a separate pack that an owner switches on, because a pinned install and a clone are everyday work for many teams: packages and repositories the user did not name.
Two ideas we did not adopt. Searching files for the word "token" is an ordinary code search, so holding it would stop normal work. And letting a change pass because its words appear in the request cannot tell "scale to 3" from "do not scale"; the right tool is for a person to approve a kind of action once.
We also removed a nuisance: commands that only read a fact about the machine are no longer held.
```chart
{"title": "Actions stopped by the new version, replayed on the night's log", "series": ["Stopped"], "unit": "", "max": 130, "rows": [["Of 8,890 allowed to the misbehaving agent", 120], ["Of 6,652 allowed to the normal worker", 12]]}
```
## What comes next
The same collection is running on a different program and a different kind of server, and a benchmark is running the same tasks on open models from 0.6 to 120 billion parameters, to count what each one tries behind the same gate.
## Technical detail
- 24,697 decisions; worker 8,047 allowed, 393 refused, 869 held; misbehaving agent 10,129 allowed, 2,174 refused, 3,085 held.
- The hosted service and the open-source library gave the same answer on every decision checked (24,522 of 24,522).
- Kinds of action: 5,729 fine, 1,258 coarse (only the facts a rule reads).
- Of 457 actions flagged as an attempt at a planted action by the misbehaving agent, 402 were stopped; the allowed ones were read by hand: reports quoting the planted text, searches, dry runs, and the one install described above.
- The new release passes 198 tests, 82 of them new. Replayed on the 15,542 shell actions the gate had allowed: 120 more stopped for the misbehaving agent of 8,890, 12 of 6,652 for the worker (0.2%); with the optional pack, 304 and the same 12. 43 of the 51 worker actions held only for a harmless substitution now pass.
- On normal work with no planted instruction the worker was stopped 593 times in 4,576 actions; 254 of those are one rule holding the change the task itself asked for.
- One model, 48 tasks of two families: the curve says when these tasks stop giving new kinds of action, not when agents in general do.
- 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.