From b168d43dad4c2406bc594264c0a77979388614c2 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 24 May 2026 11:48:52 +0800 Subject: [PATCH] feat(web): add headline movement acceptance gate --- apps/web/messages/en.json | 64 +++++++ apps/web/messages/zh-TW.json | 64 +++++++ apps/web/src/app/[locale]/iwooos/page.tsx | 161 ++++++++++++++++++ docs/LOGBOOK.md | 14 ++ .../security/SECURITY-MIRROR-STATUS-ROLLUP.md | 2 + .../SECURITY-SUPPLY-CHAIN-PROGRESS.md | 4 +- ...ecurity-mirror-status-rollup.snapshot.json | 28 +++ .../security-mirror-progress-guard.py | 81 +++++++++ 8 files changed, 417 insertions(+), 1 deletion(-) diff --git a/apps/web/messages/en.json b/apps/web/messages/en.json index 75530992a..21fecc632 100644 --- a/apps/web/messages/en.json +++ b/apps/web/messages/en.json @@ -2837,6 +2837,70 @@ } } }, + "headlineMovementAcceptanceGate": { + "title": "58% 重估驗收閘門", + "subtitle": "S2.100 把下一次 headline 能不能從 58% 往前推的判定規則固定下來:只有真正收到並驗收脫敏負責人回覆、脫敏匯入、人工 runtime gate、GitHub 主要來源就緒或 AwoooP production landing evidence,才會開啟重估;目前五個移動訊號仍都是 0 / false。", + "gateLabel": "重估 gate", + "acceptanceLabel": "驗收條件", + "guardLabel": "仍禁止", + "boundaryTitle": "進度重估邊界", + "summary": { + "headline": { + "label": "目前 headline", + "detail": "仍維持 58%,不把框架層堆疊灌水成落地執行。" + }, + "signals": { + "label": "移動訊號", + "detail": "五個高層 gate 目前全部未滿足。" + }, + "s49Accepted": { + "label": "S4.9 accepted", + "detail": "五個 owner response template 尚未收到可接受 evidence。" + }, + "review": { + "label": "重估紀錄", + "detail": "尚未開啟 headline review record。" + } + }, + "items": { + "s49OwnerResponseAccepted": { + "title": "S4.9 負責人回覆驗收", + "body": "下一個真正會推動 58% 的 P0 是 Gitea owner attestation:public-only / local gap、org/user endpoint、110 adjacent scope、repo owner canonical scope、legacy / inaccessible disposition 五項要收到脫敏 evidence。", + "acceptance": "五項都通過 preflight 與 S4.13 validation rollup,才可記錄 owner_response_accepted_count > 0。", + "guard": "不代填、不催收、不標記 received / accepted、不建立審批紀錄。" + }, + "redactedPayloadAccepted": { + "title": "脫敏 payload 匯入驗收", + "body": "只有 redacted metadata pointer 可以進入只讀收件與驗收;原始 dump、git object、token、cookie、private key 或 credential plaintext 都要隔離。", + "acceptance": "人工批准 ingestion path、preflight 通過、quarantine 結果可追溯後,payloads_ingested 才可改變。", + "guard": "不收明文機密、不保存原始載荷、不把文件範例當匯入完成。" + }, + "runtimeGateApproved": { + "title": "執行期閘門人工批准", + "body": "Kali `/execute`、SSH、主機更新、掃描、修復、blocking control 與部署都必須另開人工 runtime gate。", + "acceptance": "scope、rollback、maintenance window、post-check metrics 與人工批准都到齊後,active_runtime_gate_count 才能大於 0。", + "guard": "IwoooS 沒有執行按鈕;進度看板不能啟動 runtime。" + }, + "githubPrimaryEvidenceReady": { + "title": "GitHub 主要來源就緒證據", + "body": "Gitea 轉 GitHub 的長期方向需要 target owner、visibility、refs truth、workflow / secret name parity 與 rollback ADR 都能驗證。", + "acceptance": "至少一批 repo 有完整負責人回覆與 rollback readiness,primary_ready_count 才能從 0 往上。", + "guard": "不建立 repo、不同步 refs、不改 workflow / secret、不切主要來源、不停用 Gitea。" + }, + "awooopProductionLandingProof": { + "title": "AwoooP 正式只讀消費證據", + "body": "使用者要有感,AwoooP 主線必須能只讀消費 rollup、evidence refs、guard result 與 forbidden actions。", + "acceptance": "有 PR / deployment proof 證明 production 主線只讀顯示,且沒有接 execution router,才可視為 landing evidence。", + "guard": "只讀 landing 不是 approval、action button、execution router 或 blocking control。" + }, + "nextHeadlineReviewRecord": { + "title": "下一次 headline review record", + "body": "等任一高層 gate 真的有 evidence 後,才建立重估紀錄,說明為何從 58% 調整或為何仍維持。", + "acceptance": "review record 必須引用具體 evidence refs、guard output、風險邊界與禁止動作清單。", + "guard": "不因為新增看板、文件或清單就調整 headline。" + } + } + }, "sourceControlReadiness": { "title": "GitHub Primary Readiness", "subtitle": "The long-term Gitea-to-GitHub direction is shown as read-only readiness: candidate repos, owner responses, refs truth, workflow / secret names, and rollback ADR must all be present before primary_ready_count can be reviewed.", diff --git a/apps/web/messages/zh-TW.json b/apps/web/messages/zh-TW.json index 7b71e8046..9ae3e5327 100644 --- a/apps/web/messages/zh-TW.json +++ b/apps/web/messages/zh-TW.json @@ -2838,6 +2838,70 @@ } } }, + "headlineMovementAcceptanceGate": { + "title": "58% 重估驗收閘門", + "subtitle": "S2.100 把下一次 headline 能不能從 58% 往前推的判定規則固定下來:只有真正收到並驗收脫敏負責人回覆、脫敏匯入、人工 runtime gate、GitHub 主要來源就緒或 AwoooP production landing evidence,才會開啟重估;目前五個移動訊號仍都是 0 / false。", + "gateLabel": "重估 gate", + "acceptanceLabel": "驗收條件", + "guardLabel": "仍禁止", + "boundaryTitle": "進度重估邊界", + "summary": { + "headline": { + "label": "目前 headline", + "detail": "仍維持 58%,不把框架層堆疊灌水成落地執行。" + }, + "signals": { + "label": "移動訊號", + "detail": "五個高層 gate 目前全部未滿足。" + }, + "s49Accepted": { + "label": "S4.9 accepted", + "detail": "五個 owner response template 尚未收到可接受 evidence。" + }, + "review": { + "label": "重估紀錄", + "detail": "尚未開啟 headline review record。" + } + }, + "items": { + "s49OwnerResponseAccepted": { + "title": "S4.9 負責人回覆驗收", + "body": "下一個真正會推動 58% 的 P0 是 Gitea owner attestation:public-only / local gap、org/user endpoint、110 adjacent scope、repo owner canonical scope、legacy / inaccessible disposition 五項要收到脫敏 evidence。", + "acceptance": "五項都通過 preflight 與 S4.13 validation rollup,才可記錄 owner_response_accepted_count > 0。", + "guard": "不代填、不催收、不標記 received / accepted、不建立審批紀錄。" + }, + "redactedPayloadAccepted": { + "title": "脫敏 payload 匯入驗收", + "body": "只有 redacted metadata pointer 可以進入只讀收件與驗收;原始 dump、git object、token、cookie、private key 或 credential plaintext 都要隔離。", + "acceptance": "人工批准 ingestion path、preflight 通過、quarantine 結果可追溯後,payloads_ingested 才可改變。", + "guard": "不收明文機密、不保存原始載荷、不把文件範例當匯入完成。" + }, + "runtimeGateApproved": { + "title": "執行期閘門人工批准", + "body": "Kali `/execute`、SSH、主機更新、掃描、修復、blocking control 與部署都必須另開人工 runtime gate。", + "acceptance": "scope、rollback、maintenance window、post-check metrics 與人工批准都到齊後,active_runtime_gate_count 才能大於 0。", + "guard": "IwoooS 沒有執行按鈕;進度看板不能啟動 runtime。" + }, + "githubPrimaryEvidenceReady": { + "title": "GitHub 主要來源就緒證據", + "body": "Gitea 轉 GitHub 的長期方向需要 target owner、visibility、refs truth、workflow / secret name parity 與 rollback ADR 都能驗證。", + "acceptance": "至少一批 repo 有完整負責人回覆與 rollback readiness,primary_ready_count 才能從 0 往上。", + "guard": "不建立 repo、不同步 refs、不改 workflow / secret、不切主要來源、不停用 Gitea。" + }, + "awooopProductionLandingProof": { + "title": "AwoooP 正式只讀消費證據", + "body": "使用者要有感,AwoooP 主線必須能只讀消費 rollup、evidence refs、guard result 與 forbidden actions。", + "acceptance": "有 PR / deployment proof 證明 production 主線只讀顯示,且沒有接 execution router,才可視為 landing evidence。", + "guard": "只讀 landing 不是 approval、action button、execution router 或 blocking control。" + }, + "nextHeadlineReviewRecord": { + "title": "下一次 headline review record", + "body": "等任一高層 gate 真的有 evidence 後,才建立重估紀錄,說明為何從 58% 調整或為何仍維持。", + "acceptance": "review record 必須引用具體 evidence refs、guard output、風險邊界與禁止動作清單。", + "guard": "不因為新增看板、文件或清單就調整 headline。" + } + } + }, "sourceControlReadiness": { "title": "GitHub 主要來源就緒度", "subtitle": "把 Gitea 轉 GitHub 的長期方向拆成只讀就緒度:候選 repo、負責人回覆、refs truth、workflow / secret 名稱與 rollback ADR 都要到齊,才會重估 primary_ready_count。", diff --git a/apps/web/src/app/[locale]/iwooos/page.tsx b/apps/web/src/app/[locale]/iwooos/page.tsx index f4d3ac4eb..0c60f9ff9 100644 --- a/apps/web/src/app/[locale]/iwooos/page.tsx +++ b/apps/web/src/app/[locale]/iwooos/page.tsx @@ -45,6 +45,14 @@ type ProgressHoldMovementGate = { tone: 'steady' | 'warn' | 'locked' } +type HeadlineMovementAcceptanceGate = { + key: string + gate: string + value: string + icon: typeof ShieldCheck + tone: 'steady' | 'warn' | 'locked' +} + type AwoooPReadOnlyLandingReadinessItem = { key: string item: string @@ -550,6 +558,37 @@ const progressHoldMovementGates: ProgressHoldMovementGate[] = [ { key: 'awooopReadOnlyLanding', gate: 'G5', icon: Radar, tone: 'steady' }, ] +const headlineMovementAcceptanceGates: HeadlineMovementAcceptanceGate[] = [ + { key: 's49OwnerResponseAccepted', gate: 'G1', value: '0 / 5', icon: ClipboardCheck, tone: 'warn' }, + { key: 'redactedPayloadAccepted', gate: 'G2', value: '0', icon: FileText, tone: 'warn' }, + { key: 'runtimeGateApproved', gate: 'G3', value: '0', icon: Lock, tone: 'locked' }, + { key: 'githubPrimaryEvidenceReady', gate: 'G4', value: '0', icon: GitBranch, tone: 'warn' }, + { key: 'awooopProductionLandingProof', gate: 'G5', value: '0', icon: Radar, tone: 'steady' }, + { key: 'nextHeadlineReviewRecord', gate: 'R1', value: '未開', icon: Clock3, tone: 'locked' }, +] + +const headlineMovementAcceptanceGateBoundaries = [ + 'headline_percent_after_this_stage=58', + 'headline_movement_signal_count=0', + 'owner_response_received_count=0', + 'owner_response_accepted_count=0', + 'owner_response_acceptance_gate_open=false', + 'redacted_payload_ingested=false', + 'active_runtime_gate_count=0', + 'github_primary_ready_count=0', + 'production_landing_enabled=false', + 'progress_review_authorized=false', + 'runtime_execution_authorized=false', + '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 awooopReadOnlyLandingReadinessItems: AwoooPReadOnlyLandingReadinessItem[] = [ { key: 'rollupSnapshotReadable', item: 'L1', icon: FileText, tone: 'steady' }, { key: 'evidenceRefsReadable', item: 'L2', icon: SearchCheck, tone: 'steady' }, @@ -1797,6 +1836,126 @@ function ProgressHoldMovementGateCard({ item }: { item: ProgressHoldMovementGate ) } +function HeadlineMovementAcceptanceGateCard({ item }: { item: HeadlineMovementAcceptanceGate }) { + const t = useTranslations('iwooos.headlineMovementAcceptanceGate') + const Icon = item.icon + const textWrap = { overflowWrap: 'anywhere' as const, wordBreak: 'break-word' as const } + return ( +
+
+
+ + {t('gateLabel')} +
+ {item.gate} +
+
+ {item.value} +
+

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

+

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

+
+ {t('acceptanceLabel')} + + {t(`items.${item.key}.acceptance` as never)} + + {t('guardLabel')} + + {t(`items.${item.key}.guard` as never)} + +
+
+ ) +} + +function HeadlineMovementAcceptanceGateBoard() { + const t = useTranslations('iwooos.headlineMovementAcceptanceGate') + const summaryItems = [ + { key: 'headline', value: '58%', tone: 'warn' as const }, + { key: 'signals', value: '0 / 5', tone: 'locked' as const }, + { key: 's49Accepted', value: '0 / 5', tone: 'warn' as const }, + { key: 'review', value: '未開', 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)} +

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

{t('boundaryTitle')}

+
+
+ {headlineMovementAcceptanceGateBoundaries.map(item => ( + + {item} + + ))} +
+
+
+ ) +} + function AwoooPReadOnlyLandingReadinessCard({ item }: { item: AwoooPReadOnlyLandingReadinessItem }) { const t = useTranslations('iwooos.awooopReadOnlyLandingReadiness') const Icon = item.icon @@ -5727,6 +5886,8 @@ export default function IwoooSPage({ params }: { params: { locale: string } }) { + +

{t('sourceControlReadiness.title')}

diff --git a/docs/LOGBOOK.md b/docs/LOGBOOK.md index ce29147e4..8b6168293 100644 --- a/docs/LOGBOOK.md +++ b/docs/LOGBOOK.md @@ -1,3 +1,17 @@ +## 2026-05-24 | 資安供應鏈 S2.100:IwoooS 58% 重估驗收閘門 + +**背景**:使用者指出整體進度長時間停在 58%,需要把「不是卡住,而是缺少哪些可讓 headline 往前的實質 evidence」直接呈現在前端與進度契約中。本輪不硬拉高整體百分比,而是將下一次 headline review 的驗收規則固定成只讀看板,避免把框架層堆疊誤認成落地進度。 + +**完成**: +- `/iwooos` 新增「58% 重估驗收閘門」,顯示 S4.9 負責人回覆驗收、脫敏 payload 匯入驗收、執行期閘門人工批准、GitHub 主要來源就緒證據、AwoooP 正式只讀消費證據與下一次 headline review record 六個判定項。 +- 看板固定顯示目前 headline=58%、移動訊號=0/5、S4.9 accepted=0/5、重估紀錄=未開,並標示 `headline_percent_after_this_stage=58`、`headline_movement_signal_count=0`、`owner_response_acceptance_gate_open=false`、`progress_review_authorized=false`、`runtime_execution_authorized=false`、`active_runtime_gate_count=0`、`action_buttons_allowed=false`、`not_authorization=true`。 +- `security_mirror_status_rollup_v1` 新增 `s2_100_iwooos_headline_movement_acceptance_gate_board` 與 `show_iwooos_headline_movement_acceptance_gate_board`。 +- `security-mirror-progress-guard.py` 已納入 58% 重估驗收閘門看板、i18n 鍵、六個判定項與 false 邊界檢查。 + +**仍禁止**: +- S2.100 是 IwoooS 只讀 headline 重估判定面,不代表負責人回覆已收到 / 已接受、脫敏匯入完成、人工批准、審批紀錄建立、資安審批、機密明文值收集、Kali `/execute`、SSH 登入、主機更新、掃描 / 執行 / 修復、專案庫建立、分支 / 標籤參照同步、工作流程 / 機密設定修改、GitHub 主要來源切換、AwoooP production landing、Gitea 停用或執行期閘門。 +- 整體資安網百分比仍是 58%;框架 / 治理 / 文件 / 結構定義 / 只讀證據仍約 80-85%;真正落地執行 / 執行期匯入 / GitHub 主要來源 / AwoooP 正式入口仍約 35-40%。 + ## 2026-05-24 | 資安供應鏈 S2.99:IwoooS 人工決策正式紀錄負責人指派決策檢查清單 **背景**:S2.98 已把正式紀錄負責人指派決策準備包放進 IwoooS;本輪補上「可進人工指派決策前,要逐項檢查哪些條件」的只讀清單,避免使用者或 AwoooP 平行 Session 把準備包誤認成已通過、已指派紀錄負責人、已建立正式紀錄、人工批准或執行命令。 diff --git a/docs/security/SECURITY-MIRROR-STATUS-ROLLUP.md b/docs/security/SECURITY-MIRROR-STATUS-ROLLUP.md index 032dce0dd..9237831fd 100644 --- a/docs/security/SECURITY-MIRROR-STATUS-ROLLUP.md +++ b/docs/security/SECURITY-MIRROR-STATUS-ROLLUP.md @@ -43,6 +43,7 @@ | IwoooS 正式紀錄負責人指派確認結果分流 | S2.97 已在 `/iwooos` 顯示人工決策正式紀錄負責人指派確認結果分流;分流=8、可進人工指派決策=0、已指派=0、正式紀錄=0、已批准=0、執行期閘門=0;`owner_response_formal_record_owner_assignment_outcome_only=true`、`runtime_execution_authorized=false`、`active_runtime_gate_count=0`、`action_buttons_allowed=false`、`not_authorization=true`,仍不代表紀錄負責人指派、正式紀錄、人工批准、GitHub 主要來源切換、Gitea 停用、Kali / SSH / 主機更新或執行期授權 | | IwoooS 正式紀錄負責人指派決策準備包 | S2.98 已在 `/iwooos` 顯示人工決策正式紀錄負責人指派決策準備包;準備包=8、可進決策=0、已決策=0、已指派=0、正式紀錄=0、已批准=0、執行期閘門=0;`owner_response_formal_record_owner_assignment_decision_preparation_only=true`、`runtime_execution_authorized=false`、`active_runtime_gate_count=0`、`action_buttons_allowed=false`、`not_authorization=true`,仍不代表紀錄負責人指派、正式紀錄、人工批准、GitHub 主要來源切換、Gitea 停用、Kali / SSH / 主機更新或執行期授權 | | IwoooS 正式紀錄負責人指派決策檢查清單 | S2.99 已在 `/iwooos` 顯示人工決策正式紀錄負責人指派決策檢查清單;檢查項=8、通過=0、已決策=0、已指派=0、正式紀錄=0、已批准=0、執行期閘門=0;`owner_response_formal_record_owner_assignment_decision_checklist_only=true`、`runtime_execution_authorized=false`、`active_runtime_gate_count=0`、`action_buttons_allowed=false`、`not_authorization=true`,仍不代表紀錄負責人指派、正式紀錄、人工批准、GitHub 主要來源切換、Gitea 停用、Kali / SSH / 主機更新或執行期授權 | +| IwoooS 58% 重估驗收閘門 | S2.100 已在 `/iwooos` 顯示 headline 重估判定板;重估項=6、移動訊號=0/5、S4.9 accepted=0/5、重估紀錄=未開;`headline_percent_after_this_stage=58`、`headline_movement_signal_count=0`、`owner_response_acceptance_gate_open=false`、`progress_review_authorized=false`、`runtime_execution_authorized=false`、`active_runtime_gate_count=0`、`action_buttons_allowed=false`、`not_authorization=true`,仍不代表負責人回覆已收到 / 已接受、脫敏匯入完成、人工批准、GitHub 主要來源切換、AwoooP production landing、Gitea 停用、Kali / SSH / 主機更新或執行期授權 | | AwoooP approvals IwoooS owner response focus | S2.55 已把 S4.9-S4.12 owner response 下一個人工收件焦點放進 `/awooop/approvals` 只讀面板;received=0、accepted=0、active runtime gates=0、headline=58%、approval_record_created=false;仍不新增 approve、execute、deploy、primary switch、refs action 或 runtime gate | | AwoooP contracts IwoooS security contract candidate | S2.56 已把四個 security mirror contract refs 放進 `/awooop/contracts` 只讀面板;total contracts=36、ready=33、partial=2、active runtime gates=0、contract_publish_authorized=false;仍不發布 contract revision、不改 lifecycle、不寫 platform contracts API、不新增 action button | | AwoooP tenants IwoooS tenant scope candidate | S2.57 已把 AWOOOI first tenant、IwoooS security mirror、Kali 112 / Dev 168 / Dev 111 與 S4.9-S4.12 owner response waiting 放進 `/awooop/tenants` 只讀面板;host coverage=3、tenant policy changes=0、tenant_migration_mode_changed=false;仍不改 migration mode、不改 tenant policy、不寫 platform tenants API、不新增 action button | @@ -227,6 +228,7 @@ | S2.97 IwoooS 人工決策正式紀錄負責人指派確認結果分流 | framework detail | 0 | 只在 `/iwooos` 顯示人工決策正式紀錄負責人指派確認結果分流,呈現分流=8、可進人工指派決策=0、已指派=0、正式紀錄=0、已批准=0、執行期閘門=0;owner_response_formal_record_owner_assignment_outcome_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 / 主機更新或執行期授權 | | S2.98 IwoooS 人工決策正式紀錄負責人指派決策準備包 | framework detail | 0 | 只在 `/iwooos` 顯示人工決策正式紀錄負責人指派決策準備包,呈現準備包=8、可進決策=0、已決策=0、已指派=0、正式紀錄=0、已批准=0、執行期閘門=0;owner_response_formal_record_owner_assignment_decision_preparation_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 / 主機更新或執行期授權 | | S2.99 IwoooS 人工決策正式紀錄負責人指派決策檢查清單 | framework detail | 0 | 只在 `/iwooos` 顯示人工決策正式紀錄負責人指派決策檢查清單,呈現檢查項=8、通過=0、已決策=0、已指派=0、正式紀錄=0、已批准=0、執行期閘門=0;owner_response_formal_record_owner_assignment_decision_checklist_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 / 主機更新或執行期授權 | +| S2.100 IwoooS 58% 重估驗收閘門 | framework detail | 0 | 只在 `/iwooos` 顯示 58% 重估驗收閘門,呈現 S4.9 負責人回覆驗收、脫敏 payload 匯入驗收、執行期閘門人工批准、GitHub 主要來源就緒證據、AwoooP 正式只讀消費證據與下一次 headline review record 六個判定項;headline_percent_after_this_stage=58、headline_movement_signal_count=0、owner_response_received_count=0、owner_response_accepted_count=0、owner_response_acceptance_gate_open=false、redacted_payload_ingested=false、active_runtime_gate_count=0、github_primary_ready_count=0、production_landing_enabled=false、progress_review_authorized=false、runtime_execution_authorized=false、action_buttons_allowed=false、not_authorization=true,不把重估驗收閘門當負責人回覆已收到 / 已接受、脫敏匯入完成、人工批准、審批紀錄、執行期閘門、專案庫建立、分支 / 標籤參照同步、工作流程 / 機密設定修改、主要來源切換、AwoooP production landing、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 de3cfa898..be3604c37 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.99 IwoooS / AwoooP 資安投影契約都是有效進展,但它們是框架細節,不是負責人回覆、執行期閘門、生產匯入或 GitHub 主要來源就緒。因此整體百分比仍維持 58%,避免把只讀框架誤算成已落地執行。 +近期 S4.10 請求包、範本狀態台帳、稽核事件範本、脫敏範例、收件檢查、收件預檢,S4.11 請求包 / 範本狀態台帳 / 稽核事件範本 / 脫敏範例 / 收件檢查 / 收件預檢,S4.12 請求包 / 範本狀態台帳 / 稽核事件範本 / 脫敏範例 / 收件檢查 / 收件預檢,S4.13 證據路由規則 / 顯示區塊 / 狀態轉移規則 / 審查清單 / 審查結果分流 / 審查稽核事件範本 / 審查稽核顯示區塊 / 審查稽核收件檢查 / 審查稽核脫敏範例 / 審查稽核保留規則 / 審查稽核保留檢查 / 審查稽核交接包 / 交接檢查 / 平行 Session 同步檢查 / 衝突分流 / 復原檢查 / 復原結果分流,S1.3 低摩擦非阻擋升級分流、S2.8 IwoooS 前端態勢入口,以及 S2.9-S2.100 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 不應被灌水提高。 @@ -162,6 +162,7 @@ S2.50 也把「為什麼 58% 還不動」拆成五個可見 gate:owner respons | S2.97 IwoooS 人工決策正式紀錄負責人指派確認結果分流 | 已完成草案,在 `/iwooos` 顯示八條人工決策正式紀錄負責人指派確認結果分流、可進人工指派決策=0、已指派=0、正式紀錄=0、已批准=0、執行期閘門=0;仍不把指派確認結果分流當成紀錄負責人指派、正式紀錄、人工批准、主要來源切換或執行期閘門 | 0 | | S2.98 IwoooS 人工決策正式紀錄負責人指派決策準備包 | 已完成草案,在 `/iwooos` 顯示八個人工決策正式紀錄負責人指派決策準備包、可進決策=0、已決策=0、已指派=0、正式紀錄=0、已批准=0、執行期閘門=0;仍不把指派決策準備包當成紀錄負責人指派、正式紀錄、人工批准、主要來源切換或執行期閘門 | 0 | | S2.99 IwoooS 人工決策正式紀錄負責人指派決策檢查清單 | 已完成草案,在 `/iwooos` 顯示八個人工決策正式紀錄負責人指派決策檢查項、通過=0、已決策=0、已指派=0、正式紀錄=0、已批准=0、執行期閘門=0;仍不把指派決策檢查清單當成紀錄負責人指派、正式紀錄、人工批准、主要來源切換或執行期閘門 | 0 | +| S2.100 IwoooS 58% 重估驗收閘門 | 已完成草案,在 `/iwooos` 顯示六個 headline 重估判定項,移動訊號=0/5、S4.9 accepted=0/5、重估紀錄=未開;仍不把重估閘門當成 owner response received / accepted、脫敏匯入、人工批准、主要來源切換、AwoooP production landing 或執行期閘門 | 0 | headline 要再往上,需要 S4.9 / S4.10 / S4.11 / S4.12 任一 owner response 收到並通過脫敏驗收,或人工批准後出現 active runtime gate、redacted payload ingestion、GitHub primary readiness 這類落地 evidence。 @@ -280,6 +281,7 @@ headline 要再往上,需要 S4.9 / S4.10 / S4.11 / S4.12 任一 owner respons | S2.97 IwoooS 人工決策正式紀錄負責人指派確認結果分流 | 完成草案 | `/iwooos` 新增正式紀錄負責人指派確認結果分流看板,顯示維持指派確認等待、要求身分說明補齊、要求負責人範圍更新、要求權責邊界修正、可進人工指派決策、隔離敏感載荷、拒收變更要求、另開執行或主要來源閘門八條結果分流 | 使用者與另一個 AwoooP Session 能理解指派確認清單後只會進入只讀結果分流;結果分流仍不是紀錄負責人指派、人工批准、正式審批紀錄、專案庫 / 分支與標籤參照 / 工作流程 / 機密設定動作、主要來源切換或執行期閘門 | | S2.98 IwoooS 人工決策正式紀錄負責人指派決策準備包 | 完成草案 | `/iwooos` 新增正式紀錄負責人指派決策準備包看板,顯示結果分流追溯包、負責人身分包、範圍快照包、權責邊界包、證據審查包、隔離與例外包、變更拒收包、執行與主要來源閘門包八個準備包 | 使用者與另一個 AwoooP Session 能理解可進人工指派決策前仍只是資料準備;準備包仍不是紀錄負責人指派、人工批准、正式審批紀錄、專案庫 / 分支與標籤參照 / 工作流程 / 機密設定動作、主要來源切換或執行期閘門 | | S2.99 IwoooS 人工決策正式紀錄負責人指派決策檢查清單 | 完成草案 | `/iwooos` 新增正式紀錄負責人指派決策檢查清單看板,顯示決策追溯可讀檢查、負責人身分可確認檢查、範圍快照有效檢查、權責邊界已檢查、證據鏈可讀檢查、隔離與例外已檢查、變更拒收已檢查、執行與主要來源分離檢查八個檢查項 | 使用者與另一個 AwoooP Session 能理解指派決策前仍只是人工檢查清單;檢查清單仍不是紀錄負責人指派、人工批准、正式審批紀錄、專案庫 / 分支與標籤參照 / 工作流程 / 機密設定動作、主要來源切換或執行期閘門 | +| S2.100 IwoooS 58% 重估驗收閘門 | 完成草案 | `/iwooos` 新增 58% 重估驗收閘門看板,顯示 S4.9 負責人回覆驗收、脫敏 payload 匯入驗收、執行期閘門人工批准、GitHub 主要來源就緒證據、AwoooP 正式只讀消費證據與下一次 headline review record 六個判定項 | 使用者與另一個 AwoooP Session 能直接看懂整體進度為何仍是 58%,以及下一個真正能推動 headline 的實質 gate;重估閘門仍不是 owner response received / accepted、脫敏匯入、人工批准、審批紀錄、主要來源切換、AwoooP production landing 或執行期閘門 | | 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 37cae0409..6cb130270 100644 --- a/docs/security/security-mirror-status-rollup.snapshot.json +++ b/docs/security/security-mirror-status-rollup.snapshot.json @@ -1658,6 +1658,18 @@ "runtime_delta": false, "execution_authorized": false, "not_authorization": true + }, + { + "delta_id": "s2_100_iwooos_headline_movement_acceptance_gate_board", + "display_order": 129, + "completed_stage": "S2.100 IwoooS 58% 重估驗收閘門", + "progress_axis": "framework_detail", + "headline_percent_delta": 0, + "framework_delta_visible": true, + "why_headline_unchanged": "IwoooS 只新增 58% 重估驗收閘門看板,顯示 S4.9 負責人回覆驗收、脫敏 payload 匯入驗收、執行期閘門人工批准、GitHub 主要來源就緒證據、AwoooP 正式只讀消費證據與下一次 headline review record 六個只讀判定項;headline_percent_after_this_stage=58、headline_movement_signal_count=0、owner_response_received_count=0、owner_response_accepted_count=0、owner_response_acceptance_gate_open=false、redacted_payload_ingested=false、active_runtime_gate_count=0、github_primary_ready_count=0、production_landing_enabled=false、progress_review_authorized=false、runtime_execution_authorized=false、action_buttons_allowed=false,不把重估閘門看板當負責人回覆已收到 / 已接受、脫敏匯入完成、人工批准、審批紀錄、執行期閘門、專案庫 / 分支與標籤參照 / 工作流程 / 機密設定、主要來源切換或正式落地。", + "runtime_delta": false, + "execution_authorized": false, + "not_authorization": true } ], "next_safe_actions": [ @@ -2398,6 +2410,22 @@ "從正式紀錄負責人指派決策檢查清單呼叫 Kali、開 SSH、更新主機、切 GitHub 主要來源、停用 Gitea、收機密明文值或開執行期閘門" ] }, + { + "action_id": "show_iwooos_headline_movement_acceptance_gate_board", + "title": "IwoooS 顯示 58% 重估驗收閘門", + "mode": "observe", + "source_contract": "security_mirror_status_rollup_v1", + "allowed_processing": [ + "在 /iwooos 顯示 S2.100 58% 重估驗收閘門", + "顯示 S4.9 負責人回覆驗收、脫敏 payload 匯入驗收、執行期閘門人工批准、GitHub 主要來源就緒證據、AwoooP 正式只讀消費證據與下一次 headline review record 六個只讀判定項", + "只讓人工理解為什麼 headline 仍是 58% 以及下一個能推動 headline 的實質 evidence,不自動重估、不加分、不建立審批紀錄、不建立執行期閘門" + ], + "blocked_processing": [ + "把 58% 重估驗收閘門當負責人回覆已收到 / 已接受、脫敏匯入完成、人工批准、正式審批紀錄或 progress delta", + "從重估閘門建立專案庫、改可見性、同步 / 刪除 / 強制推送分支或標籤參照,或修改工作流程 / 機密設定", + "從重估閘門呼叫 Kali、開 SSH、更新主機、切 GitHub 主要來源、停用 Gitea、收機密明文值或開執行期閘門" + ] + }, { "action_id": "enforce_traditional_chinese_security_surface_wording", "title": "IwoooS / AwoooP 資安可視區塊維持繁體中文呈現", diff --git a/scripts/security/security-mirror-progress-guard.py b/scripts/security/security-mirror-progress-guard.py index ffa95412f..d22b7c80a 100755 --- a/scripts/security/security-mirror-progress-guard.py +++ b/scripts/security/security-mirror-progress-guard.py @@ -348,6 +348,7 @@ def validate(root: Path) -> None: "s2_97_iwooos_owner_response_formal_record_owner_assignment_outcome_board", "s2_98_iwooos_owner_response_formal_record_owner_assignment_decision_preparation_board", "s2_99_iwooos_owner_response_formal_record_owner_assignment_decision_checklist_board", + "s2_100_iwooos_headline_movement_acceptance_gate_board", ] assert_equal( "progress_delta_ledger.delta_ids", @@ -7391,6 +7392,86 @@ def validate(root: Path) -> None: iwooos_projection_page, text, ) + assert_text_contains( + "iwooos_page.headline_movement_acceptance_gate_items", + iwooos_projection_page, + "headlineMovementAcceptanceGates", + ) + assert_text_contains( + "iwooos_page.headline_movement_acceptance_gate_testid", + iwooos_projection_page, + 'data-testid="iwooos-headline-movement-acceptance-gate-board"', + ) + assert_text_contains( + "iwooos_page.headline_movement_acceptance_gate_component", + iwooos_projection_page, + "HeadlineMovementAcceptanceGateBoard", + ) + for text in [ + "headline_percent_after_this_stage=58", + "headline_movement_signal_count=0", + "owner_response_received_count=0", + "owner_response_accepted_count=0", + "owner_response_acceptance_gate_open=false", + "redacted_payload_ingested=false", + "active_runtime_gate_count=0", + "github_primary_ready_count=0", + "production_landing_enabled=false", + "progress_review_authorized=false", + "runtime_execution_authorized=false", + "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.headline_movement_acceptance_gate_boundary", + iwooos_projection_page, + text, + ) + assert_contains( + "web_messages.zh-TW.iwooos.headlineMovementAcceptanceGate", + list(web_messages_zh["iwooos"].keys()), + "headlineMovementAcceptanceGate", + ) + assert_contains( + "web_messages.en.iwooos.headlineMovementAcceptanceGate", + list(web_messages_en["iwooos"].keys()), + "headlineMovementAcceptanceGate", + ) + for key in ["title", "subtitle", "summary", "items", "boundaryTitle"]: + assert_contains( + "web_messages.zh-TW.iwooos.headlineMovementAcceptanceGate.keys", + list(web_messages_zh["iwooos"]["headlineMovementAcceptanceGate"].keys()), + key, + ) + assert_contains( + "web_messages.en.iwooos.headlineMovementAcceptanceGate.keys", + list(web_messages_en["iwooos"]["headlineMovementAcceptanceGate"].keys()), + key, + ) + for key in [ + "s49OwnerResponseAccepted", + "redactedPayloadAccepted", + "runtimeGateApproved", + "githubPrimaryEvidenceReady", + "awooopProductionLandingProof", + "nextHeadlineReviewRecord", + ]: + assert_contains( + "web_messages.zh-TW.iwooos.headlineMovementAcceptanceGate.items", + list(web_messages_zh["iwooos"]["headlineMovementAcceptanceGate"]["items"].keys()), + key, + ) + assert_contains( + "web_messages.en.iwooos.headlineMovementAcceptanceGate.items", + list(web_messages_en["iwooos"]["headlineMovementAcceptanceGate"]["items"].keys()), + key, + ) for key in [ "title", "subtitle",