Skip to content

Update policyengine-us to 2.156.4, with Wisconsin's 2026 ceiling - #108

Merged
MaxGhenis merged 6 commits into
mainfrom
bump-policyengine-us-2.155.7
Nov 30, 2026
Merged

MaxGhenis merged 6 commits into
mainfrom
bump-policyengine-us-2.155.7

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

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):

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.lock changes only policyengine-us and 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 passed uv sync --locked --extra dev.
  • tests/test_state_floor_2026.py pins the 2026 state saving of a $1,000 gift to the law audit (PolicyEngine/state-charitable-deductions-2026, results/law-cases.csv): $50 in Massachusetts for a $75,000 single filer who takes the standard deduction and for a $200,000 single itemizer ($20,000 mortgage interest, $8,000 real estate tax), $50 in Wisconsin and $37 in Arkansas for the itemizer. Run at 2.154.3 it gives $31.25, $0, $0 and $0, the audit's model figures.
  • The same file pins the Wisconsin ceiling for a single filer with $200,000 of wages: gifts of $90,000, $100,000, $101,000 and $120,000 save $4,500, $5,000, $5,000 and $5,000. At 2.155.7 the last two give $5,050 and $6,000.
  • The 10% pledge test's Massachusetts household (married, $300,000 wages, $30,000 gift) saves $75 more a year, 0.5% of $300,000 at 5%: savings 8,340, every year 16,680, bunched 16,606, bunching gain -74 (at 2.154.3: 8,265, 16,530, 16,531, 1). The CA, NY and TX rows are unchanged.
  • FAQ figures: faqNumbers.json changes only its policyengine-us version. None of the changes since 2.155.7 reaches the FAQ's households, and CI's FAQ numbers job reruns them against the API at the locked versions. The FAQ cases are in California, New York, Texas, Florida and the UK, with wages only and no Social Security.
  • Live baseline before this merge (production at 2.154.3, 2026-11-30): HI $296.00, MN $220.00, MT $276.50, MA $251.25, WI $220.00, AR $220.00 for a $75,000 single filer's $1,000 gift. After the deploy, MA should give $270.00 and the rest the same; the live check reruns all six.
  • Review: rounds 1 (54c747c) and 2 (ec5be99) asked for changes. The Massachusetts pledge row (P1), mortgage input (P2) and docstring (P3) were fixed at ec5be99 and confirmed in round 2, which kept the Wisconsin ceiling open as a P1 and asked for one wording change below (P2, made). This head moves to the release with the ceiling and adds the Wisconsin cases. Scoped round 3 (12adb2b) left the Wisconsin P1 open only until CI finished and raised a P1 on this description's Arkansas bound; round 4 closed both and raised a P1 on the uv.lock bullet, now replaced with the reviewer's own wording. The code is unchanged since round 3.

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

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>
@vercel

vercel Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
givecalc Ready Ready Preview Nov 30, 2026 5:44pm UTC

Request Review

…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>
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>
MaxGhenis and others added 2 commits November 30, 2026 10:17
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 MaxGhenis changed the title Update policyengine-us to 2.155.7 Update policyengine-us to 2.156.4, with Wisconsin's 2026 ceiling Nov 30, 2026
@MaxGhenis
MaxGhenis marked this pull request as ready for review November 30, 2026 18:33
@MaxGhenis
MaxGhenis merged commit 911a039 into main Nov 30, 2026
7 checks passed
@MaxGhenis

MaxGhenis commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

Merge audit (squash 911a039, head 12adb2b).

  • Review: rounds 1 (54c747c) and 2 (ec5be99) full; rounds 3, 4 and 5 scoped, all Sol via Subfleet. Max allowed round 5 (d3650), which approved 12adb2b: the last P1 closed and nothing new was raised. The levels decided, not the verdict lines: round 4's read REQUEST_CHANGES with both tracked P1s closed and one new P1 in this description. Three description sentences were corrected along the way: the FAQ's states (Florida was missing), the Arkansas bound (now measured: $137 at a $102,000 gift, $37 from $104,000 to $120,000), and how uv.lock was updated (now the reviewer's wording). Reports: ~/reviews/giving-season-2026-11-17/runs/review/gt-1130/ pr108-r1.md through pr108-r5.md.
  • CI: all 7 checks passed on 12adb2b: 545 Python tests including the Wisconsin ceiling cases (run 46476366080), and the FAQ numbers job (46476365937). The Modal deploy (46485626260, installing policyengine-us 2.156.4) and Vercel succeeded on the merge.
  • Live at 18:39Z: health "healthy", 4 workers. A $75,000 single filer's $1,000 gift: MA 270.00 (was 251.25), HI 296.00, MN 220.00, MT 276.50, WI 220.00, AR 220.00. Wisconsin at $200,000 wages: gifts of $90,000, $101,000 and $120,000 save $24,138.45, $27,058.45 and $31,238.45 (at 2.154.3: 24,088.45, 27,058.45 and 32,188.45). Arkansas at $200,000 wages saves $25,791.65 at a $102,000 gift, $137 more than at 2.154.3, as the description says. All 51 state notes on the API and in the scripts givecalc.org serves match main's config.yaml, including the Arkansas, Massachusetts and Wisconsin notes.
  • Capacity: the production container (started 18:53Z) runs /usr/local/bin/python with policyengine-us 2.156.4 and used 4,593 MiB (4,879 to 4,941 MiB on 11/29). It is slower: a burst of eight /api/calculate requests took 34.5 and 36.8 s warm (27.8 s just after the deploy), against 20.9 s this morning at 2.154.3 and 23 to 24 s on 11/29; single /api/savings requests took 3.3 to 4.0 s, against 2.6 to 3.2 s. In memory the model does about 20% more work per calculation than 2.154.3 (2.155.7 with the Wisconsin file: two point runs 3.1 to 3.3 s against 2.5 to 2.6 s; the donation curve 2.5 s against 2.0 to 2.3 s), which explains the single requests but not all of the burst.
  • Open: Wisconsin, Massachusetts and Arkansas charitable deductions use the federal 60% cash ceiling in 2026, after their Codes' 60% ceiling ends policyengine-us#11344 (Massachusetts and Arkansas cash ceiling), Give Wisconsin's itemized deduction credit its own frozen charitable limits and finish its Schedule I base policyengine-us#11359 and Wisconsin itemized deduction credit omits the pre-TCJA section 68 limit that Wisconsin applies from 2026 policyengine-us#11281 (Wisconsin).

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

1 active deployment
Preview – givecalc — 12adb2b5 Deployed Nov 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant