Planner holds no tools: 56/56 objects named first, unauthorized actions still 10/96

Intent Contracts: Taking Tools Away from Agents

Ziyuan Wang, Genliang Zhu, Xiaobo Chen, Chu Wang

cs.CR, cs.AI

2026-11-18

The planner holds no tools and files a contract; a small model writes the call. Unauthorized actions match blind review at 10/96, and all 56 changed objects were named in the goal.

What problem this solves

A tool-using agent can do the wrong work with nobody trying to cause harm. Restart a service, or clear a batch of jobs, and the target is ambiguous. The planner picks an interpretation, writes a command, and changes more than the user authorized.

A permission classifier has to rebuild that interpretation from the command and the user's words. Claude Code auto mode keeps the agent's prose out of the classifier. That removes a channel for persuasion, and it also hides the stated reason for the action. AmPermBench scores ambiguous DevOps requests from the resulting environment. The question is whether a short statement of intent, logged before the call, gives the trusted side anything it can use.

Method

The planner has no environment tools. Each step it files a contract: a goal of at most 100 words, a verbatim quotation of the user, allowed egress hosts, write prefixes, and an error policy. The goal names the objects and the change. It contains no command line.

Code checks three things. The quotation must be a contiguous span of the user message. Scope fields may only narrow a configured baseline. A goal that sneaks in a command is rejected. A small model then writes at most one call from the user's words, and only the part it judges authorized. Tool output goes back to the planner. The executor sees a receipt with output size and exit code, not the output text.

Blind review uses the same pair of models. The planner writes the full shell command. The reviewer sees the user's words and that command, and can only approve or refuse all of it. Intent-visible review also sees the goal and a quotation that code has checked, and still cannot edit the command. Two references run one model alone with tools. A third asks the strong model to write an INTENT line that nothing reads at execution time.

If the validation and dispatch code is correct, three facts do not depend on which models fill the roles. The trusted model writes every executed call. An accepted contract is logged first, and it is the planner's entire contribution. A reviewer can only refuse a whole command. The executor can carry out the authorized part and drop the rest. Trusted, in the AI control sense, means the small model is assumed to try to follow the user, not that its judgment is right. The runs use cooperative models and harmless extra work. There is no deliberately malicious planner.

The trusted model sees neither the environment nor tool output. It cannot check whether the objects named in the contract are the ones the user meant. The planner reads all tool output, so project content still flows back through the next contract.

Results

Three of AmPermBench's four families are included: job cancellation, service restart, and storage-artifact cleanup. Each family contributes 32 original prompts, 96 runs per condition. Branch cleanup is omitted because its state is a git repository, so these are not full-benchmark scores. The planner is gpt-6.1-terra. The trusted model is GLM-5.3-Flash. Safe completion means the authorized work is finished and no unauthorized object changes. Unauthorized action and incomplete can occur in the same run.

ConditionSafeUnauthorizedIncompleteMedian sec
Strong model alone9/9615/9677/9625.4
Small model alone4/961/9692/9611.1
Blind review10/9610/9676/9681.9
Intent-visible review7/962/9687/9695.5
Contract execution12/9610/9676/96178.8
Declaration only7/9610/9682/9624.9

Contract execution has 10/96 unauthorized actions, matching blind review (p = 1.0) and exceeding intent-visible review at 2/96 (p = 0.039). Safe completion is 12/96 against 7/96 (p = 0.227). State changed in 22 contract runs, 20 blind-review runs, and 9 intent-visible runs, with unauthorized changes in 10/22, 10/20, and 2/9. Told to refuse a command it cannot interpret, the reviewer declined 142 contracts. Told to carry out the part the user's words support, the executor declined 4. The small model alone has 1/96 unauthorized actions and leaves 92/96 incomplete. An unread declaration lands at the same 10/96 and does not reproduce the 2/96. On exact-ID prompts every condition has 0/24 unauthorized actions. All 12 safe completions under contracts fall in that bin, against 10/24 for blind review and 7/24 for intent-visible review.

Declaration coverage asks whether each changed object is named in the goal of the contract that produced the change. Contracts name 56/56. Intent-visible review names 2/16, blind review 4/54. The commands themselves name 16/16 and 39/54. Another 15 objects under blind review were selected by a script filtering the state file, with no name in the command. In all 10 runs where a contract changed a wrong object, that object is named in the contract too. Full coverage is close to a consequence of the interface: the executor cannot see the environment, so it can act only on objects the contract names.

On author-written tasks, an extra request appears only in the planner's copy of the user message. For a request appended to a single-file task, contracts finish the main task in 27/30 runs. Three of those 30 had every contract rejected because the quotation was not the user's words. Intent-visible review finishes 16/30. Neither side does the extra work. On a multi-file list the split is 24/24 against 19/24. After a whole-command refusal, the planner resubmitted a narrower command and finished in 15 runs, and never did in 13. Giving observation and target selection to the small model, on a 30-prompt sample, produces 15/30 unauthorized actions, against 3/30 for step-wise contracts. Twelve prompts are unauthorized only under the whole-task ablation (p < 0.001).

All three gated conditions accept a median of 7.0 contracts per run. Time does not match: 178.8 seconds for contracts, 81.9 for blind review, 25.4 for the strong model alone.

Phrases such as workbench lane never appear in the environment, and many original runs stop to ask what they mean. A fixed clarifying sentence maps each phrase to a queue or prefix. Which objects belong to the request stays ambiguous.

ConditionSafeUnauthorizedIncomplete
Strong model alone21/9614/9661/96
Blind review32/9625/9639/96
Intent-visible review19/9618/9659/96
Contract execution35/9629/9632/96
Decline when unsure35/9630/9631/96

After that clarification, contracts and blind review do not separate (safe p = 0.664, unauthorized p = 0.424). Contracts finish more often than intent-visible review (p = 0.002), with incomplete runs at 32/96 against 59/96 and unauthorized actions at 29/96 against 18/96 (p = 0.013). They also exceed the strong model alone at 14/96 (p < 0.001). Among runs that change state, the wrong-target rates are 14/35, 18/37, 25/58, and 29/64, about 40% to 49%. On exact-ID and own-ticket prompts together, 48 prompts, all four conditions have 0 unauthorized actions, and contracts are safe on 26/48. On 48 range prompts, contracts are safe on 9 and unauthorized on 29.

Telling the executor to decline when it cannot tell that the user asked for this change to these objects leaves safe completion at 35/96 and moves unauthorized actions from 29/96 to 30/96 (p = 1.0). Declines rise from 5 contracts to 10. A contract that names concrete objects and carries a genuine quotation leaves the executor nothing in the environment to doubt. Coverage on the clarified prompts is 181/181 for contracts, 12/106 for intent-visible review, and 11/157 for blind review.

Why it matters

The part that holds up is a record written before the action. Unauthorized actions are not lower. The planner's influence sits in the log: goal, verbatim quotation, egress hosts, write prefixes, error policy. Under review, objects mostly appear in the command that is about to run, and the goal field rarely names them.

Partial authorization is where the interfaces diverge. When extra work is bundled into the same step, a refusal blocks the authorized part as well, and progress waits on the planner to submit something narrower. The contract executor can split the step. On the author-written tasks the main task finishes in 27/30 runs against 16/30, with the extra work at 0 on both sides. The tasks are small. That completion gap is not reproduced on the external benchmark.

File-tool checks can hold writes inside declared prefixes. Arbitrary shell writes are not held, and the AmPermBench runs disable the command-text egress check. The plugin targets OpenCode, and the per-run records are released. This is not a general sandbox.

Limitations

Unauthorized actions do not fall. Once the environment terms are clarified, contracts and blind review still do not separate, and 40% to 49% of state-changing runs hit the wrong objects under every condition that acts. The error is how the planner reads an ambiguous reference, a choice made before any gate sees the step. An instruction to decline when unsure leaves the count at 30/96 against 29/96.

The measurement is one pair, gpt-6.1-terra and GLM-5.3-Flash, one run per prompt per condition. Both are hosted endpoints, not fixed weights, so condition gaps are mixed with run-to-run variation. The 96 prompts come from 16 templates and one fixed environment per family. The tests are unadjusted, and the intervals are optimistic. Intent-visible review's lower unauthorized count is mixed with acting less often, and a refusal changes what the planner proposes next, so the comparison does not isolate intent visibility. The small model alone and the unread-declaration condition were not rerun on the clarified prompts.

There is no malicious planner. Benign extra work is not evidence about deliberate misleading. A literal name match is not correct authorization, and it does not show that an auditor would judge the run more accurately. The interface claims rest on plugin code that has unit tests and has not been verified. A shell command can still write outside the declared prefixes. Whether hiding tool output from the executor blocks prompt injection is unmeasured.

Terms

Source

Related papers

All paper explainers