Skip to content

git log --grep="#N" false-positives on upstream oMLX issue numbers (tangential from #2) #5

Description

@kiki830621

Problem

這個 repo 的 issue 編號是個位/兩位數,而它引用的上游 oMLX issue 編號是四位數
#2715#2716#2349),散布在 README.mdCLAUDE.mdbin/claude-local 註解與
commit message 裡。於是任何用 git log --grep="#N" 找「引用本 issue 的 commit」的工具,對小
編號都會誤中

$ git log --oneline --grep="#2"
93a7622 docs: distinguish the two ways to use a local model, and ship the usage-1 wrapper

$ git log -1 --format=%B 93a7622 | grep -o '#[0-9]*' | sort -u
#2715
#2716

93a7622 完全沒有引用 issue #2 —— 它是被 #2715 / #2716 的前綴命中的。正確查法:

$ git log --oneline --grep='#2\([^0-9]\|$\)'
(0 筆)

Type

docs

Expected

CLAUDE.md 加一段短警告:本 repo 找「引用某 issue 的 commit」時必須用帶邊界的 pattern
'#N\([^0-9]\|$\)'),因為上游 oMLX 的四位數 issue 編號會讓裸 #N 產生假陽性。

Actual

沒有任何地方記載這件事。實際踩到的時點是 2026-08-17 跑 /idd-update #2 的 Step 3
(Related Commits),差一步就把 93a7622 當成 #2 的相關 commit 寫進 issue body。

Impact

方向不對稱,而且錯的那一邊是安靜的。 假陽性會讓 issue 的 Related Commits 出現一筆與它
無關的 commit——沒有任何錯誤訊息,讀的人也沒有理由懷疑。idd-close 的 closing summary 蒐集
related commits 時走同一條路,所以這個假資料會被寫進審計軌跡。

編號會持續碰撞:本 repo 走到 #23 / #27 / #234… 時,#2349 / #2715 / #2716 仍在文件裡。
這不是一次性巧合,是這個 repo 長期的性質。

Source: surfaced during /idd-plan #2 tangential sweep (Step 2.5)

Clarity Surface

Type Source Question for you Status
(none) no issues detected passed

Current Status

Phase: verified
Last updated: 2026-09-01 by idd-all (direct-commit, attended)

Key Decisions

Scope Changes

  • (none)

Blocking

  • (none) — verified, awaiting close

Commits

299f4e8 docs: git log --grep="#N" needs a boundary here, and the cause is local (#5)

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

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions