Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions governance/drift-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,17 @@ for r in $REPOS; do
rm -f "$COMMITS_TMP"
continue
fi
# §8 豁免清单(ADR-0016 附录:初始建仓导入的破玻璃回填——expected-state.json
# direct_push_exemptions 逐 SHA 登记,豁免须有 ADR 背书,不得口头/临时豁免)
# §8 豁免清单(ADR-0016 附录机制:已经 ADR 追认回填的破玻璃直推——
# expected-state.json direct_push_exemptions 逐 SHA 登记,事件定性见 ADR-0017;
# 豁免须有 ADR 背书,不得口头/临时豁免)
EXEMPT=$(jq -r --arg r "$r" '.direct_push_exemptions[$r] // [] | join(" ")' "$EXPECTED")
DIRECT_FOUND=0
while IFS= read -r row; do
[[ -n "$row" ]] || continue
sha=$(jq -r .sha <<<"$row")
cdate=$(jq -r .date <<<"$row")
if grep -qF "$sha" <<<"$EXEMPT"; then
ok "repo '$r' commit ${sha:0:8} 初始建仓导入(§8 豁免清单,ADR-0016 附录回填)"
ok "repo '$r' commit ${sha:0:8} 已回填破玻璃直推(§8 豁免清单,ADR-0017)"
continue
fi
# 关联 PR 复核(全 SHA;响应须为数组——error 对象/传输失败均为无法验证)
Expand Down
2 changes: 1 addition & 1 deletion governance/expected-state.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
]
},
"direct_push_exemptions": {
"comment": "§8 直推检测豁免=初始建仓导入(flows.new_repo step1-2:gh repo create+push 初始治理树,彼时仓库与 gate/PR 机制尚不存在,初始 commit 结构上无法走 PR)。豁免逐一登记完整 SHA,GM-2 破玻璃回填的机器可读形式(决策背书见 ADR-0016 附录)。",
"comment": "§8 直推检测豁免=已经 ADR 追认回填的破玻璃直推(事件定性见 ADR-0017:两次误直推净变更仅为 Trae IDE 分享 zip 与误入的 agent-registry gitlink,彼时 PR 流程已运转——diff 证据 f3974a6...416f5f5;并非'初始建仓导入',勘误见 ADR-0016 附录)。豁免机制=GM-2 破玻璃回填的机器可读形式(ADR-0016 附录):逐完整 SHA 登记,新直推不可能搭便车;豁免须有 ADR 背书,不得口头/临时豁免。",
".github": [
"9b056b3a925038484a8f6655ea45f81f071d5df6",
"416f5f57fd459f6ece3587f3aa20b772148ad335"
Expand Down