AI Engineering
SWE-Shift: Evaluating Coding Agents When the Workspace Changes
Understand SWE-Shift’s matched continuations, metrics and limits, then design a small evaluation for preserving teammate changes and refreshing evidence.
A green test suite can hide a deleted teammate change
Suppose an agent is fixing a bug while a teammate adds an API to the same feature. If the agent passes all the original tests by deleting that API, the original bug may be fixed while the team’s current work is damaged. Original tests alone cannot settle whether the current task is complete.
SWE-Shift, a preprint released on October 23, 2026 by Victor Shea-Jay Huang and nine coauthors, evaluates coding agents under changes during execution. Paper: arxiv.org — 2610.32196v1 Authors’ code and setup: github.com — SWE-Shift
Two continuations from one saved state
The researchers resume two paths from a saved execution history and workspace. Clean continues unchanged; Shifted receives a task-relevant update. Each path must meet all requirements applicable when it ends. Depending on the case, those include the current goal, preservation of valid work, recovery, and fresh evidence.
The 120 scenarios are built on 23 task-root snapshots from 17 repositories. There are ten scenarios in each of 12 change families covering code, dependencies, tools, goals and evidence, with intervention at nine positions along a predefined trajectory. Changes are designed to matter to the task while leaving a valid solution accessible through the agent’s tools.
The shared saved state is a useful control, but model randomness is not controlled. Interpret the difference alongside the changed conditions and the checks applicable to each path.
Clean, Shifted, and PSR answer different questions
The paper evaluates 17 model–agent systems with the same scenarios and tools and a budget of one million cumulative input and output tokens per continuation. The authors report lower Shifted than Clean success for every system. For GPT-6 Astra, Clean was 67.35% and Shifted 24.79%. These are results under the paper’s setup and weighting, not numbers independently reproduced for this article.
PSR credits joint success on a matched cell and also verified completion before the intervention. Multiplying the two success rates, or describing PSR only as success on both paths, misses that early-completion credit. CRR measures weighted joint success relative to Clean success; its numerator excludes the early-completion credit in PSR. Aggregation weights families, clusters and scenarios.
For the tool/session-change and stale-evidence families, PSR was 0% for all 17 evaluated systems. That result belongs to these scenarios and their applicable checks; it does not establish that agents fail every such change in real work.
Read the case and the scoring rules together
In a Django case from the paper’s 24-case qualitative audit, a collaborator added an API controlling when migration operations can be combined. The recorded GPT-5.6 Sol continuation passed all 39 original tests but removed the API, failing preservation. This illustrates one observed failure; it does not give its frequency across all runs.
Success is conjunctive: every applicable check must pass. A changed continuation can acquire checks for recovery or a fresh observation because of the update. The measured gap therefore reflects both agent behavior and the check design. Pith Review’s T0 AI review argues that without a control relaxing those checks, their contribution to the gap cannot be isolated. Generated by deepseek/deepseek-v4-flash on October 26, 2026, this is AI-generated criticism, not human peer review or a reproduction disproving the authors’ results. pith.science — 2610.32196
The authors note that some scenarios share task roots and each run receives one update. Intervention position is entangled with execution stage and remaining work; diagnostic controls cover only five systems. These results do not establish failure rates or intervention benefits in natural workflows with repeated changes.
Design a small comparison for your own team
This is a proposed, fictional evaluation, not a reproduction of the paper. In a test repository without private data, define a bug and acceptance checks. Prepare a mid-task update in which a teammate adds a valid public function. First verify that a manual solution and checks can satisfy both requirements after the change.
If the agent state can safely be copied, resume an unchanged and a changed path from that same state. Otherwise record independent runs and do not call them a matched checkpoint. Report original tests, preservation of the new function, and evidence refreshed after the change separately. Distinguish failed checks from checks not run; retain conditions and variability when repeating the exercise.
For example, original tests passing alongside a deleted function and no fresh observation should be reported as “bug tests passed, preservation failed, evidence unverified.” One green badge or aggregate score should not hide the other two facts. This is an operational proposal, not a proven safety or performance intervention.
Put the evidence next to the decision
At the beginning and end of a long task, ask for the current branch, changed files, applicable requirements and commit covered by checks. Before reverting a colleague’s change, check its ownership and potential conflict; mark what cannot be verified as unknown. These are recommendations, not guarantees established by the benchmark scores.
For approval tied to changed code, see After AI Repairs CI, Who Approves the Merge? Defining Agent Merge Boundaries . For handoff completion conditions, see The Artifact Is Correct, but the Next Agent Is Stuck: Testing Handoff Completion . The authors’ repository demo scores synthetic outcomes; it is not a reproduction of their model experiments.