fix(governance): 避免狀態清理儀表板曝光本機路徑

This commit is contained in:
Your Name
2026-06-24 23:48:18 +08:00
parent e4c13530fd
commit 9f3a5cdcdd
5 changed files with 33 additions and 13 deletions

View File

@@ -54,6 +54,9 @@ def test_load_latest_awoooi_status_cleanup_dashboard_reads_committed_snapshot():
assert "live_metadata_env_gate=owner0_secret_metadata0_push0_deploy0_readback0_runtime0" in data["wazuh_handoff"]["boundary"]
assert "wazuh_live_agent_registry_readback=0" in data["wazuh_handoff"]["boundary"]
assert "manager_agent_registry_readback_passed=false" in data["wazuh_handoff"]["boundary"]
serialized = json.dumps(data, ensure_ascii=False)
assert "/Users/ogt" not in serialized
assert ".claude/projects" not in serialized
assert {item["gate_id"] for item in data["gate_cards"]} >= {
"status_cleanup_preflight",
"owner_review_package",