Manuscript Offprint
arXiv:2610.20038SWE-Nexus: Automated Composition of Software Engineering Tasks from Test Execution
Abstract
Historical code changes provide convenient task boundaries, but do not identify which production functions selected tests exercise or support composing validated behaviors beyond a single change. We present SWE-Nexus, a fully automated pipeline that constructs repository-level implementation tasks from test execution. Four construction agents select tests, adapt tracing and evaluation protocols to each repository, and generate behavioral specifications. For each selected test file, tracing records an observed execution footprint of production function bodies. A scope is retained only if all expected scoring points pass in the original repository and masking the traced bodies causes at least one failure or error. Compatible scopes are composed deterministically, with shared functions counted once and every constituent test file revalidated under the complete combined mask. The benchmark contains 600 tasks from 105 repositories across six programming languages, including 116 atomic and 484 composite tasks. We evaluate 12 models under three agent scaffolds. The best configuration resolves 37.8% of tasks in one attempt, and scope-weighted scoring measures partial recovery. SWE-Nexus enables task construction from validated behavior beyond individual historical changes.
1 Introduction
Repository-level benchmarks commonly derive tasks from historical pull requests (PRs), combining issue descriptions, code changes, tests, and execution environments (Jimenez et al., 2024; Zan et al., 2025; Badertdinov et al., 2026). As agents solve more established instances, fixed collections become less informative about their capabilities.
(a) Historical PRs

(b) SWE-Nexus
Figure 1: Task construction from historical PRs (a) and test execution (b). Edges show observed test–function associations. Deterministic composition counts shared functions once. Independent checks before and after composition require all expected points to pass originally (✓) and at least one failure or error per file under the complete mask (×).
(Deng et al., 2026). Public implementations also raise concerns about training data contamination (Badertdinov et al., 2025; Jain et al., 2025a). Informative evaluation and execution-based training therefore require a continuing supply of challenging, verifiable tasks (Pan et al., 2025; Yang et al., 2025; Jain et al., 2025b; Wei et al., 2026). Yet code and tests that appear in the same PR do not reveal which implementation each test exercises. For example, a test may exercise only some modified functions while calling unchanged helpers. Historical patch extraction can also include unrelated tests (Badertdinov et al., 2025). Human review can improve task descriptions and test suites (Deng et al., 2026), while execution tracing directly records the functions each test exercises (Rothermel and Harrold, 1997). A PR or commit captures one historical change, whereas a software
- Equal contribution.
Corresponding author.
requirement may span files and modules.
These challenges motivate a central question:
Can we automatically construct diverse and challenging repository-level tasks beyond individual PR boundaries, with implementation scopes validated through test execution?
We introduce SWE-Nexus, a fully automated, four-agent pipeline that constructs atomic and composite implementation tasks from test execution (Fig. 1). The Selector, Trace, Validation, and Query Agents handle test selection, tracing, protocol adaptation, and specification generation, respectively. The production function bodies recorded for each test file form its observed execution footprint. An independent procedure retains a scope only when all expected scoring points pass in the original repository and masking the recorded bodies causes at least one point to fail or report an error. Each validated scope forms an atomic task. Compatible scopes from the same repository revision and environment are combined deterministically into composite tasks. Composition counts shared functions once and revalidates every constituent test file under the complete combined mask.
The evaluated solver is independent of the construction agents and receives only the behavioral specification and masked repository. Selected scoring tests and construction metadata remain hidden. The benchmark contains 600 tasks from 105 repositories, balanced across six programming languages. We evaluate 12 models under three agent scaffolds using the resolved rate for complete recovery and the scope-weighted score for partial recovery. The best configuration resolves 37.8% of tasks in one attempt. Under Claude Code, mean resolved rates decline from 55.2% on Easy tasks to 7.4% on Hard tasks. Within comparable configurations, resolved attempts generally have lower median counts of tool calls and modified files.
Our contributions are threefold:
• Automated construction. We introduce a fully automated four-agent pipeline that discovers implementation scopes from test execution. Fixed procedures validate each scope and recheck every constituent test file after deterministic composition.
• Compositional benchmark. We construct 600 tasks across six languages: 116 atomic and 484 composite tasks spanning two to nine test files.
• Evaluation. We introduce scope-weighted scoring for partial recovery, evaluate 12 models with three agent scaffolds, and analyze recorded solver activity.
Constructing executable tasks. SWE-smith retains model-generated, procedural, and historical modifications that break previously passing tests, then combines bugs within files or modules (Yang et al., 2025). Self-Play SWE-RL trains through iterative bug injection and repair with test patches as specifications (Wei et al., 2026). R2E-Gym synthesizes tests and problem descriptions from commits (Jain et al., 2025b). FeatureBench constructs feature development tasks across multiple PRs by tracing Python tests (Zhou et al., 2026).
Agent scaffolds and training. SWE-agent and OpenHands provide interfaces for inspecting, editing, and executing repository code, whereas Agentless uses a fixed localization, repair, and validation pipeline (Yang et al., 2024; Wang et al., 2025; Xia et al., 2025). SWE-agent's interface ablations examine how search, editing, and execution feedback affect task resolution and repository navigation (Yang et al., 2024). SWE-Gym and R2E-Gym train agents and verifiers in executable repository environments (Pan et al., 2025; Jain et al., 2025b), where test outcomes supply verifiable behavioral feedback (Le et al., 2022). SWE-RL learns from historical changes using patch-similarity rewards, while DeepSWE trains coding agents with test-based execution rewards (Wei et al., 2025; Luo et al., 2025).

(a) Task composition

(b) Difficulty by language

(c) Repository coverage

(d) Selected test-file counts

(e) Restoration patch size

(f) Scoring point counts
Figure 2: Statistics of the 600-task benchmark: (a) task composition and connectivity of composite tasks (connected or disconnected), (b) difficulty by language (100 tasks each), (c) repository coverage, (d) selected test-file counts, (e) changed lines in reference restoration patches (log scale), and (f) scoring points per task (10-point bins). Edges link test files that share observed production functions. Dashed lines mark medians.
3 Dataset Overview
Each SWE-Nexus task asks a solver to recover repository functionality from a natural-language specification. The surrounding codebase remains available, with selected production function bodies masked and scoring tests withheld.
3.1 Task Definition
Let R denote a repository at a fixed revision with an associated execution environment. A task is defined by selected test files T and a validated implementation scope S of production functions whose bodies are masked. Let denote the masked repository. The solver receives a natural-language specification q and a copy of with the selected test files withheld. It submits a patch to production code for evaluation against those tests in a clean environment. Unselected repository tests may remain available during development.
The construction procedure retains the original implementations, selected tests, and fixed evaluation protocol. Restoring the original bodies gives a reference restoration patch for measuring task size. The tests and protocol define a fixed set of expected scoring points P. A scoring point is an evaluation unit with an outcome that can be identified consistently, typically a test case or parameterized instance. When finer outcomes are unavailable, a selected test file serves as one scoring point. Individual assertions are not counted separately. Evaluation tests the specified behavior without requiring the original implementation.
3.2 Dataset Characteristics
The benchmark contains 600 tasks from 105 repositories across six languages, with 100 tasks per language: 116 atomic tasks use one test file, and 484 composite tasks combine two to nine (Fig. 2(a)). Linking test files that share observed production functions yields one connected component (connected) or multiple components (disconnected). Behaviors span configuration parsing, application interfaces, and data serialization. One cloud-init task, for example, combines hosts-file operations with resolver configuration.
Tasks have a median of five selected test files and 35 masked production function bodies. Reference restoration patches modify a median of 10 production files and 433 lines, counting additions and deletions. The interquartile ranges are 2–7 selected test files, 242–1,046 changed lines, and 7–32 scoring points. The full range is 1–202 scoring points, totaling 15,975 task–point pairs across the release. Selected tests and their scoring points may recur across composite tasks.
I. Task Construction (from existing tests)

Figure 3: Construction and evaluation in SWE-Nexus. The Selector, Trace, Validation, and Query Agents select tests, trace execution, adapt protocols, and generate specifications. Independent checks validate scopes before and after composition. The solver receives the specification and masked repository, and the evaluator restores hidden tests and applies the fixed protocol. Passing and gives a scope-weighted score of 50% and leaves the task unresolved.
Task scope. We assign Easy, Medium, and Hard tiers using selected test-file count (1–3, 4–6, 7–9) and reference restoration patch size (1–300, 301–999, 1,000 changed lines). The final difficulty is the higher tier. Every language includes all three groups (Fig. 2(b) and Appendix C).
4 Dataset Construction
SWE-Nexus links repository tests to the production code they exercise. For a fixed revision and execution environment, tracing identifies candidate scopes, and validation retains those whose masking disrupts expected behavior. These scopes form atomic tasks or are composed deterministically into composite tasks. Four construction agents select tests, adapt tracing and evaluation protocols, and generate specifications. Masking, verification, composition, and scoring follow fixed procedures (Fig. 3).
4.1 Execution-Grounded Scope Validation
Test assertions specify expected behavior, but do not identify which production code to mask. The Selector Agent chooses files from a prefiltered pool, prioritizing explicit behavioral assertions, stable execution, and focused functional scope. The Trace Agent connects these tests to production code through runtime observation. It uses high-quality tracing examples, existing strategies, and repository instructions to adapt tracing to the test runner, process boundaries, and source layout. For each selected file t, it executes the tests and maps observed functions to editable production function bodies. The resulting set is the observed execution footprint for t. We retain these test-function associations for composition and scoring.
To verify that masking the observed scope affects the tested behavior, we replace the bodies in with language-appropriate stubs, producing while preserving declarations, signatures, and surrounding code structure. The Validation Agent adapts the execution plan and result parser to the repository and fixed environment. The resulting protocol specifies how to execute tests, parse their outputs, and assign each expected scoring point a pass, failure, or error status. An independent validation procedure runs this protocol on and . Let denote the expected scoring points for , and let denote the parsed outcome of point p in repository state X. We retain a scope only if
The original run checks test validity, while the masked run checks whether removing the scope causes an observable failure or error. Each validated scope is retained with its evaluation protocol.
4.2 Deterministic Scope Composition
One validated scope forms an atomic task with a single selected test file. Combining scopes requires counting shared functions once and ensuring that every constituent test remains relevant. For compatible test files T from the same repository revision and execution environment, we take the union . Compatibility requires that the scopes can be masked and evaluated together. We deduplicate shared functions by their source identities and build the complete masking patch from the clean original source.
The independent validation procedure rechecks every constituent file under the complete combined mask using the fixed execution and parsing rules. For each file , all expected scoring points must pass in the original repository, and at least one must fail or report an error in the masked repository. Every selected file must therefore test behavior affected by the final mask, including files that share functions. Validated composite tasks contain two to nine selected test files and require one implementation to satisfy their combined requirements. This composition stage is deterministic.
4.3 Behavioral Specification
The natural-language specification describes the behavior to recover while the selected scoring tests remain hidden. The Query Agent generates the specification q from the original implementations, selected tests, and repository context. High-quality specification examples guide its structure and coverage. The Problem Statement explains the target functionality, its purpose, and its role in the repository. The Requirements describe observable inputs, outputs, boundary cases, defaults, error handling, and side effects. The task package pairs q with the masked repository after removing the selected test files. Execution traces, test-function associations, expected outcomes, and scoring configurations remain hidden. The solver must recover the behavior from the specification and available repository context.
4.4 Fixed Evaluation and Scoring
The solver is the model under evaluation and operates independently of the four construction agents. It receives the task package and submits a patch to production code. In a clean environment, an independent evaluator applies to , restores the selected test files from a trusted copy, and runs the protocol established during task validation. Test execution, output parsing, and scoring criteria are fixed before solving and applied consistently across submissions. A task is resolved only when the evaluation run is valid, every expected scoring point passes, and the patch introduces no additional failures detected by the protocol. The resolved rate is the proportion of tasks satisfying this criterion.
To measure partial recovery, the scope-weighted score weights test outcomes by the source spans of associated production function bodies. Each function has a recorded body span of source lines. The retained associations map each function to a nonempty set of expected scoring points from tests whose footprints contain that function. Let indicate whether point passes for patch . We divide each function's span equally among its associated points and fix the resulting weights before solving:
(2)
Each function contributes its span once, including functions shared by several tests, so . Appendix E.1 describes the coarser and unit-weight configurations used when finer attribution is unavailable. These configurations are also fixed before solving.
5 Evaluation
5.1 Evaluation Setup
We evaluate 12 proprietary and open-weight model variants on the frozen 600-task benchmark using Claude Code (Anthropic, 2026a), Cline (Cline, 2026), and OpenCode (OpenCode, 2026). All models have the same budget of up to 200 turns per scaffold invocation and 6,600 seconds.

(a) Claude Code

(b) Cline

(c) OpenCode
Figure 4: Overall P@1 performance across 12 models and three agent scaffolds. Segments connect each model's resolved rate (circle) and mean scope-weighted score (diamond). All panels share a 0–65% scale. Appendix D reports exact values.
| Model | Easy (n = 138) | Medium (n = 231) | Hard (n = 231) | Overall (n = 600) | ||||
|---|---|---|---|---|---|---|---|---|
| P@1 | P@4 | P@1 | P@4 | P@1 | P@4 | P@1 | P@4 | |
| Proprietary models | ||||||||
| Claude Opus 4.8 | 80.4 / 86.2 | 84.1 / 90.6 | 32.9 / 53.3 | 43.7 / 67.0 | 17.3 / 28.4 | 22.9 / 39.7 | 37.8 / 51.3 | 45.0 / 61.9 |
| Gemini 3.1 Pro | 56.5 / 70.4 | 64.5 / 79.5 | 14.3 / 46.5 | 23.4 / 60.5 | 2.2 / 25.7 | 8.2 / 37.4 | 19.3 / 44.0 | 27.0 / 55.9 |
| GPT-5.3 Codex | 60.9 / 78.7 | 71.7 / 86.2 | 29.0 / 60.2 | 39.8 / 72.4 | 10.0 / 32.1 | 13.9 / 41.2 | 29.0 / 53.7 | 37.2 / 63.6 |
| GPT-5.4 | 55.1 / 70.2 | 62.3 / 77.9 | 25.1 / 59.0 | 35.1 / 69.6 | 11.7 / 40.2 | 16.0 / 48.4 | 26.8 / 54.4 | 34.0 / 63.4 |
| GPT-5.5 | 61.6 / 79.8 | 71.0 / 86.0 | 35.9 / 66.0 | 45.5 / 77.8 | 14.7 / 41.5 | 16.9 / 47.1 | 33.7 / 59.7 | 40.3 / 67.8 |
| Qwen3.5-Plus | 42.0 / 54.6 | 60.9 / 73.0 | 6.9 / 42.6 | 21.2 / 59.2 | 1.3 / 21.8 | 2.2 / 29.4 | 12.8 / 37.4 | 23.0 / 50.9 |
| Open-weight models | ||||||||
| DeepSeek-V3.2 | 37.7 / 50.8 | 41.3 / 57.1 | 5.2 / 28.6 | 8.2 / 39.5 | 0.0 / 14.2 | 0.0 / 19.9 | 10.7 / 28.2 | 12.7 / 36.0 |
| DeepSeek-V4-Flash | 53.6 / 67.8 | 61.6 / 77.8 | 17.3 / 50.7 | 27.3 / 63.4 | 5.2 / 26.9 | 9.5 / 38.6 | 21.0 / 45.4 | 28.3 / 57.2 |
| GLM-5 | 46.4 / 59.4 | 50.7 / 65.4 | 12.1 / 38.8 | 17.7 / 47.6 | 3.9 / 20.2 | 4.3 / 26.1 | 16.8 / 36.3 | 20.2 / 43.4 |
| GLM-5.2 | 66.7 / 81.4 | 76.1 / 87.1 | 34.6 / 62.9 | 45.5 / 75.1 | 14.3 / 37.4 | 15.6 / 44.5 | 34.2 / 57.3 | 41.0 / 66.1 |
| Kimi K2.6 | 57.3 / 74.1 | 64.5 / 81.2 | 21.2 / 52.7 | 29.9 / 63.9 | 6.1 / 28.6 | 10.4 / 37.5 | 23.7 / 48.3 | 30.3 / 57.7 |
| MiniMax-M2.7 | 44.2 / 58.4 | 49.3 / 64.4 | 10.4 / 38.6 | 15.1 / 47.3 | 2.6 / 19.9 | 3.0 / 26.2 | 15.2 / 35.9 | 18.3 / 43.1 |
Table 1: Claude Code performance by task scope. Cells report resolved rate / scope-weighted score (%). P@1 and P@4 use one and four attempts. Bold marks metric maxima, including ties.
per solver attempt. Each submission is evaluated in a clean environment using the hidden tests and protocol fixed during task construction. Overall and language results use one attempt per task (P@1). The Claude Code analysis by task scope also includes four attempts (P@4). Appendix D.1 lists model references and details execution limits and the handling of timeouts and retries.
We report the resolved rate, the percentage of tasks satisfying the strict criterion in Section 4.4, and the scope-weighted score averaged across tasks and expressed as a percentage. Scoring weights are fixed before solving, following Equation 2 and the configurations in Appendix E.1. At P@4, a task is resolved if any of its four patches resolves it, and its scope-weighted score is the maximum achieved by a single patch.
5.2 Main Results
Fig. 4 compares P@1 performance across all 36 combinations of models and scaffolds. Under Claude Code, Claude Opus 4.8 leads in resolved rate at (51.3% weighted), whereas GPT-5.5 leads in scope-weighted score at (33.7% resolved). The leading model therefore differs for complete and partial recovery.
The model with the highest resolved rate also varies by scaffold. Claude Opus 4.8 leads under Claude Code (37.8%) and OpenCode (29.7%), while GPT-5.5 and GPT-5.4 tie under Cline (31.2%).
5.3 Performance by Task Scope
Under Claude Code, both P@1 measures decrease from Easy to Medium to Hard for every model (Ta-
P@1 P@4
Claude Code Cline OpenCode

(a) Resolved by task scope
(b) Resolved by language
(c) Weighted by task scope
(d) Weighted by language
Figure 5: Performance by task scope and language. Panels (a,c) show P@1/P@4 means across 12 models under Claude Code. Panels (b,d) show P@1 means across models for each scaffold. Shading and ranges show the middle 50%. Dashed lines mark grand means. JS and TS denote JavaScript and TypeScript.
able 1 and Fig. 5(a,c)). Across the 12 models, the mean resolved rate falls from 55.2% to 20.4% and 7.4%, while the mean scope-weighted score falls from 69.3% to 50.0% and 28.1%.
This ordering persists for every model at P@4. On Hard tasks, four attempts raise the mean resolved rate from 7.4% to 10.2% and the scope-weighted score from 28.1% to 36.3%. Most Hard tasks remain unresolved under this larger attempt budget. The consistent decline across models and attempt budgets supports the distinction between the three difficulty tiers.
5.4 Performance across Languages
Under Claude Code (Table 2), Claude Opus 4.8 attains the highest resolved rate on Go, Python, JavaScript, and TypeScript, while GPT-5.5 leads on Java and Kotlin. For scope-weighted score, GPT-5.5 leads four languages, GPT-5.3 Codex leads TypeScript, and Claude Opus 4.8 leads Java.
Across all 36 combinations, mean P@1 resolved rates range from 12.7% on JavaScript to 37.1% on Java, and mean scope-weighted scores range from 33.1% on Go to 52.6% on Java (Fig. 5(b,d)). Averaging across models, Claude Code leads four languages on both measures. OpenCode leads on Java for both metrics and on Kotlin for scope-weighted score, while Cline leads on Kotlin for resolved rate. Appendix D reports results for every model under Cline and OpenCode.
6 Analysis
6.1 Interpreting Partial Recovery
A FlowFuse patch passes 128 of 141 scoring points and achieves a scope-weighted score of 91.6%. The 13 remaining failures concern getters for stored context, assistant defaults or getters controlled by feature flags, and the format of expert messages (Appendix B). A patch to Jackson's Kotlin module passes 18 of 20 points and scores 90.4%. Both remain unresolved, but their scope-weighted scores capture substantial partial recovery. For reinforcement learning, this score could provide a graded reward for partial recovery based on the spans of associated function bodies, even when the task remains unresolved. Appendix E.1 gives the scoring details.
6.2 Solver Activity in Recorded Trajectories
The corpus contains 7,945 nonempty trajectories from eight models, three agent scaffolds, and six languages. Of these, 7,787 have scorable outcomes. We compare medians for resolved and unresolved attempts within 126 configurations defined by model, scaffold, and language, each with at least five attempts of each outcome.
Fig. 6 shows lower medians for resolved attempts in 122 of 126 configurations for tool calls (96.8%) and in 123 for modified files (97.6%). The median differences (resolved minus unresolved) are -35.5 calls and -4 files, with the same pattern in most configurations under each scaffold. Task difficulty and stopping after completion may partly explain this association.
6.3 Case Study: Task Composition
Fig. 7 illustrates a composite task for generating OpenAPI documentation from Kotlin routes and data types. Seven test files combine requirements for authentication, field constraints, examples, complex types, route parsing, schema gener-
| Model | Go | Python | JavaScript | TypeScript | Java | Kotlin |
|---|---|---|---|---|---|---|
| Proprietary models | ||||||
| Claude Opus 4.8 | 34.0 / 47.1 | 40.0 / 52.0 | 30.0 / 53.7 | 41.0 / 52.5 | 51.0 / 64.5 | 31.0 / 38.0 |
| Gemini 3.1 Pro | 16.0 / 37.3 | 8.0 / 37.1 | 12.0 / 49.2 | 16.0 / 43.9 | 35.0 / 51.1 | 29.0 / 45.2 |
| GPT-5.3 Codex | 19.0 / 36.7 | 31.0 / 61.1 | 16.0 / 59.3 | 31.0 / 57.7 | 45.0 / 60.3 | 32.0 / 46.9 |
| GPT-5.4 | 14.0 / 36.7 | 27.0 / 61.6 | 19.0 / 63.1 | 26.0 / 57.6 | 44.0 / 57.8 | 31.0 / 49.5 |
| GPT-5.5 | 27.0 / 49.9 | 24.0 / 64.9 | 18.0 / 64.0 | 32.0 / 56.8 | 54.0 / 64.1 | 47.0 / 58.7 |
| Qwen3.5-Plus | 10.0 / 28.7 | 6.0 / 33.7 | 7.0 / 42.6 | 18.0 / 48.3 | 21.0 / 42.9 | 15.0 / 27.8 |
| Open-weight models | ||||||
| DeepSeek-V3.2 | 9.0 / 18.5 | 7.0 / 26.8 | 7.0 / 36.8 | 10.0 / 33.8 | 19.0 / 34.5 | 12.0 / 18.7 |
| DeepSeek-V4-Flash | 18.0 / 34.9 | 11.0 / 41.9 | 11.0 / 48.2 | 16.0 / 46.9 | 33.0 / 47.7 | 37.0 / 53.0 |
| GLM-5 | 14.0 / 26.4 | 11.0 / 34.2 | 12.0 / 42.6 | 12.0 / 39.8 | 27.0 / 41.0 | 25.0 / 34.1 |
| GLM-5.2 | 27.0 / 49.0 | 27.0 / 61.3 | 22.0 / 61.3 | 34.0 / 55.3 | 52.0 / 64.0 | 43.0 / 53.1 |
| Kimi K2.6 | 17.0 / 37.0 | 20.0 / 47.9 | 13.0 / 53.8 | 22.0 / 50.1 | 40.0 / 55.3 | 30.0 / 46.0 |
| MiniMax-M2.7 | 12.0 / 25.9 | 9.0 / 33.6 | 10.0 / 41.9 | 11.0 / 39.7 | 25.0 / 40.4 | 24.0 / 34.1 |
Table 2: Claude Code P@1 performance by language (100 tasks each). Cells report resolved rate / scope-weighted score (%). Bold marks maxima for each language, including ties.

(a) Tool calls

(b) Modified files
Figure 6: Recorded activity in resolved and unresolved trajectories. Each point compares group medians for one of 126 configurations defined by model, scaffold, and language: (a) tool calls and (b) modified production files. Dashed diagonals mark equality.
ation, and nested resources. The tests check generated schemas and the served OpenAPI document against expected JSON snapshots. Composition expands the implementation scope from at most 40 functions in any individual footprint to 94 functions. Shared functions such as addToSpec and fromTypeToSchema connect document assembly with routing and type conversion. All 39 expected scoring points pass originally and fail under the complete mask, affecting every selected file.
7 Conclusion
SWE-Nexus is a fully automated, four-agent pipeline for constructing repository-level tasks from test execution. It validates candidate scopes against original and masked repositories, then rechecks every constituent test file after deterministic composition. Evaluation applies the same hidden tests and fixed protocol across submissions. The benchmark contains 600 tasks from 105 repositories across six languages. Across 12 models and three agent scaffolds, the best configuration resolves of tasks in one attempt. Scope-weighted scoring captures partial recovery with weights fixed from observed test-function associations before solving. Composing validated execution footprints extends tasks beyond individual historical changes to span functions and modules.
Limitations
SWE-Nexus relies on existing repository tests to identify implementation scopes and validate task behavior. Behaviors and edge cases that these tests do not exercise may be underrepresented in the resulting tasks. Extending the approach to functionality with limited test coverage requires developing and validating additional tests. The benchmark currently covers six programming languages. Broader language coverage requires adapting tracing, source mapping, and result parsing to additional runtimes and test frameworks.
Ethical Considerations
This benchmark derives implementation tasks from public software repositories. Use and redistribution of repository code, tests, and derived tasks remain subject to the original licenses. During construction and evaluation, code from repositories and agents should run in environments isolated from sensitive hosts and credentials, since tests and setup commands can have side effects. Benchmark results verify selected test outcomes
Problem Statement Requirements
Generate OpenAPI documentation from Kotlin routes and data types.
Retain route and security metadata. Support nested schemas, field constraints, and examples.
Selected test files (7)
Production functions
Shared functions (36)

Test coverage
T1 Authentication
Default and explicit scopes
T2 Field constraints
Numbers, strings and arrays
T3 Examples
Requests and responses
T4 Complex types
Polymorphism and generics
T5 Route parsing
Roots, slashes and parameters
T6 Schema generation
References and recursion
T7 Resource paths
Nested resources
Figure 7: A composite task for OpenAPI documentation generation in Kompendium, with an abridged description. Seven selected test files cover 94 production functions across 33 source files. Purple circles mark the 36 functions associated with multiple selected test files.
and do not establish security or deployment readiness. The study does not involve human participants.
References
Anthropic. 2026a. Claude Code: Overview. Software documentation. Accessed October 4, 2026.
Anthropic. 2026b. Claude Opus 4.8 system card.
Ibragim Badertdinov, Alexander Golubev, Maksim Nekrashevich, Anton Shevtsov, Simon Karasik, Andrei Andriushchenko, Maria Trofimova, Daria Litvintseva, and Boris Yangel. 2025. SWE-rebench: An automated pipeline for task collection and decontaminated evaluation of software engineering agents. In Advances in Neural Information Processing Systems, volume 38. Curran Associates, Inc.
Ibragim Badertdinov, Maksim Nekrashevich, Anton Shevtsov, and Alexander Golubev. 2026. SWE-rebench V2: Language-agnostic SWE task collection at scale. In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, pages 4820–4843. PMLR.
Cline. 2026. Cline: Overview. Software documentation. Accessed October 4, 2026.
DeepSeek-AI. 2026. DeepSeek-V4-Flash: Model card.
DeepSeek-AI et al. 2025. DeepSeek-V3.2: Pushing the frontier of open large language models. Preprint, arXiv:2512.02556.
Xiang Deng, Jeff Da, Edwin Pan, Yannis Yiming He, Charles Ide, Kanak Garg, Niklas Lauffer, Andrew Park, Chetan Rane, Karmini Sampath, Maya Krishnan, Srivatsa R Kundurthy, Sean M. Hendryx, Zifan Wang, Chen Bo Calvin Zhang, Noah Jacobson, Bing Liu, and Brad Kenstler. 2026. SWE-Bench Pro: Can AI agents solve long-horizon software engineering tasks? In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, pages 23917–23934. PMLR.
GLM-5 Team et al. 2026. GLM-5: From vibe coding to agentic engineering. Preprint, arXiv:2602.15763.
Google DeepMind. 2026. Gemini 3.1 Pro: Model card.
Naman Jain, King Han, Alex Gu, Wen-Ding Li, Fanjia Yan, Tianjun Zhang, Sida I. Wang, Armando Solar-Lezama, Koushik Sen, and Ion Stoica. 2025a. LiveCodeBench: Holistic and contamination free evaluation of large language models for code. In The Thirteenth International Conference on Learning Representations.
Naman Jain, Jaskirat Singh, Manish Shetty, Tianjun Zhang, Liang Zheng, Koushik Sen, and Ion Stoica. 2025b. R2E-Gym: Procedural environments and hybrid verifiers for scaling open-weights SWE agents. In Second Conference on Language Modeling.
Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, and Karthik Narasimhan. 2024. SWE-bench: Can language models resolve real-world GitHub issues? In The Twelfth International Conference on Learning Representations.
René Just, Darioush Jalali, and Michael D. Ernst. 2014. Defects4J: A database of existing faults to enable controlled testing studies for Java programs. In Proceedings of the 2014 International Symposium on Software Testing and Analysis, pages 437–440.
Hung Le, Yue Wang, Akhilesh Deepak Gotmare, Silvio Savarese, and Steven Chu Hong Hoi. 2022.
CodeRL: Mastering code generation through pre-trained models and deep reinforcement learning. In Advances in Neural Information Processing Systems, volume 35, pages 21314–21328. Curran Associates, Inc.
Michael Luo, Naman Jain, Jaskirat Singh, Sijun Tan, Ameen Patel, Qingyang Wu, Alpay Ariyak, Colin Cai, Tarun Venkat, Shang Zhu, Ben Athiwaratkun, Manan Roongta, Ce Zhang, Li Erran Li, Raluca Ada Popa, Koushik Sen, and Ion Stoica. 2025. DeepSWE: Training a fully open-sourced, state-of-the-art coding agent by scaling RL. Together AI and Agentica research blog.
MiniMax. 2026. MiniMax M2.7: Early echoes of self-evolution.
Moonshot AI. 2026. Kimi K2.6: Advancing open-source coding.
OpenAI. 2026a. GPT-5.3-Codex system card.
OpenAI. 2026b. GPT-5.4 Thinking system card.
OpenAI. 2026c. GPT-5.5 system card.
OpenCode. 2026. OpenCode: Documentation. Software documentation. Accessed October 4, 2026.
Jiayi Pan, Xingyao Wang, Graham Neubig, Navdeep Jaitly, Heng Ji, Alane Suhr, and Yizhe Zhang. 2025. Training software engineering agents and verifiers with SWE-Gym. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 47717–47737. PMLR.
Qwen Team. 2026. Qwen3.5-397B-A17B: Model card.
Gregg Rothermel and Mary Jean Harrold. 1997. A safe, efficient regression test selection technique. ACM Transactions on Software Engineering and Methodology, 6(2):173–210.
Xingyao Wang, Boxuan Li, Yufan Song, Frank F. Xu, Xiangru Tang, Mingchen Zhuge, Jiayi Pan, Yueqi Song, Bowen Li, Jaskirat Singh, Hoang Tran, Fuqiang Li, Ren Ma, Mingzhang Zheng, Bill Qian, Daniel Shao, Niklas Muennighoff, Yizhe Zhang, Binyuan Hui, and 5 others. 2025. OpenHands: An open platform for AI software developers as generalist agents. In The Thirteenth International Conference on Learning Representations.
Yuxiang Wei, Olivier Duchenne, Jade Copet, Quentin Carbonneaux, Lingming Zhang, Daniel Fried, Gabriel Synnaeve, Rishabh Singh, and Sida I. Wang. 2025. SWE-RL: Advancing LLM reasoning via reinforcement learning on open software evolution. In Advances in Neural Information Processing Systems, volume 38.
Yuxiang Wei, Zhiqing Sun, Emily McMilin, Jonas Gehring, David W. Zhang, Gabriel Synnaeve, Daniel Fried, Lingming Zhang, and Sida Wang. 2026. Toward training superintelligent software agents through self-play SWE-RL. In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, pages 134075–134095. PMLR.
Ratnadira Widyasari, Sheng Qin Sim, Camellia Lok, Haodi Qi, Jack Phan, Qijin Tay, Constance Tan, Fiona Wee, Jodie Ethelda Tan, Yuheng Yieh, Brian Goh, Ferdian Thung, Hong Jin Kang, Thong Hoang, David Lo, and Eng Lieh Ouh. 2020. BugsInPy: A database of existing bugs in Python programs to enable controlled testing and debugging studies. In Proceedings of the 28th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering, pages 1556–1560.
Chunqiu Steven Xia, Yinlin Deng, Soren Dunn, and Lingming Zhang. 2025. Demystifying LLM-based software engineering agents. Proceedings of the ACM on Software Engineering, 2(FSE):801–824.
John Yang, Carlos E. Jimenez, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik Narasimhan, and Ofir Press. 2024. SWE-agent: Agent-computer interfaces enable automated software engineering. In Advances in Neural Information Processing Systems, volume 37, pages 50528–50652. Curran Associates, Inc.
John Yang, Kilian Lieret, Carlos E. Jimenez, Alexander Wettig, Kabir Khandpur, Yanzhe Zhang, Binyuan Hui, Ofir Press, Ludwig Schmidt, and Diyi Yang. 2025. SWE-smith: Scaling data for software engineering agents. In Advances in Neural Information Processing Systems, volume 38. Curran Associates, Inc.
Z.ai. 2026. GLM-5.2: Built for long-horizon tasks.
Daoguang Zan, Zhirong Huang, Wei Liu, Hanwu Chen, Shulin Xin, Linhao Zhang, Qi Liu, Aoyan Li, Lu Chen, Xiaojian Zhong, Siyao Liu, Yongsheng Xiao, Liangqiang Chen, Yuyu Zhang, Jing Su, Tianyu Liu, Rui Long, Ming Ding, and Liang Xiang. 2025. Multi-SWE-bench: A multilingual benchmark for issue resolving. In Advances in Neural Information Processing Systems, volume 38.
Qixing Zhou, Jiacheng Zhang, Haiyang Wang, Rui Hao, Jiahe Wang, Minghao Han, Yuxue Yang, Shuzhe Wu, Feiyang Pan, Lue Fan, Dandan Tu, and Zhaoxiang Zhang. 2026. FeatureBench: Benchmarking agentic coding for complex feature development. In The Fourteenth International Conference on Learning Representations.
A Execution and Task Construction Details
Repository adaptation. Tracing examples provide instrumentation strategies and repository in-structions. The Trace Agent adapts these materials to each selected test, defining its execution command and process scope. Table 3 summarizes the supported mechanisms and their coverage constraints.
Structural masking. The masking procedure locates editable bodies in clean source independently of the locations reported by tracing. We use source identities to deduplicate aliases and shared functions. Language-specific stubs preserve declarations while making missing behavior observable. Adjustments include retaining explicit constructor delegation in Java, adapting unused imports in Go, and preserving necessary type relationships in TypeScript. Structural checks compare the original and masked source and verify that the masking patch applies correctly. Independent runs on both repositories check the acceptance conditions in Equation 1.
Execution protocol. The evaluation protocol specifies environment setup, test execution, report collection, and result parsing for both repository states in clean environments. It also records exit status and test identifiers. The Validation Agent may refine the parser before acceptance, and any subsequent change requires renewed validation. When outcomes are available only for a test file as a whole, validation and evaluation use the same file-level scoring unit. Missing test case reports are not counted as individual failures.
Composition. For two observed execution footprints and , overlap is measured by , where and is the recorded body span of function in source lines. This ratio weights functions by their body spans. Candidate groups can be selected by union size and overlap. Every constituent test file must pass validation under the complete combined mask. Each scoring point is identified by its source test file and original test identifier to avoid collisions.
Specification and access policies. The Query Agent uses the original code, selected tests, repository context, and specification examples to generate a Problem Statement and Requirements. Function declarations and signatures remain available in the masked repository. Checks for format and literal leakage run before packaging. We remove the original Git object history and withhold construction artifacts from the solver workspace. Task instructions restrict external retrieval of repository source or solution code. Appendix B gives the specification format and recorded examples.
B Task Specifications and Case Studies
Fig. 8 details the specification and solver inputs introduced in Fig. 3.
The examples use the Problem Statement and Requirements fields and the same execution restrictions. Some prompts also repeat function signatures available in the masked repository. We present atomic and composite tasks in Fig. 9 and recorded solver actions with independent evaluation outcomes in Fig. 10. Appendix F provides detailed specifications adapted from six composite tasks.
B.1 Concrete Task Forms
Fig. 9 gives one released instance for each task form. An atomic task uses one selected test file and may mask multiple functions. A composite
| Language | Representative observation mechanism | Scope or mapping constraint |
|---|---|---|
| Python | Profiling callbacks during pytest execution, with source paths and qualified names. | A call-phase hook does not automatically cover setup, teardown, native extensions, or subprocesses. |
| Go | Function-entry instrumentation in source files supplied through a build overlay. | Package compilation and execution can exceed the selected physical test file. |
| JavaScript | Source instrumentation or test-runner transforms in the executing Node.js process. | Export-only instrumentation and worker coverage depend on the chosen backend. |
| TypeScript | Source-aware transforms integrated with Vite/Vitest or the repository runner. | Transpilation, expression bodies, and test ownership require explicit source mapping. |
| Java | Source probes or runtime bytecode instrumentation with test-framework hooks. | Constructors, generated methods, and thread boundaries affect observation and localization. |
| Kotlin | Source probes or runtime observation followed by mapping to Kotlin declarations. | Synthetic wrappers and declarations without independent source bodies require special handling. |
Table 3: Representative tracing mechanisms and coverage constraints. The mechanism is adapted to each repository's test runner and source layout.
Specification generation (abridged)
Evidence. Original production bodies, selected tests, and repository context are provided to the Query Agent.
Goal. Write a self-contained behavioral specification for the missing implementation scope.
Coverage. State observable inputs and outputs, boundary cases, defaults, errors, and side effects exercised by the selected tests.
Constraints. Do not reveal reference code, copy wording from hidden tests, or prescribe an implementation strategy.
Output. Provide a Problem Statement and Requirements describing the behavior to recover.
Solver input
PROBLEM STATEMENT: <behavioral overview>
REQUIREMENTS: 1. <observable behavior>; 2. <boundary case>; ...
<benchmark integrity policy>Workspace. The masked repository accompanies this text. The evaluator retains the selected tests, construction traces, reference bodies, and scoring metadata.
Figure 8: Specification generation and solver inputs. The Query Agent uses the original implementation and selected tests to describe behavior. The solver receives the specification and masked repository, which retains function declarations and signatures.
Atomic task: eclipse/hono (Java)
Selected behavior. The point in HttpUtilsTest.java checks that an invalid Uniform Resource Identifier (URI) still yields a non-null absolute URI.
Task scope. One selected test file, one failure-to-pass scoring point, and 15 changed lines in the reference restoration patch.
Task boundary. Validation checks that the selected test passes in the original repository and fails or reports an error when the implementation scope is masked.
Composite task: canonical/cloud-init (Python)
Selected behavior. The task combines hosts file operations and resolver configuration from test_hosts.py and test_resolv.py.
Task scope. The combined scope contains 22 masked bodies spanning 216 lines and seven expected scoring points. The reference restoration patch changes 208 lines.
Task boundary. The two parent tests share observed functions and are both revalidated under the complete combined mask.
Figure 9: Atomic and composite tasks with their validated implementation scopes.
| Language | Repository | Tier | k | Functions / lines | Calls | Resolved | Weighted |
|---|---|---|---|---|---|---|---|
| Python | canonical/cloud-init | Easy | 2 | 22 / 216 | 47 | Yes | 100.0 |
| JavaScript | FlowFuse/flowfuse | Medium | 6 | 85 / 646 | 71 | No | 91.6 |
| TypeScript | minvws/NL COVID-19 Dashboard | Easy | 2 | 4 / 113 | 50 | Yes | 100.0 |
| Java | apache/avro | Hard | 7 | 632 / 5,198 | 89 | No | 0.0 |
| Kotlin | FasterXML/Jackson Kotlin | Medium | 6 | 49 / 553 | 192 | No | 90.4 |
Table 4: First-attempt Qwen3.5-Plus cases under Claude Code across five languages. k counts selected test files. Functions / lines gives unique functions and recorded body spans. Weighted is the scope-weighted score (%).
task combines the validated scopes of multiple test files, counting shared functions once.
B.2 Recorded Execution Cases
Fig. 10 contrasts a fully resolved task with a high-scoring patch that leaves several behaviors incomplete. The excerpts include only visible tool actions and recorded results.
B.3 Cases across Languages
Table 4 reports first-attempt trajectories across five languages with the model and scaffold fixed. The cases cover all three scope tiers and include fully resolved tasks, partial recovery, and zero recovery.
C Dataset Scope and Statistics
Dataset composition. Tables 5 and 6 summarize the frozen 600-task release by language and scope tier. The numbers of tasks selecting one through nine test files are respectively 116, 56, 59, 61, 61, 67, 63, 55, and 62. We link test files that share observed production functions. Of the 484 composite tasks, 255 have connected graphs with one component, and 229 have disconnected graphs with multiple components. Every constituent test file is validated under the complete combined mask, regardless of graph structure.
Case 1: canonical/cloud-init (resolved composite)
Task. Recover host and resolver parsing, queries, mutation, rendering, stable deduplication, and resolver limits.
Scope. 2 selected test files, 22 masked bodies, and 216 body lines.
Recorded work. 47 tool calls and 4 modified production files.
Observable trajectory.
-
Search and read the parser modules, then implement the host, resolver, and shared helper behavior.
-
Run focused checks successfully. A broader distribution suite then reports 14 failures and 12 errors.
-
Inspect the remaining failures and locate a second masked uniq_list dependency in cloudinit/util.py.
-
Repair that helper and rerun the broader checks. The distribution and network suites each report 384 passing tests.
Independent evaluation. Restoring the two hidden test files yields 7/7 failure-to-pass points, complete resolution, and a scope-weighted score of 1.000.
Case 2: FlowFuse/flowfuse (partial recovery)
Task. Recover device-group requests, authentication and context state, assistant feature gates, expert-assistant state, and timer utilities.
Scope. 6 selected test files, 85 masked bodies, and 646 body lines.
Recorded work. 71 tool calls and 8 modified production files.
Observable trajectory.
-
Read the application client, timer, and store modules, then organize the specification into eight implementation units.
-
Edit the corresponding production modules and install the repository dependencies needed for verification.
-
Run the visible Vitest configuration, which reports 29 test files and 351 tests passing.
Independent evaluation. After the six hidden test files are restored, the patch passes 128/141 points. The 13 omissions comprise five context-store getters, seven assistant defaults or feature-gated getters, and one expert-message format. The scope-weighted score is 0.916, but the task remains unresolved.
Figure 10: Recorded tool actions and outcomes from two trajectories. Visible checks guide repair, and independent evaluation determines complete and partial recovery.
| Language | Tasks | Repos. | Mean N | Median N |
|---|---|---|---|---|
| Go | 100 | 28 | 14.68 | 9 |
| Python | 100 | 18 | 35.68 | 26 |
| JavaScript | 100 | 13 | 35.66 | 21 |
| TypeScript | 100 | 19 | 31.67 | 25 |
| Java | 100 | 13 | 27.15 | 14 |
| Kotlin | 100 | 14 | 14.91 | 11.5 |
| All | 600 | 105 | 26.63 | 17 |
Table 5: Dataset statistics by language. N counts scoring points per task. Repository counts are per language. Repositories and scoring points may recur across tasks.
Repository and parent reuse. The largest repository contributes 24% of Go tasks, 36% of Python, 23% of JavaScript, 18% of TypeScript, 27% of Java, and 28% of Kotlin. A validated parent test may participate in multiple composites. The maximum reuse in these language sets is 8, 24, 16, 12, 21, and 19 tasks, respectively. Task outcomes can therefore be statistically dependent, and future training and evaluation splits should control shared repositories and parent tests.
| Statistic | Easy | Medium | Hard | All |
|---|---|---|---|---|
| Tasks | 138 | 231 | 231 | 600 |
| Selected test files (median) | 2 | 4 | 8 | 5 |
| Masked bodies (median) | 11 | 30 | 119 | 35 |
| Reference-patch files (median) | 3 | 9 | 20 | 10 |
| Changed lines (median) | 109.5 | 418 | 1,555 | 433 |
| Scoring points (median) | 5 | 16 | 28 | 17 |
Table 6: Recorded task scope by tier and overall. Masked bodies are production function bodies. File and line counts describe reference restoration patches. Changed lines count additions and deletions and differ from the source spans used for weighting.
D Evaluation Details
D.1 Evaluation Configuration
Table 7 lists the evaluated model variants and their reference sources. All configurations use the common execution limits in Table 8. The output limit applies to each model request, and the solver deadline applies to each attempt. The Claude Code and OpenCode versions are 2.1.158 and 1.3.17, respectively.
On timeout, the runner preserves the current
| Model | Reference |
|---|---|
| Claude Opus 4.8 | (Anthropic, 2026b) |
| Gemini 3.1 Pro | (Google DeepMind, 2026) |
| GPT-5.3 Codex | (OpenAI, 2026a) |
| GPT-5.4 | (OpenAI, 2026b) |
| GPT-5.5 | (OpenAI, 2026c) |
| Qwen3.5-Plus | (Qwen Team, 2026) |
| DeepSeek-V3.2 | (DeepSeek-AI et al., 2025) |
| DeepSeek-V4-Flash | (DeepSeek-AI, 2026) |
| GLM-5 | (GLM-5 Team et al., 2026) |
| GLM-5.2 | (Z.ai, 2026) |
| Kimi K2.6 | (Moonshot AI, 2026) |
| MiniMax-M2.7 | (MiniMax, 2026) |
Table 7: Reference sources for the evaluated model variants.
| Setting | Value |
|---|---|
| Agent turns | 200 per scaffold invocation |
| Solver time limit | 6,600 seconds per attempt |
| Runtime timeout | 7,200 seconds |
| Output token limit | 32,000 per model request |
Table 8: Common execution limits across all evaluated models and agent scaffolds. These limits are fixed before solving.
| Model | Claude Code | Cline | OpenCode |
|---|---|---|---|
| Proprietary models | |||
| Claude Opus 4.8 | 37.8 / 51.3 | 26.5 / 43.5 | 29.7 / 53.9 |
| Gemini 3.1 Pro | 19.3 / 44.0 | 19.5 / 43.0 | 18.2 / 41.4 |
| GPT-5.3 Codex | 29.0 / 53.7 | 27.7 / 52.4 | 27.8 / 53.8 |
| GPT-5.4 | 26.8 / 54.4 | 31.2 / 55.4 | 23.8 / 51.3 |
| GPT-5.5 | 33.7 / 59.7 | 31.2 / 58.0 | 25.5 / 53.6 |
| Qwen3.5-Plus | 12.8 / 37.4 | 9.3 / 22.1 | 13.2 / 33.2 |
| Open-weight models | |||
| DeepSeek-V3.2 | 10.7 / 28.2 | 13.2 / 30.2 | 13.5 / 31.9 |
| DeepSeek-V4-Flash | 21.0 / 45.4 | 13.5 / 34.5 | 16.5 / 41.0 |
| GLM-5 | 16.8 / 36.3 | 14.8 / 32.8 | 16.5 / 36.6 |
| GLM-5.2 | 34.2 / 57.3 | 30.3 / 54.4 | 26.5 / 53.7 |
| Kimi K2.6 | 23.7 / 48.3 | 23.2 / 47.2 | 22.5 / 47.0 |
| MiniMax-M2.7 | 15.2 / 35.9 | 13.3 / 32.1 | 14.8 / 36.0 |
Table 9: Exact overall P@1 performance on SWE-Nexus (%). Cells report resolved rate / scope-weighted score. Bold marks metric maxima, including ties.
production patch for independent evaluation. Infrastructure retries are recorded separately from the solver attempts used for P@1/P@4. Evaluation applies the same hidden tests, parsing rules, and scoring criteria to every submission for a given task.
D.2 Complete Results
Tables 9 and 10 report complete P@1 results, rounded to one decimal. Means are computed from tabulated values over the models or configurations compared.
E Scoring and Trajectory Analysis
E.1 Scope-Weighted Scoring
Equation 2 divides each function's recorded span equally among its associated scoring points, giving . Coarser attribution associates a function with all points in its execution record. A file supplies one point when individual outcomes are unavailable. In the release, 573 tasks assign positive weight to every expected point. All scoring configurations, including coarser associations or unit weights where finer attribution is unavailable, are fixed before solving.
As a synthetic example, suppose a 20-line function is associated with points and , a 30-line function only with , and a 50-line function only with . Their point weights are 10, 40, and 50. Passing and yields an unweighted score of 2/3 and a scope-weighted score of 0.5, but the task remains unresolved.
In recorded attempts, a FlowFuse patch passes 128 of 141 points with a scope-weighted score of 0.915988, and a patch to Jackson's Kotlin module passes 18 of 20 with a score of 0.904475. Both remain unresolved. Appendix B traces the FlowFuse attempt from visible verification to independent evaluation.
E.2 Trajectory Analysis
Each trajectory is identified by its model, scaffold, task instance, and trajectory hash. Of 7,945 nonempty trajectories, 7,787 are scorable. We compare median activity between resolved and unresolved attempts for each combination of model, scaffold, and language. Of 144 configurations, 126 contain at least five attempts of each outcome and are retained.
Tool call counts measure visible activity, and modified file counts measure the breadth of code changes. We also record whether the solver verifies its edits and where the first edit occurs in the trajectory. Across configurations, the median differences (resolved minus unresolved) are +4.39 and +2.11 percentage points, respectively.
F Task Examples across Six Languages
Figs. 11–16 present one composite task for each language in SWE-Nexus. We select tasks that combine complementary constraints on a coherent software feature. The specifications preserve their functional goals, boundary cases, and errors, with wording edited for presentation.
| Model | Go | Python | JavaScript | TypeScript | Java | Kotlin |
|---|---|---|---|---|---|---|
| Cline · Proprietary models | ||||||
| Claude Opus 4.8 | 28.0 / 39.4 | 20.0 / 47.2 | 21.0 / 38.9 | 22.0 / 41.2 | 40.0 / 56.2 | 28.0 / 38.2 |
| Gemini 3.1 Pro | 20.0 / 33.5 | 11.0 / 39.1 | 13.0 / 44.4 | 11.0 / 40.5 | 36.0 / 53.9 | 26.0 / 46.7 |
| GPT-5.3 Codex | 16.0 / 32.8 | 24.0 / 47.6 | 14.0 / 59.1 | 24.0 / 53.2 | 51.0 / 64.2 | 37.0 / 57.6 |
| GPT-5.4 | 20.0 / 36.4 | 21.0 / 56.3 | 25.0 / 64.8 | 24.0 / 53.9 | 47.0 / 58.3 | 50.0 / 62.4 |
| GPT-5.5 | 27.0 / 43.2 | 16.0 / 55.7 | 16.0 / 60.5 | 29.0 / 60.8 | 53.0 / 66.7 | 46.0 / 61.4 |
| Qwen3.5-Plus | 7.0 / 14.5 | 4.0 / 18.9 | 5.0 / 20.8 | 0.0 / 21.2 | 23.0 / 31.0 | 17.0 / 26.1 |
| Cline · Open-weight models | ||||||
| DeepSeek-V3.2 | 9.0 / 19.8 | 9.0 / 25.1 | 6.0 / 36.6 | 15.0 / 39.2 | 23.0 / 36.0 | 17.0 / 24.7 |
| DeepSeek-V4-Flash | 10.0 / 30.5 | 4.0 / 25.7 | 5.0 / 38.1 | 6.0 / 28.7 | 25.0 / 44.2 | 31.0 / 39.6 |
| GLM-5 | 11.0 / 24.8 | 8.0 / 25.9 | 6.0 / 37.7 | 12.0 / 35.8 | 26.0 / 40.4 | 26.0 / 31.9 |
| GLM-5.2 | 27.0 / 42.3 | 18.0 / 53.6 | 16.0 / 55.1 | 28.0 / 55.9 | 50.0 / 64.1 | 43.0 / 55.6 |
| Kimi K2.6 | 18.0 / 33.2 | 16.0 / 42.9 | 13.0 / 51.0 | 19.0 / 46.2 | 41.0 / 58.5 | 32.0 / 51.6 |
| MiniMax-M2.7 | 10.0 / 24.6 | 7.0 / 25.4 | 5.0 / 37.3 | 10.0 / 34.5 | 24.0 / 39.7 | 24.0 / 31.4 |
| OpenCode · Proprietary models | ||||||
| Claude Opus 4.8 | 26.0 / 43.6 | 27.0 / 55.8 | 18.0 / 66.9 | 31.0 / 54.9 | 43.0 / 57.0 | 33.0 / 45.4 |
| Gemini 3.1 Pro | 16.0 / 33.4 | 9.0 / 34.9 | 9.0 / 41.7 | 7.0 / 33.6 | 39.0 / 56.1 | 29.0 / 48.6 |
| GPT-5.3 Codex | 19.0 / 37.4 | 18.0 / 46.0 | 13.0 / 59.4 | 26.0 / 54.2 | 48.0 / 63.7 | 43.0 / 62.2 |
| GPT-5.4 | 9.0 / 30.2 | 23.0 / 54.6 | 13.0 / 59.4 | 24.0 / 56.0 | 42.0 / 57.4 | 32.0 / 50.5 |
| GPT-5.5 | 17.0 / 39.8 | 15.0 / 48.6 | 15.0 / 62.3 | 21.0 / 54.5 | 50.0 / 64.4 | 35.0 / 51.8 |
| Qwen3.5-Plus | 3.0 / 23.2 | 8.0 / 27.5 | 7.0 / 37.4 | 16.0 / 34.7 | 24.0 / 43.5 | 21.0 / 32.6 |
| OpenCode · Open-weight models | ||||||
| DeepSeek-V3.2 | 9.0 / 20.1 | 11.0 / 28.7 | 7.0 / 34.3 | 8.0 / 32.6 | 22.0 / 41.9 | 24.0 / 34.0 |
| DeepSeek-V4-Flash | 15.0 / 32.0 | 8.0 / 27.6 | 8.0 / 47.6 | 14.0 / 51.7 | 34.0 / 55.3 | 20.0 / 32.1 |
| GLM-5 | 13.0 / 26.1 | 12.0 / 29.2 | 10.0 / 40.8 | 12.0 / 41.6 | 28.0 / 48.0 | 24.0 / 33.7 |
| GLM-5.2 | 20.0 / 40.8 | 18.0 / 50.4 | 15.0 / 63.5 | 22.0 / 54.6 | 48.0 / 62.5 | 36.0 / 50.2 |
| Kimi K2.6 | 16.0 / 35.2 | 14.0 / 39.9 | 11.0 / 49.7 | 15.0 / 42.9 | 44.0 / 59.5 | 35.0 / 54.7 |
| MiniMax-M2.7 | 11.0 / 25.4 | 10.0 / 28.2 | 8.0 / 40.2 | 10.0 / 41.2 | 27.0 / 47.9 | 23.0 / 33.1 |
Table 10: Cline and OpenCode P@1 performance by language (100 tasks each). Cells report resolved rate / scope-weighted score (%). Bold marks maxima for each language and scaffold, including ties.
Go: Broker lifecycle. Fig. 11 combines six selected test files into one Broker lifecycle. Contract contents, readiness, and cleanup must remain consistent. Reconciliation must avoid unnecessary generation increments, while finalization preserves external topics.
Python: REST API runtime. Fig. 12 combines seven selected test files spanning request parsing and response representations. Form parsing must preserve the underlying Django request, and version selection must agree with hyperlink generation and validation. Distinguishing parser errors from ordinary attribute access adds another constraint across the framework's request, serializer, and URL components.
JavaScript: Tour lifecycle. Fig. 13 combines nine selected test files covering rendered components, events, steps, and attachment utilities. Together they describe a complete user-facing interaction, including asynchronous showing and later cleanup. A step may render correctly on its first appearance yet mishandle a changed target or overwrite its original tabindex on a later show. The example makes lifecycle consistency and reversible DOM changes part of the same task.
TypeScript: Tab interaction. Fig. 14 combines seven selected test files around Tabs and its supporting utilities. The task connects asynchronous guards, public event ordering, keyboard focus, and reactive rendering. An immediate click event must coexist with a delayed state update, while reordered children must update both header order and indicator position. The example brings component state, event semantics, and supporting utilities under one behavioral specification.
Java: Schema evolution. Fig. 15 combines eight selected test files around a shared schema model. The feature spans construction, compatibility checking, and runtime use: accepting a default in a builder is insufficient if decoding later produces different bytes. Recursive histories and precise incompatibility locations add further constraints. The example illustrates a composite task in which several APIs must implement the same data-model rules consistently.
Kotlin: Multipart integrity. Fig. 16 combines nine selected test files covering object request conversion and multipart integrity. The example links accepted header formats to upload validation, decoded payloads, and digest generation. A matching ETag does not make an incorrectly ordered completion valid, and a correctly decoded body must still yield the required checksum representation. Together, these requirements specify object request handling and multipart integrity with concrete success and error behavior.
Knative Kafka Broker: reconciliation and finalization
Problem Statement
Restore the Kafka Broker control plane so creating, updating, and deleting a Broker produces consistent topic state, endpoint addresses, and readiness conditions. Reconciliation must translate Broker configuration into the shared data-plane contract stored in a ConfigMap. It must preserve other Brokers and existing egress entries, support authentication and transport-security settings, and safely clean up resources during finalization.
Requirements
-
Delivery configuration. Map content modes and backoff policies to contract values, convert ISO-8601 durations to milliseconds with the expected defaults, and apply egress merge precedence. Contract generation increments must follow the existing wraparound behavior.
-
Topic settings. Parse default.topic.partitions, default.topic.replication.factor, and bootstrap.servers from ConfigMap data. Reject missing or invalid required values, normalize bootstrap server lists, retain optional default.topic.config.* entries, and provide stable topic names.
-
Topic operations. Treat an already-existing topic as a successful creation and an unknown topic or partition as a successful deletion. Presence checks must accept valid topic metadata and reject missing, internal, or partitionless topics with useful errors.
-
Addresses and probes. Produce object paths of the form /namespace/name and service DNS names of the form name.namespace.svc. Build HTTP/HTTPS addressables with the appropriate audience and CA certificate data. Probe adapters must delegate to their supplied functions.
-
Broker reconciliation. Create or fetch the contract ConfigMap, handling empty or unreadable data. Resolve topic settings, reconcile managed or external topics, and insert or update exactly one Broker entry.
-
Semantic updates. Preserve unrelated resources and the Broker's existing egress entries. Increment contract generation only when contract content changes. If receiver or dispatcher pod annotations are stale, update their volume-generation annotations to the persisted generation even when the contract itself is unchanged.
-
Readiness and status. Set or clear the appropriate conditions and annotations for configuration resolution, data-plane availability, topic readiness, and probe results. Record the resolved dead-letter URI when applicable.
-
Feature settings. Honor custom topic templates and manage authentication-secret references and finalizers. With OpenID Connect (OIDC) enabled, propagate audiences and apply authorization fallback policies. Project ready event policies, including CESQL filters, into ingress policies. Expose HTTP, HTTPS, or both according to the transport-encryption mode.
-
Finalization. Remove the Broker entry, persist the updated contract, and synchronize pod generation annotations. Delete managed topics while retaining external topics, and clean up secret finalizers. Tolerate missing ConfigMaps, topics, or secrets and configuration failures specific to teardown. Requeue when probe results or transient Kafka or secret conditions require another attempt.
Figure 11: An adapted Go composite task from knative-extensions/eventing-kafka-broker.
Django REST framework: requests, representations, and versioned URLs
Problem Statement
Restore the runtime behavior that connects incoming Django requests to REST framework parsing, serializer fields, response negotiation, and versioned URLs. Applications must receive consistent values and error details across JSON, form, and multipart inputs. Renderer selection, settings reloads, and hyperlink generation must respect the active request context, including API versions and nested URL namespaces.
Requirements
-
Bound serializer fields. Support serializer[field_name] for primitive, JSON, and nested fields. Bound objects must expose values, errors, and fully qualified names, and remain navigable when parent errors are not mappings. Form conversion must turn scalar None/False into empty strings while retaining submitted text for invalid JSON.
-
Request parsing. Wrap a Django HttpRequest, reject an already wrapped REST framework request, and expose query_params as GET. Use the selected parser for empty GET/HEAD requests, forms, multipart uploads, and other bodies. Copy parsed form POST/FILES data to the underlying request so repeated form processing is safe. Reprocessing a consumed non-form stream must retain Django's raw-post-data exception.
-
Attribute errors. Re-raise parser and authenticator attribute errors as WrappedAttributeError, including access through user, data, hasattr, and authentication helpers. Preserve normal attribute proxying and user/auth setters on the underlying request.
-
Error details. Recursively convert translated strings, lists, tuples, dictionaries, and serializer return containers to ErrorDetail. Preserve message/code structure and consistent equality, hashing, and string representations. Throttling errors must round wait times for messages and expose wait metadata. Bad-request and server-error handlers must return JSON with status 400 and 500.
-
Content negotiation. Parse Accept headers and select the best renderer/media-type match, including wildcards and parameters. Format-suffix filtering must raise Http404 when no renderer matches. Media-type helpers must preserve matching rules, precedence, and string representations.
-
Settings. Support string, list, and tuple import coercion through perform_import, with informative import errors. Reject removed settings, cache resolved values, and refresh local and global api_settings after a Django settings override. Emit rest_framework.W001 when PAGE_SIZE is set without DEFAULT_PAGINATION_CLASS.
-
Format suffixes. Generate suffix-aware patterns for path() and re_path(), preserving order and default keyword arguments. Traverse nested include() trees with mixed path and regex patterns. Support required suffixes and allowed-format lists.
-
Version selection. Resolve versions from Accept headers, URL paths, namespaces, hostnames, or query parameters. Apply allowed-version and default-version rules, including an explicitly allowed None, and raise the scheme's API exception for invalid versions. Scheme-specific reversing must apply the corresponding version to the URL.
-
Reversing and hyperlinks. Public reverse() must use the active versioning scheme with ordinary reversing as a fallback and preserve query overrides. Hyperlinked relational fields must resolve namespaced versioned views for serialization and input validation. Non-versioned names must remain reversible regardless of the active version.
Figure 12: An adapted Python composite task from encode/django-rest-framework.
Shepherd: rendering and running interactive tour steps
Problem Statement
Restore Shepherd’s step rendering and lifecycle so applications can configure interactive tours, update their contents, and move reliably between steps. A step must coordinate its components, event handlers, attachment target, and positioning with the surrounding Tour. Showing, hiding, or destroying a step must manage accessibility attributes and temporary DOM changes without losing the target’s original state.
Requirements
-
Buttons and cancel controls. Accept literal or callback option values and apply custom attrs, converting numeric and boolean values to strings. Shepherd's own type, class, disabled state, ARIA label, tabindex, and click handler must take precedence over conflicting custom attributes.
-
Content composition. Render a header, text area, or footer only when its options call for one. Headers may contain a title, cancel icon, or both. Footers contain one button per configured entry and none for an empty or omitted list. Text may be an HTML string, callback result, or HTMLElement.
-
Events. Evented.on must register handlers, and trigger must forward arguments and preserve their context. off must remove all handlers for an event or a specific handler. A once handler must be removed after its first invocation.
-
Lifecycle. cancel() and complete() must call the Tour and emit the matching step event. hide() must emit before-hide and hide, hide any modal overlay, and remove target styling. destroy() must emit destroy and remove tooltip and component DOM state.
-
Option updates. Merge defaults, including nested floating UI options. updateStepOptions must retain unchanged options and refresh rendered text, titles, classes, and buttons when their values change.
-
Deferred showing. Await an asynchronous beforeShowPromise before showing the step. Resolve attachment selectors and callbacks when needed for that step, and resolve them again on later shows. Do not evaluate every target eagerly at tour creation. Resolved-attachment lookup must remain safe before the first show.
-
Accessibility and highlights. Tooltip/dialog markup must include the expected aria-labelledby and aria-describedby links. Apply enabled, target, and highlight classes to the appropriate elements when shown. Hiding or destroying the step must remove these classes and restore prior state.
-
Focus restoration. Preserve the attachment target's original tabindex across repeated show/hide cycles. If it originally had no attribute, remove the temporary one. If it had a value, restore that value rather than an intermediate runtime value.
-
Advancing. bindAdvance must support selector-scoped listeners and delegated body listeners. Advance only when the step is open and the configured event/selector conditions match. Unregister listeners when the step is destroyed.
-
Attachment and positioning. Resolve string selectors and callback targets, binding callbacks to the step. Resolve extra-highlight selector lists to matching elements, and center steps with absent or incomplete attachment options. Preserve an explicit floating UI strategy and place user middleware after Shepherd's default middleware.
Figure 13: An adapted JavaScript composite task from shipshapecode/shepherd.
Element Plus: tab navigation, editing, and reactive updates
Problem Statement
Restore the Element Plus Tabs interaction model and the shared utilities used by tabs and related components. Users must be able to select, add, and close panes through pointer or keyboard input. Active state, event ordering, pane order, and the active indicator must remain consistent when switching is asynchronous or children change reactively. Preserve the public value and configuration conventions used by existing components.
Requirements
-
Active values. Initialize the active pane from modelValue when defined, otherwise defaultValue, otherwise the first pane index '0'. Support both string and numeric pane names, treating a number and its string representation as distinct values.
-
Switching and guards. Clicking an enabled tab must emit tabClick immediately. An allowed switch must then emit update:modelValue followed by tabChange. A synchronous false or rejected beforeLeave promise must prevent switching. A pending promise must delay the update/change events until it resolves.
-
Disabled and closable panes. User interaction must not activate disabled panes. Closing is available only for closable, enabled panes. A pane's explicit closable=false must override the parent's global closable or editable setting.
-
Editing events. Adding a pane must emit edit(undefined, 'add') and tabAdd. Removing one must emit edit(paneName, 'remove') and tabRemove. Clicking a close button must not also activate the tab.
-
Keyboard and indicator. Arrow keys must move focus/selection among enabled tabs with wraparound, skipping disabled tabs. Left/up mean previous and right/down mean next. Recalculate the active indicator after DOM updates, using horizontal translation for horizontal tabs and vertical translation for vertical tabs.
-
Reactive pane order. Headers must follow the rendered child-pane order after insertion, removal, or reordering, including reactive loops and label-slot updates. These changes must work without remounting the Tabs component.
-
Focus helpers. getFocusIntent must map supported keys to first, last, prev, or next, respecting orientation and reversing left/right intent for right-to-left layouts. Unsupported or orientation-excluded keys return undefined. reorderArray must rotate an array from the supplied index.
-
Empty-value configuration. useEmptyValues must expose reactive empty values, the clear value, and an emptiness predicate. Resolve the clear value from props, injected configuration, an explicit default argument, then the library default. Evaluate function-valued clear settings. Emptiness must support primitive inclusion and deep equality for arrays.
-
Shared utilities. Return typed object entries and support path-based property reads/writes using string or array paths. Global node helpers must create, remove, and retarget appended nodes, including optional IDs. Resolve named/default component sizes from the constants map. Flatten nested vnode structures, including component subtrees and slot/function children.
Figure 14: An adapted TypeScript composite task from element-plus/element-plus.
Apache Avro: schemas, compatibility, and runtime defaults
Problem Statement
Restore Avro's Java schema APIs so applications can construct schemas, check compatibility, and read data as schemas evolve. Naming, namespaces, properties, and field defaults must agree across the fluent builders and direct creation APIs. Compatibility checks must identify the failing schema node, including in recursive schemas. The same defaults and schema identities must drive record construction, decoding, and single-object encoding.
Requirements
-
Name validation. UTF_VALIDATOR must accept names beginning with an underscore or Unicode letter, followed by Unicode letters, digits, or underscores. STRICT_VALIDATOR restricts letters to ASCII. Both reject null/empty names, leading digits, spaces, and punctuation. Overrides through Schema.setNameValidator must affect only the current thread, including record and field validation.
-
Names and fixed types. Preserve declared names, documentation, and namespaces. Fully qualified names override the contextual namespace, short names inherit it, and an explicit empty namespace clears it. Short primitive names are reserved only in the empty namespace. Create primitive schemas by type, and reject negative fixed lengths and lengths beyond the existing JVM size limit.
-
Object properties. Schema and field builders must accept booleans, integral numbers, longs, doubles, strings, byte arrays represented as strings, collections, and maps. Preserve recursive conversion in getObjectProp and reject null property values.
-
Field defaults. Materialize defaults for primitive, bytes, fixed, enum, map, array, record, and union fields, using the union's first type. Fixed defaults supplied as byte arrays, ByteBuffer, or Avro JSON strings must retain their byte content. Disabling default validation must preserve a raw JSON default even when typed defaultValue() cannot use it.
-
Compatibility diagnostics. Accept compatible type promotions and enum-default fallbacks. Report missing reader defaults, fixed-size differences, missing union branches, type mismatches, and nested failures through SchemaPairCompatibility. Preserve incompatibility type, message, reader/writer fragments, description, and the JSON-pointer location of the failing node.
-
Recursive schema histories. Support can-read, can-be-read, and mutual-read validation strategies with latest-only or full-history checks. Compatible recursive schemas must not overflow the stack. Incompatible histories must raise SchemaValidationException. An unconfigured validation strategy must fail with AvroRuntimeException.
-
Runtime evolution and encoding. Record builders and datum readers/resolving decoders must supply defaults for added fields, including nested records, maps, unions, enums, bytes, and fixed values. BinaryMessageEncoder.encode must emit Avro single-object encoding with the V1 header, schema parsing fingerprint, and binary payload.
-
Unresolved schemas.
getUnresolvedSchemaName must accept only placeholder records with Avro's expected marker property, placeholder name, and namespace. Ordinary records, fixed schemas, and incorrectly marked placeholders must raise IllegalArgumentException.
Figure 15: An adapted Java composite task from apache/avro.
S3Mock: object request handling and multipart integrity
Problem Statement
Restore S3Mock’s object request conversion and multipart upload integrity behavior. The supported AWS SDK request formats must produce consistent access policies, tags, copy sources, and user metadata. Multipart completion must validate upload state, part sizes, order, and ETags with the expected S3 errors. Chunked uploads and multipart digests must expose the correct payload bytes and checksum outputs.
Requirements
-
Canned access policies. Map private, public-read, public-read-write, authenticated-read, aws-exec-read, bucket-owner-read, and bucket-owner-full-control to their ACL enum values. Unsupported or differently formatted values return null. Policies must give the owner full control and add the required public, authenticated-user, or bucket-owner grants. The private and aws-exec-read policies grant access to the owner alone.
-
Tagging headers. Accept URL-style tag pairs and XML Tagging payloads. Produce one tag per nonblank pair segment, deserialize XML tag sets, and return null when no tags remain. Malformed XML must raise IllegalArgumentException.
-
Copy sources. Accept bucket/key values with or without a leading slash, URL-decode them, and extract an optional ?versionId= suffix into the version field. Null input must raise NullPointerException. Inputs that cannot be parsed into bucket and key must raise IllegalArgumentException.
-
Part numbers. verifyPartNumberLimits must accept and return integer part numbers from 1 through 10,000. Values outside this range must raise INVALID_PART_NUMBER.
-
Upload lookup.
verifyMultipartUploadExists must validate an upload in its bucket using the requested includeCompleted option and return the upload information. Translate a missing upload in the store to NO_SUCH_UPLOAD_MULTIPART.
-
Stored-part validation. Check upload existence before validating completion. Every part except the last must meet MINIMUM_PART_SIZE and the required part-number bounds. Size and number violations must raise ENTITY_TOO_SMALL and INVALID_PART_NUMBER, respectively.
-
Requested completion parts. Resolve the upload target from the object key. An unmapped target, missing part, or mismatched part number/ETag must raise INVALID_PART. Match requested parts to stored parts and require ascending order, raising INVALID_PART_ORDER when order is invalid.
-
Chunked payloads. Decode AWS unsigned chunked streams into raw bytes while tracking expected decoded length, bytes read, and chunk count. At the terminal zero-size chunk, parse an optional x-amz-checksum- trailer into algorithm and checksum fields. Leave those fields unset when no checksum trailer is present.
-
Multipart digests. Hash each part independently, concatenate the part digests, and hash that concatenation using the requested algorithm. Append the part-count suffix to the final digest. Return hexadecimal output for the MD5 ETag variant and Base64 output for the checksum variant.
-
User metadata. Read x-amz-meta- headers case-insensitively, including canonical and lowercase forms, and ignore blank values. When emitting metadata headers, retain the prefix if present and add it when absent so metadata can round-trip.
Figure 16: An adapted Kotlin composite task from adobe/S3Mock.