Skip to content

regression-gate.sh worklist 階段無 test 覆蓋(heredoc refactor 可能靜默掉白名單) #116

Description

@kiki830621

Problem

scripts/regression-gate.sh 的 worklist 生成階段(含 #112 加的 language 白名單、以及既有的 corpus 白名單)完全沒有 test 覆蓋#112 verify 兩個 lens 各自確認:

  • Regression lensgrep "regression-gate\|worklist" Tests/ = 零命中;對比之下 compare stage(baseline-compare.py Process test 對照真實 implementation 防 drift。
  • Security lensRegressionBaselineTests.swift 只 exercise baseline-compare.pyunsafe language / worklist 零命中。

風險:未來一次 heredoc refactor 可能靜默掉白名單(把 fail-loud 的 guard 改沒了也不會有 test 抓到),#112 / #115 的修復就此回歸。

Type

feature

Expected

為 worklist 生成階段加 test 覆蓋(regression lens 建議二選一):

  1. 把 worklist python 抽成 scripts/lib/baseline-worklist.py(比照既有的 scripts/lib/baseline-compare.py),對它加 unit test(含 hostile language / corpus / model fixture);或
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions