AgentLens: Revealing The Lucky Pass Problem in SWE-Agent Evaluation
Summary
AgentLens is a framework for process-level assessment of software engineering agent trajectories, revealing that over 10% of passing trajectories exhibit a 'Lucky Pass' behavior. It introduces AgentLens-Bench, a dataset annotated with quality scores, and shows that ranking by quality score can shift model rankings significantly.
View Cached Full Text
Cached at: 05/14/26, 04:16 AM
Paper page - AgentLens: Revealing The Lucky Pass Problem in SWE-Agent Evaluation
Source: https://huggingface.co/papers/2605.12925
Abstract
Software engineering agents are evaluated using a process-level framework that reveals differences between effective and ineffective approaches, identifying patterns like lucky passes and providing quality scoring for improved assessment.
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 60SWE-bench Verified tasks. Of these, 47 have enough passing trajectories to construct task-level process references, yielding a 1,815-trajectory evaluationsubset. Among passing trajectories in this subset, 10.7% exhibit behavior we call a Lucky Pass: regression cycles, blind retries, missingverification, or temporally disorderedexploration,implementation, andverification. We introduceAgentLens, a framework for process-level assessment of SWE-agent trajectories, and releaseAgentLens-Bench, a dataset of 1,815 trajectories annotated withquality scores,waste signals,divergence points, and 47 task-levelPrefix Tree Acceptor (PTA)references.AgentLensbuilds PTA references by merging multiple passing solutions for the same task, and uses acontext-sensitive intent labelerto assign actions toExploration,Implementation,Verification, orOrchestrationbased on trajectory history rather than tool identity alone. OnAgentLens-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 release the anonymized project repository, including theAgentLens-Benchdataset andAgentLensSDK, at https://github.com/microsoft/code-agent-state-trajectories/.
View arXiv pageView PDFAdd to collection
Get this paper in your agent:
hf papers read 2605\.12925
Don’t have the latest CLI?curl \-LsSf https://hf\.co/cli/install\.sh \| bash
Models citing this paper0
No model linking this paper
Cite arxiv.org/abs/2605.12925 in a model README.md to link it from this page.
Datasets citing this paper0
No dataset linking this paper
Cite arxiv.org/abs/2605.12925 in a dataset README.md to link it from this page.
Spaces citing this paper0
No Space linking this paper
Cite arxiv.org/abs/2605.12925 in a Space README.md to link it from this page.
Collections including this paper0
No Collection including this paper
Add this paper to acollectionto link it from this page.
Similar Articles
AgentLens: Production-Assessed Trajectory Reviews for Coding Agent Evaluation
AgentLens is a new open-source benchmark for evaluating coding agents that assesses the full trajectory of interactions, including instruction following, tool use, error recovery, and more, using formal verification and LLM-written reviews.
Measuring Exploits in LLM Agents with Tool Use (4 minute read)
An audit by Cursor finds that 63% of successful LLM agent runs on SWE-bench Pro retrieved the fix rather than deriving it, highlighting widespread reward hacking in coding benchmarks. The study proposes stricter environment controls to mitigate this behavior.
AgentCompass: A Unified Evaluation Infrastructure for Agent Capabilities
AgentCompass is an open-source, lightweight, and extensible evaluation infrastructure for LLM-based agents, decoupling benchmarks, harness, and environment for flexible configurations. It supports over 20 benchmarks across five capability dimensions and provides fault-tolerant runtime and trajectory analysis tools.
Agentic self-driving microscopy benchmarks support qualification but do not necessarily generalize to unseen tasks
This paper presents a benchmark and trace-logging framework for evaluating LLM-based agents that control microscopes, comparing 105 agent configurations and finding that benchmarks support qualification but do not reliably predict performance on unseen tasks.
@omarsar0: // Agents Do Not Fail Alone // Very nice open-source eval tool to check agent reliability. Lots of cool ideas in there.…
This paper introduces ProofAgent-Harness, an open-source evaluation tool that measures context engineering quality for AI agents across seven criteria, validating it as a leading indicator of agent reliability.