fix(work-items): close context convergence loop evidence
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 1m9s
CD Pipeline / build-and-deploy (push) Successful in 5m0s
CD Pipeline / post-deploy-checks (push) Successful in 5m33s
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 1m9s
CD Pipeline / build-and-deploy (push) Successful in 5m0s
CD Pipeline / post-deploy-checks (push) Successful in 5m33s
This commit is contained in:
@@ -619,8 +619,8 @@ def test_awoooi_priority_work_order_readback_surfaces_gitea_bundle_truth():
|
||||
assert runbook_summary["break_glass_runbook_count"] == sum(
|
||||
1 for item in runbook_rows if item["coverage_state"] == "break_glass"
|
||||
)
|
||||
assert runbook_summary["ready_field_total"] == 194
|
||||
assert runbook_summary["completion_percent"] == 71
|
||||
assert runbook_summary["ready_field_total"] == 198
|
||||
assert runbook_summary["completion_percent"] == 73
|
||||
assert runbook_summary["next_work_item_id"] == "CIR-P0-010"
|
||||
assert runbook_summary["next_missing_fields"] == ["km_playbook_trust_writeback"]
|
||||
assert runbook_by_id["CIR-P0-006"]["break_glass_required"] is True
|
||||
@@ -773,6 +773,41 @@ def test_awoooi_priority_work_order_readback_surfaces_gitea_bundle_truth():
|
||||
assert payload["summary"]["mainline_sequence_controlled_evidence_ready"] is True
|
||||
assert payload["summary"]["mainline_sequence_controlled_no_runtime_write"] is True
|
||||
assert payload["summary"]["mainline_sequence_controlled_github_or_gh_used"] is False
|
||||
assert runbook_by_id["CIR-P0-015"]["coverage_state"] == "ready"
|
||||
assert runbook_by_id["CIR-P0-015"]["ready_field_count"] == 8
|
||||
assert runbook_by_id["CIR-P0-015"]["missing_fields"] == []
|
||||
assert runbook_by_id["CIR-P0-015"]["check_mode_or_dry_run_ready"] is True
|
||||
assert runbook_by_id["CIR-P0-015"]["controlled_apply_boundary_ready"] is True
|
||||
assert runbook_by_id["CIR-P0-015"]["rollback_or_no_write_ready"] is True
|
||||
assert runbook_by_id["CIR-P0-015"]["runtime_write_performed"] is False
|
||||
assert runbook_by_id["CIR-P0-015"]["raw_session_or_sqlite_read"] is False
|
||||
assert runbook_by_id["CIR-P0-015"]["auth_or_secret_read"] is False
|
||||
assert (
|
||||
runbook_by_id["CIR-P0-015"]["workflow_dispatch_performed"]
|
||||
is False
|
||||
)
|
||||
context_convergence_evidence = payload[
|
||||
"context_convergence_controlled_evidence"
|
||||
]
|
||||
assert context_convergence_evidence["schema_version"] == (
|
||||
"context_convergence_controlled_evidence_v1"
|
||||
)
|
||||
assert context_convergence_evidence["metadata_only"] is True
|
||||
assert context_convergence_evidence["check_mode_or_dry_run"]["ready"] is True
|
||||
assert context_convergence_evidence["rollback_or_no_write"]["ready"] is True
|
||||
assert context_convergence_evidence["rollback_or_no_write"][
|
||||
"raw_session_or_sqlite_read"
|
||||
] is False
|
||||
assert context_convergence_evidence["rollback_or_no_write"][
|
||||
"auth_or_secret_read"
|
||||
] is False
|
||||
assert context_convergence_evidence["km_playbook_trust_writeback"][
|
||||
"km_writeback_ref"
|
||||
] == "km://awoooi/context-convergence/work-order-truth"
|
||||
assert payload["summary"]["context_convergence_controlled_evidence_ready"] is True
|
||||
assert payload["summary"][
|
||||
"context_convergence_controlled_raw_session_or_sqlite_read"
|
||||
] is False
|
||||
assert payload["summary"][
|
||||
"ai_controlled_repair_loop_manual_as_default_terminal_allowed"
|
||||
] is False
|
||||
@@ -1798,13 +1833,11 @@ def test_awoooi_priority_work_order_readback_endpoint_returns_snapshot(
|
||||
1 for item in inserted_items if item["priority"] == "P0"
|
||||
)
|
||||
assert endpoint_matrix["summary"]["manual_terminal_count"] == 0
|
||||
assert endpoint_matrix["summary"]["ready_field_total"] == 219
|
||||
assert endpoint_matrix["summary"]["completion_percent"] == 81
|
||||
assert endpoint_matrix["summary"]["next_work_item_id"] == "CIR-P0-015"
|
||||
assert endpoint_matrix["summary"]["ready_field_total"] == 222
|
||||
assert endpoint_matrix["summary"]["completion_percent"] == 82
|
||||
assert endpoint_matrix["summary"]["next_work_item_id"] == "CIR-P0-AILOOP-001"
|
||||
assert endpoint_matrix["summary"]["next_missing_fields"] == [
|
||||
"check_mode_or_dry_run",
|
||||
"controlled_apply_boundary",
|
||||
"rollback_or_no_write",
|
||||
"rollback_or_no_write"
|
||||
]
|
||||
assert endpoint_row_by_id["CIR-P0-006"]["coverage_state"] == "break_glass"
|
||||
assert endpoint_row_by_id["CIR-P0-006"]["controlled_apply_allowed"] is False
|
||||
@@ -1832,12 +1865,20 @@ def test_awoooi_priority_work_order_readback_endpoint_returns_snapshot(
|
||||
assert endpoint_row_by_id["CIR-P0-012"][
|
||||
"workflow_dispatch_performed"
|
||||
] is False
|
||||
assert endpoint_row_by_id["CIR-P0-015"]["coverage_state"] == "ready"
|
||||
assert endpoint_row_by_id["CIR-P0-015"]["missing_fields"] == []
|
||||
assert endpoint_row_by_id["CIR-P0-015"]["runtime_write_performed"] is False
|
||||
assert endpoint_row_by_id["CIR-P0-015"][
|
||||
"raw_session_or_sqlite_read"
|
||||
] is False
|
||||
assert endpoint_row_by_id["CIR-P0-015"]["auth_or_secret_read"] is False
|
||||
assert data["summary"]["ai_controlled_repair_loop_next_work_item_id"] == (
|
||||
"CIR-P0-015"
|
||||
"CIR-P0-AILOOP-001"
|
||||
)
|
||||
assert data["summary"]["runner_registration_controlled_evidence_ready"] is True
|
||||
assert data["summary"]["gitea_cd_baseline_controlled_evidence_ready"] is True
|
||||
assert data["summary"]["mainline_sequence_controlled_evidence_ready"] is True
|
||||
assert data["summary"]["context_convergence_controlled_evidence_ready"] is True
|
||||
assert data["summary"]["ai_controlled_repair_loop_manual_terminal_count"] == 0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user