diff --git a/apps/web/messages/en.json b/apps/web/messages/en.json index 00d6aa8c9..bf990cace 100644 --- a/apps/web/messages/en.json +++ b/apps/web/messages/en.json @@ -3467,6 +3467,76 @@ } } }, + "ownerResponseFormalRecordOwnerHandoffBoard": { + "title": "人工決策正式紀錄負責人交接準備", + "subtitle": "候選若進入可交接狀態,仍只能整理交接包,不能自動指派紀錄負責人、不能建立正式紀錄,也不能批准或執行。現在交接包=7、可交接=0、已指派=0、執行期閘門=0。", + "packetLabel": "交接包", + "handoffLabel": "交接要求", + "guardLabel": "仍不會做", + "boundaryTitle": "正式紀錄負責人交接維持的保護線", + "summary": { + "packets": { + "label": "交接包", + "detail": "七個交接包先可見,避免候選直接變成正式紀錄。" + }, + "ready": { + "label": "可交接", + "detail": "目前為 0;沒有候選可交給紀錄負責人。" + }, + "assigned": { + "label": "已指派", + "detail": "目前為 0;沒有任何正式紀錄負責人被自動指派。" + }, + "runtime": { + "label": "執行期閘門", + "detail": "目前為 0;交接準備不會啟動執行期。" + } + }, + "items": { + "handoffIdentityBundle": { + "title": "身分追溯包", + "body": "交接包需要保留候選、草稿、收件包、審查結果與來源階段的追溯鏈。", + "handoff": "只整理已提交的追溯參照。", + "guard": "不建立正式紀錄、不產生新的審批編號。" + }, + "handoffDecisionContext": { + "title": "決策脈絡包", + "body": "交接包要說明候選為何可交接、仍缺哪些人工確認,以及哪些內容不能視為批准。", + "handoff": "只整理背景、限制與待人工確認欄位。", + "guard": "不替人工下決策、不自動批准。" + }, + "handoffEvidenceLock": { + "title": "證據鎖定包", + "body": "交接前需要列出已脫敏、已提交、可追溯的證據版本與引用位置。", + "handoff": "只引用證據版本與文件路徑。", + "guard": "不讀取外部系統、不保存原始載荷或機密明文。" + }, + "handoffReviewerNotes": { + "title": "審查備註包", + "body": "交接包要保留審查說明、退回理由、補證狀態與未決事項。", + "handoff": "只整理已存在的審查備註摘要。", + "guard": "不自動通知、不代填姓名、不建立外部任務。" + }, + "handoffRiskRollback": { + "title": "風險回滾包", + "body": "若未來正式紀錄會影響主機、服務、主要來源或部署節奏,交接包只先列風險與回滾欄位。", + "handoff": "只標出風險、維護窗口、回滾負責人與後驗證欄位。", + "guard": "不安排維護、不部署、不建立修復工作。" + }, + "handoffRuntimeGatePointer": { + "title": "執行期閘門指標包", + "body": "任何掃描、修復、主機更新或阻擋控制都必須留在獨立執行期閘門。", + "handoff": "只標記後續可能需要哪一種人工執行期閘門。", + "guard": "不呼叫 Kali、不開 SSH、不更新主機、不執行修復。" + }, + "handoffSourceControlPointer": { + "title": "主要來源指標包", + "body": "GitHub 主要來源切換、Gitea 停用、refs 或 workflow / secrets 動作只能作為後續人工閘門指標。", + "handoff": "只標記版本控制與主要來源相關待決事項。", + "guard": "不建立專案庫、不改 refs、不改 workflow / secrets、不停用 Gitea。" + } + } + }, "awooopReadOnlyLandingReadiness": { "title": "AwoooP Read-Only Landing Readiness", "subtitle": "S2.51 turns the AwoooP main-line read-only consumption path for IwoooS / security mirror state into an intake readiness board. This is landing readiness, not production_landing_enabled, and it does not connect an execution router.", diff --git a/apps/web/messages/zh-TW.json b/apps/web/messages/zh-TW.json index b653e0fe1..7d62ce776 100644 --- a/apps/web/messages/zh-TW.json +++ b/apps/web/messages/zh-TW.json @@ -3468,6 +3468,76 @@ } } }, + "ownerResponseFormalRecordOwnerHandoffBoard": { + "title": "人工決策正式紀錄負責人交接準備", + "subtitle": "候選若進入可交接狀態,仍只能整理交接包,不能自動指派紀錄負責人、不能建立正式紀錄,也不能批准或執行。現在交接包=7、可交接=0、已指派=0、執行期閘門=0。", + "packetLabel": "交接包", + "handoffLabel": "交接要求", + "guardLabel": "仍不會做", + "boundaryTitle": "正式紀錄負責人交接維持的保護線", + "summary": { + "packets": { + "label": "交接包", + "detail": "七個交接包先可見,避免候選直接變成正式紀錄。" + }, + "ready": { + "label": "可交接", + "detail": "目前為 0;沒有候選可交給紀錄負責人。" + }, + "assigned": { + "label": "已指派", + "detail": "目前為 0;沒有任何正式紀錄負責人被自動指派。" + }, + "runtime": { + "label": "執行期閘門", + "detail": "目前為 0;交接準備不會啟動執行期。" + } + }, + "items": { + "handoffIdentityBundle": { + "title": "身分追溯包", + "body": "交接包需要保留候選、草稿、收件包、審查結果與來源階段的追溯鏈。", + "handoff": "只整理已提交的追溯參照。", + "guard": "不建立正式紀錄、不產生新的審批編號。" + }, + "handoffDecisionContext": { + "title": "決策脈絡包", + "body": "交接包要說明候選為何可交接、仍缺哪些人工確認,以及哪些內容不能視為批准。", + "handoff": "只整理背景、限制與待人工確認欄位。", + "guard": "不替人工下決策、不自動批准。" + }, + "handoffEvidenceLock": { + "title": "證據鎖定包", + "body": "交接前需要列出已脫敏、已提交、可追溯的證據版本與引用位置。", + "handoff": "只引用證據版本與文件路徑。", + "guard": "不讀取外部系統、不保存原始載荷或機密明文。" + }, + "handoffReviewerNotes": { + "title": "審查備註包", + "body": "交接包要保留審查說明、退回理由、補證狀態與未決事項。", + "handoff": "只整理已存在的審查備註摘要。", + "guard": "不自動通知、不代填姓名、不建立外部任務。" + }, + "handoffRiskRollback": { + "title": "風險回滾包", + "body": "若未來正式紀錄會影響主機、服務、主要來源或部署節奏,交接包只先列風險與回滾欄位。", + "handoff": "只標出風險、維護窗口、回滾負責人與後驗證欄位。", + "guard": "不安排維護、不部署、不建立修復工作。" + }, + "handoffRuntimeGatePointer": { + "title": "執行期閘門指標包", + "body": "任何掃描、修復、主機更新或阻擋控制都必須留在獨立執行期閘門。", + "handoff": "只標記後續可能需要哪一種人工執行期閘門。", + "guard": "不呼叫 Kali、不開 SSH、不更新主機、不執行修復。" + }, + "handoffSourceControlPointer": { + "title": "主要來源指標包", + "body": "GitHub 主要來源切換、Gitea 停用、refs 或 workflow / secrets 動作只能作為後續人工閘門指標。", + "handoff": "只標記版本控制與主要來源相關待決事項。", + "guard": "不建立專案庫、不改 refs、不改 workflow / secrets、不停用 Gitea。" + } + } + }, "awooopReadOnlyLandingReadiness": { "title": "AwoooP 只讀接入就緒度", "subtitle": "S2.51 把 AwoooP 主線要如何只讀消費 IwoooS / 資安鏡像狀態整理成接入準備面板。這是接入就緒度,不是 production landing enabled,也不接 execution router。", diff --git a/apps/web/src/app/[locale]/iwooos/page.tsx b/apps/web/src/app/[locale]/iwooos/page.tsx index 85636432f..780c1dc77 100644 --- a/apps/web/src/app/[locale]/iwooos/page.tsx +++ b/apps/web/src/app/[locale]/iwooos/page.tsx @@ -187,6 +187,14 @@ type OwnerResponseFormalRecordCandidateOutcomeLane = { tone: 'steady' | 'warn' | 'locked' } +type OwnerResponseFormalRecordOwnerHandoffPacket = { + key: string + packet: string + value: string + icon: typeof ShieldCheck + tone: 'steady' | 'warn' | 'locked' +} + type CoverageGroup = { key: string count: string @@ -813,6 +821,40 @@ const ownerResponseFormalRecordCandidateOutcomeBoundaries = [ 'gitea_disablement_authorized=false', ] +const ownerResponseFormalRecordOwnerHandoffPackets: OwnerResponseFormalRecordOwnerHandoffPacket[] = [ + { key: 'handoffIdentityBundle', packet: 'H1', value: '0', icon: FileText, tone: 'warn' }, + { key: 'handoffDecisionContext', packet: 'H2', value: '0', icon: ClipboardCheck, tone: 'warn' }, + { key: 'handoffEvidenceLock', packet: 'H3', value: '0', icon: SearchCheck, tone: 'warn' }, + { key: 'handoffReviewerNotes', packet: 'H4', value: '0', icon: ListChecks, tone: 'warn' }, + { key: 'handoffRiskRollback', packet: 'H5', value: '0', icon: Clock3, tone: 'warn' }, + { key: 'handoffRuntimeGatePointer', packet: 'H6', value: '0', icon: ShieldCheck, tone: 'locked' }, + { key: 'handoffSourceControlPointer', packet: 'H7', value: '0', icon: GitBranch, tone: 'locked' }, +] + +const ownerResponseFormalRecordOwnerHandoffBoundaries = [ + 'owner_response_formal_record_owner_handoff_packet_count=7', + 'owner_response_formal_record_owner_handoff_ready_count=0', + 'owner_response_formal_record_owner_assigned_count=0', + 'owner_response_formal_record_created_count=0', + 'owner_response_formal_record_approved_count=0', + 'owner_response_formal_record_runtime_gate_count=0', + 'owner_response_formal_record_owner_handoff_only=true', + 'owner_response_formal_record_owner_assignment_authorized=false', + 'owner_response_formal_record_write_authorized=false', + 'owner_response_formal_record_approval_authorized=false', + 'owner_response_formal_record_execution_authorized=false', + 'runtime_execution_authorized=false', + 'active_runtime_gate_count=0', + 'action_buttons_allowed=false', + 'not_authorization=true', + 'secret_value_collection_allowed=false', + 'repo_creation_authorized=false', + 'refs_sync_authorized=false', + 'workflow_modification_authorized=false', + 'github_primary_switch_authorized=false', + 'gitea_disablement_authorized=false', +] + const coverageGroups: CoverageGroup[] = [ { key: 'signals', @@ -2766,6 +2808,130 @@ function OwnerResponseFormalRecordCandidateOutcomeBoard() { ) } +function OwnerResponseFormalRecordOwnerHandoffCard({ + item, +}: { + item: OwnerResponseFormalRecordOwnerHandoffPacket +}) { + const t = useTranslations('iwooos.ownerResponseFormalRecordOwnerHandoffBoard') + const Icon = item.icon + const textWrap = { overflowWrap: 'anywhere' as const, wordBreak: 'break-word' as const } + return ( +
+
+
+ + {t('packetLabel')} +
+ {item.packet} +
+
+ {item.value} +
+

+ {t(`items.${item.key}.title` as never)} +

+

+ {t(`items.${item.key}.body` as never)} +

+
+ {t('handoffLabel')} + + {t(`items.${item.key}.handoff` as never)} + + {t('guardLabel')} + + {t(`items.${item.key}.guard` as never)} + +
+
+ ) +} + +function OwnerResponseFormalRecordOwnerHandoffBoard() { + const t = useTranslations('iwooos.ownerResponseFormalRecordOwnerHandoffBoard') + const summaryItems = [ + { key: 'packets', value: '7', tone: 'warn' as const }, + { key: 'ready', value: '0', tone: 'warn' as const }, + { key: 'assigned', value: '0', tone: 'locked' as const }, + { key: 'runtime', value: '0', tone: 'locked' as const }, + ] + return ( +
+
+

{t('title')}

+

+ {t('subtitle')} +

+
+
+ {summaryItems.map(item => ( +
+
+ {t(`summary.${item.key}.label` as never)} + +
+
+ {item.value} +
+

+ {t(`summary.${item.key}.detail` as never)} +

+
+ ))} +
+
+ {ownerResponseFormalRecordOwnerHandoffPackets.map(item => ( + + ))} +
+
+
+ +

{t('boundaryTitle')}

+
+
+ {ownerResponseFormalRecordOwnerHandoffBoundaries.map(item => ( + + {item} + + ))} +
+
+
+ ) +} + function CoverageCard({ item }: { item: CoverageGroup }) { const t = useTranslations('iwooos.coverage') const Icon = item.icon @@ -3913,6 +4079,8 @@ export default function IwoooSPage({ params }: { params: { locale: string } }) { + +

{t('awooopReadOnlyLandingReadiness.title')}

diff --git a/docs/LOGBOOK.md b/docs/LOGBOOK.md index 00e6c206a..c0d8689a5 100644 --- a/docs/LOGBOOK.md +++ b/docs/LOGBOOK.md @@ -1,3 +1,17 @@ +## 2026-05-21 | 資安供應鏈 S2.89:IwoooS 人工決策正式紀錄負責人交接準備 + +**背景**:S2.88 已把正式紀錄候選預檢後的結果分流放進 IwoooS;本輪補上「可交紀錄負責人前,需要整理哪些交接包」的只讀準備層,避免使用者或 AwoooP 平行 Session 把交接準備誤認成已指派紀錄負責人、正式紀錄、人工批准或執行命令。 + +**完成**: +- `/iwooos` 新增「人工決策正式紀錄負責人交接準備」,顯示身分追溯包、決策脈絡包、證據鎖定包、審查備註包、風險回滾包、執行期閘門指標包、主要來源指標包七個交接包。 +- 看板固定顯示交接包=7、可交接=0、已指派=0、正式紀錄=0、已批准=0、執行期閘門=0,並標示 `owner_response_formal_record_owner_handoff_only=true`、`owner_response_formal_record_owner_assignment_authorized=false`、`owner_response_formal_record_write_authorized=false`、`owner_response_formal_record_approval_authorized=false`、`owner_response_formal_record_execution_authorized=false`。 +- `security_mirror_status_rollup_v1` 新增 `s2_89_iwooos_owner_response_formal_record_owner_handoff_board` 與 `show_iwooos_owner_response_formal_record_owner_handoff_board`。 +- `security-mirror-progress-guard.py` 已納入人工決策正式紀錄負責人交接準備看板、i18n 鍵、七個交接包與 `false` 邊界檢查。 + +**仍禁止**: +- S2.89 是 IwoooS 只讀正式紀錄負責人交接準備,不代表人工回覆已收到 / 已接受 / 已匯入、紀錄負責人已指派、人工批准、正式決策、正式審批紀錄建立、資安審批、機密明文值收集、Kali `/execute`、SSH 登入、主機更新、掃描 / 執行 / 修復、專案庫建立、分支 / 標籤參照同步、工作流程 / 機密設定修改、GitHub 主要來源切換、Gitea 停用或執行期閘門。 +- 整體資安網百分比仍是 58%;框架 / 治理 / 文件 / 結構定義 / 只讀證據仍約 80-85%;真正落地執行 / 執行期匯入 / GitHub 主要來源 / AwoooP 正式入口仍約 35-40%。 + ## 2026-05-21 | 資安供應鏈 S2.88:IwoooS 人工決策正式紀錄候選結果分流 **背景**:S2.87 已把正式紀錄候選前的完整性預檢放進 IwoooS;本輪補上「候選預檢後會落到哪一種結果」的只讀分流,避免使用者或 AwoooP 平行 Session 把候選結果分流誤認成正式紀錄、人工批准或執行命令。 diff --git a/docs/security/SECURITY-MIRROR-STATUS-ROLLUP.md b/docs/security/SECURITY-MIRROR-STATUS-ROLLUP.md index 8b2d22537..130ade61e 100644 --- a/docs/security/SECURITY-MIRROR-STATUS-ROLLUP.md +++ b/docs/security/SECURITY-MIRROR-STATUS-ROLLUP.md @@ -70,6 +70,7 @@ | IwoooS 人工決策紀錄草稿防誤用 | S2.86 已在 `/iwooos` 顯示人工決策紀錄草稿六條防誤用線;防誤用線=6、草稿=0、正式紀錄=0、執行期閘門=0;仍不建立正式紀錄、不自動批准、不建立執行期閘門、不建立專案庫、不改分支 / 標籤參照、不改工作流程 / 機密設定、不切主要來源、不停用 Gitea、不呼叫 Kali / SSH / 主機更新 | | IwoooS 人工決策正式紀錄候選預檢 | S2.87 已在 `/iwooos` 顯示人工決策正式紀錄候選七個預檢項;預檢項=7、候選=0、正式紀錄=0、執行期閘門=0;仍不建立正式紀錄、不自動批准、不建立執行期閘門、不建立專案庫、不改分支 / 標籤參照、不改工作流程 / 機密設定、不切主要來源、不停用 Gitea、不呼叫 Kali / SSH / 主機更新 | | IwoooS 人工決策正式紀錄候選結果分流 | S2.88 已在 `/iwooos` 顯示人工決策正式紀錄候選八條結果分流;分流=8、可交接=0、已升格=0、執行期閘門=0;仍不建立正式紀錄、不自動批准、不建立執行期閘門、不建立專案庫、不改分支 / 標籤參照、不改工作流程 / 機密設定、不切主要來源、不停用 Gitea、不呼叫 Kali / SSH / 主機更新 | +| IwoooS 人工決策正式紀錄負責人交接準備 | S2.89 已在 `/iwooos` 顯示人工決策正式紀錄負責人七個交接包;交接包=7、可交接=0、已指派=0、執行期閘門=0;仍不指派紀錄負責人、不建立正式紀錄、不自動批准、不建立執行期閘門、不建立專案庫、不改分支 / 標籤參照、不改工作流程 / 機密設定、不切主要來源、不停用 Gitea、不呼叫 Kali / SSH / 主機更新 | | Dry-run | `contract_defined_not_executed`;已納入 `CHECK_PROGRESS_GUARD` 與 `CHECK_OWNER_RESPONSE_GUARD`,latest local validation 為 `repo_snapshot_guard_pass`,仍不代表 production ingestion | | Runtime actions | `false` | | Payload ingestion | `false` | @@ -205,6 +206,7 @@ | S2.86 IwoooS 人工決策紀錄草稿防誤用 | framework detail | 0 | 只在 `/iwooos` 顯示人工決策紀錄草稿防誤用,呈現防誤用線=6、草稿=0、正式紀錄=0、已批准=0、執行期閘門=0;owner_response_decision_record_draft_only=true、owner_response_decision_record_write_authorized=false、owner_response_decision_record_execution_authorized=false、runtime_execution_authorized=false、active_runtime_gate_count=0、action_buttons_allowed=false、not_authorization=true,不把紀錄草稿當正式紀錄、人工批准、審批紀錄、執行期閘門、專案庫建立、分支 / 標籤參照同步、工作流程 / 機密設定修改、主要來源切換、Gitea 停用、Kali / SSH / 主機更新或執行期授權 | | S2.87 IwoooS 人工決策正式紀錄候選預檢 | framework detail | 0 | 只在 `/iwooos` 顯示人工決策正式紀錄候選預檢,呈現預檢項=7、候選=0、正式紀錄=0、已批准=0、執行期閘門=0;owner_response_formal_record_candidate_only=true、owner_response_formal_record_write_authorized=false、owner_response_formal_record_approval_authorized=false、owner_response_formal_record_execution_authorized=false、runtime_execution_authorized=false、active_runtime_gate_count=0、action_buttons_allowed=false、not_authorization=true,不把正式紀錄候選當正式紀錄、人工批准、審批紀錄、執行期閘門、專案庫建立、分支 / 標籤參照同步、工作流程 / 機密設定修改、主要來源切換、Gitea 停用、Kali / SSH / 主機更新或執行期授權 | | S2.88 IwoooS 人工決策正式紀錄候選結果分流 | framework detail | 0 | 只在 `/iwooos` 顯示人工決策正式紀錄候選結果分流,呈現分流=8、可交接=0、已升格=0、執行期閘門=0;owner_response_formal_record_candidate_review_only=true、owner_response_formal_record_auto_promotion_allowed=false、owner_response_formal_record_write_authorized=false、owner_response_formal_record_approval_authorized=false、owner_response_formal_record_execution_authorized=false、runtime_execution_authorized=false、active_runtime_gate_count=0、action_buttons_allowed=false、not_authorization=true,不把候選結果分流當正式紀錄、人工批准、審批紀錄、執行期閘門、專案庫建立、分支 / 標籤參照同步、工作流程 / 機密設定修改、主要來源切換、Gitea 停用、Kali / SSH / 主機更新或執行期授權 | +| S2.89 IwoooS 人工決策正式紀錄負責人交接準備 | framework detail | 0 | 只在 `/iwooos` 顯示人工決策正式紀錄負責人交接準備,呈現交接包=7、可交接=0、已指派=0、正式紀錄=0、已批准=0、執行期閘門=0;owner_response_formal_record_owner_handoff_only=true、owner_response_formal_record_owner_assignment_authorized=false、owner_response_formal_record_write_authorized=false、owner_response_formal_record_approval_authorized=false、owner_response_formal_record_execution_authorized=false、runtime_execution_authorized=false、active_runtime_gate_count=0、action_buttons_allowed=false、not_authorization=true,不把交接準備當紀錄負責人指派、正式紀錄、人工批准、審批紀錄、執行期閘門、專案庫建立、分支 / 標籤參照同步、工作流程 / 機密設定修改、主要來源切換、Gitea 停用、Kali / SSH / 主機更新或執行期授權 | headline 進度要再往上,至少需要下列任一高層 gate 有實質 evidence: diff --git a/docs/security/SECURITY-SUPPLY-CHAIN-PROGRESS.md b/docs/security/SECURITY-SUPPLY-CHAIN-PROGRESS.md index 43d8ac756..7c10d6937 100644 --- a/docs/security/SECURITY-SUPPLY-CHAIN-PROGRESS.md +++ b/docs/security/SECURITY-SUPPLY-CHAIN-PROGRESS.md @@ -28,7 +28,7 @@ python3 scripts/security/security-mirror-progress-guard.py ### 0.2 Headline 58% 不代表停滯 -近期 S4.10 請求包、範本狀態台帳、稽核事件範本、脫敏範例、收件檢查、收件預檢,S4.11 請求包 / 範本狀態台帳 / 稽核事件範本 / 脫敏範例 / 收件檢查 / 收件預檢,S4.12 請求包 / 範本狀態台帳 / 稽核事件範本 / 脫敏範例 / 收件檢查 / 收件預檢,S4.13 證據路由規則 / 顯示區塊 / 狀態轉移規則 / 審查清單 / 審查結果分流 / 審查稽核事件範本 / 審查稽核顯示區塊 / 審查稽核收件檢查 / 審查稽核脫敏範例 / 審查稽核保留規則 / 審查稽核保留檢查 / 審查稽核交接包 / 交接檢查 / 平行 Session 同步檢查 / 衝突分流 / 復原檢查 / 復原結果分流,S1.3 低摩擦非阻擋升級分流、S2.8 IwoooS 前端態勢入口,以及 S2.9-S2.88 IwoooS / AwoooP 資安投影契約都是有效進展,但它們是框架細節,不是負責人回覆、執行期閘門、生產匯入或 GitHub 主要來源就緒。因此整體百分比仍維持 58%,避免把只讀框架誤算成已落地執行。 +近期 S4.10 請求包、範本狀態台帳、稽核事件範本、脫敏範例、收件檢查、收件預檢,S4.11 請求包 / 範本狀態台帳 / 稽核事件範本 / 脫敏範例 / 收件檢查 / 收件預檢,S4.12 請求包 / 範本狀態台帳 / 稽核事件範本 / 脫敏範例 / 收件檢查 / 收件預檢,S4.13 證據路由規則 / 顯示區塊 / 狀態轉移規則 / 審查清單 / 審查結果分流 / 審查稽核事件範本 / 審查稽核顯示區塊 / 審查稽核收件檢查 / 審查稽核脫敏範例 / 審查稽核保留規則 / 審查稽核保留檢查 / 審查稽核交接包 / 交接檢查 / 平行 Session 同步檢查 / 衝突分流 / 復原檢查 / 復原結果分流,S1.3 低摩擦非阻擋升級分流、S2.8 IwoooS 前端態勢入口,以及 S2.9-S2.89 IwoooS / AwoooP 資安投影契約都是有效進展,但它們是框架細節,不是負責人回覆、執行期閘門、生產匯入或 GitHub 主要來源就緒。因此整體百分比仍維持 58%,避免把只讀框架誤算成已落地執行。 S2.50 也把「為什麼 58% 還不動」拆成五個可見 gate:owner response accepted、redacted payload ingestion、active runtime gate、GitHub primary ready、AwoooP read-only landing。這五個 gate 目前仍全部是 0 / false,所以 headline 不應被灌水提高。 @@ -151,6 +151,7 @@ S2.50 也把「為什麼 58% 還不動」拆成五個可見 gate:owner respons | S2.86 IwoooS 人工決策紀錄草稿防誤用 | 已完成草案,在 `/iwooos` 顯示六條人工決策紀錄草稿防誤用線、草稿=0、正式紀錄=0、已批准=0、執行期閘門=0;仍不把紀錄草稿當成正式紀錄、人工批准、主要來源切換或執行期閘門 | 0 | | S2.87 IwoooS 人工決策正式紀錄候選預檢 | 已完成草案,在 `/iwooos` 顯示七個人工決策正式紀錄候選預檢項、候選=0、正式紀錄=0、已批准=0、執行期閘門=0;仍不把候選當成正式紀錄、人工批准、主要來源切換或執行期閘門 | 0 | | S2.88 IwoooS 人工決策正式紀錄候選結果分流 | 已完成草案,在 `/iwooos` 顯示八條人工決策正式紀錄候選結果分流、可交接=0、已升格=0、執行期閘門=0;仍不把分流當成正式紀錄、人工批准、主要來源切換或執行期閘門 | 0 | +| S2.89 IwoooS 人工決策正式紀錄負責人交接準備 | 已完成草案,在 `/iwooos` 顯示七個人工決策正式紀錄負責人交接包、可交接=0、已指派=0、正式紀錄=0、已批准=0、執行期閘門=0;仍不把交接準備當成紀錄負責人指派、正式紀錄、人工批准、主要來源切換或執行期閘門 | 0 | headline 要再往上,需要 S4.9 / S4.10 / S4.11 / S4.12 任一 owner response 收到並通過脫敏驗收,或人工批准後出現 active runtime gate、redacted payload ingestion、GitHub primary readiness 這類落地 evidence。 @@ -258,6 +259,7 @@ headline 要再往上,需要 S4.9 / S4.10 / S4.11 / S4.12 任一 owner respons | S2.86 IwoooS 人工決策紀錄草稿防誤用 | 完成草案 | `/iwooos` 新增紀錄草稿防誤用看板,顯示紀錄身分草稿、決策範圍快照、審查角色預留、證據版本凍結、批准不等於執行、後續執行期指標六條保護線 | 使用者與另一個 AwoooP Session 能理解決策紀錄草稿仍不是正式紀錄或執行命令;紀錄草稿仍不是人工批准、正式審批紀錄、專案庫 / 分支與標籤參照 / 工作流程 / 機密設定動作、主要來源切換或執行期閘門 | | S2.87 IwoooS 人工決策正式紀錄候選預檢 | 完成草案 | `/iwooos` 新增正式紀錄候選預檢看板,顯示候選身分追溯、審查人身分邊界、證據版本鏈、範圍與期限、風險與回滾欄位、執行期分離、主要來源分離七個預檢項 | 使用者與另一個 AwoooP Session 能理解正式紀錄候選仍不是正式紀錄或批准;候選仍不是人工批准、正式審批紀錄、專案庫 / 分支與標籤參照 / 工作流程 / 機密設定動作、主要來源切換或執行期閘門 | | S2.88 IwoooS 人工決策正式紀錄候選結果分流 | 完成草案 | `/iwooos` 新增正式紀錄候選結果分流看板,顯示維持候選等待、退回草稿補齊、要求證據更新、要求審查說明、可交紀錄負責人、隔離敏感載荷、拒收變更要求、另開執行或切換閘門八條分流 | 使用者與另一個 AwoooP Session 能理解候選預檢後仍只是只讀分流;分流仍不是人工批准、正式審批紀錄、專案庫 / 分支與標籤參照 / 工作流程 / 機密設定動作、主要來源切換或執行期閘門 | +| S2.89 IwoooS 人工決策正式紀錄負責人交接準備 | 完成草案 | `/iwooos` 新增正式紀錄負責人交接準備看板,顯示身分追溯包、決策脈絡包、證據鎖定包、審查備註包、風險回滾包、執行期閘門指標包、主要來源指標包七個交接包 | 使用者與另一個 AwoooP Session 能理解可交接仍只是資料準備;交接準備仍不是紀錄負責人指派、人工批准、正式審批紀錄、專案庫 / 分支與標籤參照 / 工作流程 / 機密設定動作、主要來源切換或執行期閘門 | | S3 approval gate | 進行中 | `security_approval_gate_v1` 已建立 8 個人工 gate items:7 pending、1 block candidate、0 approved | 不得繞過人工批准;批准後仍需 follow-up runtime gate | | S3.0 人工批准 Gate 契約 | 完成草案 | 定義批准範圍、決策選項、required reviewers、still forbidden 與 follow-up runtime gate | AwoooP 可記錄決策,不可執行 gate item | | S3.1 人工決策紀錄契約 | 完成草案 | `security_approval_decision_record_v1` 已建立;目前 0 筆 decision records、0 個 runtime action 授權 | AwoooP 可稽核決策,不可把決策當執行 | diff --git a/docs/security/security-mirror-status-rollup.snapshot.json b/docs/security/security-mirror-status-rollup.snapshot.json index b6163a7a3..08174e8dd 100644 --- a/docs/security/security-mirror-status-rollup.snapshot.json +++ b/docs/security/security-mirror-status-rollup.snapshot.json @@ -1526,6 +1526,18 @@ "runtime_delta": false, "execution_authorized": false, "not_authorization": true + }, + { + "delta_id": "s2_89_iwooos_owner_response_formal_record_owner_handoff_board", + "display_order": 118, + "completed_stage": "S2.89 IwoooS 人工決策正式紀錄負責人交接準備", + "progress_axis": "framework_detail", + "headline_percent_delta": 0, + "framework_delta_visible": true, + "why_headline_unchanged": "IwoooS 只新增人工決策正式紀錄負責人交接準備看板,顯示 7 個交接包:身分追溯包、決策脈絡包、證據鎖定包、審查備註包、風險回滾包、執行期閘門指標包、主要來源指標包,並固定可交接=0、已指派=0、正式紀錄=0、已批准=0、執行期閘門=0;owner_response_formal_record_owner_handoff_only=true、owner_response_formal_record_owner_assignment_authorized=false、owner_response_formal_record_write_authorized=false、owner_response_formal_record_approval_authorized=false、owner_response_formal_record_execution_authorized=false、runtime_execution_authorized=false、active_runtime_gate_count=0、action_buttons_allowed=false,不把交接準備當紀錄負責人指派、正式紀錄、人工批准、審批紀錄、專案庫 / 分支與標籤參照 / 工作流程 / 機密設定、主要來源切換或執行期授權。", + "runtime_delta": false, + "execution_authorized": false, + "not_authorization": true } ], "next_safe_actions": [ @@ -2090,6 +2102,22 @@ "從正式紀錄候選結果分流呼叫 Kali、開 SSH、更新主機、切 GitHub 主要來源、停用 Gitea、收機密明文值或開執行期閘門" ] }, + { + "action_id": "show_iwooos_owner_response_formal_record_owner_handoff_board", + "title": "IwoooS 顯示人工決策正式紀錄負責人交接準備", + "mode": "observe", + "source_contract": "source_control_owner_response_validation_rollup_v1", + "allowed_processing": [ + "在 /iwooos 顯示 S2.89 人工決策正式紀錄負責人交接準備", + "顯示身分追溯包、決策脈絡包、證據鎖定包、審查備註包、風險回滾包、執行期閘門指標包、主要來源指標包七個交接包", + "只讓人工知道正式紀錄候選可交接前要整理哪些資料,不自動指派紀錄負責人、不建立正式紀錄、不批准、不建立執行期閘門" + ], + "blocked_processing": [ + "把正式紀錄負責人交接準備當成人工批准、正式決策、審批紀錄、紀錄負責人指派或已接受回覆", + "從正式紀錄負責人交接準備建立專案庫、改可見性、同步 / 刪除 / 強制推送分支或標籤參照,或修改工作流程 / 機密設定", + "從正式紀錄負責人交接準備呼叫 Kali、開 SSH、更新主機、切 GitHub 主要來源、停用 Gitea、收機密明文值或開執行期閘門" + ] + }, { "action_id": "enforce_traditional_chinese_security_surface_wording", "title": "IwoooS / AwoooP 資安可視區塊維持繁體中文呈現", @@ -2523,7 +2551,8 @@ "S2.85 新增 IwoooS 人工決策準備佇列;/iwooos 顯示決策包草稿、證據追溯包、審查人指派、回滾窗口候選、執行期閘門分離與主要來源切換分離六個前置項目,可決策=0、已批准=0、執行期閘門=0;owner_response_human_decision_queue_item_count=6、owner_response_human_decision_ready_count=0、owner_response_human_decision_approved_count=0、owner_response_human_decision_runtime_gate_count=0、owner_response_human_decision_record_created=false、owner_response_human_decision_auto_approval_allowed=false、owner_response_human_decision_requires_reviewer=true、owner_response_human_decision_only_prepares_packet=true、runtime_execution_authorized=false、active_runtime_gate_count=0、action_buttons_allowed=false、not_authorization=true,不把人工決策準備佇列當人工批准、正式決策、審批紀錄、專案庫 / 分支與標籤參照 / 工作流程 / 機密設定、主要來源切換、Gitea 停用、Kali / SSH / 主機更新或執行期閘門。", "S2.86 新增 IwoooS 人工決策紀錄草稿防誤用;/iwooos 顯示紀錄身分草稿、決策範圍快照、審查角色預留、證據版本凍結、批准不等於執行、後續執行期指標六條保護線,草稿=0、正式紀錄=0、已批准=0、執行期閘門=0;owner_response_decision_record_draft_guard_count=6、owner_response_decision_record_draft_created_count=0、owner_response_decision_record_formal_count=0、owner_response_decision_record_approved_count=0、owner_response_decision_record_runtime_gate_count=0、owner_response_decision_record_draft_only=true、owner_response_decision_record_write_authorized=false、owner_response_decision_record_execution_authorized=false、runtime_execution_authorized=false、active_runtime_gate_count=0、action_buttons_allowed=false、not_authorization=true,不把紀錄草稿當正式紀錄、人工批准、審批紀錄、專案庫 / 分支與標籤參照 / 工作流程 / 機密設定、主要來源切換、Gitea 停用、Kali / SSH / 主機更新或執行期閘門。", "S2.87 新增 IwoooS 人工決策正式紀錄候選預檢;/iwooos 顯示候選身分追溯、審查人身分邊界、證據版本鏈、範圍與期限、風險與回滾欄位、執行期分離、主要來源分離七個候選預檢項,候選=0、正式紀錄=0、已批准=0、執行期閘門=0;owner_response_formal_record_candidate_preflight_count=7、owner_response_formal_record_candidate_count=0、owner_response_formal_record_created_count=0、owner_response_formal_record_approved_count=0、owner_response_formal_record_runtime_gate_count=0、owner_response_formal_record_candidate_only=true、owner_response_formal_record_write_authorized=false、owner_response_formal_record_approval_authorized=false、owner_response_formal_record_execution_authorized=false、runtime_execution_authorized=false、active_runtime_gate_count=0、action_buttons_allowed=false、not_authorization=true,不把正式紀錄候選當正式紀錄、人工批准、審批紀錄、專案庫 / 分支與標籤參照 / 工作流程 / 機密設定、主要來源切換、Gitea 停用、Kali / SSH / 主機更新或執行期閘門。", - "S2.88 新增 IwoooS 人工決策正式紀錄候選結果分流;/iwooos 顯示維持候選等待、退回草稿補齊、要求證據更新、要求審查說明、可交紀錄負責人、隔離敏感載荷、拒收變更要求、另開執行或切換閘門八條候選分流,可交接=0、已升格=0、執行期閘門=0;owner_response_formal_record_candidate_outcome_lane_count=8、owner_response_formal_record_candidate_ready_count=0、owner_response_formal_record_candidate_returned_count=0、owner_response_formal_record_candidate_quarantine_count=0、owner_response_formal_record_candidate_rejected_count=0、owner_response_formal_record_candidate_promoted_count=0、owner_response_formal_record_candidate_review_only=true、owner_response_formal_record_auto_promotion_allowed=false、owner_response_formal_record_write_authorized=false、owner_response_formal_record_approval_authorized=false、owner_response_formal_record_execution_authorized=false、runtime_execution_authorized=false、active_runtime_gate_count=0、action_buttons_allowed=false、not_authorization=true,不把候選結果分流當正式紀錄、人工批准、審批紀錄、專案庫 / 分支與標籤參照 / 工作流程 / 機密設定、主要來源切換、Gitea 停用、Kali / SSH / 主機更新或執行期閘門。" + "S2.88 新增 IwoooS 人工決策正式紀錄候選結果分流;/iwooos 顯示維持候選等待、退回草稿補齊、要求證據更新、要求審查說明、可交紀錄負責人、隔離敏感載荷、拒收變更要求、另開執行或切換閘門八條候選分流,可交接=0、已升格=0、執行期閘門=0;owner_response_formal_record_candidate_outcome_lane_count=8、owner_response_formal_record_candidate_ready_count=0、owner_response_formal_record_candidate_returned_count=0、owner_response_formal_record_candidate_quarantine_count=0、owner_response_formal_record_candidate_rejected_count=0、owner_response_formal_record_candidate_promoted_count=0、owner_response_formal_record_candidate_review_only=true、owner_response_formal_record_auto_promotion_allowed=false、owner_response_formal_record_write_authorized=false、owner_response_formal_record_approval_authorized=false、owner_response_formal_record_execution_authorized=false、runtime_execution_authorized=false、active_runtime_gate_count=0、action_buttons_allowed=false、not_authorization=true,不把候選結果分流當正式紀錄、人工批准、審批紀錄、專案庫 / 分支與標籤參照 / 工作流程 / 機密設定、主要來源切換、Gitea 停用、Kali / SSH / 主機更新或執行期閘門。", + "S2.89 新增 IwoooS 人工決策正式紀錄負責人交接準備;/iwooos 顯示身分追溯包、決策脈絡包、證據鎖定包、審查備註包、風險回滾包、執行期閘門指標包、主要來源指標包七個交接包,可交接=0、已指派=0、正式紀錄=0、已批准=0、執行期閘門=0;owner_response_formal_record_owner_handoff_packet_count=7、owner_response_formal_record_owner_handoff_ready_count=0、owner_response_formal_record_owner_assigned_count=0、owner_response_formal_record_created_count=0、owner_response_formal_record_approved_count=0、owner_response_formal_record_runtime_gate_count=0、owner_response_formal_record_owner_handoff_only=true、owner_response_formal_record_owner_assignment_authorized=false、owner_response_formal_record_write_authorized=false、owner_response_formal_record_approval_authorized=false、owner_response_formal_record_execution_authorized=false、runtime_execution_authorized=false、active_runtime_gate_count=0、action_buttons_allowed=false、not_authorization=true,不把交接準備當紀錄負責人指派、正式紀錄、人工批准、審批紀錄、專案庫 / 分支與標籤參照 / 工作流程 / 機密設定、主要來源切換、Gitea 停用、Kali / SSH / 主機更新或執行期閘門。" ], "forbidden_actions": [ "start_kali_scan", diff --git a/scripts/security/security-mirror-progress-guard.py b/scripts/security/security-mirror-progress-guard.py index 91176fbc2..d57b23fb7 100755 --- a/scripts/security/security-mirror-progress-guard.py +++ b/scripts/security/security-mirror-progress-guard.py @@ -337,6 +337,7 @@ def validate(root: Path) -> None: "s2_86_iwooos_owner_response_decision_record_draft_guard_board", "s2_87_iwooos_owner_response_formal_record_candidate_preflight_board", "s2_88_iwooos_owner_response_formal_record_candidate_outcome_board", + "s2_89_iwooos_owner_response_formal_record_owner_handoff_board", ] assert_equal( "progress_delta_ledger.delta_ids", @@ -536,6 +537,11 @@ def validate(root: Path) -> None: [item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)], "show_iwooos_owner_response_formal_record_candidate_outcome_board", ) + assert_contains( + "rollup.next_safe_actions.action_ids", + [item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)], + "show_iwooos_owner_response_formal_record_owner_handoff_board", + ) assert_contains( "rollup.next_safe_actions.action_ids", [item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)], @@ -6850,6 +6856,49 @@ def validate(root: Path) -> None: iwooos_projection_page, text, ) + assert_text_contains( + "iwooos_page.owner_response_formal_record_owner_handoff_packets", + iwooos_projection_page, + "ownerResponseFormalRecordOwnerHandoffPackets", + ) + assert_text_contains( + "iwooos_page.owner_response_formal_record_owner_handoff_testid", + iwooos_projection_page, + 'data-testid="iwooos-owner-response-formal-record-owner-handoff-board"', + ) + assert_text_contains( + "iwooos_page.owner_response_formal_record_owner_handoff_component", + iwooos_projection_page, + "OwnerResponseFormalRecordOwnerHandoffBoard", + ) + for text in [ + "owner_response_formal_record_owner_handoff_packet_count=7", + "owner_response_formal_record_owner_handoff_ready_count=0", + "owner_response_formal_record_owner_assigned_count=0", + "owner_response_formal_record_created_count=0", + "owner_response_formal_record_approved_count=0", + "owner_response_formal_record_runtime_gate_count=0", + "owner_response_formal_record_owner_handoff_only=true", + "owner_response_formal_record_owner_assignment_authorized=false", + "owner_response_formal_record_write_authorized=false", + "owner_response_formal_record_approval_authorized=false", + "owner_response_formal_record_execution_authorized=false", + "runtime_execution_authorized=false", + "active_runtime_gate_count=0", + "action_buttons_allowed=false", + "not_authorization=true", + "secret_value_collection_allowed=false", + "repo_creation_authorized=false", + "refs_sync_authorized=false", + "workflow_modification_authorized=false", + "github_primary_switch_authorized=false", + "gitea_disablement_authorized=false", + ]: + assert_text_contains( + "iwooos_page.owner_response_formal_record_owner_handoff_boundary", + iwooos_projection_page, + text, + ) for key in [ "title", "subtitle", @@ -7332,6 +7381,56 @@ def validate(root: Path) -> None: list(web_messages_en["iwooos"]["ownerResponseFormalRecordCandidateOutcomeBoard"]["items"].keys()), key, ) + for key in [ + "title", + "subtitle", + "packetLabel", + "handoffLabel", + "guardLabel", + "boundaryTitle", + "summary", + "items", + ]: + assert_contains( + "web_messages.zh-TW.iwooos.ownerResponseFormalRecordOwnerHandoffBoard", + list(web_messages_zh["iwooos"]["ownerResponseFormalRecordOwnerHandoffBoard"].keys()), + key, + ) + assert_contains( + "web_messages.en.iwooos.ownerResponseFormalRecordOwnerHandoffBoard", + list(web_messages_en["iwooos"]["ownerResponseFormalRecordOwnerHandoffBoard"].keys()), + key, + ) + for key in ["packets", "ready", "assigned", "runtime"]: + assert_contains( + "web_messages.zh-TW.iwooos.ownerResponseFormalRecordOwnerHandoffBoard.summary", + list(web_messages_zh["iwooos"]["ownerResponseFormalRecordOwnerHandoffBoard"]["summary"].keys()), + key, + ) + assert_contains( + "web_messages.en.iwooos.ownerResponseFormalRecordOwnerHandoffBoard.summary", + list(web_messages_en["iwooos"]["ownerResponseFormalRecordOwnerHandoffBoard"]["summary"].keys()), + key, + ) + for key in [ + "handoffIdentityBundle", + "handoffDecisionContext", + "handoffEvidenceLock", + "handoffReviewerNotes", + "handoffRiskRollback", + "handoffRuntimeGatePointer", + "handoffSourceControlPointer", + ]: + assert_contains( + "web_messages.zh-TW.iwooos.ownerResponseFormalRecordOwnerHandoffBoard.items", + list(web_messages_zh["iwooos"]["ownerResponseFormalRecordOwnerHandoffBoard"]["items"].keys()), + key, + ) + assert_contains( + "web_messages.en.iwooos.ownerResponseFormalRecordOwnerHandoffBoard.items", + list(web_messages_en["iwooos"]["ownerResponseFormalRecordOwnerHandoffBoard"]["items"].keys()), + key, + ) owner_summary = owner_rollup["summary"] assert_equal("owner_rollup.total_received_response_count", owner_summary["total_received_response_count"], 0)