Skip to content

v0.4.0 · spec-gate 修订区间:CI 也能当门

Choose a tag to compare

@lkdx0220 lkdx0220 released this 13 Oct 05:34
· 35 commits to main since this release

回应 Issue #1:spec-gate 原本比对'工作区 vs HEAD',CI 干净 checkout 下恒为 SPEC_OK,门形同虚设。

新增

  • cq spec-gate --mode=hard --base <ref>:比对 <ref>...HEAD(merge-base 口径)的受管路径改动——CI 场景标准用法
  • cq spec-gate --mode=hard --range <A..B>:显式修订区间(PR 场景)
  • 判定口径与一期完全一致(proposal 声明 / waiver / 时间戳软提示);不传参数时行为与 v0.3.0 逐项一致

CI 用法示例

- run: cq spec-gate --mode=hard --base origin/main   # 漂移则 exit 1,门生效

质量

  • 新增 6 个真 git 仓库单测(base 漂移/声明覆盖/waiver/ref 缺失/显式区间/无参行为不变)
  • dogfood 自举抓到新代码 cc-E 回归 → 已拆函数归零(自举门第二次立功)
  • 兼容性红线沿用:可选参数、minor 版本、--mode 语义不变