Skip to content
Merged
2 changes: 2 additions & 0 deletions changelog.d/fix-breakdown-parameter-uprating.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Activated filing-status parameter uprating for Colorado's CollegeInvest subtraction, legacy personal exemption phaseout thresholds, and the Biden FY2025 capital gains proposal, and added Colorado's published 2026 limits.
Corrected the 2032 head-of-household exemption phaseout threshold to match CBO's January 2025 forecast.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ metadata:
label: Threshold above which capital income is taxed as ordinary income
unit: currency-USD
period: year
propagate_metadata_to_children: true
# Treasury proposes indexing these thresholds after 2024 without specifying an index
# or rounding interval; use the existing IRS inflation index for projections.
uprating: gov.irs.uprating

breakdown:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,21 @@ metadata:
breakdown:
- filing_status
unit: currency-USD
# This parent uprating remains inactive pending selective propagation in PolicyEngine/policyengine-core#537.
# Keep CBO's legacy forecasts for counterfactual reforms; personal exemptions
# remain suspended under current law. Project from the final forecast year.
# Under historical section 68(b), round down to $50 before halving the
# joint amount for separate filers. Set child rounding to preserve that order.
uprating: gov.irs.uprating
reference:
- title: 26 U.S. Code § 151 - Allowance of deductions for personal exemptions (d)(3)(B)
href: https://www.law.cornell.edu/uscode/text/26/151#d_3_B
- title: 26 U.S. Code § 68 - Overall limitation on itemized deductions (b)(1)
href: https://www.law.cornell.edu/uscode/text/26/68#b_1
- title: 26 U.S.C. 68(b) (2024 edition), applicable amount and inflation adjustment
href: https://www.govinfo.gov/content/pkg/USCODE-2024-title26/html/USCODE-2024-title26-subtitleA-chap1-subchapB-partI-sec68.htm
- title: CBO Tax Parameters and Effective Marginal Tax Rates | Jan 2025
# 1. Tax Parameters.
href: https://www.cbo.gov/data/budget-economic-data
- title: CBO January 2025 tax parameter forecasts
href: https://raw.githubusercontent.com/US-CBO/cbo-data/main/data/budget/tax_parameters/annual_cy_2025-01.csv

JOINT:
values:
Expand All @@ -36,6 +41,11 @@ JOINT:
2035-01-01: 487_400
metadata:
unit: currency-USD
uprating:
parameter: gov.irs.uprating
rounding:
type: downwards
interval: 50
SINGLE:
values:
2013-01-01: 250_000
Expand All @@ -57,6 +67,11 @@ SINGLE:
2035-01-01: 406_200
metadata:
unit: currency-USD
uprating:
parameter: gov.irs.uprating
rounding:
type: downwards
interval: 50
SEPARATE:
values:
2013-01-01: 150_000
Expand All @@ -78,6 +93,11 @@ SEPARATE:
2035-01-01: 243_700
metadata:
unit: currency-USD
uprating:
parameter: gov.irs.uprating
rounding:
type: downwards
interval: 25
HEAD_OF_HOUSEHOLD:
values:
2013-01-01: 275_000
Expand All @@ -93,12 +113,17 @@ HEAD_OF_HOUSEHOLD:
2029-01-01: 397_200
2030-01-01: 405_000
2031-01-01: 413_050
2032-01-01: 421_050
2032-01-01: 421_200
2033-01-01: 429_550
2034-01-01: 438_100
2035-01-01: 446_800
metadata:
unit: currency-USD
uprating:
parameter: gov.irs.uprating
rounding:
type: downwards
interval: 50
SURVIVING_SPOUSE:
values:
2013-01-01: 300_000
Expand All @@ -120,3 +145,8 @@ SURVIVING_SPOUSE:
2035-01-01: 487_400
metadata:
unit: currency-USD
uprating:
parameter: gov.irs.uprating
rounding:
type: downwards
interval: 50
4 changes: 2 additions & 2 deletions policyengine_us/parameters/gov/states/co/tax/income/rate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ metadata:
# THE FOLLOWING THREE REFERENCES JOINTLY DETERMINE THE TAX RATE ON THE FORM
reference:
- title: Colorado Legislation, C.R.S. 39-22-104 (1.5), (1.7) (a), (b)
href: https://law.justia.com/codes/colorado/2022/title-39/article-22/part-1/section-39-22-104/
href: https://content.leg.colorado.gov/sites/default/files/images/olls/crs2024-title-39.pdf#page=387
- title: Colorado Constitution, Article 10, Taxpayer's Bill of Rights (TABOR)
href: https://law.justia.com/constitution/colorado/cnart10.html
href: https://content.leg.colorado.gov/sites/default/files/images/olls/crs2024-title-00.pdf#page=102
- title: Colorado Proposition 121, passed by the electorate in November 2022
href: https://leg.colorado.gov/sites/default/files/initiative%2520referendum_proposition%20121%20final%20lc%20packet.pdf#page=1
- title: 2021 Colorado Individual Income Tax Filing Guide, 104 Book
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,29 @@ metadata:
label: Colorado CollegeInvest contribution subtraction max amount
breakdown:
- filing_status
# This parent uprating remains inactive pending selective propagation in PolicyEngine/policyengine-core#537.
propagate_metadata_to_children: true
# Project beyond published limits with the IRS inflation index as a proxy.
# Under C.R.S. 39-22-104(4)(i)(II)(C), the Department of Higher Education
# supplies annual tuition, room and board cost changes for state colleges.
# The Department of Revenue may round limits to the nearest $100.
uprating:
parameter: gov.irs.uprating
rounding:
type: nearest
interval: 100
# Rounded to $100 per C.R.S. 39-22-104(4)(j)(II)(C), this approximates the true uprating for college tuition, room, and board.
reference:
- title: C.R.S. 39-22-104(4)(j)(II)(B)
href: https://law.justia.com/codes/colorado/2022/title-39/article-22/part-1/section-39-22-104/
- title: "C.R.S. 39-22-104(4)(i)(II)(B)-(C) #page 392-393"
href: https://content.leg.colorado.gov/sites/default/files/images/olls/crs2024-title-39.pdf#page=392
- title: 2023 Colorado Individual Tax Filing Guide 104 Book - Subtractions Line 10
href: https://tax.colorado.gov/sites/tax/files/documents/Book0104_2023.pdf#page=13
- title: 2024 Colorado Individual Tax Filing Guide 104 Book - Subtractions Line 10
href: https://tax.colorado.gov/sites/tax/files/documents/DR0104_book_2024.pdf#page=20
- title: 2025 Colorado Individual Tax Filing Guide 104 Book, Subtractions Line 10
href: https://tax.colorado.gov/sites/tax/files/documents/Book104_2025.pdf#page=20
- title: Colorado Department of Revenue - CollegeInvest Contribution Subtraction, Per-Beneficiary Limits
href: https://tax.colorado.gov/income-tax-topics-collegeinvest-contribution-subtraction
- title: Colorado Department of Revenue - CollegeInvest Contribution Subtraction, November 2026
href: https://tax.colorado.gov/sites/default/files/2026-11/ITT_CollegeInvest_Contribution_Subtraction_Nov_2026.pdf#page=2

HEAD_OF_HOUSEHOLD:
values:
Expand All @@ -29,6 +36,7 @@ HEAD_OF_HOUSEHOLD:
2023-01-01: 20_700
2024-01-01: 22_700
2025-01-01: 25_400
2026-01-01: 26_200
metadata:
unit: currency-USD
period: year
Expand All @@ -39,6 +47,7 @@ JOINT:
2023-01-01: 31_000
2024-01-01: 34_000
2025-01-01: 38_100
2026-01-01: 39_200
metadata:
unit: currency-USD
period: year
Expand All @@ -49,6 +58,7 @@ SEPARATE:
2023-01-01: 20_700
2024-01-01: 22_700
2025-01-01: 25_400
2026-01-01: 26_200
metadata:
unit: currency-USD
period: year
Expand All @@ -59,6 +69,7 @@ SINGLE:
2023-01-01: 20_700
2024-01-01: 22_700
2025-01-01: 25_400
2026-01-01: 26_200
metadata:
unit: currency-USD
period: year
Expand All @@ -69,6 +80,7 @@ SURVIVING_SPOUSE:
2023-01-01: 20_700
2024-01-01: 22_700
2025-01-01: 25_400
2026-01-01: 26_200
metadata:
unit: currency-USD
period: year
69 changes: 69 additions & 0 deletions policyengine_us/tests/code_health/test_uprating_placement.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import pytest
import yaml

from policyengine_core.parameters import Parameter, ParameterNode
from policyengine_core.parameters.operations import propagate_parameter_metadata
from policyengine_us.model_api import REPO
from policyengine_us.system import system


PARAMETERS_ROOT = REPO / "parameters"
Expand Down Expand Up @@ -92,3 +96,68 @@ def test_no_uprating_block_is_a_sibling_of_values():
" parameter: ...\n"
"Offending nodes:\n" + "\n".join(violations)
)


def _find_unapplied_breakdown_uprating(root):
"""Find parent uprating that reaches no metadata on some scalar leaves."""
violations = {}
for node in root.get_descendants():
if not isinstance(node, ParameterNode):
continue
if not node.metadata.get("breakdown"):
continue
if node.metadata.get("uprating") is None:
continue
missing = [
leaf.name
for leaf in node.get_descendants()
if isinstance(leaf, Parameter) and leaf.metadata.get("uprating") is None
]
if missing:
violations[node.name] = missing
return violations


def test_parent_uprating_reaches_breakdown_leaves():
violations = _find_unapplied_breakdown_uprating(system.parameters)
assert not violations, (
"The built parameter system omits uprating from leaves below parents "
"that declare both breakdown and uprating metadata. Add uprating to "
"each leaf, enable metadata propagation, or remove unsupported parent "
"uprating:\n"
+ "\n".join(
f"{parent}: {', '.join(leaves)}"
for parent, leaves in sorted(violations.items())
)
)


@pytest.mark.parametrize(
"propagation, leaf_uprating, missing",
[
(None, (), ("SINGLE", "JOINT")),
(True, (), ()),
(False, (), ("SINGLE", "JOINT")),
(False, ("SINGLE", "JOINT"), ()),
(False, ("SINGLE",), ("JOINT",)),
],
)
def test_detect_unapplied_parent_uprating(propagation, leaf_uprating, missing):
metadata = {
"breakdown": ["filing_status"],
"uprating": "price_index",
}
if propagation is not None:
metadata["propagate_metadata_to_children"] = propagation
threshold = {"metadata": metadata}
for status in ("SINGLE", "JOINT"):
threshold[status] = {"values": {"2024-01-01": 100}}
if status in leaf_uprating:
threshold[status]["metadata"] = {"uprating": "price_index"}
root = ParameterNode("", data={"threshold": threshold})
propagate_parameter_metadata(root)

expected = (
{"threshold": [f"threshold.{status}" for status in missing]} if missing else {}
)
assert _find_unapplied_breakdown_uprating(root) == expected
Loading
Loading