Edit-Induced Dependency Mismatch: Propagation Omissions, Recovery, and Evaluation Blind Spots in Coding Agents
Organizations: Alibaba Group
Abstract
During iterative code modification, coding agents may continue to rely in subsequent reasoning on outdated dependency judgments whose text remains fixed in the context, leading to errors in subsequent reasoning and leaving consumer defects undetected by the original task evaluations, thereby exposing blind spots in the tested benchmarks. We study actual agent execution trajectories collected on benchmark tasks: deepseek-v4-flash runs on DeepSWE and SWE-bench Verified, supplemented by Qwen3.8-Flash cases on FeatureBench. Focusing on edit-induced consumer obligations, a full-corpus blinded human audit of the DeepSWE runs identifies terminal mismatches, including diagnoses whose task scope remains disputed. Following supplementary execution checks, all retained DeepSWE terminal events have execution support. The audit also shows that recovery within a trajectory can coexist with terminal omissions in the same run. The process analysis links the presentation of relevant consumer code to explicit dependency judgments and subsequent synchronization actions recorded in the trajectories. An explicit dependency-review prompt reduces terminal omissions under the tested conditions, supporting re-derivation of consumer obligations after edits. Local replays of selected DeepSWE cases show that synchronizing the diagnosed consumers restores the target behavior while the listed controls continue to pass. Cross-benchmark execution counterexamples show that the original task evaluations do not fully detect edit-induced dependency mismatches: patches pass those evaluations, yet additional execution checks confirm unintended defects along existing consumer paths. These findings support measuring task scores, terminal propagation states, and recovery separately.
Figures & tables
| Item | Archived facts and measurement units |
|---|---|
| DeepSWE main corpus | runs, tasks, repository snapshots |
| Scored-set boundary | runs planned; did not enter the officially scored set |
| Original evaluation outcomes | passing; failing; original values retained |
| Final patches | Median of modified paths; runs modify at least two files; patches are empty |
| Coding-run stack | deepseek-v4-flash ; mini-swe-agent 2.4.6 ; Harbor 0.21 |
| Original conditions | bare , inject-file , guided ; runs planned per task per condition |
| (a) Terminal diagnoses by scope, evidence, and original outcome | ||||||
|---|---|---|---|---|---|---|
| Original outcome | All runs | Diagnosed | Any exec. | Static only | All events undisputed | Undisputed + execution |
| Passed | ||||||
| Failed | ||||||
| Total | ||||||
| Terminal diagnoses: 37 tasks / 85 consumer relation types / 473 runs / 546 events | ||||||
| Run shares: all diagnoses ; all events undisputed ; same main-corpus denominator | ||||||
| Task/trial | Local synchronization | Target passes | Preserved passing checks |
|---|---|---|---|
| Kysely wq82S5C | Transformer copies the nulls field (1 file, 1 added line) | controls; original evaluation ; source and test type checks | |
| Query MYCfNHF | Shared result entry point unwraps the restoration marker (1 file, net 4 added lines) | ordinary restoration and fresh-request controls | |
| termenv 5FGCqii | Renderer reads preservation state; truncation avoids reopening styles twice (2 files) | controls; original repository tests | |
| Helm BRvPrLE | Configuration merge reads annotation policies and retains CLI precedence (2 files) | controls and regression leaf tests | |
| Expr 7uAWePB | string() preserves error values and reads their messages (2 files) | controls; original repository tests |
Appendix figures & tables22 assets
Supplementary material from the paper’s appendix.
Appendix
| Criterion | Required evidence | Treatment when false or indeterminate |
|---|---|---|
| Implemented edit | Baseline, patch, and trajectory from the same run, identifying the actual change | Plans alone are excluded; missing materials remain recorded as missing |
| Established obligation | Exact task wording or a still-applicable existing contract explaining why the consumer must adapt | Differences from the reference implementation are insufficient; unresolved conflicts in obligations remain unresolved |
| Existing and reachable | An independent consumer present before the patch; a specific entry point, input/state, branch conditions, and consumption chain | Errors within a newly written/rewritten function are classified separately; confirmed unreachability leads to exclusion, while gaps in the path remain unresolved |
| Substantiated diagnosis | An actual erroneous output for the same relation, with a concrete source-level account; source-only diagnoses from the original audit receive supplementary execution support | Evaluation outcomes, test names, and self-reports are insufficient substitutes; cases without a verifiable diagnosis remain unresolved |
| Terminal state/recovery | A gap remaining in the final patch; or a runtime failure of an existing consumer that is subsequently repaired | Repaired gaps are not counted as terminal; migration transients and generated-file synchronization do not automatically count as recovery |
| Scope and aggregation | Scope disputes recorded separately after the obligation and diagnosis are established, followed by separate counts of events and runs | Scope status follows explicit human adjudication; historical missing fields and supplementary decisions are recorded separately |
| Stage / outcome | Runs |
|---|---|
| Original terminal-diagnosis set | |
| Initially accepted by both experts | |
| Requiring follow-up after initial review | |
| Confirmed after follow-up | |
| Excluded after follow-up | |
| Unresolved after follow-up |
| Primary label | Original outcome: passed | Original outcome: failed | Total |
|---|---|---|---|
| Terminal propagation diagnosis | |||
| Propagation omission recovered within the trajectory | |||
| Specification/interface mismatch | |||
| Local algorithm or boundary error | |||
| Compatibility regression; propagation chain not located | |||
| Environment/build |
| Run group by scope | Original outcome: passed | Original outcome: failed | Total |
|---|---|---|---|
| All terminal events undisputed | |||
| Both undisputed and disputed events | |||
| All terminal events disputed | |||
| Total |
| Original evaluation outcome | Any exec. | Static only | Unresolved evidence | Not identified | Unresolved status | Total |
|---|---|---|---|---|---|---|
| Passed | ||||||
| Failed | ||||||
| Total |
| Task identifier | Relation types | Runs | Events |
|---|---|---|---|
| abs-stepped-slices | 1 | 10 | 10 |
| anko-default-function-arguments | 6 | 25 | 46 |
| anko-typed-variable-bindings | 3 | 12 | 12 |
| arcane-drift-detection-baselines | 1 | 21 | 21 |
| arktype-json-schema-refs-depende | 1 | 14 | 14 |
| awilix-async-container-initializ | 2 | 6 | 6 |
| Metric | Exploratory group (24 tasks) | Remaining group (40 tasks) |
|---|---|---|
| Runs | ||
| Original evaluation passed | (17.0%) | (61.3%) |
| Original evaluation failed | (83.0%) | (38.7%) |
| Terminal diagnoses | (24.8%) | (11.4%) |
| Containing recovery events | (13.3%) | (12.6%) |
| Unresolved primary label | (4.4%) | (3.3%) |
| Task | F2P: before after | P2P: both | New failures |
|---|---|---|---|
| Kysely | |||
| Query | |||
| Helm | |||
| Expr |
| Condition | Runs | Terminal | Recovery | Both |
|---|---|---|---|---|
| bare | 960 | 154 (16.0%) | 138 (14.4%) | 31 |
| inject-file | 959 | 170 (17.7%) | 118 (12.3%) | 30 |
| guided | 960 | 149 (15.5%) | 114 (11.9%) | 22 |
| Case / run | Edit / read | Shown pre/post | Judgment / action | Later reuse | Detection repair verification |
|---|---|---|---|---|---|
| 01-R NtJTSTr | e129 20:40/41 | C/C | J: NE A: 133/266 | NE | Probe 131 C133 suite 136 |
| 01-T ftB5YxJ | e29 5:10/11 | C/NE | NE | NE | Not established |
| 02-R X7WyyaV | e20 14:28/29 | C/NE | J: NE A: 35/70 | NE | New test 31 C35 target 37 |
| 02-T tZ5A8ae | e37 4:8/9 | C/C | NE | NE | Not established |
| 03-R uFXJqjF | e90 100:201/202 | NE/C | J: NE A: 102/205 | NE | Existing test 98 P102 suite 104 |
| 03-T Kh8cqmU | e80 73:146/147 | C/NE | NE | NE | Not established |
| Case | Code presentation and edit | Explicit judgment sequence | Program consequence and boundary |
|---|---|---|---|
| termenv 5FGCqii | s4/m8 requests cat style.go ; m11 displays the old renderer. s22–23 introduce the state. | s32/m72: “The preserveResets field only affects Truncate, not Styled.” s56/m120: “Only Truncate uses preserveResets. That’s fine”. | Ordinary rendering still omits the new state. The explicit judgment is formed after the edit and persists during later review. |
| eicrud zNSeKSU | s21/m42 reads the client; m43 displays the consumer. s62/m124 adds the server’s cursor / offset restriction. | s22/m44: “we may not need to modify the client for this issue”; s128/m256: “the client would pass it through, and the server handles it. Good.” | The tentative pre-edit decision remains after a new constraint. Client adaptation is scope-contested; the conflict is statically derived. |
| Group | Runs with terminal omissions | Share |
|---|---|---|
| Normal continuation (archived) | 290 | 10.1% |
| General correctness/test check | 276 | 9.6% |
| Dependency-review prompt | 69 | 2.4% |
| Content | Directory | Relative path |
|---|---|---|
| Original scores and patches | C | data/scores.csv ; patches/ |
| Task descriptions | C | tasks/ |
| Frozen labels and census | C | data/final_labels.jsonl ; data/expected_counts.json |
| Nine selected interactions and verifier reports | C | cases/index.json ; cases/<trial>/visible_messages.json ; cases/<trial>/verifier/ |
| Five local replay kits | C | replays/register.json ; replays/ under kysely , query , termenv , helm , expr |
| Current terminal labels | D | labels.csv ; labels.jsonl ; counts.json |
| Primary diagnosis | Runs | Evidence |
|---|---|---|
| Terminal propagation omission (human-confirmed) | Sphinx 9461 passes all original evaluation tests after local synchronization; Astropy 13398’s mismatch between new and existing coordinate-transformation paths is human-confirmed | |
| Incomplete repair | Branches, inputs, or call paths required by the original task remain uncovered, including Django 11734 | |
| Specification/interface or representation mismatch | Implementation outputs differ from acceptance requirements, including strict representation requirements | |
| Local algorithmic error | Algorithmic or conditional errors identified, without an independently established propagation relation | |
| Evaluation-process anomaly | pylint 4604 fails during import; no tests are actually executed | |
| Total | Originally failing subset, retaining original evaluation outcomes |
| Instance | Original F2P/P2P | Diagnosis with the complete model patch | After local synchronization |
|---|---|---|---|
| Sphinx 7440 | ; | :any:‘MySQL‘ cannot find the case-preserving glossary entry | Reference and HTML restored; the original repair allowing differently cased entries to coexist is preserved |
| SymPy 12419 | ; | For a range-constrained delta in a product, reduction before substitution yields , whereas direct substitution yields | Both orders yield ; controls for the old two-argument form, in-range cases, empty products, and the original task are preserved |
| xarray 6461 | ; | where(..., keep_attrs=True) overwrites coordinate units in seconds with the variable’s kelvin units | Coordinate attributes restored; the original task’s scalar-input repair is preserved |
| Task | Final F2P; P2P | Retained consumer relation | Evidence |
|---|---|---|---|
| Meson Cargo | ; | New dependency names and wrap registrations disagree with existing resolver queries | Execution |
| MLflow security | ; | New default IPv6 patterns misfeed the shared matcher used by existing FastAPI host validation | Execution |
| Seaborn Path styles | ; | Shared capstyle adaptation discards the dashed-path theme setting | Execution |
| Task | Final F2P; P2P | Consumer failure in the trajectory | Archived recovery evidence |
|---|---|---|---|
| Seaborn plotting | ; | Coordinate removal makes Bar._make_patches raise KeyError: ’x’ | Same plotting script succeeds after two guards; passed, skipped, xfailed |
| xarray tree nodes | ; | Detachment invalidates a live dictionary view, then rejects the existing delete-before-orphan path | Dictionary rebinding and removal of the strict key-count check; passed, xfailed |
| xarray chunks | ; | Early return leaves overlapping Zarr writes; readback loses the last row | Remove single-backend-chunk early return; passed, skipped |
| scikit-learn validation | ; | New wrapper’s validation context rejects the existing internal LARS call | Skip nested validation as on the estimator path; passed |
| Answer status | Passed | F2P-only failures | P2P-only failures | Both failed | No results listed | Total |
|---|---|---|---|---|---|---|
| Submitted | ||||||
| TimeExceeded | ||||||
| Total |
| Mismatch mechanism | Unmet existing consumer obligation | Record and state |
|---|---|---|
| Unsynchronized registration and lookup keys | Hyphen normalization of package/API names, wrap naming, and provider lookup must use a consistent identity | Meson; terminal/execution |
| Confusion between literal representation and pattern syntax | IPv6 brackets must be escaped before reaching the shared wildcard matcher | MLflow; terminal/execution |
| Shared adapter overrides consumer defaults | Path’s dashed-line capstyle must preserve the theme’s round setting | Seaborn Line; terminal/execution |
| Premature deletion of intermediate data columns | Coordinates produced by paired statistics must remain available to the existing Bar consumer | Seaborn Plot; recovered |
| In-place mutation breaks iteration safety | Child detachment must not change the size of a dictionary view being iterated | xarray tree nodes; recovered |
| Precondition conflicts with existing call order | The delete-before-detach path must allow the key to be already absent | xarray tree nodes; recovered |
| Mode and subtypes | Representative archived observations | Boundary with propagation diagnosis |
|---|---|---|
| Unrestored implementation/unconnected symbols | Missing MLflow _get_store and call_endpoint , Seaborn assign_variables , and Sphinx find_uri | Failure to restore definitions or imports already removed by input cropping does not mean that the model’s edit creates a new consumer obligation |
| Input-validity and type-selection errors | FastAPI treats fields that should be rejected as scalar; duplicate TreeNode children trigger an internal assertion; sklearn parameter validation fails | Decisions, boundaries, and error exits in the new logic do not automatically count as propagation |
| Incompatible diagnostic contracts | Different exception messages/types, warning messages/categories, log levels, or command-line argument-name ordering; examples in RGB, MLflow, and Sphinx | The observable interface may be violated even when the main algorithm runs; specify whether the failure concerns type or text |
| Representation, formatting, and default-precedence errors | Meson version ranges/URLs; bytes field names incorrectly converted to strings; Pydantic-generated titles override explicit titles; missing HTML colons and serialization case/newline errors | First locate the new implementation’s output contract; discuss propagation only if a retained consumer has an additional independent obligation |
| Numerical, shape, and layout errors | Histogram zero bins/lost tail samples; Bars array-shape mismatches; RGB/RGBA channel counts; rechunk layouts and dtype/index names | Use actual numerical, shape, and metadata assertions rather than calling every error an algorithmic capability deficit |
| State, initialization, and resource-protocol errors | Unbound locators/formatters; subprocess-wrapper protocols, path handling, and resource-input adaptation errors | Distinguish local initialization, external-library interfaces, and existing consumers within the repository |
| Scope and evidence | Terminal | Recovered | Both | Ever observed |
|---|---|---|---|---|
| Execution-supported, undisputed scope | ( ) | ( ) | ( ) | |
| Execution-supported, including disputed scope | ( ) | ( ) | ( ) | |
| Also including source-supported terminal diagnoses | ( ) | ( ) | ( ) |
Software Engineering Agents
Software Engineering Agents are AI systems that use code, tools, and feedback to perform software development tasks.
See all 387 papers