Problem
scripts/regression-gate.sh 的 worklist 生成階段(含 #112 加的 language 白名單、以及既有的 corpus 白名單)完全沒有 test 覆蓋。#112 verify 兩個 lens 各自確認:
- Regression lens:
grep "regression-gate\|worklist" Tests/ = 零命中;對比之下 compare stage(baseline-compare.py)有 Process test 對照真實 implementation 防 drift。
- Security lens:
RegressionBaselineTests.swift 只 exercise baseline-compare.py,unsafe language / worklist 零命中。
風險:未來一次 heredoc refactor 可能靜默掉白名單(把 fail-loud 的 guard 改沒了也不會有 test 抓到),#112 / #115 的修復就此回歸。
Type
feature
Expected
為 worklist 生成階段加 test 覆蓋(regression lens 建議二選一):
- 把 worklist python 抽成
scripts/lib/baseline-worklist.py(比照既有的 scripts/lib/baseline-compare.py),對它加 unit test(含 hostile language / corpus / model fixture);或
- Shell-test:
BESTASR_BASELINE=<hostile> + stub bin,assert fail-loud exit 非零。
任一皆 retro-cover 既有未測的 corpus 白名單。
Impact
中等——是 regression 防護的結構性補強,非急迫。與 #112(language 白名單)、#115(model 白名單)互補:三者都靠這層 test 防未來 refactor 回歸。
Source: surfaced during /idd-verify #112 (PR #114) — regression lens MEDIUM + security lens LOW,both independently flagged「no test covers the worklist stage」。
Current Status
- Phase: verified
- Last update: 2026-08-01
Problem
scripts/regression-gate.sh的 worklist 生成階段(含 #112 加的language白名單、以及既有的corpus白名單)完全沒有 test 覆蓋。#112 verify 兩個 lens 各自確認:grep "regression-gate\|worklist" Tests/= 零命中;對比之下 compare stage(baseline-compare.py)有 Process test 對照真實 implementation 防 drift。RegressionBaselineTests.swift只 exercisebaseline-compare.py,unsafe language/worklist零命中。風險:未來一次 heredoc refactor 可能靜默掉白名單(把 fail-loud 的 guard 改沒了也不會有 test 抓到),#112 / #115 的修復就此回歸。
Type
feature
Expected
為 worklist 生成階段加 test 覆蓋(regression lens 建議二選一):
scripts/lib/baseline-worklist.py(比照既有的scripts/lib/baseline-compare.py),對它加 unit test(含 hostilelanguage/corpus/modelfixture);或BESTASR_BASELINE=<hostile>+ stub bin,assert fail-loud exit 非零。任一皆 retro-cover 既有未測的
corpus白名單。Impact
中等——是 regression 防護的結構性補強,非急迫。與 #112(language 白名單)、#115(model 白名單)互補:三者都靠這層 test 防未來 refactor 回歸。
Source: surfaced during /idd-verify #112 (PR #114) — regression lens MEDIUM + security lens LOW,both independently flagged「no test covers the worklist stage」。
Current Status