We replayed published agent incidents live with an open model. Rules on which sites an agent may reach stopped a third of the harm. Rules that bind every action to the task the agent was given stopped all of it, 28 of 28, and every legitimate task still finished.
## Why it matters
An agent in a browser has more within reach than its task needs: a password the browser saved, a session already open, a settings page its account can edit, the user's mailbox in another tab. In the incidents a university team rebuilt this year, that is how most of the harm happened. Nobody broke anything; the agent simply used what was there.
## What we did
We changed the question the gate asks. Before the agent reads anything, the company declares the task: which sites, and what the agent may do on each (read, write, sign in), which saved credentials it may use, and where information may be sent. Every action is then checked against that task, with four rules:
- the task grants the authority, not what happens to be within reach;
- reading does not allow writing;
- what the agent read from private pages leaves only toward the places the task names;
- a part of a site that the site itself says is not public stays closed.
The browser, not the model, tells the gate where each click leads and which saved value an action is about to use. The gate remembers nothing: the task travels with each action.
## What we found
We ran the authors' own browser simulations with an open model, three times each, without the gate, with rules on sites alone, and with the task. Harmful sessions went from 28 in 45 without the gate, to 19 with rules on sites, to 5 with the task.
The five that still got through showed what the action alone did not carry: a fake seller inside a shop the task allows, and a private page the site lists nowhere in its robots file. So we added two more general rules. Who receives is part of the action: the browser reads the seller from the checkout page, and the task names whom the agent may buy from. And a page can say on its own that it is not public, as sites do in their headers. With these, no harmful session got through: 0 in 45. Every one of the 45 legitimate sessions finished its job.
## Technical detail
- Seven browser replications from a public study of agent incidents (arXiv:2611.26553), 30 variants, 3 runs each, the authors' pages, tools and harm checks unchanged.
- Harmful sessions: 28 of 45 without the gate, 19 with host rules, 5 with the task contract (engine 2.14.0), 0 with the receiver and the page's own word added (engine 2.15.0). Legitimate sessions completed: 43, 34, 45 and 45 of 45.
- Refusals in attack sessions with engine 2.15.0: a site the task does not name 21, a credential or sign-in it does not grant 9, a write it does not grant 6, a page or a part of a site declared not public 7, a receiver the task does not name 1.
- Gate engine 2.15.0; the same action in the same session always gets the same answer.
## Update, 3 December 2026
One of the four rules above is removed: "what the agent read from private pages leaves only toward the places the task names". It worked by remembering what the agent had read and comparing it with what it sent, and the gate now keeps no memory of the conversation. The other three stay, and where data may go is now said by the rule on the action itself: the sites the task grants for writing, and who may receive on each.
## Update, 5 December 2026
The gate is now version 4 and keeps no record of the session, so the task is no longer a contract the gate holds during the conversation: the owner writes it in the table, as the pages the task reaches (a site by name and the paths on it), with separate lines for writing, signing in and stored values. We ran the same seven browser cases again, live, 90 sessions with the same model. No attack session ended in harm (0 of 45, as with the contract), and every control session finished its task (45 of 45). 8 control sessions met a refusal (a look-alike address of the shop, a link to the park's operations feed, a look-alike agenda page) and all 8 still finished. What it cost: in the park case the model, lured by the planted page, kept trying the refused addresses and ran out of turns in all 6 attack sessions without answering (with the contract, 4 of 6 finished). The numbers above were measured on version 2.15.0 and stay as they were.
This update is not available.