Repository navigation
Update policyengine-us to 2.156.4, with Wisconsin's 2026 ceiling - #108
Merged
Merged
Conversation
2.154.5 calculates the Massachusetts charitable deduction, the Wisconsin itemized deduction credit and Arkansas itemized deductions without the federal 0.5% charitable floor, so GiveCalc's 2026 savings in those states match their law. Core and UK stay at 3.38.0 and 2.134.6. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…tifact The new test checks the state saving of a $1,000 gift in 2026 against the law audit: $50 in Massachusetts (standard-deduction and itemizing filers), $50 in Wisconsin and $37 in Arkansas (itemizers). At 2.154.3 it gives $31.25, $0, $0 and $0. faqNumbers.json is the regenerate job's artifact from run 46405653613: only its date and policyengine-us version change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis
added a commit
that referenced
this pull request
Nov 30, 2026
- MA, WI and AR: describe each state's own charitable treatment, which the 2026 federal 0.5% floor does not reach (policyengine-us 2.155.7, #108, models this). - AZ: name the standard-deduction add-on GiveCalc models, and say plainly that the QCO and QFCO credits are not included. MS: same for its credit. - OH, NJ, NV: scope to general cash gifts; name Ohio's $750 pregnancy resource center deduction and scholarship credit as left out; Nevada has no income tax. - MN: the 1% floor applies to itemizers too. - CO: the federal deduction flows through; GiveCalc does not yet apply the 2026 0.5% floor to the subtraction above $500. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
At policyengine-us 2.155.7 the Massachusetts pledge household (married, $300,000 wages, $30,000 gift) saves $75 more a year, 0.5% of $300,000 at 5%, since 2.154.5 stopped applying the federal 0.5% floor to the Massachusetts deduction: 8,340 / 16,680 / 16,606 / -74, from 2.155.7 runs. CA, NY and TX are unchanged. The comments no longer say the figures hold at both versions. The floor test now sets home_mortgage_interest, the input GiveCalc sends (same results at 2.154.3), and its docstring says deduction or credit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 30, 2026
MaxGhenis
added a commit
that referenced
this pull request
Nov 30, 2026
The three notes describe a model without the 0.5% floor, which #108 deploys. The other notes hold at the model now live. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis
added a commit
that referenced
this pull request
Nov 30, 2026
Matches the API's and the site's charitable program descriptions, fills the five API entries that were missing (NV, NJ, OH, PA, CT), and tests that the two copies agree for all 51 states. The Arkansas, Massachusetts and Wisconsin descriptions stay as they are until #108. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
5 of 6 tasks
2.156.4 is the first release with PolicyEngine/policyengine-us#11357, which limits Wisconsin's 2026 credit to cash gifts of 50% of the contribution base. Adds the Wisconsin ceiling cases to the state floor test, and the Arkansas, Massachusetts and Wisconsin program notes from #105, which this version makes true. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis
marked this pull request as ready for review
November 30, 2026 18:33
Contributor
Author
|
Merge audit (squash 911a039, head 12adb2b).
|
MaxGhenis
added a commit
that referenced
this pull request
Nov 30, 2026
Conflicts: modal_app.py keeps this branch's uv_sync image (main only moved the pip pin it removes); faqNumbers.json takes main's figures with this branch's three-model version block at policyengine-us 2.156.4. uv.lock and pyproject.toml merged cleanly, and `uv lock --check` passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis
added a commit
to PolicyEngine/policyengine-app-v2
that referenced
this pull request
Nov 30, 2026
GiveCalc moved to policyengine-us 2.156.4 on 2026-11-30 (PolicyEngine/givecalc#108). Rerunning the post's saved requests on the live API changed two totals: the $1 million earner ($27,978/$31,478 to $27,864/$31,364; the extra $10,000 still saves $3,500) and the two-year example ($2,314/$1,874 to $2,269/$1,829). The table's figures are unchanged. The post now says when we reran them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis
added a commit
to PolicyEngine/policyengine-app-v2
that referenced
this pull request
Dec 1, 2026
* Update GiveCalc 2026 post figures for policyengine-us 2.156.4 GiveCalc moved to policyengine-us 2.156.4 on 2026-11-30 (PolicyEngine/givecalc#108). Rerunning the post's saved requests on the live API changed two totals: the $1 million earner ($27,978/$31,478 to $27,864/$31,364; the extra $10,000 still saves $3,500) and the two-year example ($2,314/$1,874 to $2,269/$1,829). The table's figures are unchanged. The post now says when we reran them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Say why the two totals moved: Texas local sales tax policyengine-us 2.64.0 sets the local general sales tax amount to $0 in Texas when no rate is entered (it was 20% of the state table amount). GiveCalc picked that up with 2.154.3 on 2026-11-29 (PolicyEngine/givecalc#100), after the post went live; 2.156.4 gives the same figures. Correct the method sentence, which had credited 2.156.4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Describe the current method and record the update in a dated note Per independent review: the method paragraph now says how GiveCalc counts sales tax for Texas itemizers; the publication history moves to an Update section in the site's correction-note form; the $1 million row links both the $100,000 and $110,000 calculations; the extra-$10,000 sentence gives the filer the verb. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves GiveCalc's API from policyengine-us 2.154.3 to 2.156.4 (pyproject.toml, uv.lock, and the Modal image pin in modal_app.py). policyengine-core stays at 3.38.0 and policyengine-uk at 2.134.6. A merge to main deploys the live API, the day before Giving Tuesday.
Why
policyengine-us 2.154.5 calculates the Massachusetts charitable deduction, the Wisconsin itemized deduction credit and Arkansas itemized deductions without the federal 0.5% charitable floor (issues PolicyEngine/policyengine-us#11256, PolicyEngine/policyengine-us#11257 and PolicyEngine/policyengine-us#11259, found by the state charitable-deduction law audit). Under 2.154.3, GiveCalc applies that floor in all three states for 2026, which understates savings there.
2.156.4 also applies Wisconsin's own 2026 ceiling, 50% of the contribution base, to the Wisconsin credit (PolicyEngine/policyengine-us#11357). Both earlier reviews of this PR asked for that before it merged.
Other changes between 2.154.3 and 2.155.7 (from policyengine-us's changelog): Idaho's 2026 retirement benefits deduction cap, Montana's 2026 age-65 subtraction, Utah's military retirement credit, Maine's 2026 sales tax fairness credit indexing, Kentucky filing status, New Mexico credits, Massachusetts TAFDC and a contrib reform. 2.155.0 removes the parameter
gov.states.ut.tax.income.credits.military_retirement.rate; GiveCalc's api/ and givecalc/ don't read it.Between 2.155.7 and 2.156.4, these change a formula or a value (the other releases change sources, comments and tests):
taxable_ss_magiinto a function. Federal results don't change.The Arkansas, Massachusetts and Wisconsin program notes (config.yaml and frontend/src/lib/taxPrograms.ts) move here from #105, which is live without them, because this version is what makes them true. The text is #105's at 8571651, word for word: its second round reviewed the Arkansas and Massachusetts notes and its third round Wisconsin's.
Checks
uv.lockchanges onlypolicyengine-usand GiveCalc’s corresponding minimum version requirement. A script updated the entry from PyPI’s 2.156.4 release metadata and checked that the release’s runtime dependency names match the lock. CI passeduv sync --locked --extra dev.Known limit: cash gifts above half of AGI in Massachusetts and Arkansas
policyengine-us applies the current federal 60% cash ceiling in both states, before and after this bump. The federal rules each state follows point to a 50% ceiling for 2026, and neither department has confirmed it. For cash gifts above half of AGI, the saving at 2.156.4 may be too high. Removing the floor raises the modeled deduction by up to 0.5% of federal AGI, and what that does to the saving depends on each state's tax calculation. In GiveCalc's own calculation for a single filer with $200,000 of wages in 2026, the bump raises the Arkansas saving by $137 at a $102,000 gift and by $37 at gifts from $104,000 to $120,000. PolicyEngine/policyengine-us#11344 tracks both. Wisconsin's remaining gaps are PolicyEngine/policyengine-us#11359 (parts of the Wisconsin contribution base) and PolicyEngine/policyengine-us#11281 (the section 68 limit).
🤖 Generated with Claude Code