NeurIPS 2026QuestionsPapersAreasAboutMarkdown

AgentLens: Revealing The Lucky Pass Problem in SWE-Agent Evaluation

Priyam Sahoo, Gaurav Mittal, Xiaomin Li, Shengjie Ma, Benjamin Steenhoek, Pingping Lin, Yu Hu

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: LLM Agents, Evals & Benchmarks › Verifier-Backed Evaluation of Agentic Reasoning · Type: new method · Keywords: software engineering agents, evaluation methodology, process-level assessment, lucky pass, trajectory analysis, Prefix Tree Acceptor

Areas: Code & Coding Agents › Code Verification › Coding agent benchmarks; AI Agents › Agent Benchmarking › Software agent benchmarks; Evaluation & Benchmarks › Language Model and Agent Benchmarks › Coding Agent Benchmarks; Evaluation Methodology & Auditing › Agent and Reward Auditing › Agent evaluation; Benchmarks for LLMs & Agents › Cross-Domain Agent Evaluation › Coding Agent Benchmarks

Summary

AgentLens is a framework for process-level assessment of SWE-agent trajectories that reveals the Lucky Pass problem and provides a dataset of trajectory quality scores.

Explained to a 5-year-old

People build computer helpers that fix code. Right now we only check if the fix works, not how they got there. Some helpers guess a lot and still pass tests, which is lucky. We made a new way to look at how helpers think, so we can tell if they solved things carefully or just got lucky. This helps make better helpers in the future.

Explained to a 5-year-old, longer

People create computer programs that can fix mistakes in other programs. Usually we only see if the final fix passes the tests, like a yes or no. This means we can't tell if the program solved the problem carefully or just guessed. Sometimes a program makes many random attempts and still passes, which is called a lucky pass. The new system looks at the whole process of how the program works, not just the final result. It groups together all the correct ways a program could solve a problem into a reference tree. Then it watches each step of a program's actions and decides if it was exploring, building, checking, or organizing. Based on that, it gives each program a quality score, labeling it as lucky, solid, or ideal. This helps us see which programs truly understand what they're doing and which ones just got lucky. By using this method, we can improve how we compare and train software engineering agents.

For a technical reader

The paper addresses the limitation of binary pass/fail evaluation for software engineering agents by introducing a process-level assessment framework. It builds task-level reference trees from multiple correct solutions and applies a context-sensitive labeler to categorize actions into exploration, implementation, verification, and orchestration stages. A composite quality score then tiers trajectories into lucky, solid, and ideal categories, revealing hidden issues and altering model rankings. The released dataset and SDK enable broader community evaluation and improvement of SWE agents.

Problem

Evaluating software engineering agents solely based on whether the final patch passes tests fails to distinguish between robust solutions and those that succeed by chance or chaotic trial-and-error.

Method

The approach constructs task-level process references by merging multiple passing solutions into a Prefix Tree Acceptor (PTA) reference space and uses a context-sensitive intent-stage labeler to categorize actions into Exploration, Implementation, Verification, and Orchestration based on trajectory history. It then evaluates trajectories with a composite quality score that separates them into Lucky, Solid, and Ideal tiers.

Results

The approach finds that 10.7% of passing trajectories exhibit Lucky Pass behavior, and across eight model backends, between 0.5% and 23.2% of successful trajectories are classified as Lucky. Ranking by quality score changes model rankings by up to five positions compared to simple pass rates.

Contributions

The paper introduces a process-level evaluation framework that constructs task-level references and a context-sensitive intent-stage labeler, and releases a dataset of 1,815 annotated trajectories with quality scores and waste signals. It also demonstrates that binary pass rates can be misleading and provides a composite score to better assess SWE agents.

Practical relevance

The work enables researchers and practitioners to assess SWE agents more accurately, facilitating the development of more reliable and transparent agent systems.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction