Complexity as Change Cost: A Unified Software Complexity Model and the Solvability Boundary of AI Coding Agents · Yun Wang, XGD · arXiv preprint, submitted December 1, 2026
A complexity model says agent success falls off with the number of steps a change needs
Wang defines complexity as "the expected cost of completing a typical change", split into five parts: "locate, model, write, verify, and ripple." The paper says the industry cannot yet answer "which code should be handed to agents, and which should not", and it answers with arithmetic. If an agent gets each step right with probability p, a task of n steps succeeds about p to the power n. Wang estimates steps from the shape of the change: about 4 for a small single-file patch, about 12 for three files or 100 lines, about 20 for seven or more files.
Applied to SWE-bench-Live results for OpenHands with Claude 3.7 Sonnet (May 2025), a 0.48 resolution rate on single-file, five-line tasks implies per-step reliability of 0.83. At that rate a 20-step task succeeds 2.4% of the time, and the seven-or-more-file stratum measured zero. Wang calls that zero a "non-refuting reading, not confirming evidence", because the source paper does not disclose how many tasks were in the stratum. A second table puts per-step reliability at 0.91 for GPT-5 with SWE-Agent on SWE-bench Pro (September 2025) and 0.965 for GPT-5.4 on the Pro public set under SEAL's standardized setup in 2026. That is 5.5 points per step against a 36-point rise in end-to-end resolution. The paper recommends tracking per-step reliability instead of resolution rate, since resolution rate depends on how hard a benchmark's tasks are.
The step counts are the author's structural estimates, not measured agent trajectories, and the paper says its finer step formula is still optimistic for simple tasks. Its repository pilots cover one institution's internal systems and six Apache open-source projects, and it states that "directions and orderings extrapolate across systems; magnitudes do not." We read the abstract, the evidence-grading section, the benchmark section of the solvability theory, the limitations and the conclusion. We did not read the proofs or the data-modeling and architecture sections.
Why it matters: The model gives a factory a rough test for whether a task is too big for its agent: count the files and boundaries the change has to cross. It also explains why a small gain per step can move end-to-end results a lot. Wang's own conclusion points at "not making tools smarter, but making tasks smaller, more verifiable, and more reversible." The thresholds come from other people's benchmarks run through an assumed step count, so they are a starting point to check against your own agent's runs.