Skip to content

已知缺口清單收 #0;零實例列的自證 grep 在 UTF-8 locale 下比不到中文 (follow-up from #689, #690) #710

Description

@kiki830621

Problem

兩件小事,都是 #689/#690 的 R3 verify 留下的 LOW:

  1. 已知缺口清單收 #0:.githooks/acknowledged-ci-gaps.txt 第三欄以 \A#[0-9]+\z 驗格式,#0、#0000、超大數字都收,「每一條附 issue 號」可以用占位字串滿足。條目也不記當時缺口的大小,缺口變大時 rc 仍為 0(CI 觸發路徑沒有涵蓋整個 Sources/——network-confinement 在 CI 上只對部分目錄生效 (sister concern from #664) #690 R3 devil's advocate 第 26 則)。
  2. 零實例列的自證 grep 在 UTF-8 locale 下比不到中文:zero-instance-guards 第 13、15、24、28、31 列的量測用 grep -a -q '<中文字串>' <binary> 判斷 binary 有沒有那條檢查;macOS 的 /usr/bin/grep 在 UTF-8 locale 下對 binary 比不到中文(實測 死 verdict、沒有合併管線、重複的判定記錄 都找不到),要 LC_ALL=C 才找得到。照抄的人會把新 binary 讀成舊 binary。第 71 列已改,其餘沒有(migrated-guard-control 偵測不到「負對照不存在」——main.swift 的 case 字串永遠滿足它 (sister bug from #664) #689 R3 requirements 第 15 則)。

Type

enhancement

Expected

  1. 第三欄改 \A#[1-9][0-9]*\z,補一格負控;考慮把當時的未覆蓋數寫進條目,變大時要求重新確認。
  2. 上述幾列的自證改成 LC_ALL=C grep -a -q。

Source: #689/#690 R3 verify(2026-09-30)


Current Status

Phase: verified(R1:HIGH 0、MEDIUM 0;兩則 LOW 另開 #711)
Last updated: 2026-10-01 by idd-update

Blocking

  • (無)待使用者 /idd-close

Commits

  • b3a9d659(實作);tag idd-710-verified

Activity

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

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