fix(governance): mark priority readback projection source
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 58s
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled

This commit is contained in:
Your Name
2026-07-03 10:57:58 +08:00
parent f69e056bab
commit aed26bae84
3 changed files with 20 additions and 0 deletions

View File

@@ -3079,6 +3079,7 @@ def _enrich_from_current_readbacks(
or reboot_slo.get("safe_next_step")
or ""
)
state["active_p0_projection_source"] = "reboot_auto_recovery_slo_scorecard"
state["active_p0_readiness_percent"] = _int(
reboot_slo.get("readiness_percent")
or workbench_readback.get("current_p0_readiness_percent")
@@ -4021,6 +4022,9 @@ def _set_rollups_and_summary(
"active_p0_next_safe_action": str(
state.get("active_p0_next_safe_action") or ""
),
"active_p0_projection_source": str(
state.get("active_p0_projection_source") or ""
),
"controlled_service_data_backup_readback_present": (
state.get("controlled_service_data_backup_readback_present") is True
),
@@ -4143,6 +4147,9 @@ def _set_rollups_and_summary(
"active_p0_next_safe_action": str(
state.get("active_p0_next_safe_action") or ""
),
"active_p0_projection_source": str(
state.get("active_p0_projection_source") or ""
),
"active_p0_live_active_blockers": active_blockers,
"controlled_service_data_backup_readback_present": (
state.get("controlled_service_data_backup_readback_present") is True

View File

@@ -665,6 +665,10 @@ def test_awoooi_priority_work_order_readback_routes_closed_backup_to_host_boot_a
assert state["active_p0_next_safe_action"] == (
"rerun_reboot_event_detector_and_host_probe_verify_only_no_reboot"
)
assert (
state["active_p0_projection_source"]
== "reboot_auto_recovery_slo_scorecard"
)
assert state["next_executable_mainline_state"] == (
"blocked_reboot_slo_scorecard_host_boot_and_windows99_verify_"
"collection_not_ready"
@@ -683,9 +687,17 @@ def test_awoooi_priority_work_order_readback_routes_closed_backup_to_host_boot_a
assert payload["summary"]["active_p0_next_safe_action"] == (
"rerun_reboot_event_detector_and_host_probe_verify_only_no_reboot"
)
assert (
payload["summary"]["active_p0_projection_source"]
== "reboot_auto_recovery_slo_scorecard"
)
assert payload["rollups"]["active_p0_slo_active_blocker_count"] == len(
in_progress["evidence"]["active_blockers"]
)
assert (
payload["rollups"]["active_p0_projection_source"]
== "reboot_auto_recovery_slo_scorecard"
)
assert payload["summary"]["next_executable_mainline_state"] == (
"blocked_reboot_slo_scorecard_host_boot_and_windows99_verify_"
"collection_not_ready"