From d6120f77cc86737a66417d810b19c08e49b95ef5 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 24 May 2026 11:59:55 +0800 Subject: [PATCH] feat(web): add s49 owner response work order --- apps/web/messages/en.json | 64 +++++++ apps/web/messages/zh-TW.json | 64 +++++++ apps/web/src/app/[locale]/iwooos/page.tsx | 165 ++++++++++++++++++ docs/LOGBOOK.md | 15 ++ .../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, 422 insertions(+), 1 deletion(-) diff --git a/apps/web/messages/en.json b/apps/web/messages/en.json index 21fecc632..1cb3b8b06 100644 --- a/apps/web/messages/en.json +++ b/apps/web/messages/en.json @@ -4517,6 +4517,70 @@ } } }, + "s49OwnerResponseWorkOrder": { + "title": "S4.9 Owner Response 人工收件工作單", + "subtitle": "S2.101 把第一個真正能推動 58% 的 S4.9 回覆收件格式放到 IwoooS:每項都要包含 owner role/team、decision、decision reason、受影響 scope、脫敏 evidence refs 與 follow-up owner。這裡只是人工收件工作單,不送出 request、不收件、不標記 received / accepted。", + "itemLabel": "收件項目", + "requiredFieldsLabel": "必填欄位", + "acceptanceLabel": "驗收方式", + "guardLabel": "仍禁止", + "boundaryTitle": "S4.9 收件邊界", + "summary": { + "items": { + "label": "工作項", + "detail": "五個 S4.9 owner response 項目仍全部未收。" + }, + "fields": { + "label": "每項必填", + "detail": "六個欄位缺一不可,避免口頭同意被誤收。" + }, + "received": { + "label": "已收到", + "detail": "目前仍是 0,不把工作單當回覆。" + }, + "accepted": { + "label": "已接受", + "detail": "目前仍是 0,五項通過前不得 accepted。" + } + }, + "items": { + "scopeGapResponse": { + "title": "Public-only / local gap 回覆", + "body": "請 owner 判定 public-only 與 local Gitea 差異是否納入本輪 inventory / migration scope。", + "requiredFields": "owner role/team、decision、decision reason、affected scope、redacted evidence refs、follow-up owner。", + "acceptance": "decision 必須落在 in scope、out of scope、legacy archived、external system、inaccessible 或 needs more evidence。", + "guard": "不建立 repo、不讀私有內容、不同步 refs、不把差異判定當 migration approval。" + }, + "endpointIdentityResponse": { + "title": "Gitea `wooo` endpoint 身分回覆", + "body": "請 owner 判定 `wooo` 應以 user、org 或雙重來源盤點,避免把 endpoint 404 誤讀成不存在。", + "requiredFields": "owner role/team、canonical endpoint identity、decision reason、affected endpoint、redacted evidence refs、follow-up owner。", + "acceptance": "必須能追溯到已知 endpoint evidence,且不得含 token、cookie、private URL credential 或 admin API payload。", + "guard": "不呼叫 Gitea admin API、不使用 token、不把 endpoint 身分當 inventory completed。" + }, + "adjacentSourceResponse": { + "title": "110 adjacent source scope 回覆", + "body": "請 owner 判定 `bitan-pharmacy`、`root/momo-pro-system`、`tsenyang-website`、`wooo/wooo-infra-config` 是否納入本輪 scope。", + "requiredFields": "owner role/team、per-source decision、decision reason、affected source、redacted evidence refs、follow-up owner。", + "acceptance": "逐項標示 in scope、out of scope、legacy、external、inaccessible 或 needs more evidence,並保留脫敏 trace。", + "guard": "不讀取私有 repo 內容、不匯入 archive、不把 110 adjacent source 自動納入 migration。" + }, + "canonicalOwnerResponse": { + "title": "Repo owner / canonical scope 回覆", + "body": "請 owner 為 in-scope repo 指定 canonical source、GitHub target candidate、visibility review owner 與理由。", + "requiredFields": "owner role/team、canonical source、GitHub target candidate、visibility review owner、redacted evidence refs、follow-up owner。", + "acceptance": "target candidate 只能作為 readiness evidence,需後續 S4.10 / S4.11 / S4.12 驗收後才可進 primary review。", + "guard": "不建立 GitHub repo、不改 visibility、不切 primary、不把 target candidate 當 approval。" + }, + "legacyDispositionResponse": { + "title": "Legacy / inaccessible disposition 回覆", + "body": "請 owner 對 legacy、inaccessible 或 external repo 留下 disposition、理由與後續負責人。", + "requiredFields": "owner role/team、disposition、decision reason、affected repo/source、redacted evidence refs、follow-up owner。", + "acceptance": "disposition 只能是 archive candidate、exclude、follow-up evidence、external owner 或 needs more evidence。", + "guard": "不刪除、不停用、不封存 repo;disposition 只是人工分類,不是執行命令。" + } + } + }, "s49OwnerResponsePreflight": { "title": "S4.9 Owner Response Intake Preflight", "subtitle": "S2.48 surfaces the 6 S4.9 intake preflight checks in IwoooS: known attestation item, complete fields, allowed decision, redacted evidence, no execution request, and no accepted state until all five items are covered. This is preflight display only: no request send, received marking, or audit event creation.", diff --git a/apps/web/messages/zh-TW.json b/apps/web/messages/zh-TW.json index 9ae3e5327..a7e97babe 100644 --- a/apps/web/messages/zh-TW.json +++ b/apps/web/messages/zh-TW.json @@ -4518,6 +4518,70 @@ } } }, + "s49OwnerResponseWorkOrder": { + "title": "S4.9 Owner Response 人工收件工作單", + "subtitle": "S2.101 把第一個真正能推動 58% 的 S4.9 回覆收件格式放到 IwoooS:每項都要包含 owner role/team、decision、decision reason、受影響 scope、脫敏 evidence refs 與 follow-up owner。這裡只是人工收件工作單,不送出 request、不收件、不標記 received / accepted。", + "itemLabel": "收件項目", + "requiredFieldsLabel": "必填欄位", + "acceptanceLabel": "驗收方式", + "guardLabel": "仍禁止", + "boundaryTitle": "S4.9 收件邊界", + "summary": { + "items": { + "label": "工作項", + "detail": "五個 S4.9 owner response 項目仍全部未收。" + }, + "fields": { + "label": "每項必填", + "detail": "六個欄位缺一不可,避免口頭同意被誤收。" + }, + "received": { + "label": "已收到", + "detail": "目前仍是 0,不把工作單當回覆。" + }, + "accepted": { + "label": "已接受", + "detail": "目前仍是 0,五項通過前不得 accepted。" + } + }, + "items": { + "scopeGapResponse": { + "title": "Public-only / local gap 回覆", + "body": "請 owner 判定 public-only 與 local Gitea 差異是否納入本輪 inventory / migration scope。", + "requiredFields": "owner role/team、decision、decision reason、affected scope、redacted evidence refs、follow-up owner。", + "acceptance": "decision 必須落在 in scope、out of scope、legacy archived、external system、inaccessible 或 needs more evidence。", + "guard": "不建立 repo、不讀私有內容、不同步 refs、不把差異判定當 migration approval。" + }, + "endpointIdentityResponse": { + "title": "Gitea `wooo` endpoint 身分回覆", + "body": "請 owner 判定 `wooo` 應以 user、org 或雙重來源盤點,避免把 endpoint 404 誤讀成不存在。", + "requiredFields": "owner role/team、canonical endpoint identity、decision reason、affected endpoint、redacted evidence refs、follow-up owner。", + "acceptance": "必須能追溯到已知 endpoint evidence,且不得含 token、cookie、private URL credential 或 admin API payload。", + "guard": "不呼叫 Gitea admin API、不使用 token、不把 endpoint 身分當 inventory completed。" + }, + "adjacentSourceResponse": { + "title": "110 adjacent source scope 回覆", + "body": "請 owner 判定 `bitan-pharmacy`、`root/momo-pro-system`、`tsenyang-website`、`wooo/wooo-infra-config` 是否納入本輪 scope。", + "requiredFields": "owner role/team、per-source decision、decision reason、affected source、redacted evidence refs、follow-up owner。", + "acceptance": "逐項標示 in scope、out of scope、legacy、external、inaccessible 或 needs more evidence,並保留脫敏 trace。", + "guard": "不讀取私有 repo 內容、不匯入 archive、不把 110 adjacent source 自動納入 migration。" + }, + "canonicalOwnerResponse": { + "title": "Repo owner / canonical scope 回覆", + "body": "請 owner 為 in-scope repo 指定 canonical source、GitHub target candidate、visibility review owner 與理由。", + "requiredFields": "owner role/team、canonical source、GitHub target candidate、visibility review owner、redacted evidence refs、follow-up owner。", + "acceptance": "target candidate 只能作為 readiness evidence,需後續 S4.10 / S4.11 / S4.12 驗收後才可進 primary review。", + "guard": "不建立 GitHub repo、不改 visibility、不切 primary、不把 target candidate 當 approval。" + }, + "legacyDispositionResponse": { + "title": "Legacy / inaccessible disposition 回覆", + "body": "請 owner 對 legacy、inaccessible 或 external repo 留下 disposition、理由與後續負責人。", + "requiredFields": "owner role/team、disposition、decision reason、affected repo/source、redacted evidence refs、follow-up owner。", + "acceptance": "disposition 只能是 archive candidate、exclude、follow-up evidence、external owner 或 needs more evidence。", + "guard": "不刪除、不停用、不封存 repo;disposition 只是人工分類,不是執行命令。" + } + } + }, "s49OwnerResponsePreflight": { "title": "S4.9 Owner Response 收件前 Preflight", "subtitle": "S2.48 把 S4.9 的 6 個收件前檢查拉到 IwoooS:先確認回覆是否對應已知 attestation item、欄位完整、decision 合法、evidence 脫敏、沒有執行要求,且五個 items 到齊前不得 accepted。這裡只顯示 preflight,不寄送 request、不標記 received、不建立 audit event。", diff --git a/apps/web/src/app/[locale]/iwooos/page.tsx b/apps/web/src/app/[locale]/iwooos/page.tsx index 0c60f9ff9..26f4143bd 100644 --- a/apps/web/src/app/[locale]/iwooos/page.tsx +++ b/apps/web/src/app/[locale]/iwooos/page.tsx @@ -96,6 +96,14 @@ type S49OwnerResponseRequestTemplate = { tone: 'steady' | 'warn' | 'locked' } +type S49OwnerResponseWorkOrderItem = { + key: string + item: string + value: string + icon: typeof ShieldCheck + tone: 'steady' | 'warn' | 'locked' +} + type Pillar = { key: string icon: typeof ShieldCheck @@ -640,6 +648,37 @@ const s49OwnerResponseRequestTemplates: S49OwnerResponseRequestTemplate[] = [ { key: 'legacyOrInaccessibleDisposition', template: 'T5', icon: FileWarning, tone: 'locked' }, ] +const s49OwnerResponseWorkOrderItems: S49OwnerResponseWorkOrderItem[] = [ + { key: 'scopeGapResponse', item: 'W1', value: '未收', icon: GitBranch, tone: 'warn' }, + { key: 'endpointIdentityResponse', item: 'W2', value: '未收', icon: SearchCheck, tone: 'warn' }, + { key: 'adjacentSourceResponse', item: 'W3', value: '未收', icon: Radar, tone: 'warn' }, + { key: 'canonicalOwnerResponse', item: 'W4', value: '未收', icon: ClipboardCheck, tone: 'warn' }, + { key: 'legacyDispositionResponse', item: 'W5', value: '未收', icon: FileWarning, tone: 'locked' }, +] + +const s49OwnerResponseWorkOrderBoundaries = [ + 's4_9_owner_response_work_order_item_count=5', + 's4_9_owner_response_required_field_count=6', + 's4_9_owner_response_received_count=0', + 's4_9_owner_response_accepted_count=0', + 's4_9_owner_response_rejected_count=0', + 's4_9_owner_response_request_sent=false', + 's4_9_owner_response_intake_open=false', + 'owner_response_acceptance_gate_open=false', + 'audit_events_emitted=0', + 'progress_review_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 posturePillars: Pillar[] = [ { key: 'exposure', icon: Radar, tone: 'warn' }, { key: 'sourceControl', icon: GitBranch, tone: 'warn' }, @@ -2150,6 +2189,130 @@ function S49OwnerResponseRequestTemplateCard({ item }: { item: S49OwnerResponseR ) } +function S49OwnerResponseWorkOrderCard({ item }: { item: S49OwnerResponseWorkOrderItem }) { + const t = useTranslations('iwooos.s49OwnerResponseWorkOrder') + const Icon = item.icon + const textWrap = { overflowWrap: 'anywhere' as const, wordBreak: 'break-word' as const } + return ( +
+
+
+ + {t('itemLabel')} +
+ {item.item} +
+
+ {item.value} +
+

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

+

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

+
+ {t('requiredFieldsLabel')} + + {t(`items.${item.key}.requiredFields` as never)} + + {t('acceptanceLabel')} + + {t(`items.${item.key}.acceptance` as never)} + + {t('guardLabel')} + + {t(`items.${item.key}.guard` as never)} + +
+
+ ) +} + +function S49OwnerResponseWorkOrderBoard() { + const t = useTranslations('iwooos.s49OwnerResponseWorkOrder') + const summaryItems = [ + { key: 'items', value: '5', tone: 'warn' as const }, + { key: 'fields', value: '6', tone: 'steady' as const }, + { key: 'received', value: '0', tone: 'locked' as const }, + { key: 'accepted', 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)} +

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

{t('boundaryTitle')}

+
+
+ {s49OwnerResponseWorkOrderBoundaries.map(item => ( + + {item} + + ))} +
+
+
+ ) +} + function PillarCard({ item }: { item: Pillar }) { const t = useTranslations('iwooos.pillars') const Icon = item.icon @@ -5888,6 +6051,8 @@ export default function IwoooSPage({ params }: { params: { locale: string } }) { + +

{t('sourceControlReadiness.title')}

diff --git a/docs/LOGBOOK.md b/docs/LOGBOOK.md index 8b6168293..f136f3795 100644 --- a/docs/LOGBOOK.md +++ b/docs/LOGBOOK.md @@ -1,3 +1,18 @@ +## 2026-05-24 | 資安供應鏈 S2.101:IwoooS S4.9 Owner Response 人工收件工作單 + +**背景**:S2.100 已把 58% 重估驗收閘門放到 IwoooS;本輪接著把第一個真正能推動 headline 的 S4.9 owner response 轉成可交付、可檢查、可拒收的人工收件工作單,避免只知道「要收 owner response」但不知道實際要填什麼。 + +**完成**: +- `/iwooos` 新增「S4.9 Owner Response 人工收件工作單」,顯示 public-only / local gap 回覆、Gitea `wooo` endpoint 身分回覆、110 adjacent source scope 回覆、repo owner / canonical scope 回覆、legacy / inaccessible disposition 回覆五個收件項。 +- 每個收件項都明確列出六個必填欄位:owner role/team、decision / disposition、decision reason、受影響 scope、脫敏 evidence refs、follow-up owner。 +- 看板固定顯示收件項=5、每項必填欄位=6、已收到=0、已接受=0,並標示 `s4_9_owner_response_request_sent=false`、`s4_9_owner_response_intake_open=false`、`owner_response_acceptance_gate_open=false`、`audit_events_emitted=0`、`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_101_iwooos_s49_owner_response_work_order_board` 與 `show_iwooos_s49_owner_response_work_order_board`。 +- `security-mirror-progress-guard.py` 已納入 S4.9 人工收件工作單看板、i18n 鍵、五個收件項與 false 邊界檢查。 + +**仍禁止**: +- S2.101 是 IwoooS 只讀人工收件工作單,不代表 request 已送出、owner response 已收到 / 已接受、audit event emitted、人工批准、審批紀錄建立、資安審批、機密明文值收集、Kali `/execute`、SSH 登入、主機更新、掃描 / 執行 / 修復、專案庫建立、分支 / 標籤參照同步、工作流程 / 機密設定修改、GitHub 主要來源切換、AwoooP production landing、Gitea 停用或執行期閘門。 +- 整體資安網百分比仍是 58%;真正推動下一輪重估仍需實際 owner response evidence 通過 S4.9 preflight 與 S4.13 validation rollup。 + ## 2026-05-24 | 資安供應鏈 S2.100:IwoooS 58% 重估驗收閘門 **背景**:使用者指出整體進度長時間停在 58%,需要把「不是卡住,而是缺少哪些可讓 headline 往前的實質 evidence」直接呈現在前端與進度契約中。本輪不硬拉高整體百分比,而是將下一次 headline review 的驗收規則固定成只讀看板,避免把框架層堆疊誤認成落地進度。 diff --git a/docs/security/SECURITY-MIRROR-STATUS-ROLLUP.md b/docs/security/SECURITY-MIRROR-STATUS-ROLLUP.md index 9237831fd..f6224ec07 100644 --- a/docs/security/SECURITY-MIRROR-STATUS-ROLLUP.md +++ b/docs/security/SECURITY-MIRROR-STATUS-ROLLUP.md @@ -44,6 +44,7 @@ | 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 / 主機更新或執行期授權 | +| IwoooS S4.9 人工收件工作單 | S2.101 已在 `/iwooos` 顯示 S4.9 Owner Response 人工收件工作單;收件項=5、每項必填欄位=6、已收到=0、已接受=0、已拒收=0;`s4_9_owner_response_request_sent=false`、`s4_9_owner_response_intake_open=false`、`owner_response_acceptance_gate_open=false`、`audit_events_emitted=0`、`progress_review_authorized=false`、`runtime_execution_authorized=false`、`active_runtime_gate_count=0`、`action_buttons_allowed=false`、`not_authorization=true`,仍不代表 request sent、owner response received / accepted、audit event emitted、人工批准、GitHub 主要來源切換、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 | @@ -229,6 +230,7 @@ | 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 / 主機更新或執行期授權 | +| S2.101 IwoooS S4.9 Owner Response 人工收件工作單 | framework detail | 0 | 只在 `/iwooos` 顯示 S4.9 Owner Response 人工收件工作單,呈現 public-only / local gap 回覆、Gitea wooo endpoint 身分回覆、110 adjacent source scope 回覆、repo owner / canonical scope 回覆、legacy / inaccessible disposition 回覆五個收件項;s4_9_owner_response_work_order_item_count=5、s4_9_owner_response_required_field_count=6、s4_9_owner_response_received_count=0、s4_9_owner_response_accepted_count=0、s4_9_owner_response_rejected_count=0、s4_9_owner_response_request_sent=false、s4_9_owner_response_intake_open=false、owner_response_acceptance_gate_open=false、audit_events_emitted=0、progress_review_authorized=false、runtime_execution_authorized=false、active_runtime_gate_count=0、action_buttons_allowed=false、not_authorization=true,不把人工收件工作單當 request sent、owner response received / accepted、audit event emitted、人工批准、審批紀錄、專案庫建立、分支 / 標籤參照同步、工作流程 / 機密設定修改、主要來源切換、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 be3604c37..bce1be9aa 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.100 IwoooS / AwoooP 資安投影契約都是有效進展,但它們是框架細節,不是負責人回覆、執行期閘門、生產匯入或 GitHub 主要來源就緒。因此整體百分比仍維持 58%,避免把只讀框架誤算成已落地執行。 +近期 S4.10 請求包、範本狀態台帳、稽核事件範本、脫敏範例、收件檢查、收件預檢,S4.11 請求包 / 範本狀態台帳 / 稽核事件範本 / 脫敏範例 / 收件檢查 / 收件預檢,S4.12 請求包 / 範本狀態台帳 / 稽核事件範本 / 脫敏範例 / 收件檢查 / 收件預檢,S4.13 證據路由規則 / 顯示區塊 / 狀態轉移規則 / 審查清單 / 審查結果分流 / 審查稽核事件範本 / 審查稽核顯示區塊 / 審查稽核收件檢查 / 審查稽核脫敏範例 / 審查稽核保留規則 / 審查稽核保留檢查 / 審查稽核交接包 / 交接檢查 / 平行 Session 同步檢查 / 衝突分流 / 復原檢查 / 復原結果分流,S1.3 低摩擦非阻擋升級分流、S2.8 IwoooS 前端態勢入口,以及 S2.9-S2.101 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 不應被灌水提高。 @@ -163,6 +163,7 @@ S2.50 也把「為什麼 58% 還不動」拆成五個可見 gate:owner respons | 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 | +| S2.101 IwoooS S4.9 Owner Response 人工收件工作單 | 已完成草案,在 `/iwooos` 顯示五個 S4.9 owner response 收件項、每項六個必填欄位、已收到=0、已接受=0、已拒收=0;仍不把人工收件工作單當成 request sent、owner response received / accepted、audit event emitted、人工批准、主要來源切換或執行期閘門 | 0 | headline 要再往上,需要 S4.9 / S4.10 / S4.11 / S4.12 任一 owner response 收到並通過脫敏驗收,或人工批准後出現 active runtime gate、redacted payload ingestion、GitHub primary readiness 這類落地 evidence。 @@ -282,6 +283,7 @@ headline 要再往上,需要 S4.9 / S4.10 / S4.11 / S4.12 任一 owner respons | 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 或執行期閘門 | +| S2.101 IwoooS S4.9 Owner Response 人工收件工作單 | 完成草案 | `/iwooos` 新增 S4.9 Owner Response 人工收件工作單,看板列出 public-only / local gap、Gitea `wooo` endpoint 身分、110 adjacent source scope、repo owner / canonical scope、legacy / inaccessible disposition 五項回覆與六個必填欄位 | 使用者與另一個 AwoooP Session 能直接知道第一個會推動 58% 的 S4.9 owner response 要怎麼填、怎麼驗收與怎麼拒收;工作單仍不是 request sent、owner response received / accepted、audit event emitted、人工批准、主要來源切換或執行期閘門 | | 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 6cb130270..f5b677676 100644 --- a/docs/security/security-mirror-status-rollup.snapshot.json +++ b/docs/security/security-mirror-status-rollup.snapshot.json @@ -1670,6 +1670,18 @@ "runtime_delta": false, "execution_authorized": false, "not_authorization": true + }, + { + "delta_id": "s2_101_iwooos_s49_owner_response_work_order_board", + "display_order": 130, + "completed_stage": "S2.101 IwoooS S4.9 Owner Response 人工收件工作單", + "progress_axis": "framework_detail", + "headline_percent_delta": 0, + "framework_delta_visible": true, + "why_headline_unchanged": "IwoooS 只新增 S4.9 Owner Response 人工收件工作單看板,顯示 public-only / local gap 回覆、Gitea wooo endpoint 身分回覆、110 adjacent source scope 回覆、repo owner / canonical scope 回覆、legacy / inaccessible disposition 回覆五個收件項,並固定每項必填欄位=6、已收到=0、已接受=0、已拒收=0;s4_9_owner_response_request_sent=false、s4_9_owner_response_intake_open=false、owner_response_acceptance_gate_open=false、audit_events_emitted=0、progress_review_authorized=false、runtime_execution_authorized=false、active_runtime_gate_count=0、action_buttons_allowed=false,不把人工收件工作單當 request sent、owner response received / accepted、audit event emitted、progress review、專案庫 / 分支與標籤參照 / 工作流程 / 機密設定、主要來源切換或執行期授權。", + "runtime_delta": false, + "execution_authorized": false, + "not_authorization": true } ], "next_safe_actions": [ @@ -2426,6 +2438,22 @@ "從重估閘門呼叫 Kali、開 SSH、更新主機、切 GitHub 主要來源、停用 Gitea、收機密明文值或開執行期閘門" ] }, + { + "action_id": "show_iwooos_s49_owner_response_work_order_board", + "title": "IwoooS 顯示 S4.9 Owner Response 人工收件工作單", + "mode": "observe", + "source_contract": "source_control_owner_response_validation_rollup_v1", + "allowed_processing": [ + "在 /iwooos 顯示 S2.101 S4.9 Owner Response 人工收件工作單", + "顯示 public-only / local gap、Gitea wooo endpoint 身分、110 adjacent source scope、repo owner / canonical scope、legacy / inaccessible disposition 五個只讀收件項與六個必填欄位", + "只讓人工知道第一個可推動 headline 的 owner response 要怎麼填與怎麼驗收,不自動送出 request、不標記 received / accepted、不建立 audit event、不開 progress review" + ], + "blocked_processing": [ + "把 S4.9 人工收件工作單當 request sent、owner response received / accepted、audit event emitted、人工批准、正式審批紀錄或 progress delta", + "從 S4.9 人工收件工作單建立專案庫、改可見性、同步 / 刪除 / 強制推送分支或標籤參照,或修改工作流程 / 機密設定", + "從 S4.9 人工收件工作單呼叫 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 d22b7c80a..2edb3ea54 100755 --- a/scripts/security/security-mirror-progress-guard.py +++ b/scripts/security/security-mirror-progress-guard.py @@ -349,6 +349,7 @@ def validate(root: Path) -> None: "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", + "s2_101_iwooos_s49_owner_response_work_order_board", ] assert_equal( "progress_delta_ledger.delta_ids", @@ -7472,6 +7473,86 @@ def validate(root: Path) -> None: list(web_messages_en["iwooos"]["headlineMovementAcceptanceGate"]["items"].keys()), key, ) + assert_text_contains( + "iwooos_page.s49_owner_response_work_order_items", + iwooos_projection_page, + "s49OwnerResponseWorkOrderItems", + ) + assert_text_contains( + "iwooos_page.s49_owner_response_work_order_testid", + iwooos_projection_page, + 'data-testid="iwooos-s49-owner-response-work-order-board"', + ) + assert_text_contains( + "iwooos_page.s49_owner_response_work_order_component", + iwooos_projection_page, + "S49OwnerResponseWorkOrderBoard", + ) + for text in [ + "s4_9_owner_response_work_order_item_count=5", + "s4_9_owner_response_required_field_count=6", + "s4_9_owner_response_received_count=0", + "s4_9_owner_response_accepted_count=0", + "s4_9_owner_response_rejected_count=0", + "s4_9_owner_response_request_sent=false", + "s4_9_owner_response_intake_open=false", + "owner_response_acceptance_gate_open=false", + "audit_events_emitted=0", + "progress_review_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.s49_owner_response_work_order_boundary", + iwooos_projection_page, + text, + ) + assert_contains( + "web_messages.zh-TW.iwooos.s49OwnerResponseWorkOrder", + list(web_messages_zh["iwooos"].keys()), + "s49OwnerResponseWorkOrder", + ) + assert_contains( + "web_messages.en.iwooos.s49OwnerResponseWorkOrder", + list(web_messages_en["iwooos"].keys()), + "s49OwnerResponseWorkOrder", + ) + for key in ["title", "subtitle", "summary", "items", "boundaryTitle"]: + assert_contains( + "web_messages.zh-TW.iwooos.s49OwnerResponseWorkOrder.keys", + list(web_messages_zh["iwooos"]["s49OwnerResponseWorkOrder"].keys()), + key, + ) + assert_contains( + "web_messages.en.iwooos.s49OwnerResponseWorkOrder.keys", + list(web_messages_en["iwooos"]["s49OwnerResponseWorkOrder"].keys()), + key, + ) + for key in [ + "scopeGapResponse", + "endpointIdentityResponse", + "adjacentSourceResponse", + "canonicalOwnerResponse", + "legacyDispositionResponse", + ]: + assert_contains( + "web_messages.zh-TW.iwooos.s49OwnerResponseWorkOrder.items", + list(web_messages_zh["iwooos"]["s49OwnerResponseWorkOrder"]["items"].keys()), + key, + ) + assert_contains( + "web_messages.en.iwooos.s49OwnerResponseWorkOrder.items", + list(web_messages_en["iwooos"]["s49OwnerResponseWorkOrder"]["items"].keys()), + key, + ) for key in [ "title", "subtitle",