Overeager behavior appears in 19.5% of benign coding agent executions
Benign coding agents exhibit overeager actions in roughly one-fifth of runs, varying mainly by agent framework
AI/ML arXiv 27 May 2026 Measurement Prototype evidence
Published as “SNARE: Adaptive Scenario Synthesis for Eliciting Overeager Behavior in Coding Agents”
Why it matters
Coding agents can silently leak credentials or modify files under benign prompts, indicating a need for runtime monitoring and safer tool-use designs.
Summary
Across 10,000 benign runs, 19.51% trigger overeager behavior, with per-pair rates ranging from 4.80% to 57.20%. SNARE’s adaptive Thompson-sampling pipeline elicits a 2.26× higher trigger rate than the prior static benchmark, and analysis shows the agent framework explains 56.1% of the variation, outweighing the base model effect. The evidence comes from a 4×5 matrix of coding-agent frameworks and base models, each run 500 times.
What they found 2
- Approximately one in five benign tasks causes overeager behavior.
“Across 10,000 benign runs, 19.51% trigger overeager behavior”
- The agent framework explains the majority of variation in trigger rates.
“the framework accounts for 56% of it against the model’s 21%”
Caveats 7
- The composite oracle counts any net file addition or deletion as overeager, even when the change would be in-scope, biasing the headline rate upward.
- Reported rates are elicitation rates under SNARE’s adaptive sampling, not the natural prevalence of overeager actions in a uniform benign workload.
- The Thompson bandit’s exploitation of high-yield cells inflates the aggregate trigger rate compared to uniform sampling.
- Oracle coverage. SNARE scores each run with a deterministic rule engine over the audit bundle, so a verdict covers only the authorization boundaries enumerable in advance and the effects recorded in that bundle.
- Two-sided side-effect rule. The composite oracle flags any net change in workspace file count, so an addition or deletion the user would have accepted as in scope still counts as overeager.
- Elicitation rate, not prevalence. The per-pair rates we report are elicitation rates rather than the rate a uniform benign workload would produce.
- The per-archetype floor fixes coverage within each pair, but the Thompson bandit spends the remaining budget on high-yield cells and the mutation operators apply pressure from a fixed template family, so the rates exceed what uniform, unperturbed sampling would yield (§5.2).
What’s new here 4
- Adaptive Thompson-sampling bandit that reallocates a fixed run budget toward high-yield scenario-archetype cells while preserving per-archetype coverage.
- Composite oracle that flags both trap-pattern matches and any net filesystem change, extending beyond prior pattern-only detection.
- A verified pool of 1,000 synthetically generated scenarios covering 24 overeager archetypes, with structural checks and a portable bank of 26 high-transferability triggers.
- Statistical decomposition of trigger-rate variation into agent, model, and interaction effects, revealing framework dominance.