arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.05094cs.SE
收藏

门控规范驱动工作流:编码智能体工作的审计追踪研究

A Gated Spec-Driven Workflow: An Audit-Trail Study of Coding-Agent Work

Rodrigo Figueiredo Abdo, Pedro Carvalho Brom

AI总结:

本研究针对 Claude Code 的门控规范驱动工作流开展审计追踪,分析七个项目的日志后发现,该工作流多数任务可完成,编排器是薄弱环节,仅少数情况因未声明变更停止工作。

摘要:

规范驱动开发(Spec-driven development,SDD)要求编码智能体依据规范、计划和任务列表开展工作,而非基于聊天记录。我们研究了 Claude Code 的此类工作流,其中几乎每个控制项都是由其约束的同一模型执行的指令,用户必须批准每个阶段才能进入下一阶段。一个审核子智能体会对照固定的、阶段特定的缺陷列表检查每个产物,执行子智能体仅能操作其任务中列出的文件。每完成一组任务后,编排器会运行文件清单检查以检测未声明的变更。我们分析了作者运行的七个项目中九个功能的日志和记录,涵盖 Fortran 求解器、Python 程序、书籍及本论文。其中五个功能完成了所有计划任务,包括 Fortran 求解器功能,581 项计划任务中逐块完成了 288 项。执行子智能体遵守了其声明的文件:仅在交付文件夹中留下一处未声明变更,且该检查已捕获,尽管其报告记录了其他偏离协议的情况。薄弱环节是编排器,它运行并判断自身的检查,在 247 次块检查中有 11 次记录了未声明变更,主要来自作者的轮内请求和环境,且仅在四次中停止了工作。

英文摘要:

Spec-driven development (SDD) asks a coding agent to work from specifications, plans, and task lists rather than from the chat transcript. We study one such workflow for Claude Code, in which almost every control is an instruction carried out by the same model that it constrains. The user must approve each stage before the next begins. A reviewer subagent checks each artefact against a fixed, stage-specific defect list, and an executor subagent may only touch the files listed in its task. After each block of tasks, the orchestrator runs a file-inventory check to detect undeclared changes. We analyse the logs and transcripts of nine features in seven projects, all run by the authors, ranging from a Fortran solver and Python programs to books and this paper. Of these, five finished with every planned task done, including the Fortran solver feature, and 288 of the 581 planned tasks were completed block by block. The executor kept to its declared files: it left only one undeclared change in the deliverable folder, and the check caught it, although its reports record other departures from the protocol. The weak point was the orchestrator, which runs and judges its own checks. It recorded undeclared changes in 11 of 247 block checks, mostly from the authors' in-round requests and the environment, and stopped work in only four.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑