You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Require base.local_jurisdiction_flags in US annual projection evidence #1622
#1453 makes the US annual static-aging lane refuse a parent that lacks or contradicts a local-jurisdiction flag its geography decides, or in which a household's block lies outside its county. The lane records the parent's receipt as base.local_jurisdiction_flags in annual_manifest.json. validate_annual_projection_extension in packages/microcosm-data/src/microcosm/data/annual_projections.py reads base.dataset, base.year, base.parent_release and base.sha256 alone, so a candidate from a commit before #1453, which runs no flag check and writes no receipt, still validates.
Change
Require the key in that function, check its shape, and name any missing or malformed field:
registry names us_local_jurisdictions.json, and registry_sha256 equals a copy of US_LOCAL_JURISDICTION_REGISTRY_SHA256 that a microcosm-build test keeps current, since microcosm-data does not depend on microcosm-build.
rungs equals [], ["county"] or ["county", "place"], and flags holds the four registry flags, each derived when rungs holds its rule and unavailable otherwise.
carried_flags lists the derived flags, sorted.
Scope
validate_release_dir and validate_source_enrichment_candidate also call this validator, so a published annual US release without the receipt will fail re-validation and enrichment. List those releases, or confirm none exists, before merging. schema_version cannot tell them apart, since a commit before #1453 also writes 1.
Tests
In packages/microcosm-data/tests/engine_free/shared/test_annual_projections.py, the validator refuses a manifest without the key, a wrong registry digest, carried_flags that disagree with the statuses, and a status that contradicts rungs. It accepts a fixture receipt that a microcosm-build test keeps equal to what us_local_jurisdiction_artifact_receipt returns.
Activity