From 941b8e399f00fd540b0014b9a48b5749d319c194 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Fri, 13 Nov 2026 18:58:56 -0500 Subject: [PATCH] Bind Brussels and Flemish post-18 education flags to enrolment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Brussels article 25 §2(b) and Flemish article 8 §2 item 3 pay family benefits to a child in education up to 25. PR 4a defaulted both flags to false, a lower bound that paid nothing from 18 on. This binds each flag, like Wallonia's and the German-speaking Community's, to a person_role predicate over fact:person.education_enrollment's six enrolled bands, in its scheme's eligibility module and in the regional routing bridge. The closure goes from 35 encoded and 242 defaulted roots to 39 and 238. Six defaults keep their values and get reasons that say what the new bindings change; the Flemish residence-right reason names the age groups before its exception. A new test pins all four regions' post-18 flags to one enrolment predicate. The coverage and country-spec goldens are regenerated, and the transport ADR now says encode runs Belgium's person_role bindings and defers only its 11 other group bindings. Co-Authored-By: Claude Opus 5.5 --- .../be-post18-enrolment-bindings.changed.md | 1 + docs/concept-coverage/axiom-be.md | 18 +-- docs/concept-schema-transport-adr.md | 14 ++- .../build/be/axiom_input_closure.json | 52 ++++---- .../shared/test_be_axiom_input_closure.py | 63 ++++++++-- .../tests/golden/be_country_spec.json | 4 +- .../adapters/axiom_concept_mappings/be.json | 112 ++++++++++++++++++ .../golden/concept-coverage/axiom-be.json | 62 ++++++---- 8 files changed, 248 insertions(+), 78 deletions(-) create mode 100644 changelog.d/be-post18-enrolment-bindings.changed.md diff --git a/changelog.d/be-post18-enrolment-bindings.changed.md b/changelog.d/be-post18-enrolment-bindings.changed.md new file mode 100644 index 0000000000..8aa2120c58 --- /dev/null +++ b/changelog.d/be-post18-enrolment-bindings.changed.md @@ -0,0 +1 @@ +Bind Brussels' and Flanders' post-18 education flags to `fact:person.education_enrollment` in the `axiom:be` concept mapping (PR 4a-2). `brussels_family_benefits_child_in_qualifying_education_training_or_stage` (ordinance article 25 §2(b)) and `flanders_family_benefits_child_is_pupil_student_intern_or_school_leaver` (Groeipakket decree article 8 §2 item 3) each gain a `person_role` predicate binding over the six enrolled ISCED bands, in the scheme's eligibility module and in the routing bridge, as Wallonia's and the German-speaking Community's flags already have. Belgium's input closure moves from 35 encoded and 242 defaulted `Child` roots to 39 and 238. Six defaulted flags, 12 roots counting each flag's scheme module and the routing bridge, keep their values and get new reasons. Flanders' month-turning-25 default now ends an enrolled child's window at the age the frame reports. Three exclusion flags now say whom the default overstates entitlement for: holders of a study, training, volunteer or au-pair stay, or children raised or taught abroad, whom no saving clause or exemption covers, under 18 and now also enrolled ones aged 18 to 24. Brussels' apprentice and thesis defaults now miss only apprentices and thesis writers aged 18 to 24 whom the enrolment fact doesn't count. A new test checks that all four regions' post-18 education flags read the same enrolment predicate. The concept-coverage report and the Belgian spec golden are regenerated, and `docs/concept-schema-transport-adr.md` now counts Belgium's 39 `person_role` bindings as executed rather than deferred. No node runs these modules yet. diff --git a/docs/concept-coverage/axiom-be.md b/docs/concept-coverage/axiom-be.md index 2b95f7e908..6cb54a65e6 100644 --- a/docs/concept-coverage/axiom-be.md +++ b/docs/concept-coverage/axiom-be.md @@ -3,9 +3,9 @@ Engine version `b105e2b3a3086ddd2de447d58a9b951346870dd1`; concept schema `5a55669d0447`. Generated by `tools/refresh_concept_coverage.py`; do not edit by hand. - Engine inputs: 1867 -- Fed by a concept: 105 +- Fed by a concept: 109 - Structural: 0 -- Uncovered: 1762 +- Uncovered: 1758 - Mapped but missing from the engine: 0 ## Inputs each concept feeds @@ -27,7 +27,7 @@ Engine version `b105e2b3a3086ddd2de447d58a9b951346870dd1`; concept schema `5a556 | `fact:person.public_pension_income` | `belgium_pension_solidarity_monthly_gross_legal_pensions` (Family)
`belgium_pension_solidarity_monthly_gross_legal_pensions` (Family)
`belgium_pension_solidarity_monthly_gross_legal_pensions` (Family)
`belgium_pension_solidarity_monthly_gross_legal_pensions` (Family)
`belgium_pit_article_23_pension_annuity_or_equivalent_allowance` (Person)
`belgium_pit_article_23_pension_annuity_or_equivalent_allowance` (Person)
`belgium_pit_article_23_pension_annuity_or_equivalent_allowance` (Person)
`belgium_pit_pensioner_annual_gross_pension` (Person)
`belgium_pit_pensioner_annual_legal_pension` (Person)
`belgium_self_employed_receives_retirement_or_survivor_pension` (Person)
`belgium_self_employed_receives_retirement_or_survivor_pension` (Person) | | `fact:person.usual_weekly_hours` | `belgium_unemployment_article_116_part_time_weekly_hours` (Person)
`belgium_unemployment_article_33_average_weekly_hours` (Person)
`belgium_unemployment_article_33_average_weekly_hours` (Person) | | `fact:person.has_disability` | `belgium_pit_taxpayer_disability_count` (Person)
`belgium_pit_taxpayer_disability_count` (Person)
`belgium_pit_taxpayer_disability_count` (Person)
`belgium_pit_taxpayer_disability_count` (Person) | -| `fact:person.education_enrollment` | `brussels_family_benefits_child_enrolled_in_higher_education` (Child)
`brussels_family_benefits_child_enrolled_in_higher_education` (Child)
`brussels_family_benefits_child_enrolled_in_higher_education` (Child)
`brussels_family_benefits_child_enrolled_in_higher_education` (Child)
`flanders_school_allowance_education_level` (Person)
`german_speaking_community_family_benefits_child_in_training` (Child)
`german_speaking_community_family_benefits_child_in_training` (Child)
`study_allowance_is_higher_education` (Person)
`wallonia_family_benefits_child_in_qualifying_courses_or_stage` (Child)
`wallonia_family_benefits_child_in_qualifying_courses_or_stage` (Child) | +| `fact:person.education_enrollment` | `brussels_family_benefits_child_enrolled_in_higher_education` (Child)
`brussels_family_benefits_child_enrolled_in_higher_education` (Child)
`brussels_family_benefits_child_enrolled_in_higher_education` (Child)
`brussels_family_benefits_child_enrolled_in_higher_education` (Child)
`brussels_family_benefits_child_in_qualifying_education_training_or_stage` (Child)
`brussels_family_benefits_child_in_qualifying_education_training_or_stage` (Child)
`flanders_family_benefits_child_is_pupil_student_intern_or_school_leaver` (Child)
`flanders_family_benefits_child_is_pupil_student_intern_or_school_leaver` (Child)
`flanders_school_allowance_education_level` (Person)
`german_speaking_community_family_benefits_child_in_training` (Child)
`german_speaking_community_family_benefits_child_in_training` (Child)
`study_allowance_is_higher_education` (Person)
`wallonia_family_benefits_child_in_qualifying_courses_or_stage` (Child)
`wallonia_family_benefits_child_in_qualifying_courses_or_stage` (Child) | | `fact:household.tenure` | `brussels_be_home_household_has_member_with_real_right` (Property)
`brussels_housing_dwelling_managed_by_public_social_housing_or_social_rental_agency` (Household)
`brussels_housing_principal_residence_lease` (Household) | | `fact:household.rent` | `brussels_housing_monthly_rent_at_lease_start` (Household) | | `fact:household.mortgage_interest` | `belgium_social_integration_eligible_annual_mortgage_interest_on_property` (Household)
`belgium_social_integration_eligible_annual_mortgage_interest_on_property` (Household)
`brussels_apa_eligible_annual_mortgage_interest` (Person) | @@ -66,9 +66,9 @@ Engine version `b105e2b3a3086ddd2de447d58a9b951346870dd1`; concept schema `5a556 `brussels_family_benefits_single_child_without_article_8_9_or_12_supplement (Child)` -### be-bru/statutes/family_benefits/eligibility.yaml (15) +### be-bru/statutes/family_benefits/eligibility.yaml (14) -`brussels_family_benefits_article_26_condition_met (Child)`, `brussels_family_benefits_child_domiciled_in_brussels_capital_region (Child)`, `brussels_family_benefits_child_has_belgian_nationality (Child)`, `brussels_family_benefits_child_has_foreign_residence_title (Child)`, `brussels_family_benefits_child_has_foreign_study_training_volunteer_or_au_pair_stay_authorization (Child)`, `brussels_family_benefits_child_in_qualifying_education_training_or_stage (Child)`, `brussels_family_benefits_child_is_apprentice (Child)`, `brussels_family_benefits_child_prepares_higher_education_thesis (Child)`, `brussels_family_benefits_child_registered_jobseeker_after_studies_or_apprenticeship (Child)`, `brussels_family_benefits_right_open_on_2025_08_31 (Child)`, `brussels_family_benefits_single_child_without_article_8_9_or_12_supplement (Child)`, `brussels_family_benefits_social_supplement_beneficiary_child_count (Child)`, `brussels_family_benefits_social_supplement_cadastral_income_cap_exceeded (Child)`, `brussels_family_benefits_social_supplement_child_in_single_parent_family (Child)`, `brussels_family_benefits_social_supplement_household_annual_income (Child)` +`brussels_family_benefits_article_26_condition_met (Child)`, `brussels_family_benefits_child_domiciled_in_brussels_capital_region (Child)`, `brussels_family_benefits_child_has_belgian_nationality (Child)`, `brussels_family_benefits_child_has_foreign_residence_title (Child)`, `brussels_family_benefits_child_has_foreign_study_training_volunteer_or_au_pair_stay_authorization (Child)`, `brussels_family_benefits_child_is_apprentice (Child)`, `brussels_family_benefits_child_prepares_higher_education_thesis (Child)`, `brussels_family_benefits_child_registered_jobseeker_after_studies_or_apprenticeship (Child)`, `brussels_family_benefits_right_open_on_2025_08_31 (Child)`, `brussels_family_benefits_single_child_without_article_8_9_or_12_supplement (Child)`, `brussels_family_benefits_social_supplement_beneficiary_child_count (Child)`, `brussels_family_benefits_social_supplement_cadastral_income_cap_exceeded (Child)`, `brussels_family_benefits_social_supplement_child_in_single_parent_family (Child)`, `brussels_family_benefits_social_supplement_household_annual_income (Child)` ### be-bru/statutes/family_benefits/selected_amount.yaml (5) @@ -126,9 +126,9 @@ Engine version `b105e2b3a3086ddd2de447d58a9b951346870dd1`; concept schema `5a556 `flanders_family_benefits_disability_tier (Child)`, `flanders_family_benefits_equal_shared_housing (Child)`, `flanders_family_benefits_family_annual_income (Child)`, `flanders_family_benefits_in_qualifying_foster_care (Child)`, `flanders_family_benefits_orphan_status_code (Child)`, `flanders_family_benefits_qualifying_children_in_family_count (Child)` -### be-vlg/statutes/family_benefits/eligibility.yaml (21) +### be-vlg/statutes/family_benefits/eligibility.yaml (20) -`flanders_family_benefits_book_5_transition_no_age_limit_applies (Child)`, `flanders_family_benefits_child_disappeared_or_abducted (Child)`, `flanders_family_benefits_child_domiciled_in_dutch_language_region (Child)`, `flanders_family_benefits_child_has_authorized_residence (Child)`, `flanders_family_benefits_child_has_belgian_nationality_proof (Child)`, `flanders_family_benefits_child_has_excluded_study_training_volunteer_or_au_pair_residence_right (Child)`, `flanders_family_benefits_child_has_specific_support_need (Child)`, `flanders_family_benefits_child_in_month_turning_18 (Child)`, `flanders_family_benefits_child_in_month_turning_21 (Child)`, `flanders_family_benefits_child_in_month_turning_25 (Child)`, `flanders_family_benefits_child_is_child_of_excluded_residence_holder (Child)`, `flanders_family_benefits_child_is_pupil_student_intern_or_school_leaver (Child)`, `flanders_family_benefits_child_raised_or_studies_outside_belgium (Child)`, `flanders_family_benefits_disability_tier (Child)`, `flanders_family_benefits_equal_shared_housing (Child)`, `flanders_family_benefits_family_annual_income (Child)`, `flanders_family_benefits_in_qualifying_foster_care (Child)`, `flanders_family_benefits_orphan_status_code (Child)`, `flanders_family_benefits_outside_belgium_government_exemption_applies (Child)`, `flanders_family_benefits_qualifying_children_in_family_count (Child)`, `flanders_family_benefits_residence_and_status_condition_met_at_disappearance_or_abduction (Child)` +`flanders_family_benefits_book_5_transition_no_age_limit_applies (Child)`, `flanders_family_benefits_child_disappeared_or_abducted (Child)`, `flanders_family_benefits_child_domiciled_in_dutch_language_region (Child)`, `flanders_family_benefits_child_has_authorized_residence (Child)`, `flanders_family_benefits_child_has_belgian_nationality_proof (Child)`, `flanders_family_benefits_child_has_excluded_study_training_volunteer_or_au_pair_residence_right (Child)`, `flanders_family_benefits_child_has_specific_support_need (Child)`, `flanders_family_benefits_child_in_month_turning_18 (Child)`, `flanders_family_benefits_child_in_month_turning_21 (Child)`, `flanders_family_benefits_child_in_month_turning_25 (Child)`, `flanders_family_benefits_child_is_child_of_excluded_residence_holder (Child)`, `flanders_family_benefits_child_raised_or_studies_outside_belgium (Child)`, `flanders_family_benefits_disability_tier (Child)`, `flanders_family_benefits_equal_shared_housing (Child)`, `flanders_family_benefits_family_annual_income (Child)`, `flanders_family_benefits_in_qualifying_foster_care (Child)`, `flanders_family_benefits_orphan_status_code (Child)`, `flanders_family_benefits_outside_belgium_government_exemption_applies (Child)`, `flanders_family_benefits_qualifying_children_in_family_count (Child)`, `flanders_family_benefits_residence_and_status_condition_met_at_disappearance_or_abduction (Child)` ### be-vlg/statutes/gift_tax/rate_scale.yaml (3) @@ -286,9 +286,9 @@ Engine version `b105e2b3a3086ddd2de447d58a9b951346870dd1`; concept schema `5a556 `belgium_lgaf_allocataires_qualifying_relationship_or_de_facto_household (Child)`, `belgium_lgaf_allocataires_same_principal_residence (Child)`, `belgium_lgaf_article_41_single_parent_supplement_conditions_met (Child)`, `belgium_lgaf_article_42bis_social_supplement_conditions_met (Child)`, `belgium_lgaf_article_42bis_third_or_later_allocataire_meets_article_41_first_two_conditions (Child)`, `belgium_lgaf_birth_order_rank (Child)`, `belgium_lgaf_child_has_article_41_42bis_47_or_50ter_supplement (Child)`, `belgium_lgaf_child_is_article_50bis_orphan (Child)`, `belgium_lgaf_child_is_article_62_or_63_beneficiary (Child)`, `belgium_lgaf_current_index_multiplier (Child)`, `belgium_lgaf_current_revaluation_coefficient (Child)`, `belgium_lgaf_multiple_birth (Child)`, `belgium_lgaf_receives_article_41_42bis_47_50ter_or_50bis_for_july (Child)`, `belgium_lgaf_single_allocataire_for_rank_group (Child)`, `belgium_lgaf_supplied_child_rank_for_amounts (Child)`, `belgium_lgaf_supplied_third_and_later_birth_allowance_base_amount (Child)` -### be/statutes/family_benefits/regional_routing.yaml (95) +### be/statutes/family_benefits/regional_routing.yaml (93) -`belgium_family_benefits_region (Child)`, `brussels_family_benefits_article_26_condition_met (Child)`, `brussels_family_benefits_child_domiciled_in_brussels_capital_region (Child)`, `brussels_family_benefits_child_has_belgian_nationality (Child)`, `brussels_family_benefits_child_has_foreign_residence_title (Child)`, `brussels_family_benefits_child_has_foreign_study_training_volunteer_or_au_pair_stay_authorization (Child)`, `brussels_family_benefits_child_in_qualifying_education_training_or_stage (Child)`, `brussels_family_benefits_child_is_apprentice (Child)`, `brussels_family_benefits_child_prepares_higher_education_thesis (Child)`, `brussels_family_benefits_child_registered_jobseeker_after_studies_or_apprenticeship (Child)`, `brussels_family_benefits_right_open_on_2025_08_31 (Child)`, `brussels_family_benefits_single_child_without_article_8_9_or_12_supplement (Child)`, `brussels_family_benefits_social_supplement_beneficiary_child_count (Child)`, `brussels_family_benefits_social_supplement_cadastral_income_cap_exceeded (Child)`, `brussels_family_benefits_social_supplement_child_in_single_parent_family (Child)`, `brussels_family_benefits_social_supplement_household_annual_income (Child)`, `flanders_family_benefits_book_5_transition_no_age_limit_applies (Child)`, `flanders_family_benefits_child_disappeared_or_abducted (Child)`, `flanders_family_benefits_child_domiciled_in_dutch_language_region (Child)`, `flanders_family_benefits_child_has_authorized_residence (Child)`, `flanders_family_benefits_child_has_belgian_nationality_proof (Child)`, `flanders_family_benefits_child_has_excluded_study_training_volunteer_or_au_pair_residence_right (Child)`, `flanders_family_benefits_child_has_specific_support_need (Child)`, `flanders_family_benefits_child_in_month_turning_18 (Child)`, `flanders_family_benefits_child_in_month_turning_21 (Child)`, `flanders_family_benefits_child_in_month_turning_25 (Child)`, `flanders_family_benefits_child_is_child_of_excluded_residence_holder (Child)`, `flanders_family_benefits_child_is_pupil_student_intern_or_school_leaver (Child)`, `flanders_family_benefits_child_raised_or_studies_outside_belgium (Child)`, `flanders_family_benefits_disability_tier (Child)`, `flanders_family_benefits_equal_shared_housing (Child)`, `flanders_family_benefits_family_annual_income (Child)`, `flanders_family_benefits_in_qualifying_foster_care (Child)`, `flanders_family_benefits_orphan_status_code (Child)`, `flanders_family_benefits_outside_belgium_government_exemption_applies (Child)`, `flanders_family_benefits_qualifying_children_in_family_count (Child)`, `flanders_family_benefits_residence_and_status_condition_met_at_disappearance_or_abduction (Child)`, `german_speaking_community_family_benefits_abduction_ended (Child)`, `german_speaking_community_family_benefits_abduction_reported_to_authority (Child)`, `german_speaking_community_family_benefits_adoption_premium_conditions_met (Child)`, `german_speaking_community_family_benefits_article_10_extension_months_used (Child)`, `german_speaking_community_family_benefits_benefit_year (Child)`, `german_speaking_community_family_benefits_birth_premium_conditions_met (Child)`, `german_speaking_community_family_benefits_child_abducted (Child)`, `german_speaking_community_family_benefits_child_disappeared (Child)`, `german_speaking_community_family_benefits_child_domiciled_in_german_language_region (Child)`, `german_speaking_community_family_benefits_child_has_base_entitlement (Child)`, `german_speaking_community_family_benefits_child_has_foreign_nationality (Child)`, `german_speaking_community_family_benefits_child_was_article_9_1_entitled_at_abduction (Child)`, `german_speaking_community_family_benefits_child_was_entitled_at_disappearance (Child)`, `german_speaking_community_family_benefits_current_index_factor (Child)`, `german_speaking_community_family_benefits_disability_category (Child)`, `german_speaking_community_family_benefits_disappeared_child_found (Child)`, `german_speaking_community_family_benefits_employment_suspends_training_or_extension_entitlement (Child)`, `german_speaking_community_family_benefits_foreign_stay_or_settlement_authorized_more_than_three_months (Child)`, `german_speaking_community_family_benefits_government_residence_condition_deemed_met (Child)`, `german_speaking_community_family_benefits_has_increased_health_insurance_reimbursement (Child)`, `german_speaking_community_family_benefits_has_july_base_entitlement (Child)`, `german_speaking_community_family_benefits_impairment_can_open_disability_supplement (Child)`, `german_speaking_community_family_benefits_impairment_started_while_entitled (Child)`, `german_speaking_community_family_benefits_is_full_orphan (Child)`, `german_speaking_community_family_benefits_is_half_orphan (Child)`, `german_speaking_community_family_benefits_months_since_disappearance (Child)`, `german_speaking_community_family_benefits_no_current_article_9_entitlement (Child)`, `german_speaking_community_family_benefits_pre_2025_index_factor (Child)`, `german_speaking_community_family_benefits_same_recipient_entitled_child_count (Child)`, `wallonia_family_benefits_child_disappeared (Child)`, `wallonia_family_benefits_child_has_belgian_nationality (Child)`, `wallonia_family_benefits_child_has_disability_supplement_condition (Child)`, `wallonia_family_benefits_child_has_registration_attestation_only (Child)`, `wallonia_family_benefits_child_has_residence_title (Child)`, `wallonia_family_benefits_child_in_month_turning_21 (Child)`, `wallonia_family_benefits_child_in_qualifying_diploma_training (Child)`, `wallonia_family_benefits_child_is_apprentice (Child)`, `wallonia_family_benefits_child_is_third_country_student_authorized_to_stay_for_studies (Child)`, `wallonia_family_benefits_child_legal_domicile_in_french_language_region (Child)`, `wallonia_family_benefits_child_parents_are_stateless (Child)`, `wallonia_family_benefits_child_registered_jobseeker_after_studies_or_apprenticeship (Child)`, `wallonia_family_benefits_child_was_beneficiary_at_disappearance (Child)`, `wallonia_family_benefits_child_without_legal_domicile_effectively_resides_in_french_language_region (Child)`, `wallonia_family_benefits_disability_tier (Child)`, `wallonia_family_benefits_disabled_household_member_supplement_applies (Child)`, `wallonia_family_benefits_disappeared_child_found (Child)`, `wallonia_family_benefits_double_orphan_or_only_parent_orphan (Child)`, `wallonia_family_benefits_government_derogation_applies (Child)`, `wallonia_family_benefits_household_annual_income (Child)`, `wallonia_family_benefits_household_member_has_loss_capacity (Child)`, `wallonia_family_benefits_in_qualifying_foster_care (Child)`, `wallonia_family_benefits_no_government_obstacle_applies (Child)`, `wallonia_family_benefits_no_other_belgian_foreign_or_international_family_benefit_right (Child)`, `wallonia_family_benefits_one_parent_or_only_filiation_orphan (Child)`, `wallonia_family_benefits_parents_eu_or_reg883_and_economic_activity_in_french_region (Child)`, `wallonia_family_benefits_qualifying_children_in_household_count (Child)`, `wallonia_family_benefits_single_parent (Child)`, `wallonia_family_benefits_supranational_family_member_right_applies (Child)` +`belgium_family_benefits_region (Child)`, `brussels_family_benefits_article_26_condition_met (Child)`, `brussels_family_benefits_child_domiciled_in_brussels_capital_region (Child)`, `brussels_family_benefits_child_has_belgian_nationality (Child)`, `brussels_family_benefits_child_has_foreign_residence_title (Child)`, `brussels_family_benefits_child_has_foreign_study_training_volunteer_or_au_pair_stay_authorization (Child)`, `brussels_family_benefits_child_is_apprentice (Child)`, `brussels_family_benefits_child_prepares_higher_education_thesis (Child)`, `brussels_family_benefits_child_registered_jobseeker_after_studies_or_apprenticeship (Child)`, `brussels_family_benefits_right_open_on_2025_08_31 (Child)`, `brussels_family_benefits_single_child_without_article_8_9_or_12_supplement (Child)`, `brussels_family_benefits_social_supplement_beneficiary_child_count (Child)`, `brussels_family_benefits_social_supplement_cadastral_income_cap_exceeded (Child)`, `brussels_family_benefits_social_supplement_child_in_single_parent_family (Child)`, `brussels_family_benefits_social_supplement_household_annual_income (Child)`, `flanders_family_benefits_book_5_transition_no_age_limit_applies (Child)`, `flanders_family_benefits_child_disappeared_or_abducted (Child)`, `flanders_family_benefits_child_domiciled_in_dutch_language_region (Child)`, `flanders_family_benefits_child_has_authorized_residence (Child)`, `flanders_family_benefits_child_has_belgian_nationality_proof (Child)`, `flanders_family_benefits_child_has_excluded_study_training_volunteer_or_au_pair_residence_right (Child)`, `flanders_family_benefits_child_has_specific_support_need (Child)`, `flanders_family_benefits_child_in_month_turning_18 (Child)`, `flanders_family_benefits_child_in_month_turning_21 (Child)`, `flanders_family_benefits_child_in_month_turning_25 (Child)`, `flanders_family_benefits_child_is_child_of_excluded_residence_holder (Child)`, `flanders_family_benefits_child_raised_or_studies_outside_belgium (Child)`, `flanders_family_benefits_disability_tier (Child)`, `flanders_family_benefits_equal_shared_housing (Child)`, `flanders_family_benefits_family_annual_income (Child)`, `flanders_family_benefits_in_qualifying_foster_care (Child)`, `flanders_family_benefits_orphan_status_code (Child)`, `flanders_family_benefits_outside_belgium_government_exemption_applies (Child)`, `flanders_family_benefits_qualifying_children_in_family_count (Child)`, `flanders_family_benefits_residence_and_status_condition_met_at_disappearance_or_abduction (Child)`, `german_speaking_community_family_benefits_abduction_ended (Child)`, `german_speaking_community_family_benefits_abduction_reported_to_authority (Child)`, `german_speaking_community_family_benefits_adoption_premium_conditions_met (Child)`, `german_speaking_community_family_benefits_article_10_extension_months_used (Child)`, `german_speaking_community_family_benefits_benefit_year (Child)`, `german_speaking_community_family_benefits_birth_premium_conditions_met (Child)`, `german_speaking_community_family_benefits_child_abducted (Child)`, `german_speaking_community_family_benefits_child_disappeared (Child)`, `german_speaking_community_family_benefits_child_domiciled_in_german_language_region (Child)`, `german_speaking_community_family_benefits_child_has_base_entitlement (Child)`, `german_speaking_community_family_benefits_child_has_foreign_nationality (Child)`, `german_speaking_community_family_benefits_child_was_article_9_1_entitled_at_abduction (Child)`, `german_speaking_community_family_benefits_child_was_entitled_at_disappearance (Child)`, `german_speaking_community_family_benefits_current_index_factor (Child)`, `german_speaking_community_family_benefits_disability_category (Child)`, `german_speaking_community_family_benefits_disappeared_child_found (Child)`, `german_speaking_community_family_benefits_employment_suspends_training_or_extension_entitlement (Child)`, `german_speaking_community_family_benefits_foreign_stay_or_settlement_authorized_more_than_three_months (Child)`, `german_speaking_community_family_benefits_government_residence_condition_deemed_met (Child)`, `german_speaking_community_family_benefits_has_increased_health_insurance_reimbursement (Child)`, `german_speaking_community_family_benefits_has_july_base_entitlement (Child)`, `german_speaking_community_family_benefits_impairment_can_open_disability_supplement (Child)`, `german_speaking_community_family_benefits_impairment_started_while_entitled (Child)`, `german_speaking_community_family_benefits_is_full_orphan (Child)`, `german_speaking_community_family_benefits_is_half_orphan (Child)`, `german_speaking_community_family_benefits_months_since_disappearance (Child)`, `german_speaking_community_family_benefits_no_current_article_9_entitlement (Child)`, `german_speaking_community_family_benefits_pre_2025_index_factor (Child)`, `german_speaking_community_family_benefits_same_recipient_entitled_child_count (Child)`, `wallonia_family_benefits_child_disappeared (Child)`, `wallonia_family_benefits_child_has_belgian_nationality (Child)`, `wallonia_family_benefits_child_has_disability_supplement_condition (Child)`, `wallonia_family_benefits_child_has_registration_attestation_only (Child)`, `wallonia_family_benefits_child_has_residence_title (Child)`, `wallonia_family_benefits_child_in_month_turning_21 (Child)`, `wallonia_family_benefits_child_in_qualifying_diploma_training (Child)`, `wallonia_family_benefits_child_is_apprentice (Child)`, `wallonia_family_benefits_child_is_third_country_student_authorized_to_stay_for_studies (Child)`, `wallonia_family_benefits_child_legal_domicile_in_french_language_region (Child)`, `wallonia_family_benefits_child_parents_are_stateless (Child)`, `wallonia_family_benefits_child_registered_jobseeker_after_studies_or_apprenticeship (Child)`, `wallonia_family_benefits_child_was_beneficiary_at_disappearance (Child)`, `wallonia_family_benefits_child_without_legal_domicile_effectively_resides_in_french_language_region (Child)`, `wallonia_family_benefits_disability_tier (Child)`, `wallonia_family_benefits_disabled_household_member_supplement_applies (Child)`, `wallonia_family_benefits_disappeared_child_found (Child)`, `wallonia_family_benefits_double_orphan_or_only_parent_orphan (Child)`, `wallonia_family_benefits_government_derogation_applies (Child)`, `wallonia_family_benefits_household_annual_income (Child)`, `wallonia_family_benefits_household_member_has_loss_capacity (Child)`, `wallonia_family_benefits_in_qualifying_foster_care (Child)`, `wallonia_family_benefits_no_government_obstacle_applies (Child)`, `wallonia_family_benefits_no_other_belgian_foreign_or_international_family_benefit_right (Child)`, `wallonia_family_benefits_one_parent_or_only_filiation_orphan (Child)`, `wallonia_family_benefits_parents_eu_or_reg883_and_economic_activity_in_french_region (Child)`, `wallonia_family_benefits_qualifying_children_in_household_count (Child)`, `wallonia_family_benefits_single_parent (Child)`, `wallonia_family_benefits_supranational_family_member_right_applies (Child)` ### be/statutes/gift_tax/regional_routing.yaml (17) diff --git a/docs/concept-schema-transport-adr.md b/docs/concept-schema-transport-adr.md index 54b743cd92..6f988640cb 100644 --- a/docs/concept-schema-transport-adr.md +++ b/docs/concept-schema-transport-adr.md @@ -419,12 +419,14 @@ These hold for every input and are tested (Hypothesis properties unless noted): Longer cycles and other inconsistent relationships still fail validation. - The consuming builder supplies the destination frame declaration after transport. New Zealand's group bindings now execute on benefit units built - from the concept pointers. Belgium's group bindings (46 of its 105 module - bindings), and the take-up and housing bindings on US and UK group entities, - still wait for a step that builds those engines' units from the pointers, so - they stay deferred. Transport also still needs a country pack with - geography, targets and an engine adapter. The schema was the one piece that - belongs in the core from the start. + from the concept pointers. Belgium's 39 `person_role` bindings on `Child` + need no units: `encode` runs them on the person table + (`ConceptMapping.is_executable`). Belgium's 11 other group bindings (of + its 109 module bindings), and the take-up and housing bindings on US and UK + group entities, still wait for a step that builds those engines' units from + the pointers, so they stay deferred. Transport also still needs a country + pack with geography, targets and an engine adapter. The schema was the one + piece that belongs in the core from the start. - Open questions this does not settle: whether take-up propensities persist or are chosen at simulation time (#360), and how the Belgian population-input boundary treats `takes_up_*` names (#824). The Axiom concept-coverage diff --git a/packages/microcosm-build/src/microcosm/build/be/axiom_input_closure.json b/packages/microcosm-build/src/microcosm/build/be/axiom_input_closure.json index 0902d8e83b..c6e779469f 100644 --- a/packages/microcosm-build/src/microcosm/build/be/axiom_input_closure.json +++ b/packages/microcosm-build/src/microcosm/build/be/axiom_input_closure.json @@ -2,7 +2,7 @@ "format": "microcosm.axiom_input_closure.v1", "country": "be", "content_basis": "transport", - "description": "The input closure covers the twelve rulespec-be family-benefit modules that axiom_rules_bindings.json binds. Each runs on the engine entity Child through a binding-local view. A person_role concept binding of the axiom:be mapping encodes 35 of their 277 Child root inputs (a child's age and enrolment facts), and the other 242 take explicit defaults, each with a reason and a citation. The axiom adapter omits an input the frame lacks, and the engine fails a request that reaches an absent input (engine_optional_evidence), so a run feeds every entry here. The routing bridge reads the four regional schemes' roots through its imports, and a view reads each root from the person column of the same name, so a name takes one default in every module that reads it. Nothing executes these modules yet: Belgium has no composed transport graph, and METHOD-CARD-BE's row BE-MC0 reports child benefits as not modelled at level until indexed amounts are encoded and, in Flanders and Wallonia, until a graph pays the older cohort, whom these modules' amounts don't cover (the bindings' views_note), its own amounts. METHOD-CARD-BE is the Belgium port's method card, the document Max rules on; it is kept with the port's notes, outside this repository.", + "description": "The input closure covers the twelve rulespec-be family-benefit modules that axiom_rules_bindings.json binds. Each runs on the engine entity Child through a binding-local view. A person_role concept binding of the axiom:be mapping encodes 39 of their 277 Child root inputs (a child's age and enrolment facts), and the other 238 take explicit defaults, each with a reason and a citation. The axiom adapter omits an input the frame lacks, and the engine fails a request that reaches an absent input (engine_optional_evidence), so a run feeds every entry here. The routing bridge reads the four regional schemes' roots through its imports, and a view reads each root from the person column of the same name, so a name takes one default in every module that reads it. Nothing executes these modules yet: Belgium has no composed transport graph, and METHOD-CARD-BE's row BE-MC0 reports child benefits as not modelled at level until indexed amounts are encoded and, in Flanders and Wallonia, until a graph pays the older cohort, whom these modules' amounts don't cover (the bindings' views_note), its own amounts. METHOD-CARD-BE is the Belgium port's method card, the document Max rules on; it is kept with the port's notes, outside this repository.", "status": "awaiting Max's METHOD-CARD-BE ruling: every default is a proposal (new_default true)", "work_package": "PR 4a (Child bindings and input closure); PR 4b adds the graph that runs them", "mapping": { @@ -173,7 +173,7 @@ "input": "brussels_family_benefits_child_has_foreign_study_training_volunteer_or_au_pair_stay_authorization", "class": "defaulted", "value": false, - "reason": "From 1 September 2025 article 4 excludes a child from a third country, the EEA or Switzerland whom Belgium authorises to stay to study, train, volunteer or work as an au pair. No concept binding supplies stay authorisations, so the default treats no child as holding one and the exclusion never applies.", + "reason": "From 1 September 2025 article 4 excludes a child from a third country, the EEA or Switzerland whom Belgium authorises to stay to study, train, volunteer or work as an au pair. No concept binding supplies stay authorisations, so the default treats no child as holding one and the exclusion never applies. It overstates entitlement for every holder whose right was not open on 31 August 2025 (article 4's third paragraph keeps a right that was open on that date): any holder under 18 and, since article 25's education input reads fact:person.education_enrollment, any enrolled holder aged 18 to 24.", "citation": "Brussels family-benefits ordinance article 4 temporary stay exclusion from 1 September 2025 (brussels_family_benefits_article_4_temporary_stay_exclusion_applies, eligibility.yaml); corpus_citation_path be-bru/statute/ordonnance/2019/04/25/2019012118/article/4", "new_default": true }, @@ -181,11 +181,8 @@ "rulespec_path": "be-bru/statutes/family_benefits/eligibility.yaml", "entity": "Child", "input": "brussels_family_benefits_child_in_qualifying_education_training_or_stage", - "class": "defaulted", - "value": false, - "reason": "Article 25 \u00a72(b) pays to age 25 for a child who follows courses, does a qualifying traineeship or takes credit-bearing training, among programmes the Coll\u00e8ge r\u00e9uni selects. The default grants nobody this extension, the lower bound; under it no child aged 18 or over meets article 25, students included. A binding to fact:person.education_enrollment, like the ones be.json gives Wallonia's and the German-speaking Community's counterparts, should replace it.", - "citation": "Brussels family-benefits ordinance article 25 age and post-18 status conditions (brussels_family_benefits_article_25_age_or_status_condition_met, eligibility.yaml); corpus_citation_path be-bru/statute/ordonnance/2019/04/25/2019012118/article/25", - "new_default": true + "class": "encoded", + "encoded_by": "concept_binding" }, { "rulespec_path": "be-bru/statutes/family_benefits/eligibility.yaml", @@ -193,7 +190,7 @@ "input": "brussels_family_benefits_child_is_apprentice", "class": "defaulted", "value": false, - "reason": "Article 25 \u00a72(a) pays past 31 August of the year a child turns 18, up to age 25, for an apprentice. No concept binding supplies apprenticeship status, so the default grants nobody this extension: a lower bound for children aged 18 to 24.", + "reason": "Article 25 \u00a72(a) pays past 31 August of the year a child turns 18, up to age 25, for an apprentice. No concept binding supplies apprenticeship status, so the default grants nobody this route: a lower bound that misses any apprentice of 18 to 24 whom the enrolment fact behind brussels_family_benefits_child_in_qualifying_education_training_or_stage doesn't count.", "citation": "Brussels family-benefits ordinance article 25 age and post-18 status conditions (brussels_family_benefits_article_25_age_or_status_condition_met, eligibility.yaml); corpus_citation_path be-bru/statute/ordonnance/2019/04/25/2019012118/article/25", "new_default": true }, @@ -203,7 +200,7 @@ "input": "brussels_family_benefits_child_prepares_higher_education_thesis", "class": "defaulted", "value": false, - "reason": "Article 25 \u00a72(c) pays for a child under 25 who regularly prepares a higher-education thesis. No concept binding observes thesis preparation, so the default grants nobody this extension: a lower bound.", + "reason": "Article 25 \u00a72(c) pays for a child under 25 who regularly prepares a higher-education thesis. No concept binding observes thesis preparation, so the default grants nobody this route: a lower bound that misses any thesis writer of 18 to 24 whom the enrolment fact behind brussels_family_benefits_child_in_qualifying_education_training_or_stage doesn't count.", "citation": "Brussels family-benefits ordinance article 25 age and post-18 status conditions (brussels_family_benefits_article_25_age_or_status_condition_met, eligibility.yaml); corpus_citation_path be-bru/statute/ordonnance/2019/04/25/2019012118/article/25", "new_default": true }, @@ -963,7 +960,7 @@ "input": "flanders_family_benefits_child_has_excluded_study_training_volunteer_or_au_pair_residence_right", "class": "defaulted", "value": false, - "reason": "Article 8 section 1 denies benefits to a person whose right to stay rests on study, vocational training, volunteering or au-pair work. The mapping carries no fact on the purpose of a stay, so false applies the exclusion to nobody.", + "reason": "Article 8 section 1 denies benefits to a person whose right to stay rests on study, vocational training, volunteering or au-pair work. The mapping carries no fact on the purpose of a stay, so false applies the exclusion to nobody. It overstates entitlement for every such person under 18 and, since flanders_family_benefits_child_is_pupil_student_intern_or_school_leaver reads fact:person.education_enrollment, every enrolled one aged 18 to 24. It doesn't overstate it for a child of a study, training, volunteer or au-pair permit holder, since article 8 section 1 lets that child keep their entitlement.", "citation": "Flemish Groeipakket decree article 8 section 1 temporary residence-purpose exclusion (flanders_family_benefits_temporary_residence_exclusion_applies); corpus_citation_path be-vlg/statute/decreet/2018/04/27/2018040369/article/8, recorded on the module (source_verification) and on flanders_family_benefits_child_entitlement, not on this rule", "new_default": true }, @@ -1003,7 +1000,7 @@ "input": "flanders_family_benefits_child_in_month_turning_25", "class": "defaulted", "value": false, - "reason": "The flag marks the calendar month of the 25th birthday, and the mapping holds no birth month. It changes nothing while flanders_family_benefits_child_is_pupil_student_intern_or_school_leaver stays false. W3's query-period node should replace it.", + "reason": "The flag marks the calendar month of the 25th birthday, and the mapping holds no birth month. The enrolment binding now feeds flanders_family_benefits_child_is_pupil_student_intern_or_school_leaver, so false ends an enrolled child's window at the age the frame reports, before the end of the birth month that article 8 section 2 item 3 allows: a lower bound. W3's query-period node should replace it.", "citation": "Flemish Groeipakket decree article 8 section 2 age and status windows (flanders_family_benefits_age_or_status_condition_met); corpus_citation_path be-vlg/statute/decreet/2018/04/27/2018040369/article/8, recorded on the module (source_verification) and on flanders_family_benefits_child_entitlement, not on this rule", "new_default": true }, @@ -1021,11 +1018,8 @@ "rulespec_path": "be-vlg/statutes/family_benefits/eligibility.yaml", "entity": "Child", "input": "flanders_family_benefits_child_is_pupil_student_intern_or_school_leaver", - "class": "defaulted", - "value": false, - "reason": "Article 8 section 2 item 3 extends entitlement to the month a child turns 25 for a pupil, student, intern or school leaver, under conditions the Flemish Government sets. The mapping binds no fact to this input, so false grants no extension: a lower bound that pays nothing to anyone aged 18 or older.", - "citation": "Flemish Groeipakket decree article 8 section 2 age and status windows (flanders_family_benefits_age_or_status_condition_met); corpus_citation_path be-vlg/statute/decreet/2018/04/27/2018040369/article/8, recorded on the module (source_verification) and on flanders_family_benefits_child_entitlement, not on this rule", - "new_default": true + "class": "encoded", + "encoded_by": "concept_binding" }, { "rulespec_path": "be-vlg/statutes/family_benefits/eligibility.yaml", @@ -1033,7 +1027,7 @@ "input": "flanders_family_benefits_child_raised_or_studies_outside_belgium", "class": "defaulted", "value": false, - "reason": "Article 8 section 3 withholds benefits from children raised or taught outside Belgium. The selector will admit children domiciled in the region, and the mapping carries no fact on upbringing or schooling abroad, so false applies the exclusion to nobody.", + "reason": "Article 8 section 3 withholds benefits from children raised or taught outside Belgium. The selector will admit children domiciled in the region, and the mapping carries no fact on upbringing or schooling abroad, so false applies the exclusion to nobody. It overstates entitlement for every such child whom no Government exemption covers: any under 18 and, since the enrolment fact behind flanders_family_benefits_child_is_pupil_student_intern_or_school_leaver doesn't say where a child studies, any enrolled one aged 18 to 24.", "citation": "Flemish Groeipakket decree article 8 section 3 outside-Belgium exclusion (flanders_family_benefits_outside_belgium_exclusion_applies); corpus_citation_path be-vlg/statute/decreet/2018/04/27/2018040369/article/8, recorded on the module (source_verification) and on flanders_family_benefits_child_entitlement, not on this rule", "new_default": true }, @@ -1790,7 +1784,7 @@ "input": "brussels_family_benefits_child_has_foreign_study_training_volunteer_or_au_pair_stay_authorization", "class": "defaulted", "value": false, - "reason": "From 1 September 2025 article 4 excludes a child from a third country, the EEA or Switzerland whom Belgium authorises to stay to study, train, volunteer or work as an au pair. No concept binding supplies stay authorisations, so the default treats no child as holding one and the exclusion never applies.", + "reason": "From 1 September 2025 article 4 excludes a child from a third country, the EEA or Switzerland whom Belgium authorises to stay to study, train, volunteer or work as an au pair. No concept binding supplies stay authorisations, so the default treats no child as holding one and the exclusion never applies. It overstates entitlement for every holder whose right was not open on 31 August 2025 (article 4's third paragraph keeps a right that was open on that date): any holder under 18 and, since article 25's education input reads fact:person.education_enrollment, any enrolled holder aged 18 to 24.", "citation": "Brussels family-benefits ordinance article 4 temporary stay exclusion from 1 September 2025 (brussels_family_benefits_article_4_temporary_stay_exclusion_applies, eligibility.yaml); corpus_citation_path be-bru/statute/ordonnance/2019/04/25/2019012118/article/4", "new_default": true }, @@ -1798,11 +1792,8 @@ "rulespec_path": "be/statutes/family_benefits/regional_routing.yaml", "entity": "Child", "input": "brussels_family_benefits_child_in_qualifying_education_training_or_stage", - "class": "defaulted", - "value": false, - "reason": "Article 25 \u00a72(b) pays to age 25 for a child who follows courses, does a qualifying traineeship or takes credit-bearing training, among programmes the Coll\u00e8ge r\u00e9uni selects. The default grants nobody this extension, the lower bound; under it no child aged 18 or over meets article 25, students included. A binding to fact:person.education_enrollment, like the ones be.json gives Wallonia's and the German-speaking Community's counterparts, should replace it.", - "citation": "Brussels family-benefits ordinance article 25 age and post-18 status conditions (brussels_family_benefits_article_25_age_or_status_condition_met, eligibility.yaml); corpus_citation_path be-bru/statute/ordonnance/2019/04/25/2019012118/article/25", - "new_default": true + "class": "encoded", + "encoded_by": "concept_binding" }, { "rulespec_path": "be/statutes/family_benefits/regional_routing.yaml", @@ -1810,7 +1801,7 @@ "input": "brussels_family_benefits_child_is_apprentice", "class": "defaulted", "value": false, - "reason": "Article 25 \u00a72(a) pays past 31 August of the year a child turns 18, up to age 25, for an apprentice. No concept binding supplies apprenticeship status, so the default grants nobody this extension: a lower bound for children aged 18 to 24.", + "reason": "Article 25 \u00a72(a) pays past 31 August of the year a child turns 18, up to age 25, for an apprentice. No concept binding supplies apprenticeship status, so the default grants nobody this route: a lower bound that misses any apprentice of 18 to 24 whom the enrolment fact behind brussels_family_benefits_child_in_qualifying_education_training_or_stage doesn't count.", "citation": "Brussels family-benefits ordinance article 25 age and post-18 status conditions (brussels_family_benefits_article_25_age_or_status_condition_met, eligibility.yaml); corpus_citation_path be-bru/statute/ordonnance/2019/04/25/2019012118/article/25", "new_default": true }, @@ -1820,7 +1811,7 @@ "input": "brussels_family_benefits_child_prepares_higher_education_thesis", "class": "defaulted", "value": false, - "reason": "Article 25 \u00a72(c) pays for a child under 25 who regularly prepares a higher-education thesis. No concept binding observes thesis preparation, so the default grants nobody this extension: a lower bound.", + "reason": "Article 25 \u00a72(c) pays for a child under 25 who regularly prepares a higher-education thesis. No concept binding observes thesis preparation, so the default grants nobody this route: a lower bound that misses any thesis writer of 18 to 24 whom the enrolment fact behind brussels_family_benefits_child_in_qualifying_education_training_or_stage doesn't count.", "citation": "Brussels family-benefits ordinance article 25 age and post-18 status conditions (brussels_family_benefits_article_25_age_or_status_condition_met, eligibility.yaml); corpus_citation_path be-bru/statute/ordonnance/2019/04/25/2019012118/article/25", "new_default": true }, @@ -1971,7 +1962,7 @@ "input": "flanders_family_benefits_child_has_excluded_study_training_volunteer_or_au_pair_residence_right", "class": "defaulted", "value": false, - "reason": "Article 8 section 1 denies benefits to a person whose right to stay rests on study, vocational training, volunteering or au-pair work. The mapping carries no fact on the purpose of a stay, so false applies the exclusion to nobody.", + "reason": "Article 8 section 1 denies benefits to a person whose right to stay rests on study, vocational training, volunteering or au-pair work. The mapping carries no fact on the purpose of a stay, so false applies the exclusion to nobody. It overstates entitlement for every such person under 18 and, since flanders_family_benefits_child_is_pupil_student_intern_or_school_leaver reads fact:person.education_enrollment, every enrolled one aged 18 to 24. It doesn't overstate it for a child of a study, training, volunteer or au-pair permit holder, since article 8 section 1 lets that child keep their entitlement.", "citation": "Flemish Groeipakket decree article 8 section 1 temporary residence-purpose exclusion (flanders_family_benefits_temporary_residence_exclusion_applies); corpus_citation_path be-vlg/statute/decreet/2018/04/27/2018040369/article/8, recorded on the module (source_verification) and on flanders_family_benefits_child_entitlement, not on this rule", "new_default": true }, @@ -2011,7 +2002,7 @@ "input": "flanders_family_benefits_child_in_month_turning_25", "class": "defaulted", "value": false, - "reason": "The flag marks the calendar month of the 25th birthday, and the mapping holds no birth month. It changes nothing while flanders_family_benefits_child_is_pupil_student_intern_or_school_leaver stays false. W3's query-period node should replace it.", + "reason": "The flag marks the calendar month of the 25th birthday, and the mapping holds no birth month. The enrolment binding now feeds flanders_family_benefits_child_is_pupil_student_intern_or_school_leaver, so false ends an enrolled child's window at the age the frame reports, before the end of the birth month that article 8 section 2 item 3 allows: a lower bound. W3's query-period node should replace it.", "citation": "Flemish Groeipakket decree article 8 section 2 age and status windows (flanders_family_benefits_age_or_status_condition_met); corpus_citation_path be-vlg/statute/decreet/2018/04/27/2018040369/article/8, recorded on the module (source_verification) and on flanders_family_benefits_child_entitlement, not on this rule", "new_default": true }, @@ -2029,11 +2020,8 @@ "rulespec_path": "be/statutes/family_benefits/regional_routing.yaml", "entity": "Child", "input": "flanders_family_benefits_child_is_pupil_student_intern_or_school_leaver", - "class": "defaulted", - "value": false, - "reason": "Article 8 section 2 item 3 extends entitlement to the month a child turns 25 for a pupil, student, intern or school leaver, under conditions the Flemish Government sets. The mapping binds no fact to this input, so false grants no extension: a lower bound that pays nothing to anyone aged 18 or older.", - "citation": "Flemish Groeipakket decree article 8 section 2 age and status windows (flanders_family_benefits_age_or_status_condition_met); corpus_citation_path be-vlg/statute/decreet/2018/04/27/2018040369/article/8, recorded on the module (source_verification) and on flanders_family_benefits_child_entitlement, not on this rule", - "new_default": true + "class": "encoded", + "encoded_by": "concept_binding" }, { "rulespec_path": "be/statutes/family_benefits/regional_routing.yaml", diff --git a/packages/microcosm-build/tests/engine_free/shared/test_be_axiom_input_closure.py b/packages/microcosm-build/tests/engine_free/shared/test_be_axiom_input_closure.py index 224db3de5a..9aee65065d 100644 --- a/packages/microcosm-build/tests/engine_free/shared/test_be_axiom_input_closure.py +++ b/packages/microcosm-build/tests/engine_free/shared/test_be_axiom_input_closure.py @@ -4,7 +4,7 @@ family-benefit modules whose programs run on the engine entity ``Child``, and ``build/be/axiom_input_closure.json`` decides how each of their 277 ``Child`` root inputs is fed: a ``person_role`` binding of the ``axiom:be`` concept -mapping encodes 35, and the other 242 take a default with a reason and a +mapping encodes 39, and the other 238 take a default with a reason and a citation. No frame entity maps to ``Child``, so each binding declares a binding-local view on it (``docs/transport-declared-units.md``). @@ -32,8 +32,8 @@ ) from microcosm.frame.adapters.axiom import BE_SCHEMA, axiom_concept_mapping from microcosm.frame.adapters.axiom_input_surface import load_axiom_input_surface -from microcosm.frame.concept_mapping import GroupRule -from microcosm.frame.concepts import ContentBasis +from microcosm.frame.concept_mapping import GroupRule, Predicate +from microcosm.frame.concepts import AlignmentRelation, ContentBasis from microcosm.frame.input_closure import ClosureClass, EncodedBy, InputClosure from test_support.paths import paths_for @@ -48,22 +48,22 @@ LOGICAL_ENTITY = "Child" MODULES = 12 ROOTS = 277 -ENCODED = 35 -DEFAULTED = 242 +ENCODED = 39 +DEFAULTED = 238 #: Roots, encoded and defaulted per module, in rulespec_path order. PER_MODULE = { "be-bru/statutes/family_benefits/basic_amounts.yaml": (3, 2, 1), - "be-bru/statutes/family_benefits/eligibility.yaml": (19, 4, 15), + "be-bru/statutes/family_benefits/eligibility.yaml": (19, 5, 14), "be-bru/statutes/family_benefits/selected_amount.yaml": (8, 3, 5), "be-bru/statutes/family_benefits/social_supplements.yaml": (5, 1, 4), "be-dg/statutes/family_benefits/amounts.yaml": (12, 0, 12), "be-dg/statutes/family_benefits/eligibility.yaml": (31, 2, 29), "be-vlg/statutes/family_benefits/amounts.yaml": (7, 1, 6), - "be-vlg/statutes/family_benefits/eligibility.yaml": (23, 2, 21), + "be-vlg/statutes/family_benefits/eligibility.yaml": (23, 3, 20), "be-wal/statutes/family_benefits/amounts.yaml": (11, 2, 9), "be-wal/statutes/family_benefits/eligibility.yaml": (33, 4, 29), "be/statutes/family_benefits/lgaf_amounts.yaml": (18, 2, 16), - "be/statutes/family_benefits/regional_routing.yaml": (107, 12, 95), + "be/statutes/family_benefits/regional_routing.yaml": (107, 14, 93), } #: Each binding's module, the selector column of its Child view, and the @@ -395,6 +395,53 @@ def test_the_mapping_encodes_the_rest_by_person_role(self) -> None: assert encoded == bound assert len(encoded) == ENCODED + def test_the_post_18_education_flags_read_one_enrolment_predicate(self) -> None: + # Each scheme extends entitlement past 18 for a child in education + # (Brussels article 25, Flanders article 8 section 2 item 3, the + # German-speaking Community and Wallonia). Each flag is bound in its + # scheme's eligibility module and in the routing bridge, which imports + # that module, and every binding counts the same enrolled bands. + flags = { + "brussels_family_benefits_child_in_qualifying_education_training_or_stage": "be-bru", + "flanders_family_benefits_child_is_pupil_student_intern_or_school_leaver": "be-vlg", + "german_speaking_community_family_benefits_child_in_training": "be-dg", + "wallonia_family_benefits_child_in_qualifying_courses_or_stage": "be-wal", + } + enrolment = "fact:person.education_enrollment" + enrolled = ( + "early_childhood", + "primary", + "lower_secondary", + "upper_secondary", + "post_secondary_non_tertiary", + "tertiary", + ) + bindings = [ + binding for binding in MAPPING.bindings if binding.engine_input in flags + ] + assert sorted((b.engine_input, b.module) for b in bindings) == sorted( + (name, module) + for name, unit in flags.items() + for module in ( + f"{unit}/statutes/family_benefits/eligibility.yaml", + "be/statutes/family_benefits/regional_routing.yaml", + ) + ) + for binding in bindings: + assert binding.engine_entity == LOGICAL_ENTITY + assert binding.group_rule is GroupRule.PERSON_ROLE + assert binding.relation is AlignmentRelation.APPROXIMATE + assert binding.concepts == (enrolment,) + assert isinstance(binding.transform, Predicate) + assert binding.transform.clauses == ((enrolment, enrolled),) + closure = InputClosure.from_dict(_closure_payload()) + classes = { + (entry.input, entry.closure_class) + for entry in closure.entries + if entry.input in flags + } + assert classes == {(name, ClosureClass.ENCODED) for name in flags} + def test_a_name_keeps_one_default_across_modules(self) -> None: # The routing module reads the four regional schemes' roots through # its imports, so one name must not take two values. diff --git a/packages/microcosm-build/tests/golden/be_country_spec.json b/packages/microcosm-build/tests/golden/be_country_spec.json index 8943e7e11e..4c3de3b4a4 100644 --- a/packages/microcosm-build/tests/golden/be_country_spec.json +++ b/packages/microcosm-build/tests/golden/be_country_spec.json @@ -1,6 +1,6 @@ { "country": "be", - "fingerprint": "b67b1c4e9e87184d28b81183af77fc73c2fd0360c40a9b502505dcc73901ac4b", + "fingerprint": "d35397e4071d5eb7b5e293ee17a0847eb18f79ef15cad708365d80416ea8d67b", "gate_ids": [ "calibration_per_family_fit", "national_and_nuts1_admin_aggregates", @@ -29,7 +29,7 @@ "staging_repo": "policyengine/populace-be-staging" }, "resource_hashes": { - "axiom_input_closure.json": "b6c507812fc5ed12bb4568b61b9fada6565cc1c6a21e7eb6093eedc6e427313c", + "axiom_input_closure.json": "ea29a2711e05a2699ed365bc3d0d086f8e5f521f232e0f690738be1d0fc2de2e", "axiom_rules_bindings.json": "0d8c9670cc22761f90fba5df99c27bfea420708dad94926248da7dc1cea3a589", "chronicle_feed.json": "71f3967cefa12d8ad6c4b955547bfc37e33183ee839b3edf3a43e0cb72559030", "country_package.json": "204c8c06934160c856d86a9d6c5305d40e9b3a85713c11c3ab031bebb27fbe89", diff --git a/packages/microcosm-frame/src/microcosm/frame/adapters/axiom_concept_mappings/be.json b/packages/microcosm-frame/src/microcosm/frame/adapters/axiom_concept_mappings/be.json index 786b741497..58ec00768a 100644 --- a/packages/microcosm-frame/src/microcosm/frame/adapters/axiom_concept_mappings/be.json +++ b/packages/microcosm-frame/src/microcosm/frame/adapters/axiom_concept_mappings/be.json @@ -211,6 +211,34 @@ "kind": "predicate" } }, + { + "canonical_input": "be-bru:statutes/family_benefits/eligibility#input.brussels_family_benefits_child_in_qualifying_education_training_or_stage", + "concepts": [ + "fact:person.education_enrollment" + ], + "engine_entity": "Child", + "engine_input": "brussels_family_benefits_child_in_qualifying_education_training_or_stage", + "group_rule": "person_role", + "module": "be-bru/statutes/family_benefits/eligibility.yaml", + "note": "Consumed in be-bru/statutes/family_benefits/eligibility.yaml by brussels_family_benefits_article_25_age_or_status_condition_met (Month; ordinance of 25 April 2019 article 25). With the brussels_family_benefits_ prefix dropped from every name, the rule returns 1 when child_age_on_august_31_years is below 18. Otherwise, while child_age_years is below 25, it returns 1 when child_is_apprentice, child_in_qualifying_education_training_or_stage, child_prepares_higher_education_thesis or child_registered_jobseeker_after_studies_or_apprenticeship holds, and 0 otherwise. child_entitlement adds the article 4 conditions and the article 26 alternative, and the routing bridge reads the result through its import of brussels_family_benefits_eligible_monthly_amount. The input carries article 25 section 2(b): a child who 'suit des cours', does a stage 'pour pouvoir être nommé à une charge', or takes bachelor-master credit training with no required courses. Section 2 grants the extension 'aux conditions fixées par le Collège réuni', and 2(b) leaves the trainings that count to the Collège réuni. The module summary says 'Delegated proof rules and Article 26 detail remain supplied inputs', and the module does not encode those conditions. The binding reads the input as current enrollment in any ISCED programme at the reference date, not in the benefit month. Part-time enrollment counts. The concept does not observe whatever intensity or programme conditions the Collège réuni sets, or the gainful activities that it rules out. It does not see an appointment stage or credit training without courses unless the source records it as enrollment. The sibling inputs child_is_apprentice, child_prepares_higher_education_thesis and child_registered_jobseeker_after_studies_or_apprenticeship stay uncovered. An apprentice or thesis writer recorded as enrolled lands here, which the OR in the rule makes harmless to the result but not to the input's meaning. A school leaver registered as a jobseeker is not enrolled, so this binding leaves them to child_registered_jobseeker_after_studies_or_apprenticeship. The binding of brussels_family_benefits_child_enrolled_in_higher_education reads the tertiary band, one of the bands read here, so a child that input marks always meets this one. Each Child row takes that child's own enrollment.", + "relation": "approximate", + "transform": { + "clauses": [ + [ + "fact:person.education_enrollment", + [ + "early_childhood", + "primary", + "lower_secondary", + "upper_secondary", + "post_secondary_non_tertiary", + "tertiary" + ] + ] + ], + "kind": "predicate" + } + }, { "canonical_input": "be-bru:statutes/family_benefits/social_supplements#input.brussels_family_benefits_social_supplement_child_age_years", "concepts": [ @@ -479,6 +507,34 @@ "kind": "identity" } }, + { + "canonical_input": "be-vlg:statutes/family_benefits/eligibility#input.flanders_family_benefits_child_is_pupil_student_intern_or_school_leaver", + "concepts": [ + "fact:person.education_enrollment" + ], + "engine_entity": "Child", + "engine_input": "flanders_family_benefits_child_is_pupil_student_intern_or_school_leaver", + "group_rule": "person_role", + "module": "be-vlg/statutes/family_benefits/eligibility.yaml", + "note": "Consumed in be-vlg/statutes/family_benefits/eligibility.yaml by flanders_family_benefits_age_or_status_condition_met (Month; Groeipakket decree of 27 April 2018, article 8 section 2 item 3). With the flanders_family_benefits_ prefix dropped from every name, the third branch reads 'child_is_pupil_student_intern_or_school_leaver and (child_age_years < student_age_limit_years or child_in_month_turning_25)', with the limit 25. That branch is reached only after two earlier branches fail: age under 18 or the month of the 18th birthday, and a specific support need up to the month of the 21st birthday. It is the module's only reader of this input, and it reaches be/statutes/family_benefits/regional_routing.yaml through that module's import of flanders_family_benefits_eligible_monthly_amount. The module summary says 'Delegated proof and implementing conditions remain supplied inputs'. Article 8 section 2 item 3 extends entitlement to a 'leerling, student, stagiair of schoolverlater' on conditions the Flemish Government sets, and the module does not encode those conditions. The binding reads the input as current enrollment in any ISCED programme at the reference date, not in the benefit month. The concept does not observe an internship or traineeship outside an education programme, an apprenticeship or dual-learning track that the survey does not record as enrollment, or a school leaver's period after studies end, so those children read false. It does not say where the programme is, so a child taught outside Belgium, whom article 8 section 3 excludes unless the Government exempts them, reads as enrolled here. That exclusion is flanders_family_benefits_outside_belgium_exclusion_applies, which reads the separate input flanders_family_benefits_child_raised_or_studies_outside_belgium; that input stays uncovered and the input closure defaults it to false, so nothing in the model applies the exclusion. It also does not observe whatever minimum intensity, programme or earnings conditions the Government's rules impose, and part-time enrollment counts as enrolled here. The companion input flanders_family_benefits_child_in_month_turning_25 needs a birth month and stays uncovered. Each Child row takes that child's own enrollment.", + "relation": "approximate", + "transform": { + "clauses": [ + [ + "fact:person.education_enrollment", + [ + "early_childhood", + "primary", + "lower_secondary", + "upper_secondary", + "post_secondary_non_tertiary", + "tertiary" + ] + ] + ], + "kind": "predicate" + } + }, { "canonical_input": "be-wal:statutes/education/study_allowance#input.study_allowance_is_higher_education", "concepts": [ @@ -885,6 +941,34 @@ "kind": "predicate" } }, + { + "canonical_input": "be-bru:statutes/family_benefits/eligibility#input.brussels_family_benefits_child_in_qualifying_education_training_or_stage", + "concepts": [ + "fact:person.education_enrollment" + ], + "engine_entity": "Child", + "engine_input": "brussels_family_benefits_child_in_qualifying_education_training_or_stage", + "group_rule": "person_role", + "module": "be/statutes/family_benefits/regional_routing.yaml", + "note": "Consumed in be-bru/statutes/family_benefits/eligibility.yaml by brussels_family_benefits_article_25_age_or_status_condition_met (Month; ordinance of 25 April 2019 article 25). With the brussels_family_benefits_ prefix dropped from every name, the rule returns 1 when child_age_on_august_31_years is below 18. Otherwise, while child_age_years is below 25, it returns 1 when child_is_apprentice, child_in_qualifying_education_training_or_stage, child_prepares_higher_education_thesis or child_registered_jobseeker_after_studies_or_apprenticeship holds, and 0 otherwise. child_entitlement adds the article 4 conditions and the article 26 alternative, and the routing bridge reads the result through its import of brussels_family_benefits_eligible_monthly_amount. The input carries article 25 section 2(b): a child who 'suit des cours', does a stage 'pour pouvoir être nommé à une charge', or takes bachelor-master credit training with no required courses. Section 2 grants the extension 'aux conditions fixées par le Collège réuni', and 2(b) leaves the trainings that count to the Collège réuni. The module summary says 'Delegated proof rules and Article 26 detail remain supplied inputs', and the module does not encode those conditions. The binding reads the input as current enrollment in any ISCED programme at the reference date, not in the benefit month. Part-time enrollment counts. The concept does not observe whatever intensity or programme conditions the Collège réuni sets, or the gainful activities that it rules out. It does not see an appointment stage or credit training without courses unless the source records it as enrollment. The sibling inputs child_is_apprentice, child_prepares_higher_education_thesis and child_registered_jobseeker_after_studies_or_apprenticeship stay uncovered. An apprentice or thesis writer recorded as enrolled lands here, which the OR in the rule makes harmless to the result but not to the input's meaning. A school leaver registered as a jobseeker is not enrolled, so this binding leaves them to child_registered_jobseeker_after_studies_or_apprenticeship. The binding of brussels_family_benefits_child_enrolled_in_higher_education reads the tertiary band, one of the bands read here, so a child that input marks always meets this one. Each Child row takes that child's own enrollment.", + "relation": "approximate", + "transform": { + "clauses": [ + [ + "fact:person.education_enrollment", + [ + "early_childhood", + "primary", + "lower_secondary", + "upper_secondary", + "post_secondary_non_tertiary", + "tertiary" + ] + ] + ], + "kind": "predicate" + } + }, { "canonical_input": "be-bru:statutes/family_benefits/social_supplements#input.brussels_family_benefits_social_supplement_child_age_years", "concepts": [ @@ -930,6 +1014,34 @@ "kind": "identity" } }, + { + "canonical_input": "be-vlg:statutes/family_benefits/eligibility#input.flanders_family_benefits_child_is_pupil_student_intern_or_school_leaver", + "concepts": [ + "fact:person.education_enrollment" + ], + "engine_entity": "Child", + "engine_input": "flanders_family_benefits_child_is_pupil_student_intern_or_school_leaver", + "group_rule": "person_role", + "module": "be/statutes/family_benefits/regional_routing.yaml", + "note": "Consumed in be-vlg/statutes/family_benefits/eligibility.yaml by flanders_family_benefits_age_or_status_condition_met (Month; Groeipakket decree of 27 April 2018, article 8 section 2 item 3). With the flanders_family_benefits_ prefix dropped from every name, the third branch reads 'child_is_pupil_student_intern_or_school_leaver and (child_age_years < student_age_limit_years or child_in_month_turning_25)', with the limit 25. That branch is reached only after two earlier branches fail: age under 18 or the month of the 18th birthday, and a specific support need up to the month of the 21st birthday. It is the module's only reader of this input, and it reaches be/statutes/family_benefits/regional_routing.yaml through that module's import of flanders_family_benefits_eligible_monthly_amount. The module summary says 'Delegated proof and implementing conditions remain supplied inputs'. Article 8 section 2 item 3 extends entitlement to a 'leerling, student, stagiair of schoolverlater' on conditions the Flemish Government sets, and the module does not encode those conditions. The binding reads the input as current enrollment in any ISCED programme at the reference date, not in the benefit month. The concept does not observe an internship or traineeship outside an education programme, an apprenticeship or dual-learning track that the survey does not record as enrollment, or a school leaver's period after studies end, so those children read false. It does not say where the programme is, so a child taught outside Belgium, whom article 8 section 3 excludes unless the Government exempts them, reads as enrolled here. That exclusion is flanders_family_benefits_outside_belgium_exclusion_applies, which reads the separate input flanders_family_benefits_child_raised_or_studies_outside_belgium; that input stays uncovered and the input closure defaults it to false, so nothing in the model applies the exclusion. It also does not observe whatever minimum intensity, programme or earnings conditions the Government's rules impose, and part-time enrollment counts as enrolled here. The companion input flanders_family_benefits_child_in_month_turning_25 needs a birth month and stays uncovered. Each Child row takes that child's own enrollment.", + "relation": "approximate", + "transform": { + "clauses": [ + [ + "fact:person.education_enrollment", + [ + "early_childhood", + "primary", + "lower_secondary", + "upper_secondary", + "post_secondary_non_tertiary", + "tertiary" + ] + ] + ], + "kind": "predicate" + } + }, { "canonical_input": "be-dg:statutes/family_benefits/eligibility#input.german_speaking_community_family_benefits_child_age_years", "concepts": [ diff --git a/packages/microcosm-frame/tests/golden/concept-coverage/axiom-be.json b/packages/microcosm-frame/tests/golden/concept-coverage/axiom-be.json index 74291ee075..b064239947 100644 --- a/packages/microcosm-frame/tests/golden/concept-coverage/axiom-be.json +++ b/packages/microcosm-frame/tests/golden/concept-coverage/axiom-be.json @@ -250,6 +250,26 @@ "module": "be/statutes/family_benefits/regional_routing.yaml", "name": "brussels_family_benefits_child_enrolled_in_higher_education" }, + { + "entity": "Child", + "module": "be-bru/statutes/family_benefits/eligibility.yaml", + "name": "brussels_family_benefits_child_in_qualifying_education_training_or_stage" + }, + { + "entity": "Child", + "module": "be/statutes/family_benefits/regional_routing.yaml", + "name": "brussels_family_benefits_child_in_qualifying_education_training_or_stage" + }, + { + "entity": "Child", + "module": "be-vlg/statutes/family_benefits/eligibility.yaml", + "name": "flanders_family_benefits_child_is_pupil_student_intern_or_school_leaver" + }, + { + "entity": "Child", + "module": "be/statutes/family_benefits/regional_routing.yaml", + "name": "flanders_family_benefits_child_is_pupil_student_intern_or_school_leaver" + }, { "entity": "Person", "module": "be-vlg/statutes/education/school_allowance.yaml", @@ -641,7 +661,7 @@ } ] }, - "covered_count": 105, + "covered_count": 109, "covered_inputs": [ { "entity": "Person", @@ -1018,6 +1038,16 @@ "module": "be/statutes/family_benefits/regional_routing.yaml", "name": "brussels_family_benefits_child_enrolled_in_higher_education" }, + { + "entity": "Child", + "module": "be-bru/statutes/family_benefits/eligibility.yaml", + "name": "brussels_family_benefits_child_in_qualifying_education_training_or_stage" + }, + { + "entity": "Child", + "module": "be/statutes/family_benefits/regional_routing.yaml", + "name": "brussels_family_benefits_child_in_qualifying_education_training_or_stage" + }, { "entity": "Child", "module": "be-bru/statutes/family_benefits/eligibility.yaml", @@ -1078,6 +1108,16 @@ "module": "be/statutes/family_benefits/regional_routing.yaml", "name": "flanders_family_benefits_child_age_years" }, + { + "entity": "Child", + "module": "be-vlg/statutes/family_benefits/eligibility.yaml", + "name": "flanders_family_benefits_child_is_pupil_student_intern_or_school_leaver" + }, + { + "entity": "Child", + "module": "be/statutes/family_benefits/regional_routing.yaml", + "name": "flanders_family_benefits_child_is_pupil_student_intern_or_school_leaver" + }, { "entity": "Person", "module": "be-vlg/statutes/education/school_allowance.yaml", @@ -6955,16 +6995,6 @@ "module": "be/statutes/family_benefits/regional_routing.yaml", "name": "brussels_family_benefits_child_has_foreign_study_training_volunteer_or_au_pair_stay_authorization" }, - { - "entity": "Child", - "module": "be-bru/statutes/family_benefits/eligibility.yaml", - "name": "brussels_family_benefits_child_in_qualifying_education_training_or_stage" - }, - { - "entity": "Child", - "module": "be/statutes/family_benefits/regional_routing.yaml", - "name": "brussels_family_benefits_child_in_qualifying_education_training_or_stage" - }, { "entity": "Child", "module": "be-bru/statutes/family_benefits/eligibility.yaml", @@ -8220,16 +8250,6 @@ "module": "be/statutes/family_benefits/regional_routing.yaml", "name": "flanders_family_benefits_child_is_child_of_excluded_residence_holder" }, - { - "entity": "Child", - "module": "be-vlg/statutes/family_benefits/eligibility.yaml", - "name": "flanders_family_benefits_child_is_pupil_student_intern_or_school_leaver" - }, - { - "entity": "Child", - "module": "be/statutes/family_benefits/regional_routing.yaml", - "name": "flanders_family_benefits_child_is_pupil_student_intern_or_school_leaver" - }, { "entity": "Child", "module": "be-vlg/statutes/family_benefits/eligibility.yaml",