Repository navigation
Census 2023 weekly rent paid by households, by regional council (NZ, G8-d1) - #341
Merged
Merged
Conversation
Add 18 package members sharing the unchanged, already-published Place summaries files. Emit 162 publisher facts: eight rent-band counts and one published median in NZD per week per place. Pin table median line 1763 rather than identical Quick stats line 13; preserve labels and status lineage, census-night coverage, and unstated population/boundary qualifications. Add independent literal row/cell tests, six red YAML demonstrations, aliases, checklist/evidence, changelog and default-bundle pins. Validation: 185 weekly-rent cases verified (184 initial passes plus the corrected 2018-median mutant rerun); final real Auckland map rerun passes. All 18 validate-package and build-source-suite checks pass; existing household/family 186 cases and alias-drift 1 case pass. Six scratch YAML mutants fail the independent-map test as required. Local source-fidelity and boundary read-only reviews PASS; formal merge gates remain for the hub. Measured delta against main (3c113e8): facts +162 (144 Count, 18 published Median), default 1004092 -> 1004254; geographies +0 (20548 unchanged); 18 existing keys each gain 9 facts; sources +0 (56 unchanged), by_source stats_nz +162 (1786 -> 1948); packages +18 (359 -> 377), national root and 17 rc_XX members; tables +1 (318 -> 319), stats_nz:2023 Census Place summaries: weekly rent paid by households=+162; warnings +0 (117 unchanged); errors +0, skipped sources +0; period_count +0 (511 unchanged), calendar_year:2023=+162; entity_count +0 (12 unchanged), household=+162 (154852 -> 155014); by_geography: country:NZ=+9, region:01=+9, region:02=+9, region:03=+9, region:04=+9, region:05=+9, region:06=+9, region:07=+9, region:08=+9, region:09=+9, region:12=+9, region:13=+9, region:14=+9, region:15=+9, region:16=+9, region:17=+9, region:18=+9, region:99=+9. Final geography pins: country:NZ=6131; region:01-09,12-18=30 each; region:99=25. Aggregate and semantic duplicate-key deltas both 0; default duplicate pins remain 0 and 2324. Measurement: 18 sequential build_bundle calls with exactly one explicit source each; all 18 valid, 9 facts each, zero warnings/errors/duplicates. Each single-source output was deleted immediately; no full bundle built. Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
#340 added a curated NZ roster whose drift guard requires every alias under the NZ publisher prefixes. After merging main, the 18 stats-nz-census-2023-weekly-rent members failed it, as intended. This adds them to NZ_BUNDLE_SOURCES (48 -> 66 packages) and to the test's Census roots (36 -> 54 Census members), and notes the suite in the changelog fragment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Merged by the NZ hub (session local_e407a527) at 239bf84 with --squash. Gates: |
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.
Adds Census 2023 weekly rent paid by households for New Zealand, the 16 regional councils and the Area Outside Region: 162 published facts from the Stats NZ Place Summaries files that #335 already pinned. This is package G8-d1 of microcosm#1183. Microcosm NZ's rent input (method card MC8) needs a rent distribution, and Chronicle had none.
No new source file, no new R2 object: the family reads the 18 CSVs in
db/data/stats_nz/census_2023_place_summaries/exactly as the #335 families do.What this adds
packages/stats_nz/census_2023_weekly_rent/: a national root plus 17rc_XXchildren (rc_01–rc_09,rc_12–rc_18,rc_99), 18 aliases, nine facts per place.nzd_per_week,aggregation: median)Spot values, checked against the files:
Not emitted, but preserved in the pinned files:
Percentrows, the 2013 and 2018 periods, and the Māori-ethnic-group sections. The median also appears as a Quick-stats row with the same value. The package selects the table row, by its row identity, as the #335 families do for duplicated quick stats.What the product doesn't state, and the package doesn't assert:
The reference date is census night, 7 March 2023.
Invariants and how they're checked
confidentiality_indicatorandfinal_indicatortravel with each fact. A flagged row is never emitted as a number. All 162 selected rows are unflagged.$200 - $299. Every dimension and value carries a label (Dimension labels are only checked for the UK suite: 68 of 79 other packages fail the consumer_fact.v2 rules #265).Mutants that fail the tests:
Percentrow in place of aCountrow;Tests
tests/test_chronicle_nz_census_weekly_rent.py: 185 cases. The build lane ran it, and the hub re-ran it on the final tree after merging main. It coversvalidate-packageand a single-source suite for all 18 members.tests/test_chronicle_nz_census_households.py(186) and the alias-drift tests still pass. Since Discover nested source-package members so the alias-drift guard sees them #338, the drift guard sees the nested members.Bundle pins
Measured against main
3c113e8a(#338, merged since, changes no pins):Chronicle governance
ledger-source-ingestor. The per-package files outside itsallowed_pathsare the alias entries inchronicle/source_package.py, the checklist row, the changelog fragment and the bundle pins.ledger-source-fidelity: PASS(all 18 packages match exactly the 162 physical rows; checksums and sizes match) andledger-boundary: PASS(direct values, distinct count and median units, no computed values). The independent review that follows is asked for both as named verdicts.chronicle verify-raw --root db/data/stats_nz/census_2023_place_summaries --manifest 'manifest-*.yaml're-checks them.Built by a GPT-6.1 Sol lane from the NZ hub's brief.
🤖 Generated with Claude Code