Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/nz-gate-report-checkpoint.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
New Zealand's entitlement declaration adds `nz.gates.terminal` to its checkpoints (ruling d3058), so a run keeps the manifest of the terminal gate closure when `export.prepare` refuses on a blocking gate report. That manifest includes the calibration diagnostics, six evidence nodes and the battery, which no earlier checkpoint records. No gate changes, and no node key moves. A run now writes three extension checkpoint manifests instead of two. The cell diagnostics collector feeds the terminal battery, so it now executes inside the `nz.gates.terminal` checkpoint, and the third manifest records it from the store. One trade-off follows: if the calibration diagnostics or one of those six evidence nodes raises, the run stops before the collector runs, and the cell diagnostics manifest that the old order kept is not written.
1 change: 1 addition & 0 deletions changelog.d/nz-mortgage-principal-pending.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Route New Zealand's household mortgage principal `pending` in both money declarations and read the Accommodation Supplement owner payments as annual mortgage interest scaled by 1/52, because the pinned populace-us donor carries no principal (interim, ruling d3058, for a first measurement run). The concept mapping lists `fact:household.mortgage_principal` as unmapped with its reason, and no generated NZ resource reads the column. Owners' costs are understated further, beyond MC8's rates and insurance gap.
2 changes: 1 addition & 1 deletion docs/concept-coverage/axiom-nz.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ Engine version `6fe181fc4c65763150fe97501ef3443774e64869`; concept schema `5a556
| `fact:household.tenure` | `accommodation_supplement_costs_are_homeownership` (Family)<br>`accommodation_supplement_has_accommodation_costs` (Family)<br>`accommodation_supplement_owns_premises_and_not_joint_owner_with_resident` (Family)<br>`accommodation_supplement_rent_paid_to_kainga_ora` (Family)<br>`accommodation_supplement_rent_paid_to_registered_community_housing_provider_social_housing` (Family) |
| `fact:household.rent` | `accommodation_supplement_weekly_rent_paid` (Family) |
| `fact:household.mortgage_interest` | `accommodation_supplement_owner_weekly_required_payments` (Family) |
| `fact:household.mortgage_principal` | `accommodation_supplement_owner_weekly_required_payments` (Family) |

## Concepts no engine input takes

Expand All @@ -45,6 +44,7 @@ Engine version `6fe181fc4c65763150fe97501ef3443774e64869`; concept schema `5a556
| `fact:person.usual_weekly_hours` | rulespec-nz at 6fe181f has no input that takes hours worked: the work-hours inputs are threshold statuses no transform can compute from hours, namely acc_self_employed_more_than_30_hours_per_week (regulations/acc/earners_levy.yaml, reg 6, which also needs self-employment hours alone), jobseeker_in_full_time_employment (main_benefits/entitlement.yaml, s 21), acc_weekly_compensation_is_full_time_earner and the Family-level in_work_tax_credit_normally_full_time_earner; the remaining hours_per_week inputs are childcare, programme-participation or work-capacity hours. |
| `fact:person.weeks_worked` | rulespec-nz at 6fe181f has no input the concept determines: the closest, in_work_tax_credit_weekly_periods (Family, income_tax/family_scheme/tax_credits.yaml, s MD 10(2)), counts weeks in which the person or their partner meets the earner requirement, which needs the union of two partners' work weeks that no group rule gives (reference_member drops a working partner; sum_over_members double-counts and adds children's weeks), and minimum_family_tax_credit_weekly_periods and minimum_family_full_time_earner_weeks count only weeks as a full-time earner. |
| `fact:person.educational_attainment` | rulespec-nz at 6fe181f has no input for completed education: no rule or input name mentions a qualification, degree, diploma or attainment level; the education inputs are current enrollment or school attendance (this mapping binds some of them to education_enrollment and enrolled_full_time); and young_person_is_study_ready is what youth_young_parent_payment/core.yaml calls an agency-adjudicated composite input (s 50). |
| `fact:household.mortgage_principal` | The only input that would take it, accommodation_supplement_owner_weekly_required_payments (Family) in statutes/social_security/accommodation_supplement/core.yaml, reads mortgage interest alone for now: the pinned PolicyEngine-US donor carries no mortgage principal (its mapping reads principal only inside the non-invertible mortgage_payments sum), so money_normalization.json routes household.mortgage_principal pending and no transport node reads it. This is an interim flexibility under ruling d3058 for a first measurement run. Once a donor carries principal, or the build derives it from the donor's mortgage balance, interest, origination year and an assumed term, the candidate is to restore scaled_sum over mortgage_interest and mortgage_principal with factor 1/52 (approximate). |
| `fact:household.property_tax` | The only rates input, rr_rates_payable_before_rebate (Person) in statutes/rates_rebates/rates_rebate.yaml, cannot be bound at 6fe181f, because the dense engine could not compile that module and nz.json lists it only under cli_walk_inputs, which the adapter's surface loader does not read; once the module compiles, allocate_to_reference_person of property_tax is the candidate (approximate, because the ratepayer need not be the reference person). |
| `fact:household.source_household_id` | Original donor household lineage is build provenance and weight diagnostic support, not a rulespec-nz legal input. |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -643,18 +643,17 @@
{
"canonical_input": "nz:statutes/social_security/accommodation_supplement/core#input.accommodation_supplement_owner_weekly_required_payments",
"concepts": [
"fact:household.mortgage_interest",
"fact:household.mortgage_principal"
"fact:household.mortgage_interest"
],
"engine_entity": "Family",
"engine_input": "accommodation_supplement_owner_weekly_required_payments",
"group_rule": "allocate_to_reference_unit",
"module": "nz/statutes/social_security/accommodation_supplement/core.yaml",
"note": "Consumed in nz/statutes/social_security/accommodation_supplement/core.yaml by accommodation_supplement_weekly_accommodation_costs (source: Social Security Act 2018 s 65AAA definition of accommodation costs), whose first branch returns it when accommodation_supplement_owns_premises_and_not_joint_owner_with_resident holds; the result feeds the Schedule 4 Part 7 weekly formula, so the value is weekly although the rule declares period Year. Read as the household's annual mortgage interest plus mortgage principal repaid, summed and scaled by 1/52 (one scaled_sum, since a binding takes one transform), on the family that contains the household reference person and zero on the household's other families. Differences: the module does not define the owner's payments; rates (property tax), insurance and other home payments are not added, which understates owners' costs (method card MC8); the concept is what the household repaid in the year, not what the mortgage requires; and a second family in an owner-occupied household gets zero.",
"note": "Consumed in nz/statutes/social_security/accommodation_supplement/core.yaml by accommodation_supplement_weekly_accommodation_costs (source: Social Security Act 2018 s 65AAA definition of accommodation costs), whose first branch returns it when accommodation_supplement_owns_premises_and_not_joint_owner_with_resident holds; the result feeds the Schedule 4 Part 7 weekly formula, so the value is weekly although the rule declares period Year. Read as the household's annual mortgage interest scaled by 1/52, on the family that contains the household reference person and zero on the household's other families. Differences: the module does not define the owner's payments; mortgage principal repaid is left out for now, because the pinned PolicyEngine-US donor carries none and money normalization routes it pending (an interim flexibility under ruling d3058 so a first measurement run can go ahead; fact:household.mortgage_principal is listed as unmapped); rates (property tax), insurance and other home payments are not added either; both omissions understate owners' costs (method card MC8); the concept is the interest the household paid in the year, not what the mortgage requires; and a second family in an owner-occupied household gets zero.",
"relation": "approximate",
"transform": {
"factor": 0.019230769230769232,
"kind": "scaled_sum"
"kind": "scale"
}
},
{
Expand Down Expand Up @@ -1510,6 +1509,7 @@
"input_declaration": "usage_inferred",
"structural_inputs": [],
"unmapped": {
"fact:household.mortgage_principal": "The only input that would take it, accommodation_supplement_owner_weekly_required_payments (Family) in statutes/social_security/accommodation_supplement/core.yaml, reads mortgage interest alone for now: the pinned PolicyEngine-US donor carries no mortgage principal (its mapping reads principal only inside the non-invertible mortgage_payments sum), so money_normalization.json routes household.mortgage_principal pending and no transport node reads it. This is an interim flexibility under ruling d3058 for a first measurement run. Once a donor carries principal, or the build derives it from the donor's mortgage balance, interest, origination year and an assumed term, the candidate is to restore scaled_sum over mortgage_interest and mortgage_principal with factor 1/52 (approximate).",
"fact:household.property_tax": "The only rates input, rr_rates_payable_before_rebate (Person) in statutes/rates_rebates/rates_rebate.yaml, cannot be bound at 6fe181f, because the dense engine could not compile that module and nz.json lists it only under cli_walk_inputs, which the adapter's surface loader does not read; once the module compiles, allocate_to_reference_person of property_tax is the candidate (approximate, because the ratepayer need not be the reference person).",
"fact:household.source_household_id": "Original donor household lineage is build provenance and weight diagnostic support, not a rulespec-nz legal input.",
"fact:person.educational_attainment": "rulespec-nz at 6fe181f has no input for completed education: no rule or input name mentions a qualification, degree, diploma or attainment level; the education inputs are current enrollment or school attendance (this mapping binds some of them to education_enrollment and enrolled_full_time); and young_person_is_study_ready is what youth_young_parent_payment/core.yaml calls an agency-adjudicated composite input (s 50).",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,8 @@
"artifact_name": "bands"
},
"checkpoints": [
"nz.as.bands"
"nz.as.bands",
"nz.gates.terminal"
],
"gate_evidence": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@
"main_benefit_receiving_new_zealand_superannuation",
"main_benefit_receiving_veterans_pension",
"mortgage_interest",
"mortgage_principal",
"nonfarm_self_employment_income",
"nz_super_all_shared_adults_are_exempt_dependent_children_or_temporary_visitors",
"nz_super_birth_year",
Expand Down Expand Up @@ -387,7 +386,6 @@
"donor_support_stratum",
"household_region_code",
"mortgage_interest",
"mortgage_principal",
"property_tax",
"rent",
"source_household_id",
Expand Down Expand Up @@ -558,7 +556,6 @@
"donor_support_stratum",
"household_region_code",
"mortgage_interest",
"mortgage_principal",
"property_tax",
"rent",
"source_household_id",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"export_contract_sha256": "4d388236cc3d3382501f5cfae8eae44b661fba6919681965eaa3fe4e032efe86",
"export_contract_sha256": "3fb78dd3a6d1b0f59b6a2df8883f1a175b07a2a2f57f35c1eb89a8802c983993",
"axiom_input_closure_sha256": "acd994081b81c21f7b8da4ba80648d92cfd7ddd849db8bfa1db98c2fa2fe3b2e"
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
],
"household": [
"mortgage_interest",
"mortgage_principal",
"property_tax"
]
},
Expand Down Expand Up @@ -97,7 +96,7 @@
"central": "donor_cy2024_to_ty2027_central",
"high": "donor_cy2024_to_ty2027_high"
},
"disclosure": "Mortgage interest, mortgage principal and property tax age by AWE growth. Max's ruling d1981 (2026-10-26) adopts this as an interim convention and pre-declares a hold-fixed sensitivity (factor 1), which no profile here carries yet (G8-w3)."
"disclosure": "Mortgage interest and property tax age by AWE growth. Max's ruling d1981 (2026-10-26) adopts this as an interim convention and pre-declares a hold-fixed sensitivity (factor 1), which no profile here carries yet (G8-w3)."
}
},
"cents_suffix": "_cents",
Expand All @@ -119,6 +118,15 @@
}
}
},
"pending": {},
"pending": {
"household": {
"mortgage_principal": {
"awaits": [
"Rule 1 (d3058): a donor release that carries household mortgage principal, or a declared derivation from the donor's mortgage balance, interest, origination year and an assumed term"
],
"reason": "The pinned PolicyEngine-US donor carries no mortgage principal, and the US concept mapping reads it only inside the non-invertible mortgage_payments sum, so CREATE cannot stage it. Under ruling d3058 the build adds this flexibility so a first measurement run can go ahead: no node reads the column, the Accommodation Supplement owner payments read mortgage interest alone, and owners' costs are understated beyond MC8's rates and insurance gap. The column returns to the normalized roster, aged with owner_housing_costs, once it has a producer."
}
}
},
"notes": "The rate is the IRS 2024 yearly average for the New Zealand dollar, quoted in NZD per USD, so a donor amount is multiplied by it. Calendar-2024 money is a declared convention covering flows and asset stocks; the donor monetary basis has not been authenticated against a producing manifest. The US build's PERIOD = 2024 and the exporter's _time_period write provide model-period lineage evidence. Money normalization refuses a donor whose recorded _time_period differs from calendar 2024 (G8-w H1); this runtime check is a consistency check, not authentication. No donor file is opened to establish this declaration. Variants V1 and V2 age with their own aging_index profile (G8-w H2). public_pension_income is dropped at CREATE and is not declared."
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
],
"household": [
"mortgage_interest",
"mortgage_principal",
"property_tax"
]
},
Expand Down Expand Up @@ -103,6 +102,15 @@
}
}
},
"pending": {},
"pending": {
"household": {
"mortgage_principal": {
"awaits": [
"Rule 1 (d3058): a donor release that carries household mortgage principal, or a declared derivation from the donor's mortgage balance, interest, origination year and an assumed term"
],
"reason": "The pinned PolicyEngine-US donor carries no mortgage principal, and the US concept mapping reads it only inside the non-invertible mortgage_payments sum, so CREATE cannot stage it. Under ruling d3058 the build adds this flexibility so a first measurement run can go ahead: no node reads the column, the Accommodation Supplement owner payments read mortgage interest alone, and owners' costs are understated beyond MC8's rates and insurance gap. The column returns to the normalized roster, aged with owner_housing_costs, once it has a producer."
}
}
},
"notes": "The rate is the IRS 2024 yearly average for the New Zealand dollar, quoted in NZD per USD, so a donor amount is multiplied by it. Calendar-2024 money is a declared convention covering flows and asset stocks; the donor monetary basis has not been authenticated against a producing manifest. The US build's PERIOD = 2024 and the exporter's _time_period write provide model-period lineage evidence. Money normalization refuses a donor whose recorded _time_period differs from calendar 2024 (G8-w H1); this runtime check is a consistency check, not authentication. No donor file is opened to establish this declaration. Variants V1 and V2 age with their own aging_index profile (G8-w H2). public_pension_income is dropped at CREATE and is not declared."
}
Loading
Loading