[總管交辦] D20 GitHub 接觸保險入 template:github-contact-guard hook + github-arm 發射鈕 #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
[總管] 交辦:把 D20 GitHub 接觸儀式的機械保險做成 template 模組,讓每個裝 template 的 repo 都有同款保護。收到後照留底鐵律先把本 issue 拉進 repo 存底。
背景
兩個帳號因高頻自動化被 flag 永久拿不回。頂層 InkStoneCo 已上線 D20 儀式(全文:InkStoneCo repo
system-dev/docs/2-architecture/decisions/D20-github-contact-protocol.md):.claude/hooks/github-contact-guard.sh(PreToolUse/Bash)——攔三型真出網接觸(URL 形式指向 github 網域族/git 網路動詞接 github remote/gh CLI 網路子指令)exit 2;純文字提及 github.com 不攔(上線首日誤鎖 Gitea API 的 issue body 已修,這個 false-positive 教訓請直接繼承);武裝檔.github-armed(限時)存在時放行+自動留痕。scripts/github-arm.sh——要 TTY+yes 確認,只有人能跑,預設 30 分鐘自動回保險。要做的
.github-armed進 .gitignore)。system-dev/docs/下(路徑 template 定,與頂層一致最好)。頂層兩檔可直接抄(單一真相源=頂層 D20,template 是散播機制)。實測證據:七情境(擋 URL push/ssh clone/github-dead remote/gh CLI/raw 下載;放 Gitea 指令帶 github 字樣/本地 remote -v)全綠。
有問題 comment 本 issue,總管會答。