"""Reproduce W3 entry-page counts. Standard library only; no network or writes.""" import json from pathlib import Path root=Path(__file__).resolve().parent data=json.loads((root/"observations.json").read_text(encoding="utf-8")) rows=data["rows"] assert len(rows)==8 and len({r["council"] for r in rows})==8 fields=[ "numeric_period_on_entry","account_explicit_on_entry","prepared_file_explicit_on_entry", "late_after_consultation_explicit","personal_detail_publication_explicit","maintenance_fallback"] for field in fields: assert all(r[field] in {"YES","NOT_STATED","UNOBSERVABLE"} for r in rows) print(field+": "+str(sum(r[field]=="YES" for r in rows))+"/8") assert all(r["actual_comment_deadline"] is None and r["application_reference"] is None for r in rows) assert not any(r["submission_tested"] for r in rows) print("Scope confirmed: no individual deadline or submission test.")