no-mistakes(review): Fail closed on empty report-only exclusion list

This commit is contained in:
root
2026-09-12 18:55:34 +00:00
parent 4bd6132cf5
commit 6272d29978
2 changed files with 28 additions and 1 deletions
+5
View File
@@ -59,6 +59,11 @@ def load_report_only_guests(contract_path: pathlib.Path) -> list[dict]:
guests = data.get("report_only_guests") or []
if not isinstance(guests, list):
raise SystemExit("report_only_guests must be a list")
if not guests:
raise SystemExit(
"report_only_guests is empty or missing - refusing to plan GC "
"without the report-only gate"
)
for guest in guests:
if not isinstance(guest, dict) or not _keys(guest):
raise SystemExit(