diff --git a/apps/web/messages/en.json b/apps/web/messages/en.json index ed33d9017..2895b6d04 100644 --- a/apps/web/messages/en.json +++ b/apps/web/messages/en.json @@ -1758,6 +1758,49 @@ "next": "active runtime gates=0; action buttons=false" } } + }, + "hostOwnerDecisionRecordDrafts": { + "title": "Host Owner Decision Record Draft Packets", + "subtitle": "When owner review outcome enters the ready lane, IwoooS can still only display decision record draft fields. It does not create records, mark acceptance, or open runtime gates.", + "packetLabel": "Draft packet", + "metadataLabel": "Required metadata", + "items": { + "scopeStatementDraft": { + "title": "Scope statement draft", + "body": "The draft only organizes hosts, networks, services, exclusions, and observation intent so the owner decision does not stay ambiguous.", + "metadata": "host / network / service / exclusion; record created=false" + }, + "scanModeDraft": { + "title": "Scan mode draft", + "body": "The draft only describes observe-only, future active scan, or credentialed scan candidate modes. It is not scan approval.", + "metadata": "mode candidate; active scan=false" + }, + "credentialBoundaryDraft": { + "title": "Credential boundary draft", + "body": "The draft only keeps credential handling metadata, owner, and retention boundary. It does not collect sensitive material.", + "metadata": "metadata-only boundary; secret collection=false" + }, + "maintenanceConstraintsDraft": { + "title": "Maintenance constraints draft", + "body": "The draft only records future maintenance window candidates, constraints, and impact boundaries. It is not host update approval.", + "metadata": "window / constraint; host update=false" + }, + "rollbackOwnerDraft": { + "title": "Rollback owner draft", + "body": "The draft only organizes rollback owner, recovery path, and human contact so later gates have accountability.", + "metadata": "owner / recovery pointer; approval record=false" + }, + "validationMetricsDraft": { + "title": "Validation metrics draft", + "body": "The draft only lists post-check metrics, baseline, and evidence pointer for later human interpretation.", + "metadata": "metrics / baseline; accepted=0" + }, + "runtimeGateDraft": { + "title": "Runtime gate draft", + "body": "The draft only states that later approval must still open a separate follow-up runtime gate and cannot execute from the draft.", + "metadata": "runtime gate pointer; active gates=0" + } + } } }, "tickets": { diff --git a/apps/web/messages/zh-TW.json b/apps/web/messages/zh-TW.json index 460b83bc7..2b2406cda 100644 --- a/apps/web/messages/zh-TW.json +++ b/apps/web/messages/zh-TW.json @@ -1759,6 +1759,49 @@ "next": "active runtime gates=0;action buttons=false" } } + }, + "hostOwnerDecisionRecordDrafts": { + "title": "主機 Owner Decision Record Draft Packets", + "subtitle": "Owner review outcome 若進入 ready lane,IwoooS 也只能顯示 decision record 草稿欄位。不建立 record、不標示 accepted、不開 runtime gate。", + "packetLabel": "Draft packet", + "metadataLabel": "必要 metadata", + "items": { + "scopeStatementDraft": { + "title": "Scope statement draft", + "body": "草稿只整理主機、網段、服務、排除範圍與觀察目的,避免 owner decision 模糊。", + "metadata": "host / network / service / exclusion;record created=false" + }, + "scanModeDraft": { + "title": "Scan mode draft", + "body": "草稿只描述 observe-only、future active scan 或 credentialed scan 的候選模式,不代表掃描批准。", + "metadata": "mode candidate;active scan=false" + }, + "credentialBoundaryDraft": { + "title": "Credential boundary draft", + "body": "草稿只保留 credential handling 的 metadata、owner 與保存邊界,不收集敏感素材。", + "metadata": "metadata-only boundary;secret collection=false" + }, + "maintenanceConstraintsDraft": { + "title": "Maintenance constraints draft", + "body": "草稿只記錄未來可能維護窗口、限制條件與不可影響範圍,不代表可以更新主機。", + "metadata": "window / constraint;host update=false" + }, + "rollbackOwnerDraft": { + "title": "Rollback owner draft", + "body": "草稿只整理 rollback owner、復原路徑與人工聯絡點,讓後續 gate 不缺責任人。", + "metadata": "owner / recovery pointer;approval record=false" + }, + "validationMetricsDraft": { + "title": "Validation metrics draft", + "body": "草稿只列出 post-check metrics、baseline 與 evidence pointer,供未來人工判讀。", + "metadata": "metrics / baseline;accepted=0" + }, + "runtimeGateDraft": { + "title": "Runtime gate draft", + "body": "草稿只標示若未來批准,仍需另開 follow-up runtime gate,不能由草稿直接執行。", + "metadata": "runtime gate pointer;active gates=0" + } + } } }, "tickets": { diff --git a/apps/web/src/app/[locale]/iwooos/page.tsx b/apps/web/src/app/[locale]/iwooos/page.tsx index bb71e83ce..4edbfbd06 100644 --- a/apps/web/src/app/[locale]/iwooos/page.tsx +++ b/apps/web/src/app/[locale]/iwooos/page.tsx @@ -158,6 +158,13 @@ type HostOwnerDecisionReviewOutcomeLane = { tone: 'steady' | 'warn' | 'locked' } +type HostOwnerDecisionRecordDraftPacket = { + key: string + packet: string + icon: typeof ShieldCheck + tone: 'steady' | 'warn' | 'locked' +} + const postureMetrics: PostureMetric[] = [ { key: 'overall', value: '58%', tone: 'warn' }, { key: 'framework', value: '80-85%', tone: 'steady' }, @@ -369,6 +376,16 @@ const hostOwnerDecisionReviewOutcomeLanes: HostOwnerDecisionReviewOutcomeLane[] { key: 'runtimeGateRequired', lane: 'U7', icon: ShieldCheck, tone: 'locked' }, ] +const hostOwnerDecisionRecordDraftPackets: HostOwnerDecisionRecordDraftPacket[] = [ + { key: 'scopeStatementDraft', packet: 'DR1', icon: Radar, tone: 'warn' }, + { key: 'scanModeDraft', packet: 'DR2', icon: Activity, tone: 'locked' }, + { key: 'credentialBoundaryDraft', packet: 'DR3', icon: Lock, tone: 'locked' }, + { key: 'maintenanceConstraintsDraft', packet: 'DR4', icon: Clock3, tone: 'warn' }, + { key: 'rollbackOwnerDraft', packet: 'DR5', icon: FileWarning, tone: 'warn' }, + { key: 'validationMetricsDraft', packet: 'DR6', icon: CheckCircle2, tone: 'warn' }, + { key: 'runtimeGateDraft', packet: 'DR7', icon: ShieldCheck, tone: 'locked' }, +] + const evidenceItems = [ 'iwooos-posture-projection.snapshot.json', 'security-rollout-policy.snapshot.json', @@ -951,6 +968,34 @@ function HostOwnerDecisionReviewOutcomeCard({ item }: { item: HostOwnerDecisionR ) } +function HostOwnerDecisionRecordDraftCard({ item }: { item: HostOwnerDecisionRecordDraftPacket }) { + const t = useTranslations('iwooos.hostOwnerDecisionRecordDrafts') + const Icon = item.icon + return ( +
+ {t(`items.${item.key}.body` as never)} +
++ {t('hostOwnerDecisionRecordDrafts.subtitle')} +
+