Repository navigation
Conversation
36 M.R.S. § 5403(5)(A) indexes the § 5213-A base credit (including the additional amounts) by the C-CPI-U ratio to June 2017, rounded down to a multiple of $5, and § 5403(5)(C) indexes the income thresholds by the ratio to June 2015, rounded down to a multiple of $50. Maine Revenue Services' 2026 rate schedule gives those factors as 1.279 and 1.303. PolicyEngine uprated the rounded 2025 amounts by gov.irs.uprating instead, which left the 2026 joint, head of household and surviving spouse base at $215 (statute: 175 x 1.279 = 223.83 -> $220) and the single threshold at $26,000 (statute: 20,000 x 1.303 = 26,060 -> $26,050). Set every 2026 base amount, additional amount and threshold to the statutory computation, fix the 2024 reference in start.yaml that pointed at the 2023 schedule, and add 2026 tests (13 of the 15 fail on main). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The statutory 2026 single base (125 x 1.279 = 159.88, rounded down to $155) equals what uprating the 2025 value gives. An explicit 2026 entry anchored later uprating at the rounded value and dropped the projected 2027 single base from $160 to $155, so leave it out; the 2026 tests pin $155. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR Review: Index Maine's 2026 sales tax fairness credit by MRS's 2026 factorsSummaryThe 2026 amounts are right. I worked them out from the statute before reading the PR's arithmetic. 36 M.R.S. § 5213-A(1)(A-1) sets the base credit at $125, or $175 plus $25 or $50. Section 5213-A(4) sets the thresholds at $20,000, $30,000 and $40,000. Section 5403(5)(A) indexes the base credit, "including the additional amounts", from June 2017 and rounds it down to $5. Section 5403(5)(C) indexes the thresholds from June 2015, and the closing paragraph rounds them down to $50. MRS's 2026 Individual Income Tax Rates gives 1.303 and 1.279 for those two bases. With those factors, every new 2026 value matches: bases of $155, $220, $255 and $285, and thresholds of $26,050, $39,050 and $52,100. The PR body says main's 2026 values come from uprating ($215 and $26,000), and that is right too. The fix is parameter-only, CI is green at the head, and the branch merges cleanly with current main. I found no critical issues and one should-address gap in the tests. The PR's own reading 1 says one 2026 number depends on its choice of MRS's published factor: the head of household threshold. No test pins that threshold from above, and the surviving spouse 2026 entries aren't exercised at all. Critical (must fix)None. Should address1. The head of household 2026 threshold is pinned only from below, and the surviving spouse 2026 entries aren't exercised.
Suggestions
Verified correct
Axiom line assessment
CI status
Branch status
Verdict: REQUEST_CHANGES |
DTrim99
left a comment
There was a problem hiding this comment.
Requesting changes: 0 critical, 1 should address, 3 suggestions (details in the report above).
- Values: every 2026 value matches 36 M.R.S. § 5213-A indexed under § 5403(5) with MRS's 2026 factors (1.279 and 1.303). Two amounts MRS publishes confirm those factors.
- The should: the head-of-household 2026 threshold isn't pinned from above or below. It's the one number the factor choice moves (39,050 against 39,100), and the surviving-spouse 2026 entries aren't exercised. The report gives two cases that would pin them: $39,051 gives $205, and $60,000 with one dependent gives $95.
Adds head-of-household and surviving-spouse cases that pin the $39,050 and $52,100 thresholds and the 1.279 credit factor, cites 36 M.R.S. section 5402(1) for the index release date, and corrects the MRS reference titles and 2024 page links. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Base-mode uprating from 2025 keeps the explicit 2026 thresholds from lowering 2027 and later by $50, and a surviving-spouse case at exactly $52,100 pins that threshold from below. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Should address 1 e1ebe10 adds four 2026 cases to
With the $39,050 case, the $39,051 case pins the head of household threshold at $39,050, and moving it to $39,100 fails that case. The surviving spouse cases pin both additional amounts ($35 and $65), and the $52,100 and $52,101 cases pin the surviving spouse threshold at $52,100. With main's sales tax fairness parameter files, 18 of the 20 2026 cases fail, all five new ones among them. The PR body's invariants now name the thresholds the cases pin, and rulespec-us#1651 adds the five cases as STFC-18 to STFC-22. For the index timing you checked, e1ebe10 also cites 36 M.R.S. § 5402(1) in Suggestions
Tests at 0efd0a04e8, policyengine-core 3.36.0
|
…te table Main's base-mode uprating test requires every base-mode parameter to appear in its statute table and reads the base period as a year. The five thresholds now have an entry citing 36 M.R.S. 5213-A(4) and 5403(5)(C), with the 2025 amounts as the base, and start.yaml writes the period as 2025. The thresholds don't change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
CI on 0efd0a0 failed |
The start.yaml comment and the base-mode statute table now say that 5403(5)(C) indexes by Maine's June-ending chained CPI, that the model projects from the 2025 amounts with gov.irs.uprating to keep main's projections, and that SEPARATE is a zero placeholder under 5213-A(6)(A). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Anchoring on the explicit 2026 values would raise the 2030 and 2032 single thresholds and lower later head of household, joint and surviving spouse thresholds, so the comment no longer says it would pull them down. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DTrim99
left a comment
There was a problem hiding this comment.
Program review
Base repository: PolicyEngine/policyengine-us
PR number: 10807
Reviewed head SHA: 12d364f
Merge base SHA: a5f0f07
Mode: full, with a recheck of David's earlier review (head 010852e)
Scope: changed behavior and affected dependencies
Source manifest: /private/tmp/policyengine-command-runs/ea33c0bb2b64/pr-10807-review-sources.json
Review status: COMPLETE
Source Documents
- s5213A.html — cached original.
- s5403.html — cached original.
- s5402.html — cached original.
- rates2026.pdf — cached original.
- forms2026.html — cached original.
- ptfc2025.pdf — cached original.
- ptfc2024.pdf — cached original.
Critical
None.
Should Address
None.
Suggestions
S1 — The base-mode anchor will not move when later MRS amounts are added (optional) (OPEN)
- Severity: SUGGESTION
- Where:
policyengine_us/parameters/gov/states/me/tax/income/credits/fairness/sales_tax/reduction/start.yaml:6-14. The anchor is also pinned inpolicyengine_us/tests/core/test_base_mode_uprating.py:376-385. - Trigger: a maintainer later adds MRS's 2027 thresholds.
- Expected: the newest published value anchors later projections, as chained mode does in the sibling
amount/base.yaml. - Observed: base mode keeps projecting every year after the last stated value from the 2025 base, using
25_450 × index(Y) / index(2025). It does this no matter how many later values are added, because core'suprate_parameter_from_basereadsbase_valueatbase.period. - This is not a defect today. The comment says "later years project from the 2025 values". If someone changes
base.periodwithout updating the statute-table rows,test_uprating_metadata_matches_the_statutefails, so the two cannot drift apart silently. - Optional fix: add one line to the comment saying that adding later MRS amounts means deciding whether to move
base.period, and the matchingStatute(...)rows, to the newest year.
Evidence Gaps
No material gaps reported.
Notes
- Earlier review: the should-address item is resolved.
- The head of household 2026 threshold is now pinned from both sides: $39,050 gives 220 and $39,051 gives 205.
- The surviving spouse 2026 entries are exercised: 1 dependent at $60,000 gives 95, 2 dependents give 285, and $52,100 / $52,101 give 255 / 200.
- Suggestions 1 and 2 (reference titles; the 2024 links, now page 4) are done. Suggestion 3 (later-year projection drift) stays as on main: 2027-2036 output is identical to main, and the comments document the missing Maine index.
- The 2026 values match Maine Revenue Services' 2026 inflation-adjusted amounts for the sales tax fairness credit (36 M.R.S. 5213-A, indexed under 36 M.R.S. 5403). The policy reviewer found no defects, and every new case checks by hand. #11185 changes the income side of the same credit and doesn't overlap these files.
Validation Summary
Local tests at the reviewed head pass (the changed tests plus the Maine fairness credit directory; review venv, imports from the snapshot). The PR merges cleanly into current main. Sources: MRS 2026 individual income tax rates and the 2024/2025 Schedule PTFC/STFC, checksums validated.
Timing
policy role seconds: 398.00s; code role seconds: 567.00s; parallel review seconds: 567.00s; elapsed seconds: 660.00s
Review Severity
APPROVE. Open findings: 0 critical, 0 should address, 1 suggestions.
What was wrong
For 2026, PolicyEngine gave Maine's sales tax fairness credit a $215 base for joint, head of household and surviving spouse filers, and started the single phase-out at $26,000. Both numbers came from uprating the rounded 2025 amounts by
gov.irs.uprating, whose 2026/2025 ratio on main is 177.11375 / 173.0934167 = 1.0232264: 215 × 1.0232264 = 219.99 rounds down to $215, and 25,450 × 1.0232264 = 26,041.11 rounds down to $26,000. Under 36 M.R.S. § 5403, Maine's State Tax Assessor instead multiplies the statutory amounts by a cumulative cost-of-living adjustment each year, which gives $220 and $26,050. So a married couple with $60,000 of income got $55 instead of $60, and a couple with $30,000 got $215 instead of $220.The law
The Legislature set the base credit in 36 M.R.S. § 5213-A, subsection 1(A-1):
Under subsection 4, single filers lose "$10 for every $500 or portion thereof that exceeds $20,000 of the income", heads of household "$15 for every $750 or portion thereof that exceeds $30,000", and joint filers and surviving spouses "$20 for every $1,000 or portion thereof that exceeds $40,000 of the income".
36 M.R.S. § 5403 has the assessor, "on or about September 15th of each year", multiply the cost-of-living adjustment by both, under subsection 5:
The section's closing paragraph has the assessor round every other indexed amount, the thresholds included, down to a multiple of $50. Section 5403 lists neither the $500, $750 and $1,000 steps nor the $10, $15 and $20 reductions, so they stay fixed.
Maine Revenue Services (MRS) published the 2026 factors in its 2026 Individual Income Tax Rates (revised May 20, 2026): 1.303 for the lowest bracket amounts and 1.279 for the personal exemption. Section 5403 indexes the lowest bracket amounts from the same June 2015 base as the credit's thresholds (subsection 1(A)), and the personal exemption from the same June 2017 base as the credit amounts (subsection 7): the $4,150 exemption in § 5126-A(1) times 1.279 is 5,307.85, which rounds down to the $5,300 MRS publishes.
The change
Every 2026 amount now equals the statutory amount times MRS's 2026 factor, rounded down:
amount/base.yaml: 2026 entries of $220 for joint, head of household and surviving spouse. The single base stays on uprating, which already gives $155. An explicit $155 entry would anchor later uprating at the rounded value and drop the projected 2027 single base from $160 to $155, so the file carries a comment and the tests pin $155.reduction/start.yaml: explicit 2026 thresholds for single, head of household, joint and surviving spouse filers, and an uprating base of 2025. Section 5403(5)(C) indexes the thresholds from fixed statutory amounts, so later years project from the 2025 values rather than from the rounded 2026 ones. With policyengine-core 3.36.0, which this branch requires after merging main, every later threshold equals main's. Without the base, the explicit 2026 values would anchor uprating, and the 2027 head of household and joint thresholds would come out $50 low: $40,200 and $53,650, against the $40,250 and $53,700 that MRS's 2027 factor of 1.343 gives. The single threshold would go the other way in some years, coming out $50 above main's projection in 2030 and 2032 ($28,600 and $29,750). The file's 2024 reference, and those inreduction/amount.yamlandreduction/increment.yaml, now point at the 2024 schedule instead of the 2023 one.tests/core/test_base_mode_uprating.py: main's base-mode test requires every base-mode parameter in its statute table, so 937d8a0643 adds the five thresholds, citing 36 M.R.S. 5213-A(4) and 5403(5)(C). The entry labels these rows as the model's projection, not the statute's formula: the statute uses Maine's chained CPI for the 12 months ending June 30, and the model, which has no Maine index, projects from MRS's 2025 amounts withgov.irs.uprating.SEPARATEis a zero placeholder, since § 5213-A(6)(A) excludes married taxpayers filing separate returns.amount/additional/{joint,head_of_household,surviving_spouse}.yaml: explicit 2026 entries of $35 and $65 with the computation. These parameters don't uprate, so the values match main; the entries record the 2026 check.amount/base.yaml,reduction/start.yamland the three additional-amount files cite MRS's 2026 rate schedule. The base and threshold files also cite 36 M.R.S. § 5402(1) for the date of the index (reading 1).Readings taken
MRS's 2026 table
MRS has not yet published the 2026 Schedule PTFC/STFC table. Its 2026 individual income tax forms page lists Schedule PTFC/STFC without a link, and the only 2026 PDFs it links are Form 1040ES, two phase-out worksheets and the rate schedule (checked November 21, 2026). This PR computes 2026 from the statute and MRS's published 2026 factors; when MRS publishes the table, we should check these amounts against it.
Invariants and how the tests check them
me_sales_tax_fairness_credit.yamlassert every base (single, joint, head of household, surviving spouse) and both additional tiers for joint, head of household and surviving spouse filers. They pin the thresholds at their edges: a single filer at $26,050 keeps $155 and at $26,550 loses one step; a head of household at $39,050 keeps $220 and at $39,051 gets $205; a joint return at $62,100 keeps $20 and at $62,101 gets $0; a surviving spouse with one dependent at $52,100 keeps $255, and with no dependents at $52,101 gets $200. A surviving spouse with one dependent at $60,000 gets $95. The comments show each hand computation from the statute and MRS's factors; no expected value comes from PolicyEngine.This PR changes parameter values only, so it adds YAML cases rather than a Python property test, as the repo's test design guide asks.
Before and after
Married couple filing jointly in Maine, no dependents, 2026:
me_income_tax$994.80me_income_tax$989.80me_income_tax−$215me_income_tax−$220The same households get $15 and $215 in 2025 on both main and this branch.
Test plan
test_source_conflicts.py: 251 passed.make format:ruff format --checkandruff checkpass ontests/core/test_base_mode_uprating.py, the one Python file the PR changes.changelog.d/.policyengine-core testwith policyengine-core 3.36.0 at 0efd0a04e8, onme/tax/income/credits/sales_tax_fairness_creditandme_refundable_credits.yaml: 42 passed. Onme/tax/income/credits,me/tax/income/integration.yaml,me_refundable_credits.yamlandme_income_tax_before_refundable_credits.yaml: 250 passed. At 937d8a0643, which changes no parameter value,me_sales_tax_fairness_credit.yamlgives 34 passed andtests/core/test_base_mode_uprating.py289 passed, as it does at 1f79a997b1, which rewords the comments on the Maine projection. At 12d364fc66, which corrects that comment's description of the 2026 anchor,tests/core/test_base_mode_uprating.pygives 289 passed and thesales_tax_fairness_creditfolder 40 passed.axiom: us-me/statute/36/5213-A rulespec-us#1651 queued
rulespec-us#1651 already queues the signed re-encode of
us-me/statutes/36/5213-A.yamlwith § 5403 indexing. Two corpus gaps block the encoder there: the pinned corpus row for § 5213-A holds the legislature site's menu, and the W6 release drops subsection 4's lettered paragraphs. Comments on that issue add this PR's law, outputs and companion cases; the latest adds STFC-18 to STFC-22.🤖 Generated with Claude Code