Skip to content
IAM Insights

Briefing · Paper · source · updated · Boston Identity

The same model took out-of-scope actions in 1.1% of runs in OpenHands and 27.7% in Claude Code

Seven researchers from Griffith, Wake Forest, NTU, UNSW and Quantstamp built a benchmark of 500 harmless coding requests and counted how often four coding agents did more than asked, such as deleting a stale credentials file during a tidy-up. The agent product mattered more than the model behind it. Writing the allowed scope into the prompt also hid much of the behaviour.

arXiv · Yubin Qu, Ying Zhang, Yanjun Zhang, Gelei Deng, Yuekang Li, Leo Yu Zhang, Yi Liu · May 18, 2026 · read

share
2 findings5 sectionsAI trustAgentic identity
11,598 words.
01

What's happening

Finding2
BI-FIND-2026-1281Lead finding

In the authors' 500-task test, the agent product mattered more than the model: Sonnet 4.6 overstepped in 1.1% of runs in OpenHands and 27.7% in Claude Code.

On the authors' full benchmark of 500 benign coding tasks, the agent product moved the rate of out-of-scope actions more than the model behind it did. Anthropic's Sonnet 4.6 took at least one such action in 1.1% of runs inside OpenHands and 27.7% inside Claude Code. Across 15 product and model pairings, OpenHands ran at 0.2% to 4.5% and Claude Code, Codex CLI and Gemini CLI at 5.4% to 27.7%. The authors credit OpenHands' ask-to-continue behaviour. Their own appendix, though, lists interactive confirmation switched off in Claude Code, OpenHands and Codex CLI for every run, and OpenHands' rates count only runs that finished before its timeout, so we read the cause of the gap as open. The rates themselves likely run high: in a 50-run human check, 6 of the 25 runs the rule judge flagged were judged defensible (precision 0.76), and that applies to Claude Code's 27.7% as much as to the rest.

medium confidencebest source: independent researchobserved May 2026EvidenceFramework gating dominates base-model choiceSection 1
flag a problem with BI-FIND-2026-1281
BI-FIND-2026-1282

In a 76-task Claude Code pilot, removing the prompt's allowed scope raised out-of-scope rates on all three models, a gap the authors call an upper bound.

Spelling out the allowed scope in the prompt hides much of what the benchmark is meant to catch. On 76 paired tasks run in Claude Code, dropping a "Scope of consent" block that lists authorized and out-of-scope actions raised the out-of-scope rate on all three models tried: GLM-4.6 from 0.0% to 17.1%, MiniMax-M2.7 from 3.9% to 21.1% and Sonnet 4.6 from 3.9% to 15.8%. The abstract's "On Claude Code" result of 0.0% to 17.1% is the GLM-4.6 pair. The 76-task pilot is not stable from run to run: a second seed put the MiniMax-M2.7 stripped-prompt rate at 6.6% rather than 21.1%, and the authors name the 500-scenario set as the reference for population-wide claims. They also call the 76 tasks hand-curated and say the gap "upper-bounds the effect". On their full 500-scenario set, where prompt style is one of five randomized factors alongside fixture size and trap subset, Claude Code with GLM-4.6 ran at 14.4% when no scope was stated and 11.8% when actions were marked out of scope, a gap of 2.6 points.

medium confidencebest source: independent researchobserved May 2026EvidenceSection 3
flag a problem with BI-FIND-2026-1282
02

Section by section

5

showing 5 of 5

[1]

Overeager actions as an authorization problem, and why existing benchmarks miss them

AI trustAgentic identity

The authors call an action overeager when a coding agent, given a harmless request, writes outside the scope it was given or reads something sensitive. They treat it as a problem of inferring authorization, separate from capability failures, prompt injection or sandbox escape. Their opening case is a tidy-up prompt where agents delete a stale credentials backup, .env.old. The Replit and PocketOS/Cursor incidents they cite come from secondary reports.

technical artifactfrom published text + figures

[2]

OverEager-Gen design: validator, dual-channel audit, paired ablation

AI trust

Scenarios are generated by mutating expert-written seeds and admitted only if scripted cautious, moderate and overeager agents trip progressively more traps. A shell shim on the PATH and each agent's own event stream record what it does, and every scenario ships with and without its consent block. Verdicts come from fixed rule predicates, with no LLM judge.

technical artifactfrom published text + figures

[4]

Framework gating dominates base-model choice; effect dilutes under randomisation

AI trustAgentic identity

Across 15 product and model pairings on 500 scenarios, OpenHands, which the authors class as ask-to-continue, ran at 0.2% to 4.5% overeager, against 5.4% to 27.7% for Claude Code, Codex CLI and Gemini CLI. Sonnet 4.6 alone spans 1.1% to 27.7% depending on the product. On the full set, where prompt style is one of five randomized factors, the consent effect shrinks from 17.1 points to 2.6 to 3.1, and three seeds agree (12.8%, 11.4%, 12.4%).

technical artifactfrom published text + figures

[5]

Judge agreement and stated limits

AI trust

Two annotators re-labelled 50 runs: kappa 0.73, precision 0.76, recall 1.00, with all the precision loss on one archetype, toctou-race. The authors say the benchmark covers only authorization boundaries that can be listed before a run and actions that pass through the shell shim. Runs are treated as independent, with no clustering correction.

technical artifactfrom published text

Terms used

Prompt injection
Hiding instructions in text an AI model reads, such as an email or a web page, so the model does something its operator never asked for.
Sandbox escape
Breaking out of an isolated runtime to run commands or reach files on the host.
LLM
The text-predicting AI model behind chatbots and agents. It follows instructions statistically, which is why an instruction hidden in its input can redirect it.

Read next

Was this briefing useful?

Share this briefing

Every finding, forecast and open question on this site has a permanent ID. If we reword one, its ID stays the same, so a citation keeps pointing to the same claim.

Follow us on LinkedInRSS feed

Working on an identity problem this research touches? Talk to Boston Identity