diff --git a/apps/web/messages/en.json b/apps/web/messages/en.json index c625c073..5113f618 100644 --- a/apps/web/messages/en.json +++ b/apps/web/messages/en.json @@ -2443,6 +2443,59 @@ "next": "active runtime gates=0; action buttons=false" } } + }, + "hostOwnerDecisionRecordHumanRecordOwnerReviewCandidatePackets": { + "title": "Host Owner Decision Record Human Record Owner Review Candidate Packets", + "subtitle": "Human record owner review candidate packets only organize metadata a future human record owner may need to inspect. They do not start handoff, mark review ready, collect owner decisions, create decision records, create approval records, or open runtime gates.", + "packetLabel": "Review candidate packet", + "guardLabel": "Guardrail", + "items": { + "reviewCandidateIdentity": { + "title": "Review candidate identity packet", + "body": "Organizes candidate id, source readiness outcome, version, trace pointer, and source queue review link so a future human record owner can understand provenance.", + "guard": "review started=0; decision record created=false" + }, + "reviewOwnerBoundary": { + "title": "Review owner boundary packet", + "body": "Organizes human record owner, backup owner, contact channel, and responsibility boundary without treating owner contact as accepted work or a decision.", + "guard": "owner decision received=0; handoff started=0" + }, + "reviewDecisionSummary": { + "title": "Review decision summary packet", + "body": "Organizes candidate decision summary, risk acceptance boundary, and no-execution statement so the review candidate is not mistaken for a formal record.", + "guard": "review ready=0; record accepted=0" + }, + "reviewScopeExpiry": { + "title": "Review scope and expiry packet", + "body": "Organizes host, network, service, exclusion, observation intent, and expiry so the review candidate scope remains readable.", + "guard": "scope review only; runtime gate opened=false" + }, + "reviewScanLimits": { + "title": "Review scan limits packet", + "body": "Organizes observe-only, future active scan, and credentialed scan limits while keeping active scan behind separate approval.", + "guard": "scan authorized=false; action buttons=false" + }, + "reviewCredentialBoundary": { + "title": "Review credential boundary packet", + "body": "Organizes credential owner, retention, masking, and forbidden collection as metadata only; plaintext, token value, and raw secret are not collected.", + "guard": "secret collection=false; raw payload=false" + }, + "reviewMaintenanceRollback": { + "title": "Review maintenance and rollback packet", + "body": "Organizes maintenance window, constraints, rollback owner, recovery path, and human contact without authorizing host change.", + "guard": "host change=false; Kali update=false" + }, + "reviewValidationRuntimeGate": { + "title": "Review validation and runtime gate packet", + "body": "Organizes validation evidence pointer, post-check metrics, and separate runtime gate requirement without opening a gate from the candidate packet.", + "guard": "runtime gate opened=false; runtime execution=false" + }, + "reviewNoExecutionAttestation": { + "title": "Review no-execution attestation packet", + "body": "Fixes not authorization, no execution, no approval, and no runtime gate statements so the review candidate is not mistaken for approval.", + "guard": "not_authorization=true; approval record=false" + } + } } }, "tickets": { diff --git a/apps/web/messages/zh-TW.json b/apps/web/messages/zh-TW.json index 1b02818b..0ee54fa5 100644 --- a/apps/web/messages/zh-TW.json +++ b/apps/web/messages/zh-TW.json @@ -2444,6 +2444,59 @@ "next": "active runtime gates=0;action buttons=false" } } + }, + "hostOwnerDecisionRecordHumanRecordOwnerReviewCandidatePackets": { + "title": "主機 Owner Decision Record Human Record Owner Review Candidate Packets", + "subtitle": "Human record owner review candidate packets 只整理未來人工 record owner 可能需要看的 metadata。它不開始 handoff、不標記 review ready、不收 owner decision、不建立 decision record、不建立 approval record、不開 runtime gate。", + "packetLabel": "Review candidate packet", + "guardLabel": "保護邊界", + "items": { + "reviewCandidateIdentity": { + "title": "Review candidate identity packet", + "body": "整理 candidate id、來源 readiness outcome、版本、trace pointer 與來源 queue review 連結,讓人工 record owner 未來能看懂來源。", + "guard": "review started=0;decision record created=false" + }, + "reviewOwnerBoundary": { + "title": "Review owner boundary packet", + "body": "整理 human record owner、backup owner、聯絡窗口與責任邊界,但不把 owner contact 視為已接案或已決策。", + "guard": "owner decision received=0;handoff started=0" + }, + "reviewDecisionSummary": { + "title": "Review decision summary packet", + "body": "整理候選決策摘要、風險接受邊界與 no-execution statement,避免人工 review 候選被誤讀成正式紀錄。", + "guard": "review ready=0;record accepted=0" + }, + "reviewScopeExpiry": { + "title": "Review scope and expiry packet", + "body": "整理 host、network、service、exclusion、observation intent 與 expiry,讓 review candidate 的範圍維持可讀。", + "guard": "scope review only;runtime gate opened=false" + }, + "reviewScanLimits": { + "title": "Review scan limits packet", + "body": "整理 observe-only、future active scan 與 credentialed scan limits,明確保留 active scan 仍需獨立批准。", + "guard": "scan authorized=false;action buttons=false" + }, + "reviewCredentialBoundary": { + "title": "Review credential boundary packet", + "body": "整理 credential owner、retention、masking 與 forbidden collection,只允許 metadata,不收 plaintext、token value 或 raw secret。", + "guard": "secret collection=false;raw payload=false" + }, + "reviewMaintenanceRollback": { + "title": "Review maintenance and rollback packet", + "body": "整理 maintenance window、constraints、rollback owner、recovery path 與人工聯絡點,但不代表可以變更主機。", + "guard": "host change=false;Kali update=false" + }, + "reviewValidationRuntimeGate": { + "title": "Review validation and runtime gate packet", + "body": "整理 validation evidence pointer、post-check metrics 與獨立 runtime gate requirement,仍不能由 candidate packet 開 gate。", + "guard": "runtime gate opened=false;runtime execution=false" + }, + "reviewNoExecutionAttestation": { + "title": "Review no-execution attestation packet", + "body": "固定 not authorization、no execution、no approval、no runtime gate statement,避免人工 review candidate 被誤解成批准。", + "guard": "not_authorization=true;approval record=false" + } + } } }, "tickets": { diff --git a/apps/web/src/app/[locale]/iwooos/page.tsx b/apps/web/src/app/[locale]/iwooos/page.tsx index 0e1d3d9f..f5fd175a 100644 --- a/apps/web/src/app/[locale]/iwooos/page.tsx +++ b/apps/web/src/app/[locale]/iwooos/page.tsx @@ -264,6 +264,13 @@ type HostOwnerDecisionRecordHumanHandoffReadinessReviewOutcomeLane = { tone: 'steady' | 'warn' | 'locked' } +type HostOwnerDecisionRecordHumanRecordOwnerReviewCandidatePacket = { + 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' }, @@ -633,6 +640,18 @@ const hostOwnerDecisionRecordHumanHandoffReadinessReviewOutcomeLanes: HostOwnerD { key: 'runtimeGateStillRequired', lane: 'FHV9', icon: ShieldCheck, tone: 'locked' }, ] +const hostOwnerDecisionRecordHumanRecordOwnerReviewCandidatePackets: HostOwnerDecisionRecordHumanRecordOwnerReviewCandidatePacket[] = [ + { key: 'reviewCandidateIdentity', packet: 'FHR1', icon: FileText, tone: 'warn' }, + { key: 'reviewOwnerBoundary', packet: 'FHR2', icon: Bell, tone: 'warn' }, + { key: 'reviewDecisionSummary', packet: 'FHR3', icon: ClipboardCheck, tone: 'warn' }, + { key: 'reviewScopeExpiry', packet: 'FHR4', icon: Radar, tone: 'warn' }, + { key: 'reviewScanLimits', packet: 'FHR5', icon: Activity, tone: 'locked' }, + { key: 'reviewCredentialBoundary', packet: 'FHR6', icon: Lock, tone: 'locked' }, + { key: 'reviewMaintenanceRollback', packet: 'FHR7', icon: Clock3, tone: 'warn' }, + { key: 'reviewValidationRuntimeGate', packet: 'FHR8', icon: ShieldCheck, tone: 'locked' }, + { key: 'reviewNoExecutionAttestation', packet: 'FHR9', icon: ListChecks, tone: 'locked' }, +] + const evidenceItems = [ 'iwooos-posture-projection.snapshot.json', 'security-rollout-policy.snapshot.json', @@ -1679,6 +1698,38 @@ function HostOwnerDecisionRecordHumanHandoffReadinessReviewOutcomeCard({ ) } +function HostOwnerDecisionRecordHumanRecordOwnerReviewCandidatePacketCard({ + item, +}: { + item: HostOwnerDecisionRecordHumanRecordOwnerReviewCandidatePacket +}) { + const t = useTranslations('iwooos.hostOwnerDecisionRecordHumanRecordOwnerReviewCandidatePackets') + const Icon = item.icon + return ( +
+
+
+ + {t('packetLabel')} +
+ {item.packet} +
+

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

+

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

+
+
{t('guardLabel')}
+
+ {t(`items.${item.key}.guard` as never)} +
+
+
+ ) +} + export default function IwoooSPage({ params }: { params: { locale: string } }) { const t = useTranslations('iwooos') @@ -2293,6 +2344,28 @@ export default function IwoooSPage({ params }: { params: { locale: string } }) { +
+
+

+ {t('hostOwnerDecisionRecordHumanRecordOwnerReviewCandidatePackets.title')} +

+

+ {t('hostOwnerDecisionRecordHumanRecordOwnerReviewCandidatePackets.subtitle')} +

+
+
+ {hostOwnerDecisionRecordHumanRecordOwnerReviewCandidatePackets.map(item => ( + + ))} +
+
+
None: "s2_38_iwooos_host_owner_decision_record_human_handoff_readiness_packets", "s2_39_iwooos_host_owner_decision_record_human_handoff_readiness_review_checklist", "s2_40_iwooos_host_owner_decision_record_human_handoff_readiness_review_outcome_lanes", + "s2_41_iwooos_host_owner_decision_record_human_record_owner_review_candidate_packets", ] assert_equal( "progress_delta_ledger.delta_ids", @@ -606,6 +607,17 @@ def validate(root: Path) -> None: "host_decision_record_handoff_readiness_review_maintenance_rollback_incomplete_outcome_lane", "host_decision_record_handoff_readiness_review_runtime_gate_required_outcome_lane", ] + expected_iwooos_host_owner_decision_record_human_record_owner_review_candidate_packet_ids = [ + "host_decision_record_human_record_owner_review_candidate_identity_packet", + "host_decision_record_human_record_owner_review_candidate_owner_boundary_packet", + "host_decision_record_human_record_owner_review_candidate_decision_summary_packet", + "host_decision_record_human_record_owner_review_candidate_scope_expiry_packet", + "host_decision_record_human_record_owner_review_candidate_scan_limits_packet", + "host_decision_record_human_record_owner_review_candidate_credential_boundary_packet", + "host_decision_record_human_record_owner_review_candidate_maintenance_rollback_packet", + "host_decision_record_human_record_owner_review_candidate_validation_runtime_gate_packet", + "host_decision_record_human_record_owner_review_candidate_no_execution_attestation_packet", + ] assert_equal( "iwooos_projection.summary.frontend_surface_coverage_group_count", iwooos_projection["summary"]["frontend_surface_coverage_group_count"], @@ -761,6 +773,11 @@ def validate(root: Path) -> None: iwooos_projection["summary"]["host_owner_decision_record_human_handoff_readiness_review_outcome_lane_count"], len(expected_iwooos_host_owner_decision_record_human_handoff_readiness_review_outcome_lane_ids), ) + assert_equal( + "iwooos_projection.summary.host_owner_decision_record_human_record_owner_review_candidate_packet_count", + iwooos_projection["summary"]["host_owner_decision_record_human_record_owner_review_candidate_packet_count"], + len(expected_iwooos_host_owner_decision_record_human_record_owner_review_candidate_packet_ids), + ) iwooos_progress = iwooos_projection["progress"] assert_equal("iwooos_projection.progress.overall_percent", iwooos_progress["overall_percent"], progress["overall_percent"]) assert_equal( @@ -3029,6 +3046,131 @@ def validate(root: Path) -> None: f"iwooos_projection.host_owner_decision_record_human_handoff_readiness_review_outcome_lanes.{item['lane_id']}.not_authorization", item["not_authorization"], ) + iwooos_host_owner_decision_record_human_record_owner_review_candidate_packets = iwooos_projection[ + "host_owner_decision_record_human_record_owner_review_candidate_packets" + ] + assert_equal( + "iwooos_projection.host_owner_decision_record_human_record_owner_review_candidate_packets.ids", + [item["packet_id"] for item in iwooos_host_owner_decision_record_human_record_owner_review_candidate_packets], + expected_iwooos_host_owner_decision_record_human_record_owner_review_candidate_packet_ids, + ) + assert_equal( + "iwooos_projection.host_owner_decision_record_human_record_owner_review_candidate_packets.display_order", + [item["display_order"] for item in iwooos_host_owner_decision_record_human_record_owner_review_candidate_packets], + list( + range( + 1, + len(expected_iwooos_host_owner_decision_record_human_record_owner_review_candidate_packet_ids) + 1, + ) + ), + ) + expected_iwooos_host_owner_decision_record_human_record_owner_review_candidate_fields = [ + "candidate_identity_and_trace", + "human_record_owner_boundary", + "decision_summary_and_no_execution_statement", + "approved_scope_and_expiry_window", + "observe_only_and_future_scan_limits", + "metadata_only_credential_boundary", + "maintenance_constraints_and_rollback_owner", + "validation_evidence_and_independent_runtime_gate", + "no_execution_no_approval_attestation", + ] + assert_equal( + "iwooos_projection.host_owner_decision_record_human_record_owner_review_candidate_packets.review_candidate_fields", + [ + item["review_candidate_field"] + for item in iwooos_host_owner_decision_record_human_record_owner_review_candidate_packets + ], + expected_iwooos_host_owner_decision_record_human_record_owner_review_candidate_fields, + ) + for item in iwooos_host_owner_decision_record_human_record_owner_review_candidate_packets: + assert_equal( + f"iwooos_projection.host_owner_decision_record_human_record_owner_review_candidate_packets.{item['packet_id']}.source_outcome_lane_id", + item["source_outcome_lane_id"], + "host_decision_record_handoff_readiness_review_ready_for_human_record_owner_review_candidate_outcome_lane", + ) + assert_equal( + f"iwooos_projection.host_owner_decision_record_human_record_owner_review_candidate_packets.{item['packet_id']}.display_mode", + item["display_mode"], + "owner_decision_record_human_record_owner_review_candidate_packet_only", + ) + assert_equal( + f"iwooos_projection.host_owner_decision_record_human_record_owner_review_candidate_packets.{item['packet_id']}.human_record_owner_review_started_count", + item["human_record_owner_review_started_count"], + 0, + ) + assert_equal( + f"iwooos_projection.host_owner_decision_record_human_record_owner_review_candidate_packets.{item['packet_id']}.human_record_owner_review_ready_count", + item["human_record_owner_review_ready_count"], + 0, + ) + assert_equal( + f"iwooos_projection.host_owner_decision_record_human_record_owner_review_candidate_packets.{item['packet_id']}.human_record_owner_handoff_review_passed_count", + item["human_record_owner_handoff_review_passed_count"], + 0, + ) + assert_equal( + f"iwooos_projection.host_owner_decision_record_human_record_owner_review_candidate_packets.{item['packet_id']}.human_record_owner_handoff_started_count", + item["human_record_owner_handoff_started_count"], + 0, + ) + assert_equal( + f"iwooos_projection.host_owner_decision_record_human_record_owner_review_candidate_packets.{item['packet_id']}.human_record_owner_handoff_ready_count", + item["human_record_owner_handoff_ready_count"], + 0, + ) + assert_equal( + f"iwooos_projection.host_owner_decision_record_human_record_owner_review_candidate_packets.{item['packet_id']}.formal_record_queue_review_passed_count", + item["formal_record_queue_review_passed_count"], + 0, + ) + assert_equal( + f"iwooos_projection.host_owner_decision_record_human_record_owner_review_candidate_packets.{item['packet_id']}.formal_record_queue_enqueued_count", + item["formal_record_queue_enqueued_count"], + 0, + ) + assert_false( + f"iwooos_projection.host_owner_decision_record_human_record_owner_review_candidate_packets.{item['packet_id']}.decision_record_created", + item["decision_record_created"], + ) + assert_equal( + f"iwooos_projection.host_owner_decision_record_human_record_owner_review_candidate_packets.{item['packet_id']}.owner_decision_received_count", + item["owner_decision_received_count"], + 0, + ) + assert_equal( + f"iwooos_projection.host_owner_decision_record_human_record_owner_review_candidate_packets.{item['packet_id']}.owner_decision_accepted_count", + item["owner_decision_accepted_count"], + 0, + ) + assert_false( + f"iwooos_projection.host_owner_decision_record_human_record_owner_review_candidate_packets.{item['packet_id']}.owner_approval_record_created", + item["owner_approval_record_created"], + ) + assert_false( + f"iwooos_projection.host_owner_decision_record_human_record_owner_review_candidate_packets.{item['packet_id']}.runtime_gate_opened", + item["runtime_gate_opened"], + ) + assert_false( + f"iwooos_projection.host_owner_decision_record_human_record_owner_review_candidate_packets.{item['packet_id']}.raw_payload_allowed", + item["raw_payload_allowed"], + ) + assert_false( + f"iwooos_projection.host_owner_decision_record_human_record_owner_review_candidate_packets.{item['packet_id']}.secret_value_collection_allowed", + item["secret_value_collection_allowed"], + ) + assert_false( + f"iwooos_projection.host_owner_decision_record_human_record_owner_review_candidate_packets.{item['packet_id']}.runtime_execution_authorized", + item["runtime_execution_authorized"], + ) + assert_false( + f"iwooos_projection.host_owner_decision_record_human_record_owner_review_candidate_packets.{item['packet_id']}.action_buttons_allowed", + item["action_buttons_allowed"], + ) + assert_true( + f"iwooos_projection.host_owner_decision_record_human_record_owner_review_candidate_packets.{item['packet_id']}.not_authorization", + item["not_authorization"], + ) assert_equal( "iwooos_projection.non_blocking_lane_ids", iwooos_projection["non_blocking_lane_ids"], @@ -3078,6 +3220,7 @@ def validate(root: Path) -> None: "display_host_owner_decision_record_human_handoff_readiness_packets", "display_host_owner_decision_record_human_handoff_readiness_review_checklist", "display_host_owner_decision_record_human_handoff_readiness_review_outcome_lanes", + "display_host_owner_decision_record_human_record_owner_review_candidate_packets", "display_evidence_refs", "display_forbidden_actions", ]: @@ -3198,6 +3341,12 @@ def validate(root: Path) -> None: "start_human_record_owner_handoff_from_readiness_review_outcome", "create_host_owner_decision_record_from_handoff_readiness_review_outcome", "open_runtime_gate_from_handoff_readiness_review_outcome", + "treat_host_owner_decision_record_human_record_owner_review_candidate_packet_as_approval", + "start_human_record_owner_review_from_candidate_packet", + "mark_human_record_owner_review_ready_from_candidate_packet", + "collect_owner_decision_from_human_record_owner_review_candidate_packet", + "create_host_owner_decision_record_from_human_record_owner_review_candidate_packet", + "open_runtime_gate_from_human_record_owner_review_candidate_packet", "apply_runtime_blocking_control", "switch_github_primary", "production_deploy",