Managing Specification. Not code: A feasibility study of Graph -> Contract -> Code Deployment and Maintenance
Abstract
Version control is built on source diffs, but a line diff does not say which logic changed or what it affects. We test, at feasibility scale, an agentic-AI development method in which the managed unit is the specification, not the code: a rulebook plus a few human rulings is turned into a typed knowledge graph; per-module contracts are generated from the graph mechanically, with zero model tokens; independent coder agents write code from the contracts only; and the result is judged by rule tests. A change request becomes a graph and contract diff rather than a line diff. We compare against ordinary AI-assisted development (same model, same rules, same tests, no graph or contract). On the rules engine of a commercial board game (374 rules, 116 tests), cloud coders pass 113/116 tests with interface nodes in the graph (86/116 without); an open-weight model (DeepSeek V4 Flash) passes 94/116 in one shot and 103/116 after a no-test repair loop, for under US$0.11, while a conventional coder passes 0/116 without interface names and 87/116 with them. Patching from the contract diff reproduced the reference pass/fail set in 4/4 changes using 7k-22k input tokens, against about 126k for uploading all source (also 4/4), and uploads no source code; regenerating whole modules matched in only 2/4. On a second, open test bed (D&D 5e SRD 5.1 combat rules, CC-BY-4.0, 299 tests) the contract pipeline passes 288/299 against 243/299 for a conventional build, but the maintenance token advantage over uploading source shrinks to about 3x with no accuracy gain. Contract diffs are longer than source diffs, so we claim addressability, not brevity. Not shown: fewer defects, easier debugging, lower CI/CD cost, local-model feasibility, and any benefit of a proposed hyperbolic layer.
Create a lesson
Metadata
- Categories
- cs.SE, cs.AI
Related papers
Early Adoption, Use, and Maintenance of the Agent Package Manager in Open-Source Software
Shared title terminologycs.SENapasorn Lapprakobkit, Haruka Tokumasu, Tao Xiao et al.
From Code to Architecture: Responsibility Analysis and Dependency Graphs in the Inference of Architectural Patterns in Kotlin
Shared title terminologycs.SEJoão Pedro Moura, Breno Miranda
SpecEngineeringBench: Evaluating Coding Agents as Autonomous Specification Engineers
Shared title terminologycs.SEXingjian Wang, Shijian Wang, Minghao Liu et al.
Evaluating Code Slop in Long-Horizon Coding Agents
Shared title terminologycs.SEShubham Gandhi, Shyam Agarwal, Nachiket Kotalwar et al.
ReleaseSynth: Scaling Data from Software Evolution for Long-Horizon Coding Agents
Shared title terminologycs.SEMan Ho Lam, Chaozheng Wang, Zongjie Li et al.
SpecBridge: Learning Natural-Language Formalization Plans for the Formal Specification Synthesis Task
Shared title terminologycs.SEWenjie Zhang, Yun Lin, Zining He et al.