After #9621, the pinned 2043 example in the personal exemption rounding test no longer tells $25 rounding from $50
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 57/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Python
- Stelle
- 178
- Fork
- 224
- Merge medio
- 2g 7h
- PR unite (30g)
- 309
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PolicyEngine/policyengine-us
-
Secondary earnings threshold description names a stale 2035 capForse già presa @Prabh022 l’ha presa 1 giorno fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
PolicyEngine/policyengine-us#11252 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
PolicyEngine/policyengine-us#11201 ·
I maintainer di solito rispondono entro 2 giorni
-
Idaho BBCE households without an elderly or disabled member should face the SNAP net income testForse già presa @DTrim99 l’ha presa 4 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
PolicyEngine/policyengine-us#11199 ·
I maintainer di solito rispondono entro 2 giorni
-
California's Medi-Cal immigration test passes pregnant people but not those in the postpartum periodAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
PolicyEngine/policyengine-us#11192 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
PolicyEngine/policyengine-us#11084 ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di PolicyEngine/policyengine-us
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
bad-antics/lateralus-lang#1140 ·
I maintainer di solito rispondono entro 4 giorni
-
Groq: SQL fallback call sends tools with response_format, so a failed tool loop never recoversApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 3 giorni
-
fixture good first issue help wanted vendor:cisco
Difficoltà 1/5 1-3 ore Idoneità per principianti 85/100