Skip to content

Apply Minnesota's charitable floor and property tax cap - #10872

Merged
MaxGhenis merged 12 commits into
mainfrom
mn-charitable-floor-property-tax-cap
Nov 17, 2026
Merged

MaxGhenis merged 12 commits into
mainfrom
mn-charitable-floor-property-tax-cap

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Minnesota filers apply the state's 1% charitable floor from 2026 when they itemize or claim the non-itemizer subtraction. The Legislature set the floor in Laws 2026, chapter 128, article 1, section 4, amending section 290.0122, subdivision 4. Non-itemizers apply that floor before they subtract half of the amount over $500 under section 290.0132, subdivision 7.

The Minnesota Legislature has capped the deduction for combined real estate and personal property taxes at $10,000, or $5,000 for a married person filing separately, since tax year 2019, under section 290.0122, subdivision 3(a)(1). PolicyEngine previously capped real estate taxes alone at the federal SALT limit, which rose to $40,000 in 2025.

For example, a filer with $100,000 of adjusted gross income and $4,000 of gifts in 2026 deducts $3,500 federally when itemizing and $3,000 in Minnesota. A non-itemizer with the same income and gifts subtracts ($3,000 - $500) / 2 = $1,250. In 2025, a homeowner who pays $18,000 of real estate taxes and $12,000 of mortgage interest itemizes $10,000 + $12,000 = $22,000 in Minnesota, before Minnesota's reduction for high incomes. In 2024, a homeowner who pays $7,000 of real estate taxes, $4,000 of personal property taxes and $12,000 of mortgage interest itemizes min($11,000, $10,000) + $12,000 = $22,000, up from $19,000.

Closes #10799
Closes #10800

Invariants

Households outside Minnesota keep main's results, and the federal charitable deduction keeps main's amounts.

For every filing status, in every year from 2019, a Minnesota filer's property tax deduction:

  • lies between zero and the lesser of the taxes paid and the cap ($10,000, or $5,000 for a married person filing separately);
  • stays the same when the real estate and personal property amounts swap;
  • never falls when either tax rises;
  • raises itemized deductions dollar for dollar below the reduction thresholds.

For charitable contributions:

  • The Minnesota amount lies between zero and the federal amount before any floor, and never falls when gifts rise.
  • Before 2026, the Minnesota amount equals the federal deduction. From 2026, a filer deducts gifts in Minnesota only when they exceed 1% of income, and the Minnesota amount trails the federal one by at most 0.5% of income.
  • Before 2026, the federal deduction equals the amount before any floor. From 2026, it equals that amount less 0.5% of income, and never falls below zero. This holds for gifts over a percentage ceiling too.
  • Gifts raise itemized deductions by the Minnesota amount, and lower an itemizer's alternative minimum taxable income by the federal amount.
  • An itemizer takes no charity subtraction. A non-itemizer takes one only when the Minnesota amount exceeds $500.

policyengine_us/tests/core/test_mn_deduction_invariants.py checks each listed invariant on a grid of filing statuses, incomes, taxes and gifts: 80 tax units in each of 2019, 2024 and 2026 for property taxes, and 140 in each of 2025 and 2026 for gifts. Its caps, floors and years come from the statutes.

Federal charitable_deduction.yaml (34 cases) and hi_charitable_deduction.yaml (10) pin the federal and Hawaii amounts, and the new Minnesota variables apply only to Minnesota households.

YAML cases pin the property tax deduction one dollar under, at and one dollar over each cap, and give every filing status a case over its cap. For gifts, they pin the amounts one dollar under, at and one dollar over Minnesota's floor and the $500 subtraction threshold, and for gifts between the federal and Minnesota floors.

The zero-floor reform test sets Minnesota's floor to zero, which allows a Minnesota charitable amount above the federal one.

Methodology choices

  • Keep the federal section 170 deduction in Minnesota AMT under section 290.091, subdivision 2(a)(2)(i). The department instead directs filers to Minnesota's amount on line 11 of its draft 2026 Schedule M1MT. source_conflicts/candidates.yaml records the conflict as us-mn:amt-charitable-contribution-floor, with captures of both statutes, both draft schedules and section 70425 of Public Law 119-21. The conflict ends if the department takes the federal amount on line 11 of its final schedule. We add the register marker after the shared register pins the merged code, as the source-conflict steps require.
  • Start the property tax cap in 2019. The Legislature enacted section 290.0122 for taxable years beginning after December 31, 2018 (Laws 2019, First Special Session, chapter 6, article 1, section 16). Before 2019, mn_property_tax_deduction returns capped_property_taxes, the amount main deducts.
  • Add mn_personal_property_taxes as a Minnesota-only person input, because the model has no general personal property tax input. It defaults to zero, and the deduction sums payments across tax-unit members.
  • From 2026, compute the Minnesota charitable amount from charitable_deduction_before_floor, the federal amount after the percentage ceilings and before the floor. A caller who supplies only charitable_deduction gets no Minnesota charitable deduction from 2026, so supply donations or charitable_deduction_before_floor. Before 2026, both Minnesota uses keep a supplied charitable_deduction.
  • Use the existing positive_agi as the contribution base for Minnesota's floor.
  • Split the federal ceilings into charitable_deduction_before_floor_given_contribution_base. charitable_deduction_given_contribution_base calls it and then applies the federal floor, so Hawaii's deduction and the federal one keep main's steps.
  • Use mn_property_tax_deduction and the Minnesota charitable amount in the HF1938 repeal reform's itemized deductions, as the baseline does. The Legislature amended only subdivision 2 of section 290.0122 in House File 1938 (Laws 2023, chapter 64).
  • Cover current-year gifts only. The model has no charitable carryovers, which the department adds after the floor on its draft 2026 Schedule M1SA. It also has no input for qualified charitable distributions, which section 290.0122, subdivision 4(a), and section 290.0132, subdivision 7, keep out of both amounts.
  • Keep the existing itemization choice, which compares itemized deductions with the standard deduction before the non-itemizer charity subtraction. A filer the model has itemize could owe less with the standard deduction and the subtraction.

Validation

Pull request run 44011545147 at d3bb251c32 passed all 37 jobs on GitHub's merge with main 5b18694981.

  • YAML, all passing: mn_property_tax_deduction.yaml 18, mn_itemized_deductions.yaml 29, mn_charitable_deduction.yaml 11, mn_amt_taxable_income.yaml 10 and mn_charity_subtraction.yaml 2. The federal charitable_deduction.yaml passes 34, hi_charitable_deduction.yaml 10, the reform file reform/mn_charitable_deduction.yaml 1 and the HF1938 file mn_walz_hf1938.yaml 8.
  • Python: test_mn_deduction_invariants.py 5 passed, test_ca_mn_itemized_limitation_properties.py 2 passed and test_source_conflicts.py 251 passed. Ruff format and lint pass, and git diff --check reports nothing.
  • From 2018 through 2024, the model still gives a single filer with $18,000 of real estate taxes a $10,000 deduction, and a married person filing separately with $8,000 a $5,000 deduction, as main did.

Mutants, each run against the one file that should catch it:

  • With the property tax cap starting in 2025, the 2019 case and both 2024 cases in mn_property_tax_deduction.yaml fail. The single filers deduct $7,000 where the statute gives $10,000, and the married person filing separately deducts $3,000 where it gives $5,000. The 2024 personal property case in mn_itemized_deductions.yaml fails too.
  • Without personal property taxes in the sum, all 18 cases in mn_property_tax_deduction.yaml fail. With a $10,000 cap for married people filing separately, 3 cases fail. Without the cap, test_property_tax_deduction_invariants fails for 2019, 2024 and 2026.
  • In the HF1938 repeal, reading capped_property_taxes fails the 2025 case ($30,000 where the statute gives $22,000). Dropping the Minnesota charitable amount fails the 2026 case ($23,500 where the statute gives $23,000).
  • Applying Minnesota's floor after the federal one fails 6 cases in mn_charitable_deduction.yaml and test_charitable_deduction_invariants[2026]. A 0.5% Minnesota floor, or the Minnesota amount in AMT, fails test_charitable_deduction_invariants[2026].
  • The federal deduction in Minnesota itemized deductions fails 2 cases in mn_itemized_deductions.yaml. In the charity subtraction, it fails 6 cases in mn_charitable_deduction.yaml.
  • Without the supplied charitable_deduction_before_floor, test_ca_mn_itemized_limitation_properties.py fails for 2026.

Microsimulation impact

We estimate that this branch raises Minnesota income tax by $54.4m in 2026 on the default dataset, for 259 sampled tax units (625,140 weighted), 258 of which pay more. It lowers household net income by $54.4m, for 248 sampled households (580,121 weighted). Under the property tax cap and the 1% charitable floor, Minnesota itemized deductions fall by $1.07bn for 309 tax units (663,890 weighted). Filers who itemize subtract those deductions from income before Minnesota's rates apply, so tax rises by far less than the deductions fall. The charity subtraction for filers who don't itemize falls by $218.2m (165 tax units, 455,790 weighted), and alternative minimum taxable income, which subtracts it, rises by $237.1m (174 tax units, 467,622 weighted). Federal income tax and the federal charitable deduction don't change. The default dataset holds no personal property taxes, so the cap applies to real estate taxes alone here. We compared main at b25d78faa3 with this branch at d3bb251c32.

Output Main total Change Records changed (weighted)
mn_income_tax $17.26bn +$54.4m 259 (625,140)
mn_itemized_deductions $22.04bn -$1.07bn 309 (663,890)
mn_charity_subtraction $1.18bn -$218.2m 165 (455,790)
mn_amt_taxable_income $321.9bn +$237.1m 174 (467,622)
charitable_deduction $335.2bn $0 0 (0)
state_income_tax $576.6bn +$54.4m 259 (625,140)
income_tax $2,594.9bn $0 0 (0)
household_benefits $2,060.1bn $0 0 (0)
household_net_income $17,246.4bn -$54.4m 248 (580,121)

Axiom

axiom: TheAxiomFoundation/rulespec-us#2303 queued (Minn. Stat. 290.0122, subds. 3(a)(1) and 4(a), and 290.0132, subd. 7; the corpus release that rulespec-us pins lacks both sections, so the signed encoder can't run yet)

rulespec-us#2017 queues section 290.0122, subd. 2(d)(1), and section 290.091, subd. 2(a), for investment interest. It quotes subd. 2(a)(2)(i), the clause the AMT choice follows.

🤖 Generated with Claude Code

MaxGhenis and others added 3 commits November 13, 2026 08:12
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis and others added 7 commits November 14, 2026 11:35
Keep both new source-conflict candidates: South Dakota's hourly child
care cap from #10815 and Minnesota's AMT charitable floor.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The Legislature has capped the deduction for combined real estate and
personal property taxes at $10,000, or $5,000 for a married person filing
separately, since section 290.0122, subdivision 3(a)(1), took effect for
taxable years beginning after December 31, 2018 (Laws 2019, First Special
Session, chapter 6, article 1, section 16). Dating the cap from 2025 left
personal property taxes out of the deduction for 2019 through 2024.

A 2024 single filer with $7,000 of real estate taxes, $4,000 of personal
property taxes and $12,000 of mortgage interest now itemizes
12,000 + min(11,000, 10,000) = $22,000, up from $19,000. Results for
filers who pay only real estate taxes don't change before 2025, when the
federal cap was also $10,000 ($5,000).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…repeal

The repeal reform replaces mn_itemized_deductions with a formula that
added federally capped real estate taxes and kept the federal charitable
deduction. Against a baseline with Minnesota's $10,000 cap and 1% floor,
the repeal gave a 2025 single filer with $200,000 of wages, $18,000 of
real estate taxes and $12,000 of mortgage interest $30,000 of itemized
deductions, where the baseline gives $22,000.

The Legislature amended only subdivision 2 of section 290.0122 in House
File 1938 (Laws 2023, chapter 64), so the repeal now reads
mn_property_tax_deduction and the Minnesota charitable amount, as the
baseline does.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Replace the worker process and its hand-built tax-benefit system with two
grid tests on policyengine_us.Simulation, one simulation per year. The
worker listed about 35 variable files by path, so moving any of them
broke the test. The new checks take their caps, floors and years from the
statutes, and leave the amounts at each threshold to the YAML files.

Supply charitable_deduction_before_floor in the California and Minnesota
limitation test. From 2026 Minnesota applies its floor to that amount, so
the test's gift units deducted nothing in Minnesota. A third check now
fails if a gift doesn't raise the no-income deduction by its full amount.

Drop the federal output from the two zero-income Minnesota cases, which
supply the amount before the floor directly.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Replace the five one-line excerpts with the sources themselves: page 1 of
the draft 2026 Schedules M1MT and M1SA, sections 290.0122 and 290.091 in
full, and section 70425 of Public Law 119-21. Note in the candidate that
the conflict ends if the department takes the federal section 170 amount
on line 11 of its final 2026 Schedule M1MT.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Both sides split the federal charitable deduction formula. Keep
charitable_deduction_given_contribution_base from #9940, which Hawaii
calls with its own adjusted gross income, and split the ceilings out of
it as charitable_deduction_before_floor_given_contribution_base, which
charitable_deduction_before_floor now calls with federal positive AGI.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
MaxGhenis and others added 2 commits November 14, 2026 23:43
Both sides appended cases to mn_itemized_deductions.yaml and the contrib
mn_walz_hf1938.yaml: #10070 its wagering-loss cases, this branch its
charitable and property tax cases. Keep every case from both sides,
main's first.

Git combined mn_itemized_deductions.py, the HF1938 reform and the
source-conflict candidates without conflict. The baseline and the
reform read mn_property_tax_deduction and mn_charitable_deduction, and
both leave wagering_losses_deduction out of the limitation.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Main added source-conflict candidates beside this branch's entries. Keep main's
entries in main's order and put this branch's entries after main's last entry
for the same jurisdiction.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@MaxGhenis

Copy link
Copy Markdown
Contributor Author

US + core hub merge audit, us#10872 at d3bb251c32b3e69641870c1b99b25a39f326d65f (squash): Apply Minnesota's charitable floor and property tax cap.

  • Reviews:
    • The PR has no GitHub reviews. Two independent review rounds ran outside GitHub, with a fix round between them, and a third review checked the first of the two merges of main that followed.
    • The first round, at 3b0a989b2f, read Minn. Stat. 290.0122, subds. 3(a)(1) and 4(a), 290.0132, subd. 7, 290.091, subd. 2(a)(2)(i), and 290.01, subd. 31. It also read section 70425 of Public Law 119-21 and the draft 2026 Schedules M1SA and M1MT. It computed ten households by hand and ran them on the head and on the merge base a93cc58d7e, and every result matched its hand figures.
    • It found the 1% floor and the AMT choice consistent with the statutes, and it requested three changes. The PR dated the property tax cap from 2025, where the Legislature has capped combined real estate and personal property taxes since tax year 2019. The HF1938 repeal reform kept the federal SALT limit and the federal floor, so a 2025 homeowner with $18,000 of real estate taxes showed a false $628 tax cut from the repeal. The description had no population estimate.
    • It also listed four minor findings. From 2026, Minnesota's amount dropped a federal charitable deduction that a caller supplied. Two zero-income cases pinned the federal formula's handling of a supplied input. The invariant test built its own tax-benefit system from hard-coded file paths. The register entry didn't say what would end the conflict.
    • The fix round, through 86ddcf0b00, dated the cap from 2019 and kept capped_property_taxes for earlier years, since PolicyEngine copies parameters back to 2015 and section 290.0122 took effect in 2019. It rewrote the two 2024 cases and added a 2019 case and a 2024 itemizer who pays personal property taxes. The HF1938 repeal now reads Minnesota's property tax deduction and charitable amount, with a 2025 and a 2026 case.
    • The same round replaced the invariant harness with ordinary simulation grids and dropped the federal output from the zero-income cases. It supplied the amount before the floor in the California and Minnesota limitation test, and it replaced the five source captures with official text. Each of twelve mutants failed a case or an invariant in every file it ran against.
    • Two merges of main came in that round. In 454078f3e4, Pay South Dakota CCA from the July 2024 hourly county rates #10815 had added a register entry at the same place as this PR's, and the merge keeps both. In c9f35d117c, Update Hawaii deductions for Act 35 conformity #9940 had added charitable_deduction_given_contribution_base to the federal file for Hawaii. The merge keeps main's function and formula and moves the ceiling steps into charitable_deduction_before_floor_given_contribution_base, which main's function calls before it applies the federal floor.
    • The second round raised no blocking finding at 86ddcf0b00. It read both merges hunk by hunk, fetched the statutes and the three session laws again, recomputed every changed expectation by hand and mapped each first-round finding to its fix. CI's run at that head passed every changed test file and the federal and Hawaii charitable files. It ran 18, 27, 11, 10 and 2 cases in the five Minnesota files, 34 federal and 10 Hawaii cases, 7 HF1938 cases, 1 reform case and the three Python files.
    • It listed two minor code findings, and both stay open under Next. The new federal variable copies the law.cornell.edu reference of main's charitable_deduction. A 2019 test comment names the statute's $194,650 reduction threshold, where the model uses $199,850 for 2019; the case has $50,000 of income, below both.
    • The second round listed corrections to the description, and I made each before merge. The description now says the invariant test checks each listed invariant, names the federal and Hawaii files that pin those amounts and states the federal floor's minimum of zero. It also says which thresholds the YAML cases pin for each filing status, and it compares the 2018 to 2024 real estate results with main's.
    • After the second round, bc14ef8325 merges main at a29c73d587, because Count gambling winnings in federal gross income and fix the wagering losses deduction #10070 added cases at the ends of mn_itemized_deductions.yaml and the contrib mn_walz_hf1938.yaml, where this PR adds its own. The merge keeps both sides' cases, main's first, so the files hold 29 and 8 cases. Count gambling winnings in federal gross income and fix the wagering losses deduction #10070 also added wagering_losses_deduction to the deductions that mn_itemized_deductions.py and the HF1938 reform leave out of the reduction, and a Minnesota entry to the register. Git combined those three files without conflict, and the register then held 465 unique ids. Main's three new Minnesota cases set no real estate taxes and no gifts, so this PR's formulas leave their expected values unchanged.
    • The third review raised no blocking finding at bc14ef8325. It compared the base, branch, main and merged copies of the five files both sides changed, and it recomputed main's three new cases by hand under the combined formulas. It listed two minor findings in lines that main added, which stay open under Next, and two case counts in the description, which I corrected.
    • After the third review, d3bb251c32 merges main at b25d78faa3, because Correct 2018–2020 Medicaid parent limits in UT, TN and VA and adult-group starts in UT and VA #10874 added three entries at the end of source_conflicts/candidates.yaml, where this PR's entry sat. In that merge, git combined every file but the register without conflict. The merge keeps main's 478 register entries in main's order and puts this PR's entry after main's last Minnesota entry, so the register holds 479 unique ids. A script checked that each entry matches its own side's text and that the merged tree differs from main in this PR's 27 files alone. Between a29c73d587 and b25d78faa3, main added 14 register entries and edited four, none for Minnesota. Correct 2018–2020 Medicaid parent limits in UT, TN and VA and adult-group starts in UT and VA #10874 also added seven Medicaid parameter files to KNOWN_UNMARKED in test_source_conflicts.py, and git combined them with this PR's line. In that range, main changed no Minnesota file and no charitable or itemized-deduction formula. Correct historical federal taxes and add annual 2017–2026 tests #10854 added 2017 values to the federal list of itemized deductions and to the non-itemizer charitable amount, and it changed no later value in either. Count strike benefits other than gifts in federal gross income #10727 counts strike benefits other than gifts in federal gross income, so AGI, the base of both floors, rises for a filer who receives them. None of this PR's cases sets strike benefits.
  • Methodology choices for maintainers:
    • Minnesota AMT keeps the federal section 170 deduction, with its 0.5% floor, under section 290.091, subd. 2(a)(2)(i). Line 11 of the department's draft 2026 Schedule M1MT takes Minnesota's amount from Schedule M1SA instead. For an itemizer with $100,000 of AGI and $4,000 of gifts, the statute gives $96,500 of alternative minimum taxable income and the draft form $97,000. source_conflicts/candidates.yaml records the conflict as us-mn:amt-charitable-contribution-floor, with state ruled under the statute-first principle. The conflict ends if the department's final schedule takes the federal amount.
    • The property tax cap starts in 2019, the first tax year of section 290.0122. Before 2019 the deduction returns capped_property_taxes, as main did, and no test pins a year before 2019.
    • The PR adds mn_personal_property_taxes, a Minnesota person input that defaults to zero, so existing datasets hold no values for it. The model had no general personal property tax input.
    • From 2026, Minnesota's charitable amount starts from charitable_deduction_before_floor. A caller who supplies only charitable_deduction gets no Minnesota charitable deduction from 2026. A fallback to the supplied federal amount plus the federal floor would add a new choice, and this PR doesn't make it.
    • Minnesota's floor uses positive_agi, federal AGI with a minimum of zero, as the contribution base. Section 170(b)(1)(H) also leaves out any net operating loss carryback, which the model doesn't hold.
    • The model covers current-year gifts. It has no charitable carryovers, which the draft Schedule M1SA adds after the floor, and no input for the qualified charitable distributions that sections 290.0122, subd. 4(a), and 290.0132, subd. 7, leave out.
    • The itemization choice still compares itemized deductions with the standard deduction before the non-itemizer subtraction. A filer the model has itemize could owe less with the standard deduction and the subtraction.
    • The HF1938 repeal reform keeps Minnesota's property tax cap and charitable amount, since the Legislature amended only subd. 2 of section 290.0122 in House File 1938 (Laws 2023, chapter 64).
  • Gates checked live at merge:
  • Impact: we estimate that this branch raises Minnesota income tax by $54.4m in 2026 on the default dataset, for 259 tax units (625,140 weighted), and lowers household net income by $54.4m. Under the property tax cap and the 1% charitable floor, Minnesota itemized deductions fall by $1.07bn (309 tax units, 663,890 weighted), and the charity subtraction for filers who don't itemize falls by $218.2m. Main b25d78faa3 against d3bb251c32.
  • Next:
    • Add North Carolina's wagering losses itemized deduction from 2025 (G.S. 105-153.5(a)(2)e) #10110 and Count railroad benefits in state tax worksheets, income tests and limits as each state's law does #10722, both drafts, edit the HF1938 reform, and Add North Carolina's wagering losses itemized deduction from 2025 (G.S. 105-153.5(a)(2)e) #10110 also edits mn_itemized_deductions.py and its cases. Tax railroad retirement benefits federally, exempt them from state income tax, and count them in program income #10696 edits mn_amt_taxable_income.py and its cases. After this squash, each should merge main and keep this PR's property tax and charitable lines and cases.
    • Add the federal scholarship tax credit under IRC §25F #10902, a draft, changes the cash input inside the federal ceiling steps, which this PR moves into charitable_deduction_before_floor_given_contribution_base. It should make that change in the helper, so the federal deduction and the amount before the floor both read it.
    • Separately, 35 other open PRs edit source_conflicts/candidates.yaml.
    • The conflict us-mn:amt-charitable-contribution-floor still needs its entry in the rulespec-us register, pinned to this squash. A follow-up PR then marks the deciding line in mn_amt_taxable_income.py, refreshes the pin and deletes the candidate and the file's KNOWN_UNMARKED line.
    • The HF1938 repeal reform's itemized deductions still differ from the baseline's. They keep mortgage insurance premiums, which section 290.0122, subd. 5(3), leaves out of interest. They also reduce investment interest, which subd. 2 exempted before and after House File 1938. An issue should port both rules, with a case for each.
    • For 2018, section 290.993 adjusts tax to the Internal Revenue Code as amended through December 16, 2016, and its list of excepted Public Law 115-97 sections leaves out section 11042, the SALT limit. The model caps 2018 real estate taxes at $10,000, and no test pins the 2018 rule.
    • reduction/agi_threshold/low.yaml starts in 2021 at $199,850, and PolicyEngine copies that value back to 2019 and 2020. The 2019 edition of subd. 2(b) set $194,650, indexed from 2020, so a 2019 filer between the two amounts gets no reduction in the model. The 2019 case's comment in mn_property_tax_deduction.yaml names the statute's amount.
    • Until Laws 2026, chapter 128, subd. 4(a) applied section 170(b)(1)(G) "regardless of the taxable year", and the model gives Minnesota the federal deduction before 2026. If the federal 2020 and 2021 election for cash gifts lifts the federal amount above the 60% ceiling, Minnesota's amount for those years may run too high. Nobody has checked this beyond the statute text.
    • charitable_deduction_before_floor.py copies the law.cornell.edu reference of main's charitable_deduction. A follow-up can move both to the House's code site.
    • Main's register note for us-mn:wagering-losses-itemized-limitation-exclusion cites lines 68 and 71 of mn_itemized_deductions.py and lines 136 and 139 of the HF1938 reform. This PR adds lines above them, so they move to 72 and 75 and to 144 and 147. A follow-up should name the exempt_deds list in each file instead.
    • Main's 2023 wagering case in mn_itemized_deductions.yaml sets capped_property_taxes to zero. From 2019, mn_property_tax_deduction reads real estate and personal property taxes, so that input no longer affects the case, which still expects $50,000.
    • The model lets a Minnesota itemizer deduct property taxes up to the full federal cap from 2025, where Minnesota allows $10,000 #10800 describes the cap from 2025. A comment there should record that the Legislature has capped combined real estate and personal property taxes since tax year 2019, and that this PR adds the personal property input.
    • I found no open issue for charitable carryovers, qualified charitable distributions or the itemization choice before the subtraction.
  • Axiom: Encode Minnesota's property tax deduction cap, 1% charitable floor and non-itemizer charity subtraction (Minn. Stat. 290.0122, subds. 3(a)(1) and 4(a), and 290.0132, subd. 7) (PE-US #10872) TheAxiomFoundation/rulespec-us#2303 queued, a new pe-parity issue for Minn. Stat. 290.0122, subds. 3(a)(1) and 4(a), and 290.0132, subd. 7, with companion rows from this PR's YAML. The signed encoder can't run yet: the corpus release that rulespec-us pins lacks both sections, and no Minnesota manifest in the corpus holds the two session laws that date the rules. Encode Minnesota's investment interest rules for the itemized deduction reduction and the AMT: Minn. Stat. § 290.0122, subd. 2(d)(1), and § 290.091, subd. 2(a) (PE-US PR 10645) TheAxiomFoundation/rulespec-us#2017 queued as it stands, since its 2024 row keeps its value.

🤖 Generated with Claude Code

MaxGhenis added a commit to PolicyEngine/policybench that referenced this pull request Dec 4, 2026
… Gemini 4 Carbon and upgrade US references to policyengine-us 2.165.7 (release, 57 models) (#326)

* Add the board additions' run-folder gates, spec and seed digest

scripts/run_gates_adds1125.py holds the eleven run-folder gates for the
five runs (Gemini 4 Carbon, Gemini 4 Hydrogen, GPT-6.2 Sol, GPT-6.2 Astra,
Gemini 4 Neon). docs/adds1125/spec.json gives each run's expected figures
with their sources, the three spend caps and the rulings. The seed digest
binds release dashboard-data-20261111's 681 judged cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Test each run-folder gate against a planted fault on both contracts

Synthetic tool-contract (Hydrogen card) and JSON-contract (Carbon card)
runs of three households pass all eleven gates; each gate's planted fault
fails it on both. Fixes the gates' repricing, which read a field
ReconstructedCost does not have.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Fork the release driver for the five board additions

finish_adds1125.py keeps Fable 5.2's gates and adds --step run-gates:
prepare reruns the eleven run-folder gates and requires their committed
record, pin-inputs and export require the pinned run files to be the
gated ones, and every new row must carry costUsd (PR #273's check is not
on main). No exclusion is ruled, so install-exclusions, the ruled half of
adjudicate-exclusions (now adjudicate, triage only) and the scope export
are gone; every step holds the exclusion record to release 20261111's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Fork the freeze and verdict dating for the board additions

The freeze commits release 20261111's exclusion record unchanged and
requires the receipt to bind the committed, passing run-gate record. The
dating step fills release 20261111's two unfilled waves from PR #260's
merge, as Terra's filled the 2026-10-14 wave.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Refuse retry and row-repair artifacts beside a board run

Gate 11 now refuses any file response_retry_units or row_repair_targets
writes in the run's model folder, so no repaired blank can reach a new
model's rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Test the board additions' driver, freeze and dating step

Covers the run-gate record wiring, the five-model fold, export's
incumbent and cost gates (with a Hypothesis property over any set of
additions), the base exclusion record, the triage-only date conventions,
the dating step's wave fill, and that every kept function is Fable 5.2's
code. The freezer count in test_reasoning_effort_override rises to 8.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Document the board additions' release and test the carried amendments

design.md gives the mechanics and the exact command sequence with LEAD
placeholders; the freeze's receipt check of the run-gate record becomes
verify_run_gates_bound; two tests hold the committed wording amendments
through the freeze.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Test verdict sidecars and the dating step in the brief's own files

The dating tests move from test_freeze_adds1125.py to
test_date_adds1125_judge_verdicts.py, which also covers restatements: a
re-opened decision restated with its bound verdict, an unbound sidecar, a
decision that does not name its verdict, no re-opened decision, an unbound
provenance record, and main filling release 20261111's two waves.
test_finish_adds1125.py ports Fable 5.2's verdict checks to the new models:
a verdict without its sidecar, on another template version, on a v1
prompt, or with a sidecar that does not bind it, is refused or pending.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Say which verdicts without a sidecar the driver refuses and which wait

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Hold the run gates to every launcher's log, tool arguments and the rulings

Review r1 found the gates sound per gate but loose per check:

- Gate 1 read the GPT-6.2 and Neon exit line's head and tree as None,
  so an exit on another head or a dirty tree passed (r1-gates-1). The
  exit pattern now tries the head group first, and when the start line
  is in the dirty-N form the exit line must carry the spec's head and
  dirty 0. The gate also refuses continue lines (Neon's
  continue_board_run.sh) and any "===" line outside the kinds a run
  that went start to finish writes, so WARNING, SIGNAL and "=== EXIT:"
  lines fail it (r1-gates-4).
- Gate 7 refuses any request after one that used the whole ceiling
  (r1-gates-5). A parse error at the ceiling that used less stays
  repairable, as Neon starts there.
- Gate 5 takes a tool run's cells from the tool arguments alone and
  allows submit_explanations alone only as an explanation repair
  (r1-gates-6).
- The spec check matches "[lead" in any case and spacing, types every
  run figure, requires sources, and with RULING_CAPS holds each cap to
  Max's ruling (r1-gates-8, r1-gates-9).

The tests now build a mock run in each of the five runs' shapes under
its launcher's log lines and plant a fault for each check (r1-gates-2,
r1-gates-3, r1-tests-docs-1, -3, -4). The mocks open, cost and record
the response contract from literals, and new tests hold the harness
helpers to those literals (r1-tests-docs-5). The figure test names the
gate that owns each figure (r1-tests-docs-12). The design drops the
per-run figures from the gate table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Pin the build's own exclusion record and bind the record's caps to the spec

Review r1 of the board additions' driver (finish unit):

- r1-finish-1: verify_publication_record compared the 2026-10-22 build's
  publication record with release 20261111's 50-record exclusion record, so
  it could never pass. BUILD_REFERENCE_SHA256 pins the build's own three
  files (its 49-record record 91408c0f), the function leaves the kept list,
  and Fable 5.2's publication tests run on this checkout's committed files.
- r1-finish-2: the kept-wording gate runs on e61eea4's committed annotation
  files, with planted faults (an undone amendment, d2180's sentence dropped,
  a changed case note), and on the bound seed when it is present.
- r1-finish-3: committed_run_gates requires the record's caps to be the
  spec's and Max's rulings, so a caps edit after prepare stops export.
- r1-finish-4: a new row's costUsd must be above zero; export prints it
  beside the spec's gated spend.
- r1-finish-5: the tag test reads the spec; stale docstrings reworded.
- r1-finish-6: the run-gates step checks run_paths and passes RULING_CAPS.
- r1-tests-docs-8: triage refuses a stage with a pending verdict.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Call the driver's two-argument reference check and test what the freeze runs

Review r1 of the board additions' driver (freeze unit):

- r1-freeze-1: verify_committed_references passed verify_reference_pins
  Fable 5.2's third argument, which the fork removed, so the freeze and
  --finalize crashed. It takes the snapshot alone; verify_frozen and
  finalize call it so, and both leave the kept list. A new test binds every
  driver., dating. and own-function call of the three scripts to its
  callee's signature.
- r1-freeze-5: verify_frozen runs on release 20261111's committed files
  with a manifest that states this release, with a planted fault for each
  check; Fable 5.2's finalize tests are ported, one through the real
  publication gate on release 20261111's record (r1-freeze-2); the dry run
  runs every gate in order and reaches no write.
- r1-freeze-7: finalize requires the spec's snapshot day to be the frozen
  manifest's.
- r1-freeze-8: the manifest's exclusion block is no longer a path the
  freeze may change.
- r1-freeze-9: the freeze records the predictions asset's sha256 in the
  receipt and finalize holds the asset and the frozen predictions to it;
  stale docstrings reworded.
- r1-freeze-4: the snapshot placeholder test reads a MOCK spec.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Record what PR #260 published for the waves the dating step fills

Review r1 of the board additions' driver (freeze unit):

- r1-freeze-3: the dating step filled release 20261111's 2026-11-01 and
  2026-11-11 waves with PR #260's merge but left their four decisions
  without the verdict that merge published. fill_published writes each
  one's 'published' from e61eea4's record, as Terra's fill did;
  verify_base_cases accepts exactly that on a second pass; Terra's check
  that a wave was written no later than its release's commit is restored.
  Tests hold every decision of a committed wave to what its release
  published, on release 20261111's evidence.
- r1-freeze-6: the dating step keeps its stop when no committed decision
  is on a re-opened case; the dry run's line now says the stop also leaves
  the two waves unfilled and points to the design's By hand section.
- r1-freeze-9: new_waves' refusal names triage decisions only. A test
  holds the three scripts' code strings free of the fork base's release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Write the By hand steps and the judge environment into the design

Review r1 of the board additions' driver (tests and docs unit):

- r1-freeze-4: a By hand section lists the test pins the freeze and the
  dating step move, the dating stop's ruling, the run-gate exhaustion check
  the lead confirms (r1-gates-10) and the per-run figures' exposure
  (r1-tests-docs-6); a test holds the heading the freeze points to.
- r1-tests-docs-7: PB_RUN and the exact command that restores the staged
  record.
- r1-tests-docs-8: the design names the gates that refuse a pending verdict.
- r1-tests-docs-10: the design says which existing test changed and which
  suites the build did not run.
- r1-tests-docs-11: the freeze's and dating step's kept-code tests refuse a
  stale base tag or folder in the kept function itself.
- r1-tests-docs-13: the tag edit at the freeze and the judge login's token
  and account.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Test the three gate checks review r1's mutants still passed

Review r1 (r1-gates-2) ran 63 mutants of the gates. After the fixes, 80
mutants (r1's 63 and 17 of the new checks) ran one locked pytest each
against the fixed tests; three survived because another check of the
same gate refuses their fault and the fault test asks only which gate
failed: a tool response with a legacy function_call (gate 5), a budget
over the ceiling (gate 7) and a costed call without its tokens (gate 9).
A new fault plants the function_call, and a new test requires each of
the three faults to meet its own check. All three mutants now fail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Run gates: review r2's gate fixes, each check with its own fault

Review r2 (gates and round-diff units) on de98a30.

- r2-gates-2: a cap's outside_runs_usd must be zero or more, and each
  run block's input_ceiling_tokens must be the model's input window as
  code holds it (GPT_RESPONSES_MAX_INPUT_TOKENS for Sol and Astra,
  1,048,576 for the Gemini runs).
- r2-gates-3: each run block counts its blank outputs by label
  (blank_outputs), held to exhausted_outputs and checked in gate 7, and
  gate 7 refuses any failure_source other than "" and
  budget_exhausted_at_ceiling.
- r2-gates-5: a JSON-contract response holding a tool_calls or
  function_call key fails gates 5 and 6, whatever the key's value.
- r2-gates-6: gate 1 reads the "model" line where the start line names
  no model.
- r2-gates-7: gate 5 compares a prediction with its response value
  exactly.
- r2-gates-8: the placeholder scan reads keys; Hydrogen's
  responses_with_text source is a placeholder until the lead fills it.
- r2-gates-9: the "CSV and JSON files written" line is no longer INFO.
- r2-gates-10: gate 3 refuses a cache-replay ledger record or row and
  holds each row's live_calls to its household's answered requests.
- r2-gates-4: every fault in FAULTS asserts its own check's message;
  the probe file's faults move here; gate 8's seven treatment fields
  are literals; new faults swap the unnamed record and reprice as an
  estimate; validate_spec's checks each get an own-message test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Finish and freeze: run the run-gate wiring, refuse cache replays

Review r2 (finish, gates and round-diff units) on de98a30.

- r2-gates-1: behaviour tests replace the AST name checks. prepare
  (release, early and partial) stops before resolve_base on a failed
  committed record, on gates that fail again and on folders that no
  longer give the record; export stops on pins the record did not gate
  and on a failed record; the freeze's verify_receipt stops on a
  receipt whose run_gates binding is off and holds the pins otherwise.
- r2-finish-1: verify_no_cache_replays requires cache_hit_calls == 0 on
  every staged row of the five new models; export and the freeze's main
  call it after verify_new_model_inputs (kept as Fable 5.2's).
- r2-finish-2: base_restoration_problems' docstring says the check reads
  the release payload; the "scope check" phrases name
  base_restoration_problems.
- r2-round-diff-1: the finalize-day test uses the placeholder as a
  literal, as Fable 5.2's test did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Design: r2's gate rows, per-run figures rule, triage pins

- The run-gates paragraph lists the new refusals and drops d2873's
  verified figure; the gate table's rows 1, 3, 5, 6, 7 and 11 state the
  new checks.
- Step 1 names both Hydrogen placeholders, the figure and its source.
- By hand: gate 3's live_calls check rests on the harness's code; the
  per-run figures bullet lists every place the figures sit, drops the
  private-file option and states the rule (keep the branch unpushed
  until the rows publish, or screen each push), for the lead to rule
  (r2-round-diff-2); the two triage-dependent pins move if triage
  records a decision (r2-round-diff-3).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Run gate tests: fault each cache-replay marker of a ledger record alone

The fix round's mutant f2-g3-replay-record (drop the cache_hit clause of
gate 3's replay check) passed, since the one fault set both markers. Four
faults now set the flag, the cached cost, both, or drop the flag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Run gates: hold d2873's bound to the verified figure; Hydrogen's pin in both states

Gate 10 now fails a bound below a ruling's verified bound as well as one
above it, so an outside-the-runs figure set below the truth no longer
lowers the bound and passes (review r3, r3-round-diff-2). A MOCK test plants
lower and higher outside figures under a verified bound.

The test of Hydrogen's text-response pair now holds before and after design
step 1 fills it (r3-round-diff-1, r3-tests-docs-1): either both halves are
placeholders, or the figure is a count and its source a line without one.
New MOCK-copy tests show a half-filled pair stops validate_spec and a filled
pair passes it against Max's rulings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Finish: no moved scored output on either engine; test the record's change gates

verify_publication_record now requires scored_differ to be empty whatever
engine the record names, so a record on the base's engine that lists a moved
scored output, or lists none, stops every step and --finalize (review r3,
r3-freeze-3).

New MOCK tests reach verify_adjudication_changes, ruled_adjudication_problems
and verify_written_days, which changed from Fable 5.2's code and so sit
outside KEPT (r3-tests-docs-2). On release 20261111's record they show the
base record and a built triage entry pass, and that each of these stops with
its own message: a dropped decision, a reordered record, a decision field
moved, added, dropped or reordered on any case, a new decision on a case no
new model re-opened, one the spec does not list, a triage decision on a case
not re-opened or replacing a recorded one, a listed triage decision missing
or off its built entry, and an amendment off what it says. A Hypothesis test
holds that an edit stands exactly on a re-opened case's judge field. The
written-day tests cover a verdict day after the wave's written day, a written
day after today, an undated verdict and a missing written day, and the
adjudicate step's stop before it writes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Freeze: test the treatment refusal; hold the fingerprint, snapshot day and bindings

Tests now reach the freeze's treatment refusal (review r3, r3-freeze-1): for
each of the five runs, its run commit's literal version-3 fingerprint passes
validate_treatment at HEAD, and each of the ten compared fields changed alone
is refused. The dry run gains a variant per model whose treatment check
refuses: main raises the refusal before the "nothing written" line.

main now requires each run's fingerprint to be version 3 with exactly its
eleven fields before validate_treatment (r3-freeze-2), and the spec's
snapshot day to fall on or after the last answer's UTC date and no later than
today's (r3-freeze-4). --finalize now holds app/src/data.artifact.json to the
frozen manifest's live dashboard artifact and each frozen annotation file to
its manifest pin (r3-freeze-6). The freeze's record gate gets tests on the
base record, a dropped decision and a triage wave written before its verdict.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Dating: name the output by the tag's day; check fills against base evidence

The dating step names its output from the tag's eight-digit day, so a
suffixed tag (dashboard-data-20261126b) no longer names a file
judge_verdicts_0261126b.json (review r3, r3-freeze-5). A new test holds each
filled case's published verdict to release 20261111's own dating evidence at
the base commit, its 'current' judge, classes and day, a record independent
of the fill (r3-tests-docs-3).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Design and spec: the push rule, sources without counts, step 7's environments

Review r3 (r3-tests-docs-4): the per-run figures bullet states the lead's
2026-11-26T11:58Z push rule and drops the placeholder; the run-gates bullet
drops the sentence on Neon's records; the five blank_outputs sources name
the reads' rows without their counts.

Review r3 (r3-tests-docs-5): step 2 gives the real-run test's command and
says gate 9 holds the same pin; step 7 states what the check venv and the
render need, with the lead's placeholders for the newest engine, the venv's
commands and the render's interpreter. The design also records r3's freeze
checks, gate 10's equality and that step 1's fill moves no test pin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Pair release 20261111's record with a MOCK spec without triage in the tests

Review r4, r4-round-diff-1: a triage decision recorded at design step 5
failed 21 tests in the freeze, finish and dating files, because each paired
the committed spec's triage list with release 20261111's record or evidence,
read from git at BASE_COMMIT, which holds no triage wave. The freeze's frozen
fixture and _record_stage(written=None), the dating tests' no_triage fixture
(the filled-evidence tests and the stage fixture) and the finish test of the
base date conventions now read a MOCK copy of the spec with an empty
triage_adjudications. test_the_release_names_its_tag_base_and_five_models
stays the one pin on the committed spec's empty list, and design.md's By hand
names it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Test the dating step's output name under a suffixed MOCK tag

Review r4, r4-round-diff-2: the test checked release_day_label on a suffixed
tag but compared OUT only under the real tag, so a revert of OUT to
RELEASE_TAG[-8:] passed. It now loads a fresh copy of the dating script while
driver.RELEASE_TAG is each MOCK tag and checks that copy's OUT; a tag outside
the freeze's form stops the load.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Source the day in the scored_differ comment to sweep_timing.json's reads

Review r4, r4-round-diff-3: 2.60.0 was PyPI's newest at the
2026-10-23T02:31Z read (719a6e9) and not at the 2026-10-29 read, which found
2.78.0 (875fe1f). Comment only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Test the dating step's checks on the triage wave

Review r5, r5-round-diff-1: no adds1125 test reached new_waves' four
per-wave checks or updated_evidence's branch that adds this release's
wave. Port Fable 5.2's tests of its ruled wave to the triage wave, on a
MOCK triage spec and a MOCK case whose decision driver.triage_adjudications
appends to release 20261111's record: the wave is written on the spec's
day; another case, an extra case, an extra wave, the spec's wave on
another day, a placeholder or missing written day and a day before the
wave are refused; Hypothesis tests of the written day and of the day the
frozen record states; a record whose conventions name no day is refused;
the parser reads each form of the driver's triage sentence; and
updated_evidence adds the wave uncommitted with the case's stage verdict,
keeps it on a second pass, and refuses a decision whose stage verdict
changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Test verify_frozen on a release with a triage wave

Review r5, r5-round-diff-2: every verify_frozen test read a spec with no
triage decision. A frozen variant on a MOCK triage spec, whose staged and
frozen record is _record_stage(written=TRIAGE_DAY)'s, must pass, and the
same release with release 20261111's date conventions, with or without
the MOCK decision, must be refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Test the dating step on a triage case the base evidence lists

Review r6, r6-round-diff-1: no test reached updated_evidence's two
branches for a triage case that release 20261111's evidence already
lists. verify_base_cases holds that case's carried fields ('previous')
to the base's, and updated_evidence drops its 'published' when the
stage verdict becomes 'current'.

The triage-wave tests gain a second MOCK decision on LISTED_CASE
(us__scenario_003__federal_income_tax_before_refundable_credits), the
first case the base evidence lists and the base record does not decide.
The case id is the base evidence's; its decision, verdict and sidecar
are MOCK. triage_spec, write_triage_case and triage_record take the
decisions or case as arguments, defaulting to the one on TRIAGE_CASE.

- The listed case is the first one the base lists undecided, with
  'current', 'previous' and 'published'.
- After updated_evidence, it is the base entry without 'published',
  plus the spelled-out stage 'current'; a second pass keeps it.
- An input evidence with the case's 'previous' edited, dropped or
  given an extra field, or the unlisted case given a carried field
  (Fable 5.2's "the ruled case with a carried field"), is refused with
  "are not release 20261111's", on the base evidence and on the step's
  own output.

No script changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Test the restatements note's sentence on the triage wave

Review r6, r6-round-diff-2: no test reached the sentence restatements
adds to the note in docs/adds1125/judge_verdicts_<day>.json for the
triage wave, since every restatements test read the no-triage spec.
This ports Fable 5.2's
test_a_decision_on_a_reopened_case_is_restated_with_its_verdict to the
triage wave.

The new test runs dating.restatements on triage_record's record, with a
MOCK provenance record the stage's receipt binds (bound_stage, now
shared with the stage fixture). Three cases:

- one decision, on TRIAGE_CASE, re-opened: the note ends with " The
  2026-11-26 wave's decision is new and restates nothing.";
- two decisions, TRIAGE_CASE and LISTED_CASE, both re-opened: the
  plural " The 2026-11-26 wave's 2 decisions are new and restate
  nothing.";
- the same two decisions with only TRIAGE_CASE re-opened: the singular
  sentence, since the count takes only decisions on re-opened cases.

Each case also checks the restated verdicts, field by field, and that
the note names one wave.

No script changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Refuse a dating input that drops a listed triage case

Review r7, r7-round-diff-1: verify_base_cases checked a case of this
release's waves only when the input evidence listed it, so an input
that dropped a case release 20261111's evidence lists passed the first
pass, and updated_evidence recreated the case with only 'current',
losing its 'previous'. The ours branch now reads every wave case that
either file lists, comparing the carried fields (all but 'current' and
'published') of each.

The CARRIED_EDITS row "the listed case dropped" fails on both passes
before the fix and passes after it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Fill Hydrogen's responses_with_text in the release spec

Hydrogen's 100 tool responses carry no content text beside the call,
counted from each household's raw_response cell by a script written
apart from the gates (the same count gives Sol 1 and Astra 0, the
values already in the spec).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Record the run gates for the five new models

All eleven gates pass on Carbon, Hydrogen, Sol, Astra and Neon. Each
ruling's bound stays under its cap: d2873 $54.495381 of $60, d3214
$13.257585 of $40, d3251 $47.756141 of $120.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Pin the five runs' input files

Records the hashes of each new run's predictions.csv and run_state.json,
the gated files that prepare will read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Allow explicit opt-in first-party API key for adds1125 judge (d3512)

* Disable Claude Code advisor tool in isolated judge child env

Claude Code 2.1.284 enables the server-side advisor tool under first-party
API key auth when tengu_sage_compass2 is active, stamping advisorModel on
assistant transcript turns even when no advisor call occurs. Judge
transcripts already reject any advisorModel turn; pass
CLAUDE_CODE_DISABLE_ADVISOR_TOOL=1 in CHILD_ENV alongside safe mode and
CLAUDE.md suppression so advisor mode stays off.

* Scope Sept-22 wave flags to decisions descending from that wave

Cases dropped after an engine upgrade and decided anew in a later wave
(scenario_039 federal income tax and scenario_100 state refundable credits
in the 2026-11-11 wave) review the regenerated reference, not the 2026-09-22
one. Apply flagged_sept22_wave.json only to entries adjudicated on or before
2026-09-22 or carrying a <=2026-09-23 verdict in judge_previous.

* Record scenario_028 triage adjudication and commit judge provenance

Triage flagged zero suspect references and one unresolved case
(scenario_028 PA state refundable credits: 48 rows labeled
reference_later_law for Pennsylvania's Working Pennsylvanians Tax Credit,
Act 45 of 2025, enacted Nov 12, 2025 before the July 3, 2026 freeze).
Record the llm_error/state_local_rule triage decision in spec.json,
update the judge_provenance_note wording to cover both oauth_token and
api_key isolated auth methods, and commit judge_provenance.json (174
verdicts: 170 setup-token 2 + 4 first-party api_key under d3512).

* Set adds1125 release tag to dashboard-data-20261203 and snapshot date to 2026-12-03

* Stage policyengine-us 2.165.7 reference upgrade (2026-12-03)

Moves US references from policyengine-us 2.60.0 to 2.165.7 (newest on
PyPI at 2026-12-03T22:03Z, 22,734 wheel files verified) per Max ruling
to keep strict latest-PE parity inside adds1125. Two scored references
move (both pre-freeze law): scenario_117 AR state tax ($7,984.53 ->
$7,936.45, PolicyEngine/policyengine-us#11286) and scenario_122 MN state
tax ($1,025.54 -> $1,034.99, PolicyEngine/policyengine-us#10872). All 50
exclusion records stay unchanged (1,934 scored outputs; 16 excluded
rechecked). Pin policyengine-us==2.165.7 in pyproject.toml and uv.lock.

* Wire 2026-12-03 policyengine-us 2.165.7 reference upgrade into adds1125 scripts

* Add scenario_122 MN charitable floor triage adjudication to adds1125 spec

* Update adds1125 judge provenance after 2.165.7 re-judges

* Use exact scenarioPredictions metric keys in UPGRADE_VALUE_CELL_FIELDS

* Freeze dashboard-data-20261203 (57 models, policyengine-us 2.165.7)

* Date adds1125 verdicts, update 2.165.7 evidence/docs, render paper, and finalize

* Add 2026-12-04 five-models release note and supersede 20261111

* Rescore thinking sensitivities, update moved Python/app tests, and fill design record

* Address round-1 Opus 5.5 and GPT-6.2 Sol review findings before publication

- Run post-freeze sweep_timing.py check against policyengine-us 2.165.8 (2026-12-04T02:51:30Z): all 1,984 outputs bit-identical (publication_check_2_165_8.csv, max_abs_delta 0.0).
- Commit reproducible check_defect_still_fixed.py and split paper_results.py engine_defect_fixed_kept into exact-corrected (4) vs fixed-but-moved (1, scenario_120 NIIT farm_rent_income) with strict generator/value/root_cause verification and unit tests.
- Harden scripts/finish_adds1125.py: rebuild prompts and quarantine only mismatched verdicts before writing references_installed with bound prompt hashes; require full sweep/output proof in verify_publication_record for newer engines; add #310 dtype parity and --early rehearsal guard.
- Restore exhaustive e61eea4 checks in tests/test_notes.py (test_release_20261111_note*) and app/tests/judgeTextErrata.test.ts (all 481 + 22 + 2 spans).
- Fix docs/adds1125/design.md, reference_audit/2026-12-03-engine-upgrade/README.md, docs/benchmark_card.md, app/src/lib/judgeTextErrata.ts, and app/src/notes/2026-12-04-five-models-join-the-board.json (balanced lab disclosure, 16-vs-2 recheck phrasing, voice pass, 2.165.8 check), re-render paper HTML+PDF, and re-finalize.

* Address round-2 review findings across paper, CI, driver, and docs

- Paper (Opus P0/P1/P2-1): combine engine_upgrade_timing_sentence and
  engine_upgrade_check_scope_sentence into non-empty
  engine_upgrade_publication_sentence so Quarto never emits literal
  {python} when all 1,984 outputs match; fix October 23 paragraph to
  read r22.last_engine_upgrade.* (2026-10-23, 2.41.0 -> 2.60.0); clarify
  > $1 excluded recheck wording; re-render HTML+PDF and re-finalize.
- CI & formatting (Sol P1-3): add fetch-depth: 0 to app CI checkout for
  e61eea4 historical errata tests; format all Python files including
  check_defect_still_fixed.py with ruff format; regenerate
  pe2.165.7_defect_check.json verifying active-participant 401(k)/AGI,
  computed.csv baseline, and conventions_sha256.
- Driver & verifier (Sol P1-1/P1-2/P2-2, Opus P2-3/P2-9): archive stale
  upgraded-case verdicts via set_aside before prepare_audit runs and
  allow interrupted install-references recovery in main(); parse and
  validate all 1,934 scored rows of newer-engine publication comparison
  CSVs against the pinned build; route resolve_base through
  read_reference_csv; expand positive and negative tests.
- Docs & note (Sol P2-1/P2-3, Opus P2-4/P2-5/P2-6/P2-8): fix design.md
  tag/pins/order/completion record, benchmark_card.md > $1 recheck
  wording, README.md file list, judgeTextErrata.ts docstring, and
  release-note Claude Opus 5.5 #5 rank & plain-English phrasing.

* Harden install-references resume, CSV exactness, conventions pin, and note clarity

- scripts/finish_adds1125.py: add _verify_install_inputs (used by main() and
  install_references() so interrupted installs resume cleanly without editing
  KEPT verify_prepared_inputs) and _atomic_write_bytes for atomic file
  replacement; require exact new_val == ref_val and delta == 0.0 across all
  1,934 scored outputs and all 1,984 rows in _verify_newer_engine_comparison_csv.
- policybench/paper_results.py: unconditionally require conventions and
  conventions_sha256 in _defect_still_fixed_evidence; clarify
  engine_upgrade_publication_sentence docstring.
- app/src/notes/2026-12-04-five-models-join-the-board.json: clarify Claude
  Opus 5.5 judged all 174 cases and Gemini 4 Neon overruled its judge labels
  on two of them.
- tests/: exercise real _verify_install_inputs (no mock) plus tampered-input
  refusal; test 1e-10 nonzero value diff, tampered reference_value, and
  omitted conventions fields; check both rendered HTML and PDF in
  test_rendered_paper_has_no_raw_python_and_dates_october_23_upgrade.

* Tighten CSV zero-tolerance comparison, same-total gate, atomic temp names, and PDF test

- scripts/finish_adds1125.py: require integer `outputs == 1984` and `same`
  (excluding bool/str/missing) in verify_publication_record; verify exact
  `delta == new_val - ref_val`, `(same == 'True') == (abs(delta) <= 1e-9)`
  on all 1,984 rows, and exact zero-tolerance `ref_val == pinned_map[key]`
  and `new_val == ref_val` via csv.DictReader across all 1,934 scored rows;
  use tempfile.mkstemp in _atomic_write_bytes so concurrent writes never
  share a temp filename.
- tests/test_finish_adds1125.py: reset outputs/same in _valid_newer_engine,
  assert baseline passes before each tamper, and add negative checks for
  omitted/string `same`, unchanged excluded row marked same=False, and
  coordinated 1e-13 shift to both reference_value and value.
- tests/test_paper_results.py: split PDF check into its own test that skips
  explicitly via pytest.importorskip("pypdf") if neither pdftotext nor pypdf
  is available instead of passing silently.

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant