Create

Sign in to ReadmeX

or

How we handle your data: Privacy Policy

ReadmeX

Your AI reading companion

What would you like to catch up on?

Pick a briefing, or ask your own question.

Your community and people briefings stay personal to you.

Story

OpenSpec-Style Drift Leaves Six Requirements Untested Despite Green CI

AI summary

A report describes a minimal OpenSpec-style sample with two capability domains, 14 requirements, 11 test references and a 40-line reconciliation script. The author reports that six requirements had no associated tests while CI remained green. The sample identifies three forms of drift: title changes that leave stale test references, conflicting values retained in modified requirements, and soft requirements without SHALL or MUST language. The author proposes stable requirement IDs, failing CI when any reconciliation discrepancy is found, and allowing tasks to be checked off only after relevant tests pass.

In-depth insight

The experiment illustrates the gap between structural validation and actual requirement coverage in specification-driven workflows used with AI coding assistants. Its significance is limited by evidence from one minimal local sample rather than independent production validation.

「先写规格,再让 AI 写代码」这套流程最近被讲得很顺:specs 存现状、changes 存在途、delta 只写差异、validate --strict 卡结构。跑通之后,仓库里那个 openspec 目录整齐得像文档站。

我按同一套目录结构和 delta 语义搭了一份最小样本:两个能力域、14 条 Requirement、11 处测试引用,然后用四十行脚本对了一遍账。

14 条里,6 条没有任何测试碰过。CI 全绿。

问题不在工具质量。那篇讲 OpenSpec 的文章自己也写得很直白:validate 只保证结构对,Requirement 写成废话照样能过,- [x] 勾得虚也一样能归档。 它把剩下的责任交给了「人的 review + 代码侧硬门禁」。

这两样恰好都管不到下面要说的事。review 看的是本次 diff,门禁看的是代码行为是否通过;「这条需求现在还有人在验吗」这个问题,两边都不回答。

以下三种漂移,没有一种会让流水线变红。

#OpenSpec#pytest

Original · 6 min readRead the original
Group chat

No comments yet. Start the conversation.