Skip to content

[drift] 002 檔頭記分自動守門:pre-commit 依條目前綴計數驗證 #608

Description

@s123104

摘要

PR 評論稽核在 14 天內實證 9 件「002 檔頭本次分數與新增條目不符」(含本輪多個 PR 的人工計算漂移,靠 rebase 時重算補救)。

修法方向

pre-commit 增加腳本:解析 staged 002 diff 的 reward-/penalty-/neutral-* 條目前綴計數,自動驗證(或直接生成)檔頭「本次分數變化」與「累計總分」;與 AGENTS.md AGT-LOG-01/02 對齊。

驗收標準

故意寫錯檔頭被 pre-commit 擋下;正常流程零額外負擔。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions