父意图: #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
约
定
)
任务
受限 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)
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
约
定
)