docs(security): add primary rollback owner handoff [skip ci]

This commit is contained in:
Your Name
2026-06-04 19:42:40 +08:00
parent 8ad8bf48b5
commit 185173f09b
7 changed files with 584 additions and 14 deletions

View File

@@ -9,7 +9,7 @@
| 工作視窗 | IwoooS / AWOOOI 資安治理 P0 |
| 本次乾淨 worktree | `/private/tmp/awoooi-iwooos-governance-p0-20260604` |
| 本次分支 | `codex/iwooos-governance-p0-20260604` |
| 最新觀察到的 `gitea/main` | `8c9582f3 chore(cd): deploy b61ee9b [skip ci]` |
| 最新觀察到的 `gitea/main` | `9a965b66 chore(cd): deploy d99e736 [skip ci]` |
| 前一個正式 IwoooS 候選基準 | code `7b8fc093`、deploy marker `45c63488`、LOGBOOK `02cadee6` |
| 最新導航 IA 基準 | code `973fc7a4`、LOGBOOK `2555c811`、deploy marker `0260ec89` |
| 禁止事項 | 不 force push、不 destructive git、不 SSH 修改主機、不 active scan、不收 secrets 明文、不把 AwoooP approval 當資安批准、不把 UI 可見當 runtime 授權 |
@@ -23,7 +23,7 @@
| runtime landing | 40-45% | 否 | production 只讀頁存在,不等於 runtime ingestion 或 execution router |
| active runtime gate | 0 | 否 | 必須維持 0直到獨立人工批准、rollback、post-check 與 guard 成立 |
| S4.9 owner response gate | 0% | 可在收到合格回覆後調整 | 目前只定義欄位、預檢、收件與驗收,不標記 received / accepted |
| GitHub primary readiness | 0 | 否 | primary gate 仍為 0P1 只讀重盤工作本身目前約 68%,不代表可切 primary |
| GitHub primary readiness | 0 | 否 | primary gate 仍為 0P1 只讀重盤工作本身目前約 70%,不代表可切 primary |
| Kali 112 維護準備 | 只讀證據已納管,維護尚未開始 | 否 | 不更新套件、不重啟、不 hardening、不 active scan |
| 111 / 168 開發主機納管 | observe-only mapping 已有,維護包需補強 | 可補文件,不調 runtime | 仍不 credentialed scan、不讀未授權資料、不自動修復 |
| VibeWork 納入 IwoooS | 前端態勢已有 onboarding 欄位,產品邊界需補規範 | 可補文件 | 保留 VibeWork 獨立產品邊界 |
@@ -155,9 +155,10 @@ S4.9 是目前 IwoooS 64% 能往前的第一優先 gate。驗收前所有 count
| 全量 Gitea 專案版本盤點 | 25% | 目前仍是 public-only + 本機輔助 evidence | 需只讀 token / admin export不使用 write credential |
| 逐 repo refs truth queue | 100% | S4.11 current queue 已重產為 `194` refs review items真相來源 `4`、deprecated / archive 候選 `142`、release tag `3`、GitHub-only `20` | 送 owner responsereceived / accepted 仍維持 0 |
| Workflow / runner / secret parity owner response handoff | 100% | S4.12 已對齊 2026-06-04 local evidence補 6 項 workflow / secret handoff preflight、9 欄 handoff packet 與送後不變條件local secret names 校正為 `42` | 只收 redacted metadata不收 value / hash / partial tokenreceived / accepted 仍 0 |
| Primary rollback ADR owner handoff | 100% | S4.4 / P1-5 已補 6 項 rollback owner handoff preflight、11 欄 handoff packet、7 個 repo owner response templates 與送後不變條件 | `rollback_owner_response_received_count=0``owner_approved_count=0`、dry-run / active cutover 仍 0 |
| GitHub primary cutover readiness | 0% | `primary_ready_count=0``github_primary_switch_authorized=false` | 需 owner、parity、rollback ADR、人工批准全部成立 |
P1 只讀重盤階段整體完成度:`68%`。它代表 freshness / inventory / handoff 工作進度,不代表 GitHub primary gate、authenticated inventory gate、workflow / secret parity complete、owner response accepted 或 runtime gate 提升。
P1 只讀重盤階段整體完成度:`70%`。它代表 freshness / inventory / handoff 工作進度,不代表 GitHub primary gate、authenticated inventory gate、workflow / secret parity complete、owner response accepted、rollback approved、dry-run complete 或 runtime gate 提升。
## 6.2 規範分析:已不符合、需新增、需調整
@@ -172,6 +173,7 @@ P1 只讀重盤階段整體完成度:`68%`。它代表 freshness / inventory /
| 需要新增規範 | P1 page verification decision rule | 文件 / snapshot 更新不一定需要開頁;若宣稱 production 狀態或改前端才必須開頁 | 已保留驗證節點規則,本階段不改前端、不宣稱新 production |
| 需要調整規範 | GitHub target probe wording | `not_found_or_private` 容易被誤讀成不存在 | 已在 primary gate 重申不可自動建立 repo、不可切 primary |
| 需要調整規範 | Workflow / secret 名稱完成度 | local evidence 已有,但 webhook / runner / deploy key / branch protection / parity 仍缺 | 已改為 `missing_evidence`,不得說已完成 parity |
| 需要調整規範 | Rollback ADR owner readiness | 舊 ADR 有 fallback / trigger / window 摘要,但缺可交接的 owner response 封套與逐 repo template | 已補 P1-5 handoff packagereceived / accepted / approved 仍全部 0 |
| 需要調整規範 | AwoooP 同步封包 | P1 要同步 refreshed counts、blocked gates、no-run 狀態,避免另一 Session 以舊 `117` heads / `141` items 繼續推進 | 本總帳與 LOGBOOK 會作為同步封包來源 |
## 6.3 P1 優先順序細化
@@ -182,7 +184,7 @@ P1 只讀重盤階段整體完成度:`68%`。它代表 freshness / inventory /
| P1-2 | Gitea authenticated inventory request | 已補 2026-06-04 request handoff packageS4.9 owner response gate 作先行條件,只讀 token API / redacted admin export 二選一 | 只收 metadata不保存 token valuereceived / accepted / imported 全部仍為 0 |
| P1-3 | GitHub target owner response | 已補 2026-06-04 target owner handoff package對 7 個 in-scope targets 收 owner / visibility / canonical 決策 | received / accepted 前仍全部 0`not_found_or_private` 不代表不存在或可建立 |
| P1-4 | Workflow / runner / secret parity evidence | 已補 2026-06-04 owner response handoff packagewebhook、runner owner、deploy key、branch protection、CODEOWNERS、secret name parity 只收 redacted metadata | secret value、hash、masked token、partial token 仍拒收received / accepted 前全部 0 |
| P1-5 | Primary rollback ADR 補強 | 逐 repo rollback owner、trigger、validation window、fallback role | ADR approved 前不切 primary |
| P1-5 | Primary rollback ADR 補強 | 已補 2026-06-04 rollback owner handoff package逐 repo rollback owner、trigger、validation window、fallback role 進入可交接模板 | ADR approved 前不切 primaryreceived / accepted / approved 仍 0 |
| P1-6 | AwoooP Session 同步 | 同步 commits、runs、production sanity、P1 refresh counts、gate 0 / false | 另一 Session 不再使用舊 refs count |
| P1-7 | Kali 112 maintenance window 草案 | packages、`networking.service` failed、hardening 0/4、rollback、post-check | 文件草案,不執行 `apt upgrade` / restart / scan |
| P1-8 | 111 / 168 開發主機 scope | scope、credential handling、rollback owner、validation 指標 | observe-only不做 credentialed scan |
@@ -212,6 +214,8 @@ P1 只讀重盤階段整體完成度:`68%`。它代表 freshness / inventory /
| P1-3 JSON parse / structure check | `github-target-owner-decision-response.snapshot.json` 與 schema JSON parse 通過;本段自訂結構檢查 `GITHUB_TARGET_OWNER_HANDOFF_STRUCTURE_OK`;本地無 `jsonschema` / AJV未跑完整 schema validator |
| P1-4 Workflow / secret owner response handoff | S4.12 日期更新為 2026-06-04補 6 項 workflow / secret handoff preflight、9 欄 handoff packet、送後不變條件local referenced secret names 校正為 `42`received / accepted / rejected 仍 0 |
| P1-4 JSON parse / structure check | `source-control-workflow-secret-name-owner-response.snapshot.json` 與 schema JSON parse 通過;本段自訂結構檢查 `WORKFLOW_SECRET_OWNER_HANDOFF_STRUCTURE_OK`;本地無 `jsonschema` / AJV未跑完整 schema validator |
| P1-5 Primary rollback owner handoff | S4.4 日期更新為 2026-06-04補 6 項 rollback owner handoff preflight、11 欄 handoff packet、7 個 repo owner response templates 與送後不變條件received / accepted / rejected、owner approved、dry-run、active cutover 仍 0 |
| P1-5 JSON parse / structure check | `source-control-primary-rollback-adr.snapshot.json` 與 schema JSON parse 通過;本段自訂結構檢查 `PRIMARY_ROLLBACK_OWNER_HANDOFF_STRUCTURE_OK`;本地無 `jsonschema` / AJV 時以 JSON parse、自訂結構檢查與既有 guard 補位 |
| P1 JSON parse | `gitea-github-awoooi-inventory``github-target-probe``source-control-primary-readiness-gate``source-control-workflow-secret-name-local-evidence`、Gitea repo / search / org blocked snapshots 皆通過 |
| P1 production 頁面檢查 | 本輪未改前端、未改 production 文案、未新增 deploy不宣稱新的 production 狀態,沿用 P0 live sanity 作為基準 |