Skip to content

fix: treat ready promotions as awaiting review#464

Merged
ozand merged 1 commit into
mainfrom
fix/issue-463-ready-promotion-not-blocked
May 2, 2026
Merged

fix: treat ready promotions as awaiting review#464
ozand merged 1 commit into
mainfrom
fix/issue-463-ready-promotion-not-blocked

Conversation

@ozand
Copy link
Copy Markdown
Owner

@ozand ozand commented May 2, 2026

Summary

Fixes #463.

After #461 / #462, the runtime correctly emits ready promotion candidates as pending operator review:

  • status=ready_for_policy_review
  • decision_record=pending_operator_review_packet
  • accepted_record=null
  • governance_packet.review_packet_status=pending_operator_review

Dashboard/Mission Control still treated accepted_record=null as a promotion lifecycle blocker, producing Blocked: accepted_record. That is wrong for a pending-review candidate because no accepted record exists until the policy/operator accepts it.

This change teaches the dashboard promotion replay classifier that ready_for_policy_review / pending_operator_review_packet is an awaiting-review state, not a blocked state.

Test plan

RED before fix:

  • PYTHONPATH=ops/dashboard/src:ops/dashboard python3 -m pytest ops/dashboard/tests/test_dashboard_truth_audit_gaps.py::test_api_system_does_not_block_ready_promotion_awaiting_policy_review -q
    • failed with readiness['state'] == 'blocked'

GREEN after fix:

  • PYTHONPATH=ops/dashboard/src:ops/dashboard python3 -m pytest ops/dashboard/tests/test_dashboard_truth_audit_gaps.py::test_api_system_does_not_block_ready_promotion_awaiting_policy_review ops/dashboard/tests/test_dashboard_truth_audit_gaps.py::test_api_system_promotes_stuck_promotion_lifecycle_to_autonomy_verdict ops/dashboard/tests/test_dashboard_truth_audit_gaps.py::test_api_system_does_not_block_explicitly_not_ready_promotion -q
    • 3 passed
  • PYTHONPATH=ops/dashboard/src:ops/dashboard python3 -m pytest ops/dashboard/tests -q
    • 166 passed
  • python3 -m pytest tests -q
    • 699 passed, 5 skipped

@ozand ozand merged commit 446ad5c into main May 2, 2026
3 checks passed
@ozand ozand deleted the fix/issue-463-ready-promotion-not-blocked branch May 2, 2026 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mission Control should not block ready-for-policy-review promotions on accepted_record

1 participant