After #9621, the pinned 2043 example in the personal exemption rounding test no longer tells $25 rounding from $50
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 57/100
Research direction
Start with policyengine_us/tests/core/test_breakdown_parameter_uprating.py, especially the pinned example and its nearby comment; then inspect the named capital gains and Colorado CollegeInvest YAML cases. Check the reported threshold calculations against the test inputs to confirm which cases fail to distinguish the intended rules. Done means the test examples reliably distinguish the described rounding behavior and the comments accurately describe the index and boundary cases.
Written by the indexing model from the issue text.
Description
test_personal_exemption_projection_rounding_bounds_and_order pins @example(year=2043, status="SEPARATE"), which #10825 added. On main's index, rounding the separate filers' threshold down to $25 and down to $50 first gives different amounts in 2043: $243,700 × U(2043) / U(2035) = $284,934.22, so $284,925 against $284,900.
#9621 moves gov.irs.uprating to the 12 months ending August, and after 2035 the index grows by 217.68 / 213.471 a year. On that index the 2043 threshold comes to $243,700 × (217.68 / 213.471)⁸ = $284,900.15, which rounds to $284,900 either way. A threshold that took the joint filers' $50 interval would pass every assertion at this example. On this index the two roundings first differ in 2039: $243,700 × (217.68 / 213.471)⁴ = $263,496.05, so $263,475 against $263,450.
The test's 20 Hypothesis draws may still reach such a year, but no pinned example guarantees one.
Changes
- Replace the example with
@example(year=2039, status="SEPARATE"), with a comment that gives the two amounts. - In the same file, the comment at line 87 says the index "follows CBO's chained CPI-U projection". The index grows at CBO's projected rate from its last observed window, so it reaches 218.69 for 2036, where CBO projects 217.68. "Grows with", the wording at
exemptions.yamlline 212, fits. - In
capital_gains_tax_increase.yaml, the middle input of each proposal case equals the threshold as written. The model storestaxable_incomeas a 32-bit float, so it reads $1,027,586.375 and $513,793.1875, each a cent or two below the threshold. The expected $20,000 holds at or below the threshold, and a comment can say which side the case tests. - The 2027 Colorado CollegeInvest cases (lines 71 to 90) can't tell rounding to the nearest $100 from rounding up: $26,996.87 and $40,392.27 give $27,000 and $40,400 either way. The same held on main's index ($26,980.83 and $40,368.26). A later year in which the two differ would pin the rule.
None of these changes what the model computes.
🤖 Generated with Claude Code
- Dominant language
- Python
- Stars
- 178
- Forks
- 224
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 309
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from PolicyEngine/policyengine-us
-
Secondary earnings threshold description names a stale 2035 capPossibly taken @Prabh022 claimed this 1 day ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 85/100
PolicyEngine/policyengine-us#11252 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
PolicyEngine/policyengine-us#11201 ·
Maintainers usually reply within 2 days
-
Idaho BBCE households without an elderly or disabled member should face the SNAP net income testPossibly taken @DTrim99 claimed this 4 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
PolicyEngine/policyengine-us#11199 ·
Maintainers usually reply within 2 days
-
California's Medi-Cal immigration test passes pregnant people but not those in the postpartum periodOpen
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
PolicyEngine/policyengine-us#11192 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
PolicyEngine/policyengine-us#11084 ·
Maintainers usually reply within 2 days
All issues in PolicyEngine/policyengine-us
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
bad-antics/lateralus-lang#1140 ·
Maintainers usually reply within 4 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 3 days
-
fixture good first issue help wanted vendor:cisco
Difficulty 1/5 1-3 hours Newbie friendliness 85/100