feat(web): add IwoooS owner decision candidates
This commit is contained in:
@@ -174,6 +174,7 @@ def validate(root: Path) -> None:
|
||||
"s2_20_iwooos_host_evidence_review_handoff_packets",
|
||||
"s2_21_iwooos_host_evidence_reviewer_checklist",
|
||||
"s2_22_iwooos_host_evidence_reviewer_outcome_lanes",
|
||||
"s2_23_iwooos_host_owner_decision_candidate_packets",
|
||||
]
|
||||
assert_equal(
|
||||
"progress_delta_ledger.delta_ids",
|
||||
@@ -418,6 +419,15 @@ def validate(root: Path) -> None:
|
||||
"host_rollback_missing_outcome_lane",
|
||||
"host_runtime_gate_required_outcome_lane",
|
||||
]
|
||||
expected_iwooos_host_owner_decision_candidate_packet_ids = [
|
||||
"host_scope_approval_candidate_packet",
|
||||
"host_scan_mode_candidate_packet",
|
||||
"host_credential_handling_candidate_packet",
|
||||
"host_maintenance_window_candidate_packet",
|
||||
"host_rollback_owner_candidate_packet",
|
||||
"host_validation_metrics_candidate_packet",
|
||||
"host_runtime_gate_candidate_packet",
|
||||
]
|
||||
assert_equal(
|
||||
"iwooos_projection.summary.frontend_surface_coverage_group_count",
|
||||
iwooos_projection["summary"]["frontend_surface_coverage_group_count"],
|
||||
@@ -483,6 +493,11 @@ def validate(root: Path) -> None:
|
||||
iwooos_projection["summary"]["host_evidence_reviewer_outcome_lane_count"],
|
||||
len(expected_iwooos_host_evidence_reviewer_outcome_lane_ids),
|
||||
)
|
||||
assert_equal(
|
||||
"iwooos_projection.summary.host_owner_decision_candidate_packet_count",
|
||||
iwooos_projection["summary"]["host_owner_decision_candidate_packet_count"],
|
||||
len(expected_iwooos_host_owner_decision_candidate_packet_ids),
|
||||
)
|
||||
iwooos_progress = iwooos_projection["progress"]
|
||||
assert_equal("iwooos_projection.progress.overall_percent", iwooos_progress["overall_percent"], progress["overall_percent"])
|
||||
assert_equal(
|
||||
@@ -1215,6 +1230,75 @@ def validate(root: Path) -> None:
|
||||
f"iwooos_projection.host_evidence_reviewer_outcome_lanes.{item['lane_id']}.not_authorization",
|
||||
item["not_authorization"],
|
||||
)
|
||||
iwooos_host_owner_decision_candidate_packets = iwooos_projection["host_owner_decision_candidate_packets"]
|
||||
assert_equal(
|
||||
"iwooos_projection.host_owner_decision_candidate_packets.ids",
|
||||
[item["packet_id"] for item in iwooos_host_owner_decision_candidate_packets],
|
||||
expected_iwooos_host_owner_decision_candidate_packet_ids,
|
||||
)
|
||||
assert_equal(
|
||||
"iwooos_projection.host_owner_decision_candidate_packets.display_order",
|
||||
[item["display_order"] for item in iwooos_host_owner_decision_candidate_packets],
|
||||
list(range(1, len(expected_iwooos_host_owner_decision_candidate_packet_ids) + 1)),
|
||||
)
|
||||
expected_iwooos_host_owner_decision_scopes = [
|
||||
"scope_boundary_hosts_networks_services_exclusions",
|
||||
"observe_only_future_active_or_credentialed_scan_mode",
|
||||
"metadata_only_credential_handling_boundary",
|
||||
"future_maintenance_window_constraints",
|
||||
"rollback_owner_and_recovery_path",
|
||||
"post_check_metrics_and_baseline_pointer",
|
||||
"separate_runtime_gate_requirement",
|
||||
]
|
||||
assert_equal(
|
||||
"iwooos_projection.host_owner_decision_candidate_packets.decision_scopes",
|
||||
[item["decision_scope"] for item in iwooos_host_owner_decision_candidate_packets],
|
||||
expected_iwooos_host_owner_decision_scopes,
|
||||
)
|
||||
for item in iwooos_host_owner_decision_candidate_packets:
|
||||
assert_equal(
|
||||
f"iwooos_projection.host_owner_decision_candidate_packets.{item['packet_id']}.display_mode",
|
||||
item["display_mode"],
|
||||
"owner_decision_candidate_only",
|
||||
)
|
||||
assert_equal(
|
||||
f"iwooos_projection.host_owner_decision_candidate_packets.{item['packet_id']}.owner_decision_received_count",
|
||||
item["owner_decision_received_count"],
|
||||
0,
|
||||
)
|
||||
assert_equal(
|
||||
f"iwooos_projection.host_owner_decision_candidate_packets.{item['packet_id']}.owner_decision_accepted_count",
|
||||
item["owner_decision_accepted_count"],
|
||||
0,
|
||||
)
|
||||
assert_false(
|
||||
f"iwooos_projection.host_owner_decision_candidate_packets.{item['packet_id']}.owner_approval_record_created",
|
||||
item["owner_approval_record_created"],
|
||||
)
|
||||
assert_false(
|
||||
f"iwooos_projection.host_owner_decision_candidate_packets.{item['packet_id']}.runtime_gate_opened",
|
||||
item["runtime_gate_opened"],
|
||||
)
|
||||
assert_false(
|
||||
f"iwooos_projection.host_owner_decision_candidate_packets.{item['packet_id']}.raw_payload_allowed",
|
||||
item["raw_payload_allowed"],
|
||||
)
|
||||
assert_false(
|
||||
f"iwooos_projection.host_owner_decision_candidate_packets.{item['packet_id']}.secret_value_collection_allowed",
|
||||
item["secret_value_collection_allowed"],
|
||||
)
|
||||
assert_false(
|
||||
f"iwooos_projection.host_owner_decision_candidate_packets.{item['packet_id']}.runtime_execution_authorized",
|
||||
item["runtime_execution_authorized"],
|
||||
)
|
||||
assert_false(
|
||||
f"iwooos_projection.host_owner_decision_candidate_packets.{item['packet_id']}.action_buttons_allowed",
|
||||
item["action_buttons_allowed"],
|
||||
)
|
||||
assert_true(
|
||||
f"iwooos_projection.host_owner_decision_candidate_packets.{item['packet_id']}.not_authorization",
|
||||
item["not_authorization"],
|
||||
)
|
||||
assert_equal(
|
||||
"iwooos_projection.non_blocking_lane_ids",
|
||||
iwooos_projection["non_blocking_lane_ids"],
|
||||
@@ -1246,6 +1330,7 @@ def validate(root: Path) -> None:
|
||||
"display_host_evidence_review_handoff_packets",
|
||||
"display_host_evidence_reviewer_checklist",
|
||||
"display_host_evidence_reviewer_outcome_lanes",
|
||||
"display_host_owner_decision_candidate_packets",
|
||||
"display_evidence_refs",
|
||||
"display_forbidden_actions",
|
||||
]:
|
||||
@@ -1287,6 +1372,9 @@ def validate(root: Path) -> None:
|
||||
"treat_host_reviewer_outcome_as_approval",
|
||||
"mark_host_reviewer_outcome_passed",
|
||||
"open_runtime_gate_from_reviewer_outcome",
|
||||
"treat_host_owner_decision_candidate_as_approval",
|
||||
"mark_host_owner_decision_approved",
|
||||
"open_runtime_gate_from_owner_decision_candidate",
|
||||
"apply_runtime_blocking_control",
|
||||
"switch_github_primary",
|
||||
"production_deploy",
|
||||
|
||||
Reference in New Issue
Block a user