From ff2796736bec5c92e4e9c325197db58a737fab97 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Thu, 12 Nov 2026 01:03:31 -0500 Subject: [PATCH 1/4] Align Washington exemption age with collection years Use age 62 at collection-year end to apply the statutory age-61 filing-year deadline. Keep the veteran transition dates and add boundary and invariant coverage. Co-Authored-By: Claude Opus 5.5 --- .../wa-pte-collection-year-age.fixed.md | 1 + .../senior_disabled/age_threshold.yaml | 17 +- .../veteran/combined_rating_threshold.yaml | 4 +- .../veteran/rating_requirement_in_effect.yaml | 4 +- .../tests/core/test_wa_pte_age_invariants.py | 208 ++++++++++++++++++ .../senior_disabled/integration.yaml | 40 +++- .../wa_pte_categorical_eligible.yaml | 199 +++++++++++++++-- .../senior_disabled/wa_pte_eligible.yaml | 2 +- .../wa_pte_categorical_eligible.py | 9 +- 9 files changed, 459 insertions(+), 25 deletions(-) create mode 100644 changelog.d/wa-pte-collection-year-age.fixed.md create mode 100644 policyengine_us/tests/core/test_wa_pte_age_invariants.py diff --git a/changelog.d/wa-pte-collection-year-age.fixed.md b/changelog.d/wa-pte-collection-year-age.fixed.md new file mode 100644 index 00000000000..66305e084ca --- /dev/null +++ b/changelog.d/wa-pte-collection-year-age.fixed.md @@ -0,0 +1 @@ +Corrected Washington's senior property tax exemption age threshold to 62 in the collection year, matching age 61 at the preceding filing-year deadline. diff --git a/policyengine_us/parameters/gov/states/wa/dor/property_tax_exemption/senior_disabled/age_threshold.yaml b/policyengine_us/parameters/gov/states/wa/dor/property_tax_exemption/senior_disabled/age_threshold.yaml index b446a3b4f45..9b535aed2a2 100644 --- a/policyengine_us/parameters/gov/states/wa/dor/property_tax_exemption/senior_disabled/age_threshold.yaml +++ b/policyengine_us/parameters/gov/states/wa/dor/property_tax_exemption/senior_disabled/age_threshold.yaml @@ -1,7 +1,8 @@ -description: Washington sets this minimum age threshold for claimants under the Senior Citizens and Disabled Persons Property Tax Exemption program. +description: Washington qualifies senior claimants for its senior citizens and disabled persons property tax exemption at this minimum age at collection-year end. values: + # RCW 84.36.381 requires age 61 by December 31 of the filing year. + # Taxes come due in the following year: 61 + 1 = 62 at collection-year end. 2008-01-01: 62 - 2020-01-01: 61 metadata: unit: year @@ -12,7 +13,13 @@ metadata: href: https://app.leg.wa.gov/RCW/default.aspx?cite=84.36.381 - title: WAC 458-16A-130(2)(a) href: https://app.leg.wa.gov/WAC/default.aspx?cite=458-16A-130 - - title: ESHB 1105, Chapter 332, Laws of 2019 (lowered age from 62 to 61 effective 2020) - href: https://lawfilesext.leg.wa.gov/biennium/2019-20/Pdf/Bills/Session%20Laws/House/1105-S2.SL.pdf + - title: "2008 c 6 s 706 (2SHB 3104), RCW 84.36.381 #page 84-85" + href: https://lawfilesext.leg.wa.gov/biennium/2007-08/Pdf/Bills/Session%20Laws/House/3104-S2.SL.pdf#page=84 + - title: "2015 3rd sp.s. c 30 ss 2, 4 (SSB 5186) #page 3-4,6" + href: https://lawfilesext.leg.wa.gov/biennium/2015-16/Pdf/Bills/Session%20Laws/Senate/5186-S.SL.pdf#page=3 + - title: "2019 c 453 ss 1, 9 (ESSB 5160) #page 2-3,13" + href: https://lawfilesext.leg.wa.gov/biennium/2019-20/Pdf/Bills/Session%20Laws/Senate/5160-S.SL.pdf#page=2 + - title: "2025 c 200 ss 1, 3 (EHB 1106) #page 2-3,5" + href: https://lawfilesext.leg.wa.gov/biennium/2025-26/Pdf/Bills/Session%20Laws/House/1106.SL.pdf#page=2 - title: Washington DOR Property Tax Exemption for Senior Citizens and People with Disabilities (PT0017) - href: https://dor.wa.gov/sites/default/files/2022-02/PTExemption_Senior.pdf + href: https://dor.wa.gov/sites/default/files/2022-02/PTExemption_Senior.pdf#page=1 diff --git a/policyengine_us/parameters/gov/states/wa/dor/property_tax_exemption/senior_disabled/veteran/combined_rating_threshold.yaml b/policyengine_us/parameters/gov/states/wa/dor/property_tax_exemption/senior_disabled/veteran/combined_rating_threshold.yaml index 7ae6ba4a2d6..ebaf23620fa 100644 --- a/policyengine_us/parameters/gov/states/wa/dor/property_tax_exemption/senior_disabled/veteran/combined_rating_threshold.yaml +++ b/policyengine_us/parameters/gov/states/wa/dor/property_tax_exemption/senior_disabled/veteran/combined_rating_threshold.yaml @@ -13,8 +13,8 @@ metadata: reference: - title: RCW 84.36.381(3)(a)(ii)(A) href: https://app.leg.wa.gov/RCW/default.aspx?cite=84.36.381 - - title: RCW 84.36.381 as amended by 2015 3rd sp.s. c 30 s 2, with the s 4 application note - href: https://lawfilestestext.leg.wa.gov/LawTest/RCW%20Supplement/RCW%20%2084%20%20TITLE/RCW%20%2084%20.%2036%20%20CHAPTER/RCW%20%2084%20.%2036%20.381.htm + - title: "2015 3rd sp.s. c 30 ss 2, 4 (SSB 5186) #page 3-4,6" + href: https://lawfilesext.leg.wa.gov/biennium/2015-16/Pdf/Bills/Session%20Laws/Senate/5186-S.SL.pdf#page=3 - title: "2019 c 453 ss 1, 9 (ESSB 5160) #page 3,13" href: https://lawfilesext.leg.wa.gov/biennium/2019-20/Pdf/Bills/Session%20Laws/Senate/5160-S.SL.pdf#page=3 - title: "2025 c 200 ss 1, 3 (EHB 1106) #page 3,5" diff --git a/policyengine_us/parameters/gov/states/wa/dor/property_tax_exemption/senior_disabled/veteran/rating_requirement_in_effect.yaml b/policyengine_us/parameters/gov/states/wa/dor/property_tax_exemption/senior_disabled/veteran/rating_requirement_in_effect.yaml index b5ceb02ad3b..ffc60d5a856 100644 --- a/policyengine_us/parameters/gov/states/wa/dor/property_tax_exemption/senior_disabled/veteran/rating_requirement_in_effect.yaml +++ b/policyengine_us/parameters/gov/states/wa/dor/property_tax_exemption/senior_disabled/veteran/rating_requirement_in_effect.yaml @@ -14,5 +14,5 @@ metadata: href: https://app.leg.wa.gov/RCW/default.aspx?cite=84.36.381 - title: 2008 c 6 s 706 (2SHB 3104), RCW 84.36.381(3) href: https://lawfilesext.leg.wa.gov/biennium/2007-08/Pdf/Bills/Session%20Laws/House/3104-S2.SL.pdf#page=85 - - title: RCW 84.36.381 as amended by 2015 3rd sp.s. c 30 s 2, with the s 4 application note - href: https://lawfilestestext.leg.wa.gov/LawTest/RCW%20Supplement/RCW%20%2084%20%20TITLE/RCW%20%2084%20.%2036%20%20CHAPTER/RCW%20%2084%20.%2036%20.381.htm + - title: "2015 3rd sp.s. c 30 ss 2, 4 (SSB 5186) #page 3-4,6" + href: https://lawfilesext.leg.wa.gov/biennium/2015-16/Pdf/Bills/Session%20Laws/Senate/5186-S.SL.pdf#page=3 diff --git a/policyengine_us/tests/core/test_wa_pte_age_invariants.py b/policyengine_us/tests/core/test_wa_pte_age_invariants.py new file mode 100644 index 00000000000..53da9ef9d31 --- /dev/null +++ b/policyengine_us/tests/core/test_wa_pte_age_invariants.py @@ -0,0 +1,208 @@ +"""Check Washington exemption age and pathway invariants in collection years. + +A claimant aged 61 on December 31 of the filing year reaches 62 by the end +of the following collection year. Each generated claimant appears at their +drawn age, at an older age, below the age threshold, and with disability +retirement. One simulation evaluates those arrangements in every boundary +year, sharing the unreformed system without copying its parameter tree. + +The properties compare those arrangements, including fractional age inputs. +They check that only claimants aged at least 61 and below 62 lose categorical +eligibility from 2020 relative to the previous age parameter, and only when +no disability or veteran pathway applies. Separate YAML cases check the +worked households and exemption amounts. + +References: +- RCW 84.36.381(3): + https://app.leg.wa.gov/RCW/default.aspx?cite=84.36.381 +- 2008 c 6 section 706: + https://lawfilesext.leg.wa.gov/biennium/2007-08/Pdf/Bills/Session%20Laws/House/3104-S2.SL.pdf#page=85 +- 2015 3rd sp.s. c 30 sections 2 and 4: + https://lawfilesext.leg.wa.gov/biennium/2015-16/Pdf/Bills/Session%20Laws/Senate/5186-S.SL.pdf#page=3 +- 2019 c 453 sections 1 and 9: + https://lawfilesext.leg.wa.gov/biennium/2019-20/Pdf/Bills/Session%20Laws/Senate/5160-S.SL.pdf#page=3 +- 2025 c 200 sections 1 and 3: + https://lawfilesext.leg.wa.gov/biennium/2025-26/Pdf/Bills/Session%20Laws/House/1106.SL.pdf#page=3 +""" + +import numpy as np +from hypothesis import HealthCheck, example, given, settings +from hypothesis import strategies as st + +from policyengine_us import Simulation +from policyengine_us.system import system as SYSTEM + +YEARS = (2008, 2015, 2016, 2019, 2020, 2026, 2027) +DRAWN, OLDER, YOUNGER, DISABILITY = range(4) +VARIANTS = (DRAWN, OLDER, YOUNGER, DISABILITY) +# Collection-year veteran requirements, independent of model parameters. +RATING_THRESHOLDS = { + 2008: None, + 2015: None, + 2016: 1, + 2019: 1, + 2020: 0.8, + 2026: 0.8, + 2027: 0.4, +} + + +def claimant(age=45, *, state="WA", age_increase=1, **inputs): + return { + "state": state, + "age_increase": age_increase, + "age": age, + "is_veteran": False, + "wa_pte_retired_due_to_disability": False, + "wa_pte_wholly_service_connected_disability": False, + "wa_pte_receives_va_disability_compensation": False, + "wa_pte_va_service_connected_rating": 0, + "wa_pte_va_total_disability_rating": False, + **inputs, + } + + +@st.composite +def claimants(draw): + return claimant( + age=draw( + st.one_of( + st.sampled_from([60, 60.75, 61, 61.25, 61.75, 62, 62.25]), + st.integers(0, 400).map(lambda quarters: quarters / 4), + ) + ), + state=draw(st.sampled_from(["WA", "OR"])), + age_increase=draw(st.integers(0, 80).map(lambda quarters: quarters / 4)), + is_veteran=draw(st.booleans()), + wa_pte_retired_due_to_disability=draw(st.booleans()), + wa_pte_wholly_service_connected_disability=draw(st.booleans()), + wa_pte_receives_va_disability_compensation=draw(st.booleans()), + wa_pte_va_service_connected_rating=draw( + st.sampled_from([0, 0.39, 0.4, 0.79, 0.8, 0.99, 1]) + ), + wa_pte_va_total_disability_rating=draw(st.booleans()), + ) + + +def _situation(cases): + people, tax_units, households = {}, {}, {} + for index, case in enumerate(cases): + for variant in VARIANTS: + name = f"person_{index}_{variant}" + inputs = { + key: value + for key, value in case.items() + if key not in ("state", "age_increase") + } + if variant == OLDER: + inputs["age"] += case["age_increase"] + elif variant == YOUNGER: + inputs["age"] = 0 + elif variant == DISABILITY: + inputs["wa_pte_retired_due_to_disability"] = True + inputs.update( + is_tax_unit_head=True, + is_tax_unit_spouse=False, + is_tax_unit_dependent=False, + real_estate_taxes=5_000, + ) + people[name] = { + variable: {year: value for year in YEARS} + for variable, value in inputs.items() + } + tax_units[name] = { + "members": [name], + "tax_unit_is_joint": {year: False for year in YEARS}, + "wa_pte_income_eligible": {year: True for year in YEARS}, + } + households[name] = { + "members": [name], + "state_code": {year: case["state"] for year in YEARS}, + } + return {"people": people, "tax_units": tax_units, "households": households} + + +def _non_age_pathway(case, year): + if case["state"] != "WA": + return False + if case["wa_pte_retired_due_to_disability"]: + return True + if not case["is_veteran"]: + return False + threshold = RATING_THRESHOLDS[year] + if threshold is None: + return case["wa_pte_wholly_service_connected_disability"] + return case["wa_pte_receives_va_disability_compensation"] and ( + case["wa_pte_va_total_disability_rating"] + or case["wa_pte_va_service_connected_rating"] >= threshold + ) + + +ANCHORS = [ + claimant(age=61), + claimant(age=61.75), + claimant(age=62), + claimant(age=61, wa_pte_retired_due_to_disability=True), + claimant(age=61, state="OR"), + claimant(is_veteran=True, wa_pte_wholly_service_connected_disability=True), + *[ + claimant( + is_veteran=True, + wa_pte_receives_va_disability_compensation=True, + wa_pte_va_service_connected_rating=rating, + ) + for rating in (0.39, 0.4, 0.79, 0.8, 0.99, 1) + ], + claimant( + is_veteran=True, + wa_pte_receives_va_disability_compensation=True, + wa_pte_va_total_disability_rating=True, + ), + claimant(is_veteran=True, wa_pte_va_total_disability_rating=True), + claimant( + wa_pte_receives_va_disability_compensation=True, + wa_pte_va_service_connected_rating=1, + wa_pte_va_total_disability_rating=True, + ), +] + + +@settings( + max_examples=10, + deadline=None, + derandomize=True, + suppress_health_check=[HealthCheck.too_slow], +) +@example(cases=ANCHORS) +@given(cases=st.lists(claimants(), min_size=1, max_size=12)) +def test_wa_pte_collection_year_age_invariants(cases): + simulation = Simulation(situation=_situation(cases), tax_benefit_system=SYSTEM) + ages = np.asarray([case["age"] for case in cases]) + in_wa = np.asarray([case["state"] == "WA" for case in cases]) + for year in YEARS: + eligible = np.asarray( + simulation.calculate("wa_pte_categorical_eligible", year), dtype=bool + ).reshape(-1, len(VARIANTS)) + alternative = np.asarray([_non_age_pathway(case, year) for case in cases]) + # Holding every pathway input fixed removes age as the cause. + np.testing.assert_array_equal(eligible[:, YOUNGER], alternative) + # Prior December 31 age = collection-year age - 1; 61 + 1 = 62. + np.testing.assert_array_equal( + eligible[:, DRAWN], alternative | (in_wa & (ages - 1 >= 61)) + ) + assert np.all(eligible[:, OLDER] >= eligible[:, DRAWN]) + np.testing.assert_array_equal(eligible[:, DISABILITY], in_wa) + # The previous parameter used 62 before 2020 and 61 from 2020. + previous = alternative | (in_wa & (ages >= (62 if year < 2020 else 61))) + intended_loss = ( + (year >= 2020) & in_wa & (ages >= 61) & (ages < 62) & ~alternative + ) + np.testing.assert_array_equal(previous & ~eligible[:, DRAWN], intended_loss) + assert not np.any(eligible[:, DRAWN] & ~previous) + # Each claimant owns the home, meets the income test, and files alone. + np.testing.assert_array_equal( + np.asarray(simulation.calculate("wa_pte_eligible", year)).reshape( + -1, len(VARIANTS) + ), + eligible, + ) diff --git a/policyengine_us/tests/policy/baseline/gov/states/wa/dor/property_tax_exemption/senior_disabled/integration.yaml b/policyengine_us/tests/policy/baseline/gov/states/wa/dor/property_tax_exemption/senior_disabled/integration.yaml index a6ec0c265e4..1f21c609b27 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/wa/dor/property_tax_exemption/senior_disabled/integration.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/wa/dor/property_tax_exemption/senior_disabled/integration.yaml @@ -2,7 +2,7 @@ # Property Tax Exemption (RCW 84.36.379-389; WAC 458-16A-100..150). # # Eligibility: someone who is the tax-unit head (or spouse in a joint return) -# satisfies the age threshold (62 pre-2020, 61 from 2020), retired from regular +# satisfies the age threshold (62 at collection-year end), retired from regular # gainful employment by reason of disability, or the disabled veteran pathway; # the tax unit owns an occupied residence (real_estate_taxes > 0); # combined disposable income (annual) <= Tier 3 threshold for the household's county. @@ -428,3 +428,41 @@ wa_pte_combined_disposable_income: 67_500 wa_pte_tier: 1 wa_senior_disabled_property_tax_exemption: 5_340 + +- name: Case 15, an owner aged 61 in collection year 2024 does not qualify by age. + period: 2024 + input: + state_code: WA + county: KING_COUNTY_WA + age: 61 + real_estate_taxes: 5_000 + assessed_property_value: 500_000 + adjusted_gross_income: 25_000 + is_veteran: false + wa_pte_retired_due_to_disability: false + output: + # 61 - 1 = 60 at December 31, 2023; compare with the filing-year minimum of 61. + # Eligible Tier 1 amount: 5,000 x 0.30 + 500,000 x 0.60 x 0.007 = 3,600. + # Regular rate = 5,000 x 0.70 / 500,000 = 0.007; no eligibility gives zero. + wa_pte_categorical_eligible: false + wa_pte_eligible: false + wa_senior_disabled_property_tax_exemption: 0 + +- name: Case 16, an owner aged 62 in collection year 2024 qualifies by age. + period: 2024 + input: + state_code: WA + county: KING_COUNTY_WA + age: 62 + real_estate_taxes: 5_000 + assessed_property_value: 500_000 + adjusted_gross_income: 25_000 + is_veteran: false + wa_pte_retired_due_to_disability: false + output: + # 62 - 1 = 61 at December 31, 2023; compare with the filing-year minimum of 61. + # Eligible Tier 1 amount: 5,000 x 0.30 + 500,000 x 0.60 x 0.007 = 3,600. + # Regular rate = 5,000 x 0.70 / 500,000 = 0.007. + wa_pte_categorical_eligible: true + wa_pte_eligible: true + wa_senior_disabled_property_tax_exemption: 3_600 diff --git a/policyengine_us/tests/policy/baseline/gov/states/wa/dor/property_tax_exemption/senior_disabled/wa_pte_categorical_eligible.yaml b/policyengine_us/tests/policy/baseline/gov/states/wa/dor/property_tax_exemption/senior_disabled/wa_pte_categorical_eligible.yaml index a1394ecccf7..d3c6fc4f632 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/wa/dor/property_tax_exemption/senior_disabled/wa_pte_categorical_eligible.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/wa/dor/property_tax_exemption/senior_disabled/wa_pte_categorical_eligible.yaml @@ -1,4 +1,4 @@ -- name: Case 1, person aged 61 (at threshold) is categorically eligible by age. +- name: Case 1, a person aged 61 in the collection year misses the filing-year age requirement. period: 2024 input: people: @@ -16,7 +16,8 @@ members: [person1] state_code: WA output: - wa_pte_categorical_eligible: true + # 61 - 1 = 60 at the preceding filing-year deadline; 60 < 61. + wa_pte_categorical_eligible: false - name: Case 2, person under age threshold retired by reason of disability is categorically eligible. period: 2024 @@ -80,7 +81,7 @@ output: wa_pte_categorical_eligible: true -- name: Case 5, 2019 person aged 61 is ineligible (pre-2020 threshold was 62). +- name: Case 5, a person aged 61 in collection year 2019 does not qualify by age. period: 2019 input: people: @@ -98,11 +99,10 @@ members: [person1] state_code: WA output: - # Pre-2020 the WA age threshold was 62 (RCW 84.36.381(3)(a)(i) before - # ESHB 1105 took effect 2020-01-01). 61 < 62 -> not categorically eligible. + # 61 - 1 = 60 on December 31, 2018; 60 < the filing-year minimum of 61. wa_pte_categorical_eligible: false -- name: Case 6, 2019 person aged 62 is categorically eligible at the pre-2020 threshold. +- name: Case 6, a person aged 62 in collection year 2019 qualifies by age. period: 2019 input: people: @@ -120,10 +120,10 @@ members: [person1] state_code: WA output: - # Pre-2020 threshold was 62; age 62 >= 62 -> categorically eligible. + # 62 - 1 = 61 on December 31, 2018; 61 meets the filing-year minimum. wa_pte_categorical_eligible: true -- name: Case 7, 2024 person aged 60 is ineligible (2020+ threshold is 61). +- name: Case 7, a person aged 60 in collection year 2024 does not qualify by age. period: 2024 input: people: @@ -141,11 +141,11 @@ members: [person1] state_code: WA output: - # ESHB 1105 lowered the age threshold to 61 effective 2020-01-01. - # 60 < 61 -> not categorically eligible. + # 60 - 1 = 59 on December 31, 2023; 59 < the filing-year minimum of 61. wa_pte_categorical_eligible: false -# RCW 84.36.381(3)(a): the claimant must be (i) 61 or older, or retired from +# RCW 84.36.381(3)(a): the claimant must be (i) 61 or older at filing-year +# end (62 at collection-year end), or retired from # regular gainful employment by reason of disability, or (ii) a veteran # entitled to and receiving VA compensation at a qualifying service-connected # rating. Generic disability (is_disabled) establishes neither pathway. @@ -169,7 +169,7 @@ wa_pte_income_eligible: true wa_pte_tier: 1 output: - # 45 < 61 and neither statutory disability pathway holds. Before this fix + # 45 - 1 = 44 < 61 and neither statutory disability pathway holds. Before this fix # the model awarded 5,000 x 0.30 + 300,000 x (5,000 x 0.70 / 500,000) # = 3,600. wa_pte_categorical_eligible: false @@ -381,7 +381,8 @@ members: [person1, person2, person3, person4] state_code: WA output: - wa_pte_categorical_eligible: [true, false, true, true] + # The first person was 61 - 1 = 60 at filing-year end. + wa_pte_categorical_eligible: [false, false, true, true] - name: Case 22, by default a person receiving Social Security disability benefits is retired by reason of disability. period: 2024 @@ -472,3 +473,175 @@ output: wa_pte_receives_va_disability_compensation: false wa_pte_categorical_eligible: false + +- name: Case 30, collection year 2008 uses age at the preceding filing-year deadline. + period: 2008 + input: + people: + younger: + age: 61 + is_veteran: false + wa_pte_retired_due_to_disability: false + older: + age: 62 + is_veteran: false + wa_pte_retired_due_to_disability: false + households: + household: + members: [younger, older] + state_code: WA + output: + # Collection-year ages minus one: [60, 61] at December 31, 2007. + # Compare each filing-year age with 61: [false, true]. + wa_pte_categorical_eligible: [false, true] + +- name: Case 31, collection year 2015 uses age at the preceding filing-year deadline. + period: 2015 + input: + people: + younger: + age: 61 + is_veteran: false + wa_pte_retired_due_to_disability: false + older: + age: 62 + is_veteran: false + wa_pte_retired_due_to_disability: false + households: + household: + members: [younger, older] + state_code: WA + output: + # Collection-year ages minus one: [60, 61] at December 31, 2014. + # Compare each filing-year age with 61: [false, true]. + wa_pte_categorical_eligible: [false, true] + +- name: Case 32, collection year 2016 uses age at the preceding filing-year deadline. + period: 2016 + input: + people: + younger: + age: 61 + is_veteran: false + wa_pte_retired_due_to_disability: false + older: + age: 62 + is_veteran: false + wa_pte_retired_due_to_disability: false + households: + household: + members: [younger, older] + state_code: WA + output: + # Collection-year ages minus one: [60, 61] at December 31, 2015. + # Compare each filing-year age with 61: [false, true]. + wa_pte_categorical_eligible: [false, true] + +- name: Case 33, collection year 2019 uses age at the preceding filing-year deadline. + period: 2019 + input: + people: + younger: + age: 61 + is_veteran: false + wa_pte_retired_due_to_disability: false + older: + age: 62 + is_veteran: false + wa_pte_retired_due_to_disability: false + households: + household: + members: [younger, older] + state_code: WA + output: + # Collection-year ages minus one: [60, 61] at December 31, 2018. + # Compare each filing-year age with 61: [false, true]. + wa_pte_categorical_eligible: [false, true] + +- name: Case 34, collection year 2020 uses age at the preceding filing-year deadline. + period: 2020 + input: + people: + younger: + age: 61 + is_veteran: false + wa_pte_retired_due_to_disability: false + older: + age: 62 + is_veteran: false + wa_pte_retired_due_to_disability: false + households: + household: + members: [younger, older] + state_code: WA + output: + # Collection-year ages minus one: [60, 61] at December 31, 2019. + # Compare each filing-year age with 61: [false, true]. + wa_pte_categorical_eligible: [false, true] + +- name: Case 35, collection year 2026 uses age at the preceding filing-year deadline. + period: 2026 + input: + people: + younger: + age: 61 + is_veteran: false + wa_pte_retired_due_to_disability: false + older: + age: 62 + is_veteran: false + wa_pte_retired_due_to_disability: false + households: + household: + members: [younger, older] + state_code: WA + output: + # Collection-year ages minus one: [60, 61] at December 31, 2025. + # Compare each filing-year age with 61: [false, true]. + wa_pte_categorical_eligible: [false, true] + +- name: Case 36, collection year 2027 uses age at the preceding filing-year deadline. + period: 2027 + input: + people: + younger: + age: 61 + is_veteran: false + wa_pte_retired_due_to_disability: false + older: + age: 62 + is_veteran: false + wa_pte_retired_due_to_disability: false + households: + household: + members: [younger, older] + state_code: WA + output: + # Collection-year ages minus one: [60, 61] at December 31, 2026. + # Compare each filing-year age with 61: [false, true]. + wa_pte_categorical_eligible: [false, true] + +- name: Case 37, an 80 percent veteran first qualifies in collection year 2020. + period: 2020 + input: + state_code: + 2019: WA + 2020: WA + age: + 2019: 45 + 2020: 46 + is_veteran: + 2019: true + 2020: true + wa_pte_receives_va_disability_compensation: + 2019: true + 2020: true + wa_pte_va_service_connected_rating: + 2019: 0.8 + 2020: 0.8 + output: + # 0.8 < 1 and no total rating in 2019; 0.8 >= 0.8 in 2020. + # 2019 c 453 s 9 applies the new route to taxes collected from 2020. + wa_pte_categorical_eligible: + 2019: false + 2020: true diff --git a/policyengine_us/tests/policy/baseline/gov/states/wa/dor/property_tax_exemption/senior_disabled/wa_pte_eligible.yaml b/policyengine_us/tests/policy/baseline/gov/states/wa/dor/property_tax_exemption/senior_disabled/wa_pte_eligible.yaml index 084f6a4f5c4..b5686c357fc 100644 --- a/policyengine_us/tests/policy/baseline/gov/states/wa/dor/property_tax_exemption/senior_disabled/wa_pte_eligible.yaml +++ b/policyengine_us/tests/policy/baseline/gov/states/wa/dor/property_tax_exemption/senior_disabled/wa_pte_eligible.yaml @@ -168,7 +168,7 @@ state_code: WA county: KING_COUNTY_WA output: - # Head (person1) is categorically eligible (age 70 >= 61) and is the + # Head (person1) is categorically eligible (age 70 >= 62) and is the # head/spouse, so the exemption is awarded. Spouse's age does not block. wa_pte_eligible: true diff --git a/policyengine_us/variables/gov/states/wa/dor/property_tax_exemption/senior_disabled/wa_pte_categorical_eligible.py b/policyengine_us/variables/gov/states/wa/dor/property_tax_exemption/senior_disabled/wa_pte_categorical_eligible.py index 67d6a874502..644cd150d60 100644 --- a/policyengine_us/variables/gov/states/wa/dor/property_tax_exemption/senior_disabled/wa_pte_categorical_eligible.py +++ b/policyengine_us/variables/gov/states/wa/dor/property_tax_exemption/senior_disabled/wa_pte_categorical_eligible.py @@ -5,6 +5,12 @@ class wa_pte_categorical_eligible(Variable): value_type = bool entity = Person label = "Categorically eligible for the Washington Senior Citizens and Disabled Persons Property Tax Exemption" + documentation = ( + "The period is the property tax collection year. Interpret annual age " + "as age attained by December 31 of that year. RCW 84.36.381 requires " + "age 61 by December 31 of the preceding filing year, so the senior " + "pathway compares collection-year age with 62." + ) definition_period = YEAR defined_for = StateCode.WA reference = ( @@ -15,7 +21,8 @@ class wa_pte_categorical_eligible(Variable): def formula(person, period, parameters): p = parameters(period).gov.states.wa.dor.property_tax_exemption.senior_disabled - # RCW 84.36.381(3)(a)(i): at or above the age threshold, or retired + # RCW 84.36.381(3)(a)(i): age 61 at filing-year end corresponds to + # age 62 at collection-year end. Alternatively, the claimant retired # from regular gainful employment by reason of disability at the time # of filing. Generic disability establishes neither. senior = person("age", period) >= p.age_threshold From be01072b5da86a109408f22e9fd707453419a9ee Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Thu, 12 Nov 2026 01:16:05 -0500 Subject: [PATCH 2/4] Keep Washington rating parameters available in historical years Provide an inert combined-rating threshold before the VA-rating pathway begins. This lets the categorical formula evaluate the statutory age and historical disability pathways from 2008. Co-Authored-By: Claude Opus 5.5 --- changelog.d/wa-pte-collection-year-age.fixed.md | 2 +- .../veteran/combined_rating_threshold.yaml | 5 +++++ .../tests/core/test_wa_pte_age_invariants.py | 15 ++++++++++----- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/changelog.d/wa-pte-collection-year-age.fixed.md b/changelog.d/wa-pte-collection-year-age.fixed.md index 66305e084ca..82b7a746b76 100644 --- a/changelog.d/wa-pte-collection-year-age.fixed.md +++ b/changelog.d/wa-pte-collection-year-age.fixed.md @@ -1 +1 @@ -Corrected Washington's senior property tax exemption age threshold to 62 in the collection year, matching age 61 at the preceding filing-year deadline. +Corrected Washington's senior property tax exemption age threshold to 62 in the collection year, matching age 61 at the preceding filing-year deadline. Kept the veteran rating parameter available for historical calculations before 2016. diff --git a/policyengine_us/parameters/gov/states/wa/dor/property_tax_exemption/senior_disabled/veteran/combined_rating_threshold.yaml b/policyengine_us/parameters/gov/states/wa/dor/property_tax_exemption/senior_disabled/veteran/combined_rating_threshold.yaml index ebaf23620fa..0d1a389a5ad 100644 --- a/policyengine_us/parameters/gov/states/wa/dor/property_tax_exemption/senior_disabled/veteran/combined_rating_threshold.yaml +++ b/policyengine_us/parameters/gov/states/wa/dor/property_tax_exemption/senior_disabled/veteran/combined_rating_threshold.yaml @@ -1,5 +1,8 @@ description: Washington qualifies a veteran entitled to and receiving VA compensation for the senior citizens and disabled persons property tax exemption at a combined service-connected evaluation rating of at least this share. values: + # The formula reads this threshold even when the pre-2016 pathway applies. + # An infinite threshold opens no combined-rating route in those years. + 2008-01-01: .inf # 2015 3rd sp.s. c 30 s 2: only a total disability rating qualifies. 2016-01-01: .inf # 2019 c 453 s 1, for taxes levied for collection in 2020 and after (s 9). @@ -11,6 +14,8 @@ metadata: period: year label: Washington senior and disabled property tax exemption veteran combined rating threshold reference: + - title: 2008 c 6 s 706 (2SHB 3104), RCW 84.36.381(3) + href: https://lawfilesext.leg.wa.gov/biennium/2007-08/Pdf/Bills/Session%20Laws/House/3104-S2.SL.pdf#page=85 - title: RCW 84.36.381(3)(a)(ii)(A) href: https://app.leg.wa.gov/RCW/default.aspx?cite=84.36.381 - title: "2015 3rd sp.s. c 30 ss 2, 4 (SSB 5186) #page 3-4,6" diff --git a/policyengine_us/tests/core/test_wa_pte_age_invariants.py b/policyengine_us/tests/core/test_wa_pte_age_invariants.py index 53da9ef9d31..b3274fc27fb 100644 --- a/policyengine_us/tests/core/test_wa_pte_age_invariants.py +++ b/policyengine_us/tests/core/test_wa_pte_age_invariants.py @@ -8,9 +8,10 @@ The properties compare those arrangements, including fractional age inputs. They check that only claimants aged at least 61 and below 62 lose categorical -eligibility from 2020 relative to the previous age parameter, and only when +eligibility from 2020 relative to the previous age values, and only when no disability or veteran pathway applies. Separate YAML cases check the -worked households and exemption amounts. +worked households and exemption amounts. The 2008 case also checks that +the rating threshold exists before the VA-rating pathway begins. References: - RCW 84.36.381(3): @@ -193,12 +194,16 @@ def test_wa_pte_collection_year_age_invariants(cases): assert np.all(eligible[:, OLDER] >= eligible[:, DRAWN]) np.testing.assert_array_equal(eligible[:, DISABILITY], in_wa) # The previous parameter used 62 before 2020 and 61 from 2020. - previous = alternative | (in_wa & (ages >= (62 if year < 2020 else 61))) + previous_age_rule = alternative | ( + in_wa & (ages >= (62 if year < 2020 else 61)) + ) intended_loss = ( (year >= 2020) & in_wa & (ages >= 61) & (ages < 62) & ~alternative ) - np.testing.assert_array_equal(previous & ~eligible[:, DRAWN], intended_loss) - assert not np.any(eligible[:, DRAWN] & ~previous) + np.testing.assert_array_equal( + previous_age_rule & ~eligible[:, DRAWN], intended_loss + ) + assert not np.any(eligible[:, DRAWN] & ~previous_age_rule) # Each claimant owns the home, meets the income test, and files alone. np.testing.assert_array_equal( np.asarray(simulation.calculate("wa_pte_eligible", year)).reshape( From 57f286d6335aa5b94296894cc7809f7b92b4470e Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Thu, 12 Nov 2026 01:17:22 -0500 Subject: [PATCH 3/4] Explain the Washington veteran disability proxy Distinguish SSDI payment requirements from the incorporated disability definition. Preserve the historical citation spacing in the existing source-conflict question. Co-Authored-By: Claude Opus 5.5 --- .../wa_pte_wholly_service_connected_disability.py | 7 ++++++- source_conflicts/candidates.yaml | 8 ++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/policyengine_us/variables/gov/states/wa/dor/property_tax_exemption/senior_disabled/wa_pte_wholly_service_connected_disability.py b/policyengine_us/variables/gov/states/wa/dor/property_tax_exemption/senior_disabled/wa_pte_wholly_service_connected_disability.py index 7e00c16a4f2..05b206bda5d 100644 --- a/policyengine_us/variables/gov/states/wa/dor/property_tax_exemption/senior_disabled/wa_pte_wholly_service_connected_disability.py +++ b/policyengine_us/variables/gov/states/wa/dor/property_tax_exemption/senior_disabled/wa_pte_wholly_service_connected_disability.py @@ -15,13 +15,18 @@ class wa_pte_wholly_service_connected_disability(Variable): "a fully disabled service-connected veteran " "(is_fully_disabled_service_connected_veteran) also qualifies. The " "proxy over-includes a veteran whose disability is not " - "service-connected. Set this to override the default. Used only with " + "service-connected. Requiring SSDI receipt would also impose insured " + "status and application requirements under 42 U.S.C. 423(a); " + "Washington imports only the disability definition. " + "Set this to override the default. Used only with " "is_veteran, and only before collection year 2016." ) definition_period = YEAR reference = ( # 2008 c 6 s 706, RCW 84.36.381(3)(b) "https://lawfilesext.leg.wa.gov/biennium/2007-08/Pdf/Bills/Session%20Laws/House/3104-S2.SL.pdf#page=85", + # 2004 42 U.S.C. 423(a), (d)(1)(A); PDF pages 1, 3. + "https://www.govinfo.gov/content/pkg/USCODE-2004-title42/pdf/USCODE-2004-title42-chap7-subchapII-sec423.pdf#page=1", # RCW 84.36.383(6) "https://app.leg.wa.gov/RCW/default.aspx?cite=84.36.383", ) diff --git a/source_conflicts/candidates.yaml b/source_conflicts/candidates.yaml index 9d02eda84fd..9dc93b7d892 100644 --- a/source_conflicts/candidates.yaml +++ b/source_conflicts/candidates.yaml @@ -12077,7 +12077,7 @@ candidates: type: program note: property tax collection year (taxes levied for collection in that year) question: Before collection year 2016, does RCW 84.36.381(3)(b)'s "one hundred percent service-connected disability - as provided in 42 U.S.C. Sec. 423(d)(1)(A)" mean a disability wholly connected to service under Social Security's + as provided in 42 U.S.C. Sec. 423 (d)(1)(A)" mean a disability wholly connected to service under Social Security's definition, or a 100% VA rating? sources: - kind: statute @@ -12089,6 +12089,9 @@ candidates: - kind: statute citation: 42 U.S.C. 423(d)(1)(A) (Social Security Act 223(d)(1)(A)) url: https://www.ssa.gov/OP_Home/ssact/title02/0223.htm + - kind: statute + citation: 42 U.S.C. 423(a), (d)(1)(A), 2004 edition + url: https://www.govinfo.gov/content/pkg/USCODE-2004-title42/pdf/USCODE-2004-title42-chap7-subchapII-sec423.pdf#page=1 readings: statute: A disability that meets Social Security's definition in 42 U.S.C. 423(d)(1)(A) and is wholly connected to service; the cross-reference names that definition, and the 2016 amendment's move to VA-rating language marks @@ -12108,7 +12111,8 @@ candidates: note: PolicyEngine ruled on 2026-10-21 for the Social Security reading. The model has no service-connection input, so wa_pte_wholly_service_connected_disability defaults to is_disabled (or is_fully_disabled_service_connected_veteran) as an overridable proxy, read together with is_veteran in wa_pte_categorical_eligible; it over-includes a veteran - whose disability is not service-connected. + whose disability is not service-connected. SSDI receipt requires insured status and an application under + 42 U.S.C. 423(a); Washington imports only the disability definition. - id: us-wi:age-65-exemption-claimable-filer program: income-tax years: From 7f324be43d96510ce922c2f80321e1447e966452 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sat, 14 Nov 2026 09:38:37 -0500 Subject: [PATCH 4/4] Drop the superseded age comparison from the Washington invariant test The property test compared each result with the age values this branch removes: 62 before 2020 and 61 from 2020. The collection-year check already requires eligibility to equal a qualifying pathway or age 62, so the test still fails if someone restores 61 from 2020. Co-Authored-By: Claude Fable 5.2 --- .../tests/core/test_wa_pte_age_invariants.py | 21 +++++-------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/policyengine_us/tests/core/test_wa_pte_age_invariants.py b/policyengine_us/tests/core/test_wa_pte_age_invariants.py index b3274fc27fb..734be2cdaee 100644 --- a/policyengine_us/tests/core/test_wa_pte_age_invariants.py +++ b/policyengine_us/tests/core/test_wa_pte_age_invariants.py @@ -7,11 +7,11 @@ year, sharing the unreformed system without copying its parameter tree. The properties compare those arrangements, including fractional age inputs. -They check that only claimants aged at least 61 and below 62 lose categorical -eligibility from 2020 relative to the previous age values, and only when -no disability or veteran pathway applies. Separate YAML cases check the -worked households and exemption amounts. The 2008 case also checks that -the rating threshold exists before the VA-rating pathway begins. +They check that, in every boundary year, a Washington claimant qualifies by +age only from 62 and qualifies through a disability or veteran pathway at +any age. Separate YAML cases check the worked households and exemption +amounts. The 2008 case also checks that the rating threshold exists before +the VA-rating pathway begins. References: - RCW 84.36.381(3): @@ -193,17 +193,6 @@ def test_wa_pte_collection_year_age_invariants(cases): ) assert np.all(eligible[:, OLDER] >= eligible[:, DRAWN]) np.testing.assert_array_equal(eligible[:, DISABILITY], in_wa) - # The previous parameter used 62 before 2020 and 61 from 2020. - previous_age_rule = alternative | ( - in_wa & (ages >= (62 if year < 2020 else 61)) - ) - intended_loss = ( - (year >= 2020) & in_wa & (ages >= 61) & (ages < 62) & ~alternative - ) - np.testing.assert_array_equal( - previous_age_rule & ~eligible[:, DRAWN], intended_loss - ) - assert not np.any(eligible[:, DRAWN] & ~previous_age_rule) # Each claimant owns the home, meets the income test, and files alone. np.testing.assert_array_equal( np.asarray(simulation.calculate("wa_pte_eligible", year)).reshape(