Check the OBBBA tips and overtime window through policyengine-us's in_effect switches at the next engine bump

Open Beginner friendly
#1,431 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
85/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
testing

Research direction

Read packages/microcosm-build/tests/engine_contract/us/test_us_fiscal_targets.py, especially test_obbba_no_tax_channels_are_absent_from_2024_law_deduction_lists. At the next policyengine-us bump, update the guard to check both switches at the specified dates, keeping deduction-list assertions for 2025–2028 and dropping them for 2024 and 2029. Done when the updated test passes with the new engine behavior.

Written by the indexing model from the issue text.

Description

PolicyEngine/policyengine-us#10397 ends the tips and overtime deductions after 2028 with two new switches, gov.irs.deductions.tip_income.in_effect and gov.irs.deductions.overtime_income.in_effect. It also names both deductions in deductions_if_itemizing and deductions_if_not_itemizing for every year, so the switches alone set the years.

test_obbba_no_tax_channels_are_absent_from_2024_law_deduction_lists (packages/microcosm-build/tests/engine_contract/us/test_us_fiscal_targets.py) asserts that neither deduction appears in those lists at 2024-01-01 or 2029-01-01. That guard will fail on the first engine bump that reaches #10397.

Nothing breaks today: uv.lock holds policyengine-us at 2.2.1, and test_locked_policyengine_us_pin_guards_the_obbba_window_premise forces any bump to re-run this guard.

The guard's premise survives. After #10397 both variables compute as 0 in 2024 and from 2029, so a neutralize-variable delta in those years stays zero.

What to change at the bump

  • Assert the window through the switches: false at 2024-01-01 and 2029-01-01, true at 2025-01-01, 2026-01-01 and 2028-01-01.
  • Keep the list-membership assertions for 2025-2028, and drop the ones for 2024 and 2029.

🤖 Generated with Claude Code

Dominant language
Python
Stars
0
Forks
6
Avg merge
1d 17h
Merged PRs (30d)
190

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PolicyEngine/microcosm

All issues in PolicyEngine/microcosm

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.