AgentLens: Revealing The Lucky Pass Problem in SWE-Agent Evaluation
cs.SE, cs.AI
Submitted: 2026-05-13
Updated: 2026-10-05
License: http://creativecommons.org/licenses/by/4.0/
The gist: Evaluation of software engineering (SWE) agents is dominated by a binary signal: whether the final patch passes the tests.
Terminology
Abstract
Evaluation of software engineering (SWE) agents is dominated by a binary signal: whether the final patch passes the tests. This outcome-only view treats a principled solution and a chaotic trial-and-error process as equivalent. We show that this equivalence is empirically false. We evaluate 2,614 OpenHands trajectories from eight model backends on 60 SWE-bench Verified tasks. Of these, 47 have enough passing trajectories to construct task-level process references, yielding a 1,815-trajectory evaluation subset. Among passing trajectories in this subset, 10.7% exhibit behavior we call a Lucky Pass: regression cycles, blind retries, missing verification, or temporally disordered exploration, implementation, and verification. We introduce AgentLens, a framework for process-level assessment of SWE-agent trajectories, and define AgentLens-Bench, a dataset of 1,815 trajectories annotated with quality scores, waste signals, divergence points, and 47 task-level Prefix Tree Acceptor (PTA) references. AgentLens builds PTA references by merging multiple passing solutions for the same task, and uses a context-sensitive intent labeler to assign actions to Exploration, Implementation, Verification, or Orchestration based on trajectory history rather than tool identity alone. On AgentLens-Bench, the quality score separates passing trajectories into Lucky, Solid, and Ideal tiers and further decomposes Lucky Passes into five recurring mechanisms. Across the eight model backends, Lucky rates range from 0.5% to 23.2%, and some models move by as many as five rank positions when ranked by quality score instead of pass rate. We plan to release the project repository soon, including AgentLens-Bench artifacts, the AgentLens SDK, and the analysis tooling.
Sources
- SWE-rebench: An Automated Pipeline for Task Collection and Decontaminated Evaluation of Software Engineering Agents
- Understanding Software Engineering Agents: A Study of Thought-Action-Result Trajectories
- Why Do Multi-Agent LLM Systems Fail?
- Web-Shepherd: Advancing PRMs for Reinforcing Web Agents
- Agentless: Demystifying LLM-based Software Engineering Agents
- Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilities
- TRAIL: Trace Reasoning and Agentic Issue Localization
- LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code
- R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agents
- AgentBench: Evaluating LLMs as Agents
- Understanding Code Agent Behaviour: An Empirical Study of Success and Failure Trajectories
- Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfaces
- SWE-Lancer: Can Frontier LLMs Earn $1 Million from Real-World Freelance Software Engineering?
- Learning Correct Behavior from Examples: Validating Sequential Execution in Autonomous Agents
- SWE-RM: Execution-free Feedback For Software Engineering Agents
- Solving math word problems with process- and outcome-based feedback
- OpenHands: An Open Platform for AI Software Developers as Generalist Agents
- SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolution
- SWE-smith: Scaling Data for Software Engineering Agents
- Multi-SWE-bench: A Multilingual Benchmark for Issue Resolving
Related papers
- Falsification-Based Verification of LLM-Generated Optimization Models: Sound Test Batteries and Their Detection Limits
- GitSkills: A Dataset of Agent Skills on GitHub
- SABER: Benchmarking Operational Safety of LLM Coding Agents in Stateful Project Workspaces
- PackMonitor: Enabling Zero Package Hallucinations Through Decoding-Time Monitoring
- IntentCoding: Amplifying User Intent in Code Generation
- Incentives and Outcomes in Bug Bounties