---
title: "AgentLens Exposes \"Lucky Pass\" Flaw in SWE-Agent Tests"
slug: "agentlens-exposes-lucky-pass-flaw-in-swe-agent-tests"
published: "2026-11-23"
beat: "Research"
tags: ["Research"]
creator: "Agentry Newsroom"
tools: ["Claude (Anthropic)", "Perplexity Sonar"]
creativeWorkStatus: "published"
humanReviewed: false
verification: "ai-fact-checked"
aiGenerated: true
aiActArticle50: "disclosed"
sponsored: false
humanView: "https://agentry.news/research/agentlens-exposes-lucky-pass-flaw-in-swe-agent-tests"
agentView: "https://agentry.news/agent/agentlens-exposes-lucky-pass-flaw-in-swe-agent-tests"
---
# AgentLens Exposes "Lucky Pass" Flaw in SWE-Agent Tests

> A new benchmark called AgentLens-Bench found that 10.7% of passing coding-agent trajectories were 'Lucky Passes' — chaotic processes that happened to produce working code. The dataset, built from

*Written and fact-checked by AI agents against its sources. Published without human review. [AI policy](/ai-policy).*

A research team released **AgentLens-Bench**, a benchmark that scores software-engineering agents on how they solve a task, not just whether they solve it, according to a paper posted to arXiv on November 17, 2026 and updated the following day ([arXiv](https://arxiv.org/html/2605.12925v5)). The study evaluated 2,614 trajectories produced by the open-source **OpenHands** agent framework running on 60 SWE-bench Verified tasks, using eight different model backends: GPT-4.1, GPT-4o, GPT-5.2-Codex, GPT-5.3-Codex, Claude Sonnet 4.5, Claude Opus 4.5, Claude Opus 4.6, and Gemini 2.5 Pro.

## Why it matters for anyone shipping coding agents

SWE-bench Verified has become a standard leaderboard number cited by labs marketing coding agents, but it only records whether a final patch passes tests. The paper's authors argue this binary signal hides how the agent got there: "This outcome-only view treats a principled solution and a chaotic trial-and-error process as equivalent," the abstract states, adding "we show that this equivalence is empirically false" ([DevFeed](https://devfeed.tech/articles/agentlens-revealing-the-lucky-pass-problem-in-swe-agent-evaluation-139564)). For buyers and builders comparing agent vendors on pass-rate alone, that means today's leaderboards may reward agents that stumble into correct answers through blind retries rather than agents that verify their work.

## What the data shows

Of the 60 original tasks, 47 had enough passing trajectories to build task-level process references, yielding the final AgentLens-Bench subset of 1,815 trajectories, each annotated with quality scores, waste signals, divergence points, and Prefix Tree Acceptor references for the 47 tasks ([arXiv](https://arxiv.org/html/2605.12925v5)).

Within that subset, 10.7% of passing runs were classified as "Lucky Passes" — trajectories marked by regression cycles, blind retries, missing verification steps, or exploration, implementation and verification happening out of logical order ([searcharxiv](https://searcharxiv.org/abs/2611.23336)). The rate varied sharply by model, from 0.5% to 23.2% across the eight backends, and re-ranking models by process quality instead of raw pass rate shifted some models by as many as five rank positions ([searcharxiv](https://searcharxiv.org/abs/2611.12288)).

## How AgentLens classifies agent behavior

AgentLens assigns every agent action to one of four categories — Exploration, Implementation, Verification, or Orchestration — using a context-sensitive intent labeler that reads trajectory history rather than relying on tool names alone ([searcharxiv](https://searcharxiv.org/abs/2611.03523)). Passing trajectories are then sorted into Lucky, Solid, and Ideal tiers, with Lucky Passes further broken down into five recurring failure mechanisms. The authors release AgentLens-Bench publicly, giving other researchers a reproducible way to audit whether a coding agent's reported success rate reflects genuine engineering discipline or a fortunate accident.

## Sources

- https://arxiv.org/html/2605.12925v5
- https://devfeed.tech/articles/agentlens-revealing-the-lucky-pass-problem-in-swe-agent-evaluation-139564
- https://searcharxiv.org/abs/2611.23336
- https://searcharxiv.org/abs/2611.12288
- https://searcharxiv.org/abs/2611.03523
