chore(sre): reconcile backup source readiness

This commit is contained in:
Your Name
2026-07-19 01:26:06 +08:00
parent a509cb9970
commit 3191f0062b
2 changed files with 30 additions and 11 deletions

View File

@@ -116,12 +116,11 @@ def test_loader_returns_fixed_architecture_provider_order_and_agent99_bridge() -
"total_items": 18,
"by_priority": {"P0": 16, "P1": 2},
"by_status": {
"source_implemented_runtime_pending": 10,
"source_implemented_runtime_pending": 11,
"in_progress": 3,
"planned": 4,
"policy_active": 1,
},
"source_implemented_items": 10,
"source_implemented_items": 11,
"runtime_closed_items": 0,
"program_completion_percent": 0,
"asset_coverage_status": "partial",
@@ -142,6 +141,12 @@ def test_ledger_links_confirmed_runtime_gaps_without_false_closure() -> None:
items["AIA-SRE-013"]["runtime_gaps"]
)
assert "host99 Agent99" in " ".join(items["AIA-SRE-017"]["runtime_gaps"])
assert items["AIA-SRE-011"]["status"] == (
"source_implemented_runtime_pending"
)
assert "controlledApply=false" in " ".join(
items["AIA-SRE-011"]["confirmed_truth"]
)
assert items["AIA-SRE-017"]["status"] == (
"source_implemented_runtime_pending"
)
@@ -172,7 +177,7 @@ def test_projection_keeps_program_asset_and_runtime_truth_separate() -> None:
payload = load_sre_k3s_controlled_automation_work_items()
projection = build_sre_k3s_program_projection(payload)
assert projection["rollups"]["source_implemented_items"] == 10
assert projection["rollups"]["source_implemented_items"] == 11
assert projection["rollups"]["runtime_closed_items"] == 0
assert projection["rollups"]["program_completion_percent"] == 0
assert projection["domain_count"] == 8