Papers

论文:以规格说明而非代码为管理单元的 Graph-Contract-Code 开发方法可行性研究

Managing Specification. Not code: A feasibility study of Graph -> Contract -> Code Deployment and Maintenance

Why we picked it

把版本管理的对象从代码换成规格图谱加契约,这个思路挺新。规则引擎测试里 DeepSeek V4 Flash 花 0.11 美元通过 103/116,补丁 token 只有上传源码的零头还不用交源码。做规则密集型系统或想减少 AI 编码上下文成本的团队可以细看这篇。

arXiv 一篇可行性研究提出以规格说明为管理单元的智能体开发方法:规则手册加少量人工裁定被转成类型化知识图谱,再机械生成零 token 消耗的逐模块契约,编码智能体只依据契约写代码,变更以图谱与契约 diff 而非行 diff 表达。

Body

在 374 条规则、116 个测试的商业桌游规则引擎上,云端编码模型在图谱含接口节点时通过 113/116,去掉接口节点则只有 86/116;开源模型 DeepSeek V4 Flash 一轮通过 94/116,无测试修复循环后达 103/116,成本不到 0.

11 美元,而常规编码器不带接口名时通过 0/116。维护方面,基于契约 diff 打补丁在 4/4 项变更中复现参考通过集,输入 token 7k-22k,而上传全部源码约 126k token(同样 4/4),且契约方案不上传源码。

在第二个开放测试床(D&D 5e SRD 5.1 战斗规则,299 个测试)上,契约管线通过 288/299,常规构建 243/299,但维护 token 优势缩至约 3 倍且无准确率增益。

作者明确承认未验证缺陷减少、调试便利等主张,只主张可寻址性而非简洁性。

Original · arXiv: DeepSeek

Managing Specification. Not code: A feasibility study of Graph -> Contract -> Code Deployment and Maintenance

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.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include DeepSeek, knowledge graphs, coding assistants, arXiv.

Primary source verification: published directly by arXiv: DeepSeek with first-party authority.

Spotted an error in the summary or translation? Tell us