Complexity as Change Cost: A Unified Software Complexity Model and the Solvability Boundary of AI Coding Agents
Abstract
Software complexity research speaks four incommensurable languages: complexity of code, of problem and state space (Brooks, Moseley and Marks), of working memory (Sweller, Ousterhout), or of the dependency graph. Practice picked the most computable, which fails where gates need it; AI coding agents make it a daily decision: what to hand to an agent. We define complexity as the expected cost of a typical change, relative to a change distribution, a partitioning, and an executor profile: an additive scalar - locate, model, write, verify, ripple. The Brooks essential/accidental dichotomy becomes operational - essential complexity is the infimum of change cost over all feasible partitions. Layering, the modular monolith, microservices, and DDD become special cases of one constrained graph-partitioning problem; aggregate boundaries turn verification from a product into a sum; changes are graded by the design surface they touch (code, schema, data pipeline), each paying in a different component. Agent solvability reduces to three hard constraints; back-inference from public benchmarks calibrates per-step reliability from 0.83 (2025) to 0.965 (2026), making the measured SWE-bench staircase the arithmetic of . Whether a feature lands scattered across modules is predicted by change count and author concentration (cross-validated AUC 0.62; leave-one-repo-out 0.63); frozen coefficients transfer cold to unseen microservice and data-warehouse systems (0.586, 0.67), and an ex-ante guardrail replicated alarm precision on three systems (lift 1.88/1.87). The dispersion-to-defect link was null under three instruments; guardrails are therefore qualified as change-organization risk predictors. Directions and orderings extrapolate; magnitudes do not. Eight falsifiable predictions and an executable governance protocol close the paper.
Create a lesson
Metadata
- Categories
- cs.AI, cs.SE
- Comments
- 72 pages, 4 figures, 20 tables. English version; the open-source analysis pipeline is at github.com/wybug/uscm-agent. Internal-corpus results appear only as anonymized aggregates
Related papers
When Does Feedback Help? Evaluating Feedback for Iterative Refinement in Coding Agents
Shared title terminologycs.AIAmin Banayeeanzade, Mengxuan Hu, Qingchuan Yang et al.
RectifyFlow: Plan Upfront, Rectify Selectively for Cost-Efficient Edge-Cloud Tool-Using Agents
Shared title terminologycs.AIWeixiang Han, Linzhuang Zou, Yi Liu et al.
AUTOEMBED: Can Coding Agents Train Text Embedding Models?
Shared title terminologycs.AIAdnan El Assadi, Isaac Chung, Deep Shah
Can Coding-Agent Leaderboards Tell Whether a Harness Advantage Is Model-Specific? An Audit of Terminal-Bench and SWE-bench
Shared title terminologycs.AIYuanyuan Tan, Yingxin Jia, Youwen Zhu et al.
Knowing Where Is Not Enough: Evaluating Multimodal Evidence Acquisition in Search Agents
Shared title terminologycs.AIJohn Lau, Ziheng Tan, Chenyu Lu et al.
Freehand: The Bitter Lesson Comes to Agent Harnesses
Shared title terminologycs.AIZezi Zeng, Yuke Zhao, Muzhao Tian et al.