Repository navigation
Stats NZ regional resident population at 30 June 2023 (NZ, G8-d4) - #379
Merged
Merged
Conversation
G8-d4: add 17 direct Table 1 B7:B22/B25 cells to the existing package. Keep CY2023 / 2023-06-30 coverage, the unmarked numeric 2023 header, REGC2025 geography and existing concept/provenance/assertion. Guard source headings and row labels. Contents and workbook footnotes do not explicitly call 2023 final or revised. No new artifact or computed values. Measured single-source build_bundle delta (before/after outputs deleted): - facts 85 -> 102 (+17); source cells 2265 -> 2265 (+0). - geography keys 17 -> 17 (+0); no added/removed by_geography keys. - sources 1 -> 1 (+0); packages 1 -> 1 (+0). - source-table keys 1 -> 1 (+0); parsed source sheets 2 -> 2 (+0). - bundle warnings 0 -> 0 (+0); errors and duplicate-key counts stay 0. - period keys 1 -> 2 (+1), adding calendar_year:2023 with 17 facts; calendar_year:2025 stays 85. Entity keys 1 -> 1 (+0), person 85 -> 102. - source-region count 5 -> 6 (+1); source-record and consumer-fact counts 85 -> 102 (+17). Unique aggregate and semantic keys 85 -> 102 (+17); unique source-series keys 5 -> 6 (+1); other unique key counts unchanged. - observed measure stats_nz:population +17; observed/canonical concept stats_nz.estimated_resident_population +17 each. - by_source stats_nz +17; existing table key +17: stats_nz:Subnational population estimates: At 30 June 2025 (provisional), Tables 1 and 3 - by_geography +1 each (5 -> 6): country:NZ, region:01, region:02, region:03, region:04, region:05, region:06, region:07, region:08, region:09, region:12, region:13, region:14, region:15, region:16, region:17, region:18. Default-bundle pins = local main 140316a (pins identical at assigned base aa288c3) plus that measured delta: - facts 1579263 -> 1579280 (+17). - geography keys 102613 -> 102613 (+0); source count 56 -> 56 (+0); packages 405 -> 405 (+0); table keys 347 -> 347 (+0). - warnings 122 -> 122 (+0); period keys 523 -> 523 (+0), because calendar_year:2023 already exists; entity keys 12 -> 12 (+0). - calendar_year:2023 111185 -> 111202 (+17); person 521319 -> 521336 (+17). - stats_nz 2015 -> 2032 (+17); existing Tables 1 and 3 key 85 -> 102 (+17). - country:NZ 6131 -> 6132 (+1); each of the 16 region keys listed above 30 -> 31 (+1); no added/removed by_geography keys. Original 85 facts, consumer rows and full source cells are byte-identical. Both B-to-C selector mutants were killed by the exact-cell regression test; package restored afterward. Independent source-fidelity, boundary and pin arithmetic reviews PASS. Targeted package tests: 58 passed (12 dependency deprecation warnings). Ruff checks pass for both changed test files. Full/default bundle test intentionally left to CI. Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
Review of #379 (GPT-6.1 Sol, head 8bcb66a): - The new CY2023 record set inherited provenance_class from the YAML anchor. test_every_source_package_record_set_declares_provenance_class counts record_set_id and provenance_class lines and failed (14703 == 14702). Repeat `provenance_class: census` under the record_set_id, as the four sibling sets already do. Consumer rows are unchanged (the reviewer hashed all 102 rows with and without the line), so the bundle pins stand. - Quote geography_id '08' and '09' like every other REGC code in the file. - Restore the README's portable validation commands (build-suite and the three test files) in place of the lane's scratch-path commands. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Merge audit (NZ hub): head f6d4c39.
|
anth-volk
added a commit
that referenced
this pull request
Oct 22, 2026
Brings in #379 (Stats NZ regional estimated resident population at 30 June 2023: 17 facts in `stats-nz-subnational-population-estimates-2025`, with the merged-bundle count pins in `tests/test_chronicle_bundle.py`). No textual conflict. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds Stats NZ's estimated resident population at 30 June 2023 for the 16 regional council areas and New Zealand: 17 facts in the existing
stats_nz/subnational_population_estimates_2025package. This is G8-d4 of the NZ Microcosm plan (microcosm#1183).001e8a89…50a6, unchanged). The facts are cells B7:B22 and B25, under the column header2023, which has noPmarker.calendar_year: 2023, coverage2023-06-30to2023-06-30. These are the release's 2023-base estimates, which are different from the 7 March 2023 census-night count.P. The workbook's Contents sheet and footnotes don't call 2023 final or revised either, so no status is asserted.regc_2025), provenance and assertion as the existing 2025 facts. The New Zealand row is read directly, never summed.Why
Max ruled on 2026-10-21 (cos d1598) that Microcosm NZ scales the 2023 Census structure to the June 2025 ERP, holding households and families per person constant. That needs each region's ERP at the Census-time base, June 2023, alongside the June 2025 facts this package already emits.
Checks
tests/test_chronicle_nz_population.py: 58 passed in the build lane, and the hub re-ran it at this head (58 passed).2024 Pheader failstest_every_fact_equals_one_published_cell_with_no_scaling(200,400 vs 198,500).stats_nz2,015 → 2,032, and +1 fact at each of the 17 existing geography keys. No geography key is added. The full delta is in the commit message.Invariants
🤖 Generated with Claude Code