Skip to content

W2-C1: 验收 DSL 编译器与 spec CI 关卡 #329

Description

@randypanding

父意图: #315 | Spec: specs/IR-0004/spec.md(待起草) | 波次: W2 | 依赖: 无 | 预算: 待 spec 标定(CNB 侧核时另计)
本卡含 C1 路径变更(governance/、standards/、.github/workflows/、agent-registry decisions/ 之一)——须附 ADR 引用。

任务

受限 DSL(given/when/then+property+invariant)+ 编译器(AC→pytest 骨架,spec hash 溯源头)+ hash 校验入 gate(手改=红)+ spec CI 关卡(schema/可编译/blastRadius 路径存在性)入 specs/** PR 检查链。承接 #263 T-14(它管存在性,本卡管机械对应)。

AC(Given-When-Then)

  • AC-1 (api): DSL 语法定义+编译器:一份 DSL AC 自动生成 pytest 骨架(带 spec hash 头)。
  • AC-2 (api): 手改生成测试→CI 红(tamper 反向测试);改 spec 后重编译→绿。
  • AC-3 (api): spec CI 关卡在 specs/** PR 生效(缺关卡/被摘除→红,负向断言)。
  • AC-4 (api): 豁免仅 ADR escape_hatch,计数入账。

blastRadius(预测)

C
l
o
u
d
b
i
r
d

S
o
f
t
w
a
r
e
/
.
g
i
t
h
u
b
:

.
g
i
t
h
u
b
/
w
o
r
k
f
l
o
w
s
/
g
a
t
e
.
y
m
l

C
I

W
o
r
k
f
l
o
w
s
:

.
g
i
t
h
u
b
/
w
o
r
k
f
l
o
w
s
/
*
*





s
p
e
c
s
/
*
*

D
S
L



Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

state:done卡完成(AC 验证过 + PR 合并)type:card工作卡(wave-planner 产出)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions