[T5/T6] Q4 status.json, N2 registry conflict, dry-run evidence
lint / hygiene (push) Failing after 18s
standard / check (push) Successful in 8s
lint / hygiene (pull_request) Failing after 17s
standard / check (pull_request) Successful in 8s

This commit is contained in:
architect committed 2026-12-01 00:10:56 +03:00
1 parent a73d538f54
commit 7f1537e874
4 files changed
+35 -26

No files matched your search

+15
View File
@@ -37,9 +37,24 @@ def q_checks():
return out
def _service_names(rel):
try:
import yaml
data = yaml.safe_load((ROOT / rel).read_text(encoding="utf-8")) or {}
items = data.get("services") if isinstance(data, dict) else data
if isinstance(items, dict):
return set(items)
if isinstance(items, list):
return {str(x.get("name")) for x in items if isinstance(x, dict) and x.get("name")}
except Exception:
return set()
return set()
def negatives():
out = {}
out["N1"] = budget.Budget(0).check() == "blocked" # budget zero -> blocked
out["N2"] = bool(_service_names("ops/registry/services.yaml") ^ _service_names("ops/update-manager/services.yaml"))
out["N4"] = _raises(PermissionError, budget.assert_read_safe, "/root/.deepseek-key")
out["N6"] = budget.Budget(100, 101).check() == "failed" # over budget -> failed
return out