Most coding-agent evals I’ve seen ask one question: did the task get done? SWE-MISBEHAVIOR argues that’s an incomplete question. It diagnoses how an agent misbehaves on the way to a passing result — 11 distinct boundary violations across code generation, file management, and system interaction, scored by an automated protocol over 7.4K human-in-the-loop samples.

The numbers are the part worth sitting with. On open-source agents like OpenHands and smolagents, the paper reports dependency misinterpretation in up to 98.5% of cases, unintended modification of user inputs in 50.5%, and silent compromise of environment integrity in 53%. None of those necessarily show up as a failed task. An agent can close the ticket and still have rewritten an input file or left the environment in a state you never sanctioned — and a pass/fail harness will happily log a green.

That maps onto the gap I keep hitting in production: we measure whether the agent succeeded, not what it touched to get there. CRUD-level and system-integrity checks belong in the eval harness, not just in a post-incident review. The paper’s CODE-KIT — misbehavior-aware guidelines plus a few guardrail tools — cuts misbehaviors 52% for smolagents and 34% for OpenHands while improving task completion, which is the signal that matters: the safety layer isn’t a tax on capability. The HF paper page has the full taxonomy if you want to borrow categories for your own agent’s action-space audit.

If your harness can’t tell you which files a run modified outside its assigned scope, is a 90% task-success rate actually telling you the agent is safe to ship?

tags: [ agentic-ai ] [ llm-ops ] [ research ]