Repository navigation
Apply Minnesota's charitable floor and property tax cap - #10872
Merged
Merged
Conversation
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>
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
marked this pull request as ready for review
November 14, 2026 21:39
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>
Contributor
Author
|
US + core hub merge audit, us#10872 at
🤖 Generated with Claude Code |
This was referenced Nov 17, 2026
This was referenced Nov 17, 2026
This was referenced Nov 17, 2026
This was referenced Nov 28, 2026
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
For charitable contributions:
policyengine_us/tests/core/test_mn_deduction_invariants.pychecks 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) andhi_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
source_conflicts/candidates.yamlrecords the conflict asus-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.mn_property_tax_deductionreturnscapped_property_taxes, the amount main deducts.mn_personal_property_taxesas 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.charitable_deduction_before_floor, the federal amount after the percentage ceilings and before the floor. A caller who supplies onlycharitable_deductiongets no Minnesota charitable deduction from 2026, so supply donations orcharitable_deduction_before_floor. Before 2026, both Minnesota uses keep a suppliedcharitable_deduction.positive_agias the contribution base for Minnesota's floor.charitable_deduction_before_floor_given_contribution_base.charitable_deduction_given_contribution_basecalls it and then applies the federal floor, so Hawaii's deduction and the federal one keep main's steps.mn_property_tax_deductionand 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).Validation
Pull request run 44011545147 at
d3bb251c32passed all 37 jobs on GitHub's merge with main5b18694981.mn_property_tax_deduction.yaml18,mn_itemized_deductions.yaml29,mn_charitable_deduction.yaml11,mn_amt_taxable_income.yaml10 andmn_charity_subtraction.yaml2. The federalcharitable_deduction.yamlpasses 34,hi_charitable_deduction.yaml10, the reform filereform/mn_charitable_deduction.yaml1 and the HF1938 filemn_walz_hf1938.yaml8.test_mn_deduction_invariants.py5 passed,test_ca_mn_itemized_limitation_properties.py2 passed andtest_source_conflicts.py251 passed. Ruff format and lint pass, andgit diff --checkreports nothing.Mutants, each run against the one file that should catch it:
mn_property_tax_deduction.yamlfail. 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 inmn_itemized_deductions.yamlfails too.mn_property_tax_deduction.yamlfail. With a $10,000 cap for married people filing separately, 3 cases fail. Without the cap,test_property_tax_deduction_invariantsfails for 2019, 2024 and 2026.capped_property_taxesfails 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).mn_charitable_deduction.yamlandtest_charitable_deduction_invariants[2026]. A 0.5% Minnesota floor, or the Minnesota amount in AMT, failstest_charitable_deduction_invariants[2026].mn_itemized_deductions.yaml. In the charity subtraction, it fails 6 cases inmn_charitable_deduction.yaml.charitable_deduction_before_floor,test_ca_mn_itemized_limitation_properties.pyfails 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
mainatb25d78faa3with this branch atd3bb251c32.mn_income_taxmn_itemized_deductionsmn_charity_subtractionmn_amt_taxable_incomecharitable_deductionstate_income_taxincome_taxhousehold_benefitshousehold_net_incomeAxiom
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