Repository navigation
Let a parentless NZ reference person under 18 head a unit (B8 amendment) - #1628
Merged
Merged
Conversation
NZ's first real-data transport run refused the whole frame in unit construction: refuse_dependent_reference_person was true, so a household whose reference person was a parentless minor, or a parented minor living with another parentless child, aborted CREATE. On the pinned donor 9 of 57,240 households did this (0.0024% of household weight), each with an adult present. The NZ hub amends B8: the flag is false, so a reference person under 18 with no co-resident parent heads a unit, and a parentless child in a household whose reference person is a parented dependent child joins the unit that holds the reference person. Every frame that built before builds the same units. - benefit_unit_rule.json and docs/nz-benefit-unit-rule.md record the amendment, its counts, the non-statutory approximation, the Accommodation Supplement consequence and the refusal that remains. - benefit_unit_diagnostics gains parentless_reference_person_heads and younger_independent_teen_parents, so the receipt shows the new branch and the teen-parent counts partition parents under 18. - Tests: the refusal fixtures now expect the built units; the property tests draw minor reference persons, with an oracle for the caregiver-loop refusal; a strict-flag test keeps the shared strict branch covered. - Golden fingerprint and rule hash regenerated; changelog fragment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review round 1 (Subfleet job 20261115-144611-mc1628-r1, head 08d4460): - P1: the changelog said every listed reference person heads a unit. A reference person with a co-resident parent stays dependent. The fragment now describes the two cases separately and notes that a household whose caregivers never reach an adult is still refused. - P1: the rule text said a reference head's own co-resident children join their unit. A child follows parent 1, who can be another adult. The passages now name the dependent children who name them as parent 1. - P2: parentless_reference_person_heads counted heads made by own-unit placement. It now counts none under that placement; a new test covers each placement with the strict flag on and off. Belgium's notes 1, 2 and 5 on 08d4460: the diagnostics docstring, the teen-parent and reference-placement wording in the rule and its docs, and the reported-count bullet. The docs now say "dependent child" where they said "child". The rule bytes changed, so NZ's golden hash and composition fingerprint are regenerated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ring Under own-unit placement, strict frames build and count no reference head, so "refuses those frames" applies only to the other placements (Belgian port's optional note on cfdd3c2). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis
marked this pull request as ready for review
November 16, 2026 03:53
Contributor
Author
|
Merge audit (NZ hub). Squash-merged at reviewed head 1fec5b2 as 67ab33e.
|
MaxGhenis
added a commit
that referenced
this pull request
Nov 16, 2026
Main brought nine first-parent merges since c4ad232: #1626 (Belgium gate rows), #1628 (NZ B8 reference teen heads), #1621 (County Files household measures sidecar and schema manifest tools), #1540 (L0 release practice docs), #1609 (gate battery shared scopes), #1619 (ACS partnership_income kept at zero where SEMP holds it, #1387), #1629 (untimed composed stage-scan test), #1594 (withdraw a release build) and #1541 (Microcosm name sweep). Main changed nothing under packages/microcosm-fit or packages/microcosm-graph. Four pin files conflicted; each block took main's text plus this branch's own comment lines, placed after main's #1387 sentence: - docs/evidence/spec-engine/us-f0-coverage.json: five digest blocks, main's side (the branch has no comment there). - packages/microcosm-build/src/microcosm/build/spec_engine/inventory_coverage.py: main's #1387 comment, then the branch's #1543 sentence, then the digests. - packages/microcosm-build/tests/engine_free/shared/test_spec_engine_loader.py: main's #1387 comment, then the branch's fit-input-checks sentence, then the golden. - packages/microcosm-build/tests/engine_workflow/us/test_us_multispine_pool_tool.py: main's #1387 comment, then the branch's #1543 line, then spec_sha256. No code or test file conflicted, and no other file was changed by both sides. The tools then wrote every value on the merged tree: - tools/repin_us_spec_engine_contracts.py: EXPECTED_HASHES seed_map d5898b93 and seed_protocol 206be396, the loader golden b7c843a1 and the multispine pool spec_sha256 4062e22e (its first pass moved the coverage tool test's covered_item_count to 40; its second pass restored 41, so that file equals main's). - tools/spec_engine_coverage.py: us-f0-coverage.json's eight digest lines (42395/42395 configuration fields; 41/41 inventory checks). - fit.qrf/pins.json keeps the branch's values: the merged fit sources equal the branch's and the kernel's implementation hash reproduces, so tools/graph_parity_repin.py was not run. The repinner's quote style was then reformatted with ruff format. 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.
Why
NZ's first real-data transport run (G8-x step 4) refused the whole frame in unit construction with "The unit rule refuses a parentless child whose reference person is a dependent child." NZ's rule set
refuse_dependent_reference_person: true, and_headschecks it with a frame-wide.any(), so one household aborts CREATE.The NZ hub counted the households with the build's own code (CREATE's reader, string-dtype fix and declaration) on the pinned donor:
What changes
The NZ hub amends B8 (2026-11-15). Literal B8 would still refuse case (ii), and the declaration has no setting that keeps case (ii) while dropping case (i).
Rule.
refuse_dependent_reference_personis false in NZ'sbenefit_unit_rule.json. A reference person under 18 with no co-resident parent heads a unit, and the dependent children who name them as parent 1, and every other dependent child with no co-resident parent, join it. In case (ii) the reference person stays dependent, and the parentless child follows the caregiver chain into the unit that holds the reference person, their parent's. Every frame that built before builds the same units: under the old flag, any parentless reference candidate made_headsraise.Disclosure. The rule file and
docs/nz-benefit-unit-rule.mdrecord the amendment: its counts, the new non-statutory approximation (inunobserved_statutory_limbs), and the Accommodation Supplement consequence (a minor heading a unit with a dependent reads as a sole parent; on this donor the 3 new heads are one-person units). They also record the refusal that remains: the caregiver loop, "Dependent caregiver pointers do not reach an adult."Receipt (shared code).
benefit_unit_diagnosticsadds two keys:parentless_reference_person_heads, which shows the new branch (none under own-unit placement, which makes every parentless candidate a head);younger_independent_teen_parents, parents under 16 who aren't dependent. With it, the three teen-parent counts partition parents under 18. Before, a partnered parent under 16 was in neither count, and the docstring's partition claim was false.The five existing expressions are unchanged. Only NZ declares
transport.create.Tests.
test_strict_reference_flag_is_read_from_speckeeps the shared strict branch and the flag's round trip covered.test_reference_heads_count_only_the_reference_branchruns each placement with the strict flag on and off.Golden and changelog. The NZ fingerprint and the rule-file hash are regenerated; only those two lines move. There is a
changedfragment.Review
test_transport_dependent_children.py: 29,673 passed, none failed.test.yml.🤖 Generated with Claude Code