Search arXiv⌕ Search

arXiv · 2612.00752

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 $p$ from 0.83 (2025) to 0.965 (2026), making the measured SWE-bench staircase the arithmetic of $R = p^n$. 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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Yun Wang. 2026-12-01. Complexity as Change Cost: A Unified Software Complexity Model and the Solvability Boundary of AI Coding Agents. https://searcharxiv.org/abs/2612.00752

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Settling the Reward Hypothesis

The reward hypothesis posits that, "all of what we mean by goals and purposes can be well thought of as maximization of the expected value of the cumulative sum of a received scalar signal (reward)." We aim to fully settle this hypothesis. This will not conclude with a simple affirmation or refutation, but rather specify completely the implicit requirements on goals and purposes under which the hypothesis holds.

cs.AI↗

Explainable Innovation Engine: Dual-Tree Agent-RAG with Methods-as-Nodes and Verifiable Write-Back

Retrieval-augmented generation (RAG) improves factual grounding, yet most systems rely on flat chunk retrieval and provide limited control over multi-step synthesis. We propose an Explainable Innovation Engine that upgrades the knowledge unit from text chunks to methods-as-nodes. The engine maintains a weighted method provenance tree for traceable derivations and a hierarchical clustering abstraction tree for efficient top-down navigation. At inference time, a strategy agent selects explicit synthesis operators (e.g., induction, deduction, analogy), composes new method nodes, and records an auditable trajectory. A verifier-scorer layer then prunes low-quality candidates and writes validated nodes back to support continual growth. Expert evaluation across six domains and multiple backbones shows consistent gains over a vanilla baseline, with the largest improvements on derivation-heavy settings, and ablations confirm the complementary roles of provenance backtracking and pruning. These results suggest a practical path toward controllable, explainable, and verifiable innovation in agentic RAG systems. Code is available at the project GitHub repository https://github.com/xiaolu-666113/Dual-Tree-Agent-RAG.

cs.AI↗

Strategic Algorithmic Monoculture: Experimental Evidence from Coordination Games

AI agents increasingly make high-stakes decisions in multi-agent environments where outcomes depend on coordination (e.g., hiring, pricing, and trading). We distinguish primary algorithmic monoculture---baseline action similarity---from strategic algorithmic monoculture, whereby agents adjust similarity in response to incentives. We design a simple experiment that cleanly separates these forces and deploy it on human and large-language-model (LLM) subjects. LLMs exhibit high levels of baseline similarity (primary monoculture) and, like humans, they regulate it in response to coordination incentives (strategic monoculture). While LLMs coordinate extremely well on the same action, they lag behind humans in sustaining heterogeneity when divergence is rewarded.

cs.AI↗