Complexity as Change Cost: A Unified Software Complexity Model and the Solvability Boundary of AI Coding Agents
Yun Wang in Agents
Why coding agents hit a solvability cliff
Complexity as Change Cost: A Unified Software Complexity Model and the Solvability Boundary of AI Coding Agents
One code score cannot price every change
Cyclomatic, size and graph metrics capture different slices; the paper reports weak-to-moderate links to maintenance, and unpredictable understandability at high metric values.
The Unified Software Complexity Model as Change Cost (USCM-CC) defines complexity for a chosen change distribution, architectural partition and executor, tying cost to the work a system faces.
Follow one change through five costs
- 1
Locate + model
Find the affected units, then build enough understanding to change them correctly.
- 2
Write
Make the edits; implementation cost grows roughly with the number of changed units.
- 3
Verify
Check the acceptance conditions; greater automated coverage reduces the verification term.
- 4
Ripple
Repair downstream effects caused by the change, beyond the units directly edited.
Complexity is an average over changes
Average the five costs over a chosen stream of changes; the answer depends on the executor and architectural partition, not code alone.
- Cθ
- Expected change cost for executor θ
- Δ
- Distribution of changes considered
- P
- Architectural partition of the system
Architecture can lower cost, not erase the floor
For the partition a system already has, expected change cost includes necessary work and any excess cost from where code is placed.
For a fixed change distribution and executor, essential cost is the infimum over feasible partitions; the gap from it is accidental cost.
A redesign may reduce accidental cost, but cannot cross the essential lower bound.
Four architectures, one partitioning problem
Layering, modular monoliths, microservices and DDD are often discussed as separate answers to the question of which architecture is better.
USCM-CC casts them as graph partitions with different boundary costs and constraints; compare candidates only after fixing team, deployment and domain conditions.
First fix the constraints, then compare the costs of candidate architectures.
The model links definition to decisions

Figure 1 maps expected change cost and the essential/accidental split through five components and four axes to architectural choices, placement debt and a decision interface.
Serial reliability compounds across a change
The paper back-infers per-step reliability at about 0.83 in early 2025 and 0.965 in 2026; serial multiplication still shrinks end-to-end success.
- p
- Per-step reliability
- n
- Number of serial steps
Live benchmark success drops in steps

On SWE-bench-Live, success was 48% for single-file patches under 5 lines, below 10% for 3+ files or over 100 lines, and 0% at 7+ files.
Three constraints bound agent solvability
- 1
Context
Information needed to understand the change must fit within the agent's effective context.
- 2
Reliability
Serial actions can miss the end-to-end target even when each step is individually reliable.
- 3
Verification
Executable checks must cover enough acceptance conditions to establish correctness.
A local guardrail predicts dispersion

Left: per-repository dispersion prediction from change count and author concentration, median CV AUC 0.62; leave-one-repository-out 0.63. Right: flagged placements dispersed 1.88×/1.87× as often as unflagged ones in two held-out systems.
Dispersion is not a defect predictor here
R1′ uses pre-merge information; its guardrail fires when predicted dispersion risk crosses that system's usual base rate.
Across three instruments, the feature-level dispersion-to-defect-rate association was null; the authors frame these signals as placement and synchronization risk, not defect rates.
What the evidence does not settle
Live benchmark anchor
Only the 48% first layer anchors per-step reliability; the next two are an upper-bound and a non-refuting check, and stratum sample sizes are undisclosed.
Local thresholds
Pooled coefficients are priors; the paper calls for monthly local refitting and says magnitudes should not be extrapolated across systems.
Partial source
The supplied text ends mid-main-text, so the remaining derivations, results and appendices cannot be assessed in this edition.
Why it matters
- Complexity is conditional: its change stream, architecture and executor shape expected cost.
- Before delegation, check context, serial reliability and executable verification; then split, decouple, specify, narrow or freeze the change.
- Open question: can locally calibrated placement alarms predict outcomes beyond dispersion, given the null feature-level dispersion-to-defect association?
14 slides, 4 min
9 hours ago