Beyond Isolated Tasks: A Framework for Evaluating Coding Agents on Sequential Software Evolution

K N Ajay Shastry, Ganesh S, Shrey Satapara, Pranoy Panda, Chaitanya Devaguptapu

TL;DR

Current AI coding benchmarks are too easy because they let agents start from a "clean slate" for every task. Researchers have introduced SWE-STEP, a new framework that forces agents to work on a sequence of related tasks in a persistent environment, revealing that standard evaluations overestimate agent performance by up to 20% and mask a hidden surge in technical debt.

What Problem Does This Paper Address?

In the real world, software development is a marathon, not a sprint. Changes are cumulative: you fix a bug today, add a feature tomorrow, and refactor next week—all within the same codebase. However, popular benchmarks like SWE-bench evaluate agents on "isolated tasks." They reset the repository to a pristine, human-validated state before every single issue.

This "stateless" approach ignores the messy reality of software evolution. It doesn't account for "spillover effects," where a sloppy fix for one task makes the next task impossible to solve. It also fails to measure whether an agent is slowly poisoning the codebase with "technical debt"—code that technically works but is so complex and messy that it becomes a nightmare for future developers.

Methods

The authors propose SWE-STEP (Stateful and Temporal Evaluation Process). Unlike previous benchmarks, SWE-STEP evaluates agents across continuous, temporally ordered chains of Pull Requests (PRs).

The framework introduces two primary evaluation settings:

  1. Conversational Coding: The agent receives PR-style requests one by one. The repository state, previous edits, and conversation history persist. Crucially, tests "cascade"—once a test is introduced in an early PR, the agent must ensure it stays passing for all future tasks in the chain.
  2. Aggregated Task Specification (ATS): The agent is given a bundle of requirements for multiple PRs upfront and must plan and implement the entire sequence at once.

To prevent "gaming" the benchmark, the authors implemented strict protocols: locking test files so agents can't "fix" the tests instead of the code, pruning git history so agents can't peek at the human solutions, and restricting internet access.

Datasets

The researchers created SWE-STEP-Full, a dataset consisting of:

  • 168 tasks spanning 963 PRs.
  • Six diverse, popular Python repositories (including Pandas, DVC, and Haystack).
  • Two smaller subsets, SWE-STEP-Lite (50 tasks) and SWE-STEP-Mini (20 tasks), designed for more cost-effective evaluation.

These tasks are significantly more complex than those in previous benchmarks; the task descriptions are roughly 15–19 times longer than those in SWE-bench, and the "gold" human solutions modify an average of 17 files per task.

Key Insights and Ideas

  • The "Clean Slate" Inflation: Evaluating agents on isolated tasks creates a false sense of security. When agents have to deal with their own past mistakes and a growing suite of regression tests, their success rates plummet.
  • The Technical Debt Trap: This is perhaps the most striking finding. Even when agents successfully pass all functional tests, they often degrade the "health" of the repository. They tend to introduce significantly higher Cognitive Complexity and SQALE technical debt compared to human developers.
  • Goal Drift: In stateful settings, agents often suffer from "context overhead." A qualitative analysis showed that agents sometimes get confused by artifacts or logs from a previous task and end up trying to solve an old problem again instead of the current one.
  • Dependency Sensitivity: The performance gap is widest when tasks are "dependency-linked" (i.e., when a later task relies on code changed in an earlier one). For top-tier models like Claude 3.5 Sonnet, the performance gap between isolated and sequential tasks can widen to a staggering 40.9 percentage points.

Key Results

  • Performance Drop: Across all models tested (including Gemini 3 Pro and Claude 3.5 Sonnet), PR-level success rates dropped by 15 to 25 percentage points when moving from isolated evaluations to the stateful "Global" setting.
  • Model Rankings: While frontier models like Claude 3.5 Sonnet and Gemini 3 Pro still lead, the gap between them and smaller, cost-effective models varies significantly depending on the repository's architectural complexity.
  • Failure Modes: The dominant failure mode in stateful settings (accounting for 44.9% of errors) was "Solving Previous Issues"—the agent essentially got lost in the history of the evolving codebase.

Limitations and Future Work

The authors acknowledge several limitations:

  • Language Scope: The current framework is limited to Python repositories.
  • Repository Selection: The study focused on popular, well-maintained projects; results might differ for smaller or "messier" early-stage repositories.
  • Computational Cost: Evaluating agents on long-horizon, multi-step tasks is significantly more expensive than single-issue benchmarks.

Future work could involve expanding the framework to other programming languages and developing better "context management" tools to help agents navigate the long-term evolution of a codebase without succumbing to goal drift.

Summary updated

BibTeX
@inproceedings{shastry2026beyond,
  author = {K N Ajay Shastry and Ganesh S and Shrey Satapara and Pranoy Panda and Chaitanya Devaguptapu},
  title = {{Beyond Isolated Tasks: A Framework for Evaluating Coding Agents on Sequential Software Evolution}},
  booktitle = {DL4C @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=2uZt7hmbhd},
}
Figure