Repository navigation
Conversation
…ption MCA 15-30-2120(3)(n) and (8), from tax year 2024: the lesser of half the return's military retirement pay or its Montana earned income (Form WMRE lines 2-5), plus half of military survivor benefits. An input records the section (9) residency and five-year conditions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… June 30, 2023) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main's #10331 drops the disability income exclusion from Montana's subtractions for 2024 on, after SB 399 repealed it. This branch adds the working military retirement exemption to the same lists. The resolution keeps both: the exemption joins the 2024 and 2025 lists, the exclusion stays out, and the references keep both changes' sources. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
David, I'd like your read on two Montana choices here:
If you can look by Tuesday afternoon, we can merge it before the Veterans Day post (PolicyEngine/policyengine-app-v2#1523). |
PR Review: Model Montana's working military retirement and survivor benefit exemptionSummaryThe structure follows the law. MCA 15-30-2120(3)(n)(i) and (8)(a) give a retiree "the lesser of: (i) the amount of Montana source wage income on the return; or (ii) 50% of the taxpayer's military pension or military retirement income". (3)(n)(ii) gives "up to 50% of all income received as survivor benefits", with no earnings cap. (9) adds the residency and five-year conditions. The rates (0.5 and 0.5), the 2024 start, pooling the earnings cap over the return, carrying the return's amount on the head, keeping dependents out, the zero floor on each business source, and the per-person eligibility mask all match the statute, Form WMRE (2025) and its instructions. The exemption flows through the 2024+ federal-taxable-income path ( One critical problem remains. Two of the four earnings sources that set the cap are the wrong PolicyEngine variables:
Three should items remain: the PR's two statute-over-form readings have no source-conflict candidate entries; four new terms are unpinned by tests; and one reference title carries page text. On the two questions in the thread:
Critical (must fix)
Should address
Suggestions
Verified correct
Axiom line assessment
rulespec-us#2075 is OPEN and labelled
It records the encoding debt (the held It matches the head's behavior. Its output 4 is stated at the level of the law ("net income from a trade or business and net farm income"), so the Critical fix doesn't contradict it. When the fix lands, consider adding a farm companion test, such as "$30,000 of military retirement income and $40,000 of net farm income gives output 5 = 15,000". Also consider correcting "SB 124" (Suggestion 5). CI statusAt head 2eeb5d3, 36 checks pass and 7 are skipped, with none failing or pending. The passing checks include:
The head already includes main, so CI ran the merged tree. Locally on that tree:
Branch statusThe branch is 3 commits ahead and 0 behind main. #10331 (merged today) edited No file overlaps with the sibling military retirement PRs (#10702 UT, #10714 MI, #10715 ID, #10716 DE, #10717 ID). Verdict: REQUEST_CHANGES |
DTrim99
left a comment
There was a problem hiding this comment.
Requesting changes per the review above: 1 critical (the earnings cap reads self_employment_income and farm_income, so it drops SSTB business income and Schedule F farm income that 15-30-2120(8)(b) counts, and counts a non-AGI input; use total_self_employment_income and farm_operations_income), 3 should (record two statute-over-form readings; four unpinned terms; a reference title), 5 suggestions.
MCA 15-30-2120(8)(b) counts net income from a trade, business, profession or occupation and net farming income. The cap read self_employment_income (non-SSTB Schedule C only) and farm_income (the Schedule J averaging input, outside AGI). A new earned_income_sources parameter lists irs_employment_income, total_self_employment_income, partnership_s_corp_income and farm_operations_income, and the formula loops over it with the per-source zero floor. Also records three readings as source-conflict candidates (Schedule E income, both subtractions on one return, the per-source loss floor), pins the 2024 subtractions entry, the partnership and farm sources, the filer mask on earnings and the eligibility mask on survivor benefits, adds the ARM 42.15.1510(3)(a) and (b) examples, documents the armed forces scope, passive income and when the eligibility default stops being exact, drops page text from the RIC memo title, adds the 2024 Form 2 instructions as a source for the 2024 start, and removes the stale Montana limitation from military_retirement_pay_survivors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… candidates Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolves the source_conflicts/candidates.yaml conflict by keeping main's new entries and this PR's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pages 2 and 3 follow the form's column order, one paragraph or list item per line, and page 1 follows its visual reading order, so every quoted WMRE excerpt matches the capture verbatim. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for the review. 09ed698f28 makes the code, test and documentation changes below, and the later commits add the Form WMRE capture, merge main and reflow the capture. Critical
Should address
Suggestions
538c7c8cc3 merges main; its one conflict, in At ceb2f71, the 251 tests in |
DTrim99
left a comment
There was a problem hiding this comment.
Program review
Base repository: PolicyEngine/policyengine-us
PR number: 10713
Reviewed head SHA: ceb2f71
Merge base SHA: f2b6108
Mode: full, with a recheck of David's earlier review (head 2eeb5d3)
Scope: changed behavior and affected dependencies
Source manifest: /private/tmp/policyengine-command-runs/ea33c0bb2b64/pr-10713-review-sources.json
Review status: COMPLETE
Source Documents
- mca-15-30-2120-current.html — cached original.
- mca-15-30-2120-2023.html — cached original.
- form-wmre-2025.pdf — cached original.
- arm-42.15.1501.html — cached original.
- arm-42.15.1510.html — cached original.
- ch0586-2025.pdf — cached original.
- ric-veteran-tax-benefits-2025.pdf — cached original.
- form2-instr-2024.pdf — cached original.
Critical
None.
Should Address
A1 — Wages and business income earned outside Montana count toward the cap with no recorded conflict or documentation (OPEN)
- Severity: SHOULD ADDRESS (repository source-conflict requirement; PolicyEngine can't model the condition)
- Location:
policyengine_us/parameters/gov/states/mt/tax/income/subtractions/military_retirement/earned_income_sources.yaml:5,8,13;policyengine_us/variables/gov/states/mt/tax/income/subtractions/military_retirement/mt_military_retirement_exemption.py:10-23(documentation);source_conflicts/candidates.yaml(no entry). - Statute vs. form:
- MCA 15-30-2120(8)(b) limits "Montana source wage income" to "(i) wages, salary, tips, and other compensation for services performed in the state; (ii) net income from a trade, business, profession, or occupation carried on in the state; and (iii) net income from farming activities carried on in the state".
- ARM 42.15.1501(2) adds that this definition "is not the same as the definition of Montana source income in 15-30-2101".
- The 2025 WMRE instructions (PDF p. 3) tell residents to enter "the total wages included on Form 1040, line 1z" (line 2) and "the total business income included on Form 1040, Schedule 1, line 3" (line 3), with no work-location test.
- What the PR does: It counts every head and spouse dollar of
irs_employment_income,total_self_employment_income,partnership_s_corp_incomeandfarm_operations_income, which is the form's reading. The PR body justifies this with "PolicyEngine-US models full-year residents, so all of the return's wages ... count as Montana source". That doesn't follow: a full-year resident can earn wages for services performed in another state. - Trigger: TY2026, a full-year Montana resident (eligible) with $30,000 of military retired pay and $40,000 of wages from a job physically performed in North Dakota or Wyoming (a commuter).
- Statute: (8)(b)(i) excludes those wages, so the subtraction is 0.
- Form and head: min(0.5 × 30,000, 40,000) = 15,000. This follows from the code: line 5's source is summed with no location input.
- Why it matters: CLAUDE.md line 141 and CONTRIBUTING.md#source-conflicts say to record every statute/form choice as a
source_conflicts/candidates.yamlitem in the ruling PR. The PR records three such readings but not this one, and the variable's documentation doesn't mention it. Since PolicyEngine-US has no input for where wages are earned, following the instructions is defensible. It just needs to be recorded. - Fix:
- Add a candidate, for example
us-mt:military-retirement-exemption-wage-location, with sources (8)(b), ARM 42.15.1501(2) and WMRE lines 2-3 (p. 3), andfollows: instructions(orgap-fill, with a note that no work-location input exists). - Add one sentence to the
mt_military_retirement_exemptiondocumentation. - No code change is needed. The affected group (residents who physically work out of state) is likely small.
- Add a candidate, for example
Suggestions
S1 — No YAML case asserts Montana taxable income or tax for the new exemption (OPEN)
-
Severity: SUGGESTION
-
Location:
policyengine_us/tests/policy/baseline/gov/states/mt/tax/income/subtractions/mt_military_retirement_exemption.yaml(22 cases; the furthest output ismt_subtractions) -
Trigger: any eligible return, 2024+.
-
Expected vs observed: the behavior is correct, but nothing pins the step from
mt_subtractionstomt_taxable_income_jointandmt_income_tax. Diagnostics (executed,pr-10713-code-diagnostics.json), single, age 45, $30,000 retired pay, $50,000 wages, eligible vsmt_military_retirement_exemption_eligible: false:Year MT taxable income mt_income_taxChange 2024 50,400 vs 65,400 2,727.60 vs 3,612.60 885.00 = 15,000 × 5.9% 2025 49,250 vs 64,250 2,652.55 vs 3,537.55 885.00 = 15,000 × 5.9% 2026 48,900 vs 63,900 2,311.60 vs 3,159.10 847.50 = 15,000 × 5.65% Survivor, 2025, age 70, $20,000 benefits and $10,000 interest: tax goes from 27.73 to 0. Montana taxable income drops from 590 (taxable income 6,250 less the 5,660 old-age subtraction) to 0.
-
Remedy: add one end-to-end case, for example the 2026 row (
mt_income_tax: 2_311.6).
S2 — mt_other_subtractions documentation doesn't warn against entering the newly modeled exemption (OPEN)
- Severity: SUGGESTION
- Location:
policyengine_us/variables/gov/states/mt/tax/income/subtractions/mt_other_subtractions.py:11-16 - Trigger: a user who, while the exemption was documented as "not yet modeled" (the limitation this PR deletes from
military_retirement_pay.py), entered it inmt_other_subtractions. - Expected vs observed: the input's documentation lists what PolicyEngine computes separately ("Do not include interest exemptions, tuition subtractions, old age/disability exclusions, federal deductions, or state tax refunds ..."). The military retirement and survivor benefit exemption (Form 2 Schedule I Part I line 13, per Form WMRE line 8 and Part III line 2) is now computed too but isn't on the list, so such a household would subtract the amount twice.
- Remedy: add "the military retirement and survivor benefit exemption (Form WMRE)" to that sentence.
S3 — Say what the RIC memo's $24.8 million measures (OPEN)
- Severity: SUGGESTION
- Location:
policyengine_us/variables/gov/states/mt/tax/income/subtractions/military_retirement/mt_military_retirement_exemption_eligible.py:25-29. - Evidence:
- The memo's figures match the PR's documentation: RIC memo, November 2025, PDF p. 1, table "USE OF EXEMPTION ...": 1,711 residents, $24,754,179; total ">1,783", $25,530,804.
- But the memo's prose calls the total a "loss of revenue of $25.5 million".
- Inference: the figures must be exempted income, not tax. As revenue, $24.8 million over 1,711 residents would mean roughly $14,500 of tax each, or about $250,000 of exempted income each at Montana's top rate. That's impossible when the exemption is at most half of a military pension.
- Fix: Write "$24.8 million exempted" so nobody benchmarks the aggregate revenue change against it. This affects documentation only, with no computational effect.
Evidence Gaps
No material gaps reported.
Notes
- Earlier review: every item is resolved.
- Critical 1: the earnings cap now lists
irs_employment_income,total_self_employment_income,partnership_s_corp_incomeandfarm_operations_income, and drops the Schedule Jfarm_income. New cases pin SSTB (15,000), Schedule F (15,000), Schedule J (0) and loss netting (6,000). - Should 1: three candidates record the same-return, loss-floor and Schedule E readings. Their quotes match the WMRE and its capture.
- Should 2: each of the four terms is pinned, and removing any one flips a case.
- Should 3 and Suggestions 1-5 are done.
- On policy-1: the code follows the WMRE instructions (lines 2-3 take all Form 1040 wages and Schedule 1 line 3 business income). PolicyEngine-US has no input for where wages were earned, so that is a defensible choice, but CONTRIBUTING asks the PR that takes the reading to record it. MCA 15-30-2120(8)(b) counts only "Montana source wage income": services performed in the state, and business or farming carried on in the state. ARM 42.15.1501(2) says this is not the 15-30-2101 definition. Example: a 2026 resident commuting to North Dakota with $30,000 of military pay and $40,000 of wages gets 0 under the statute and 15,000 in the model.
- Code side: eligibility, the earnings cap, the survivor exemption and the filer masks are correct and tested. The PR merges cleanly into current main, and the changed tests and the Montana subtraction directory pass.
Validation Summary
Local tests at the reviewed head pass (the changed tests plus the Montana subtraction directory; review venv, imports from the snapshot). Sources: MCA 15-30-2120, ARM 42.15.1501, the 2025 WMRE form and instructions (sha256 matches the repo's capture), the RIC memo (November 2025), 2025 Mont. Laws ch. 586 and the 2024 Form 2 instructions, checksums validated. CI on the head: 38/38 succeeded.
Timing
policy role seconds: 351.00s; code role seconds: 689.00s; parallel review seconds: 689.00s; elapsed seconds: 800.00s
Review Severity
COMMENT. Open findings: 0 critical, 1 should address, 3 suggestions.
…irement-exemption
MCA 15-30-2120(8)(b) counts only Montana-source wages and business income, while Form WMRE takes all wages and Schedule 1 line 3 income. Adds a source-conflict candidate and a documentation sentence, an end-to-end 2026 case, the exemption in mt_other_subtractions' list, and calls the committee's $24.8 million income exempted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MCA 15-30-2120(8)(b) caps the working military retiree exemption at Montana source wage income: wages for services performed in Montana and business or farm income from activity carried on there. The model summed all of the return's wages and business income wherever earned, as Form WMRE's line instructions do, and recorded that as a departure from the statute. The new tax-unit variable mt_military_retirement_montana_source_wage_income holds Form WMRE line 6. Its formula keeps the previous total, which is the statute's amount when all of the work is in Montana. A return with work or a business outside Montana enters the Montana amount, and the exemption follows the statute. Three cases pin that, and the source-conflict entry now follows the statute under the statute-first rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An override of the computed cap on one return zeroed the cap on every other return, since Core fills omitted cells with the default. The cap is again summed inside the exemption at full precision, and a new tax unit input, mt_military_retirement_montana_source_wage_income_override (default -1, negative means not entered), replaces the sum only for a return that enters it. Partnership and S corporation income now leaves out its passive subset (ARM 42.15.1501(2)). The wage-location entry now says follows: conflicting-source, since the default still counts out-of-state work. The docs describe the statutory cap rather than Form WMRE line 6, and the eligibility docs no longer treat the revenue memo as a benchmark. New cases cover two returns, a negative entry, passive income and loss, and fractional cents. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The default sum matches the resident line instructions in counting work outside Montana, but it also leaves out the rents and royalties that line 4's Schedule 1 line 5 holds, and counts Schedule C income without the material participation test of line 3. The note now says so rather than calling the sum the line-instruction total. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Agent-written for Max, by Claude Code for Max Ghenis. A1. fb6d94b071 records the conflict and also lets a return follow the statute, since CONTRIBUTING.md's statute-first rule puts (8)(b) ahead of the line instructions. A new tax-unit input, S1. fb6d94b adds "An eligible single filer's Montana taxable income and tax" to S2. fb6d94b adds "the military retirement and survivor benefit exemption (Form WMRE)" to the items that the S3. The |
|
Agent-written for Max, by Claude Code for Max Ghenis. In round 3 of independent review, a Codex cloud task reviewed 6e1da85 (GPT-6.2 Sol at Extra High effort; chat https://chatgpt.com/local/6b0c58bd-f974-83ea-98e8-77012cf69007) and requested changes. It found three P1s: an entry on one return set another return's cap to 0, fb6d94b071 answers all five, and a scoped round-4 review of that commit started at 18:59 UTC. |
|
Agent-written for Max, by Claude Code for Max Ghenis. In round 4 of independent review, a Codex cloud task reviewed fb6d94b (GPT-6.2 Sol at Extra High effort; chat https://chatgpt.com/local/6b0c75fe-83fc-83ea-80e2-7bacde4c803b) and requested changes. It closed all nine earlier findings we asked it to check and found three new P1s and one P2, which the next comment lists. Its Linux container ran every test we asked for; CI runs the full suites and microsimulation. |
|
Agent-written for Max, by Claude Code for Max Ghenis. An independent review of this head requested changes on three P1 findings and one P2, so we'll make another round of fixes.
|
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
DTrim99
left a comment
There was a problem hiding this comment.
Program review
Base repository: PolicyEngine/policyengine-us
PR number: 10713
Reviewed head SHA: 3b127ca
Merge base SHA: 8769cc7
Mode: incremental from ceb2f71
Scope: changed behavior and affected dependencies
Source manifest: /private/tmp/policyengine-command-runs/ea33c0bb2b64/pr-10713-review-sources.json
Review status: COMPLETE
Source Documents
- mca-15-30-2120-current.html — cached original.
- form-wmre-2025.pdf — cached original.
- arm-42.15.1501-cornell.html — cached original.
- arm-42.15.1501-rulesmt.bin — cached original.
- ric-veteran-tax-benefits-2025.pdf — cached original.
Critical
None.
Should Address
A1 — wages and business income earned outside Montana count toward the cap (RESOLVED)
- Recorded conflict. The PR adds
us-mt:military-retirement-exemption-wage-locationtosource_conflicts/candidates.yaml:8801-8865. It hasfollows: conflicting-source(line 8836) andstate: ruled(line 8843).- Sources: MCA 15-30-2120(8)(a)(i) and (8)(b), ARM 42.15.1501(2), and the WMRE instructions (PDF pp. 2-3).
- Readings: both are given, the statute reading and the line 2-5 instructions.
- Example: a commuter with $1,000 of Montana wages and $39,000 of North Dakota wages gets $1,000 under the statute and $15,000 under the line 2 instruction.
- Note: says what PE-US does with an entry and without one.
followsvalue.conflicting-sourceis one of the allowed values (test_source_conflicts.py:800; key atcandidates.yaml:7-9). It correctly describes the default, which follows the line instructions against (8)(b). The four required parts of CONTRIBUTING step 1 are all present.- Quotes checked against the PDF fetched today (sha256
a6a5c425…, which matches the committed capture's recorded hash):- Line 2 "Residents enter the total wages included on Form 1040, line 1z" (p. 3)
- Line 3 "the total business income included on Form 1040, Schedule 1, line 3", which requires material participation (p. 3)
- Lines 4 and 5 point to Schedule 1 lines 5 and 11 (p. 3)
- Part-year "the Montana source wages earned while working in Montana as a resident" (p. 3)
- The Exemption section "Wages, salary, and tips from compensation performed in Montana" (p. 2)
- Part II "…did not earn Montana source income from working a job, running a business, or operating a farm, you do not qualify for this exemption" (p. 3)
- ARM 42.15.1501(2): "…is not the same as the definition of Montana source income in 15-30-2101, MCA". History "NEW, 2025 MAR, Notice No. 42-1088, Eff. 1/25/25", from the rules.mt.gov URL the candidate cites. That confirms "effective January 25, 2025".
- MCA (8)(b)(i)-(iii) match the current statute text.
- Every quote also appears in the committed capture
source_conflicts/sources/us-mt/form-wmre-2025.txt.
- Model change beyond what A1 asked for. A new TaxUnit input,
mt_military_retirement_montana_source_wage_income_override(default -1), lets a return follow (8)(b).mt_military_retirement_exemption.py:56-63uses a nonnegative entry for the tax year in place of the estimate. - Documentation. The
mt_military_retirement_exemptionand override documentation now describe the estimate and when to enter the statutory amount. No input for work location exists anywhere in PE-US (searchedvariables/for other-state, work-state and source-income inputs), so the fallback still counts a commuter's out-of-state wages. The note says this openly. - New test expectations match (8)(b):
- Commuter entering 0 gets 0.
- $10,000 of Montana wages gets 10,000.
- A Montana business netting $30,000 beside a Wyoming loss gets 30,000 with $80,000 of pay. (8)(b)(ii) "carried on in the state" leaves the Wyoming loss out.
- Two returns in one household get 0 and 10,000.
- An entry of -1,000 counts as no entry and gives 8,000.
Suggestions
S1 — No YAML case asserted Montana taxable income or tax for the new exemption (RESOLVED)
- Fix: the new case "An eligible single filer's Montana taxable income and tax" (
mt_military_retirement_exemption.yaml, TY2026) asserts the full chain:mt_military_retirement_exemption=mt_subtractions= 15,000mt_taxable_income_joint= 48,900mt_income_tax= 2,311.60
- Check: these match the round-2 executed diagnostic: 0.047 × 47,500 + 0.0565 × 1,400 = 2,311.60. The case passes locally.
- Entry path: I also ran a diagnostic for the new input (
diag-output.json,end_to_end_commuter). A commuter with an entry of 0 gets Montana taxable income of 53,900 and tax of 2,594.10. Without the entry, they get 38,900 and 1,828.30. Both match hand arithmetic.
S2 — mt_other_subtractions documentation didn't warn against entering the exemption (RESOLVED)
mt_other_subtractions.py:15 now lists "the military retirement and survivor benefit exemption (Form WMRE)" among the amounts PolicyEngine computes separately. That is the remedy round 2 proposed.
S3 — say what the RIC memo's $24.8 million measures (RESOLVED)
mt_military_retirement_exemption_eligible.py:25-31no longer calls the figures a benchmark for microsimulation totals. It gives 1,711 claimants and $24.8 million (and >1,783 and $25.5 million), says the memo labels them revenue loss, and adds that "At about $14,500 per resident claimant, the amounts suggest that the table may measure income exempted rather than tax".- Checked against the memo (PDF p. 1):
- The table "USE OF EXEMPTION FOR MILITARY PENSION OR RETIREMENT INCOME, 2024" shows 1,711 / $24,754,179 and >1,783 / $25,530,804.
- The prose: "resulted in a loss of revenue of $25.5 million … 1,711 residents received a reduction of nearly $24.8 million".
- $24,754,179 / 1,711 = $14,467.67, which supports "about $14,500".
- Note, not a finding: strictly, the memo calls only the $25.5 million total a revenue loss and the $24.8 million "a reduction". The documentation's caution makes this harmless.
Evidence Gaps
No material gaps reported.
Notes
- Round 3, incremental from ceb2f71. Every item from the round-2 review is resolved and the changes since then add no new findings.
- A1 is handled the way CONTRIBUTING asks. The default estimate follows the WMRE line 2-5 instructions, and the new candidate
us-mt:military-retirement-exemption-wage-locationrecords it asconflicting-sourceagainst MCA 15-30-2120(8)(b), with both readings, a commuter example and quotes that match the 2025 WMRE PDF and ARM 42.15.1501. A return that knows its Montana-source wage income can enter it inmt_military_retirement_montana_source_wage_income_override; the entry applies only to the tax year it is entered for (an earlier year's entry can't carry forward), and a negative entry or the default -1 means no entry. - The nonpassive partnership and S corporation measure matches ARM 42.15.1501(2).
mt_military_retirement_nonpassive_partnership_s_corp_incomeis partnership and S corporation income less its section 469 passive subset, so a passive loss no longer reduces active income. The departure from WMRE line 4's literal Schedule 1 line 5 total is recorded in the Schedule E candidate. - Mutation checks: removing the tax-year guard, the negative-entry fallback, the entry itself, or the passive subtraction each makes at least one new case fail.
Validation Summary
Local tests at the reviewed head (policyengine-core 3.37.2, imports from the snapshot): 387 passed, 0 failed across the Montana subtractions directory (all 35 exemption cases), Montana integration, income tax and taxable income tests, test_source_conflicts.py and test_input_variable_definitions.py. Sources re-fetched and checksum-validated: MCA 15-30-2120, the 2025 Form WMRE (matches the repo capture's hash), ARM 42.15.1501 and the November 2025 RIC memo. CI at 3b127ca: 35/35 succeeded.
Timing
setup seconds: 120.00s; policy role seconds: 476.00s; code role seconds: 574.00s; parallel review seconds: 782.00s; adjudication seconds: 0.00s; elapsed seconds: 1006.00s
Review Severity
APPROVE. Open findings: 0 critical, 0 should address, 0 suggestions.
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lity Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DTrim99
left a comment
There was a problem hiding this comment.
Program review
Base repository: PolicyEngine/policyengine-us
PR number: 10713
Reviewed head SHA: 8d9f794
Merge base SHA: 094934a
Mode: incremental from 3b127ca
Scope: changed behavior and affected dependencies
Source manifest: /private/tmp/policyengine-command-runs/ea33c0bb2b64/pr-10713-review-sources.json
Review status: COMPLETE
Source Documents
- mca-15-30-2120-current.html — cached original.
- form-wmre-2025.pdf — cached original.
- arm-42.15.1501-cornell.html — cached original.
- arm-42.15.1501-rulesmt.bin — cached original.
- ric-veteran-tax-benefits-2025.pdf — cached original.
- arm-42.15.1510-rulesmt.bin — cached original.
- form2-instr-2025.pdf — cached original.
- ch0586.pdf — cached original.
Critical
None.
Should Address
A1 — wages and business income earned outside Montana count toward the cap (RESOLVED)
- Recorded conflict. The PR adds
us-mt:military-retirement-exemption-wage-locationtosource_conflicts/candidates.yaml:8801-8865. It hasfollows: conflicting-source(line 8836) andstate: ruled(line 8843).- Sources: MCA 15-30-2120(8)(a)(i) and (8)(b), ARM 42.15.1501(2), and the WMRE instructions (PDF pp. 2-3).
- Readings: both are given, the statute reading and the line 2-5 instructions.
- Example: a commuter with $1,000 of Montana wages and $39,000 of North Dakota wages gets $1,000 under the statute and $15,000 under the line 2 instruction.
- Note: says what PE-US does with an entry and without one.
followsvalue.conflicting-sourceis one of the allowed values (test_source_conflicts.py:800; key atcandidates.yaml:7-9). It correctly describes the default, which follows the line instructions against (8)(b). The four required parts of CONTRIBUTING step 1 are all present.- Quotes checked against the PDF fetched today (sha256
a6a5c425…, which matches the committed capture's recorded hash):- Line 2 "Residents enter the total wages included on Form 1040, line 1z" (p. 3)
- Line 3 "the total business income included on Form 1040, Schedule 1, line 3", which requires material participation (p. 3)
- Lines 4 and 5 point to Schedule 1 lines 5 and 11 (p. 3)
- Part-year "the Montana source wages earned while working in Montana as a resident" (p. 3)
- The Exemption section "Wages, salary, and tips from compensation performed in Montana" (p. 2)
- Part II "…did not earn Montana source income from working a job, running a business, or operating a farm, you do not qualify for this exemption" (p. 3)
- ARM 42.15.1501(2): "…is not the same as the definition of Montana source income in 15-30-2101, MCA". History "NEW, 2025 MAR, Notice No. 42-1088, Eff. 1/25/25", from the rules.mt.gov URL the candidate cites. That confirms "effective January 25, 2025".
- MCA (8)(b)(i)-(iii) match the current statute text.
- Every quote also appears in the committed capture
source_conflicts/sources/us-mt/form-wmre-2025.txt.
- Model change beyond what A1 asked for. A new TaxUnit input,
mt_military_retirement_montana_source_wage_income_override(default -1), lets a return follow (8)(b).mt_military_retirement_exemption.py:56-63uses a nonnegative entry for the tax year in place of the estimate. - Documentation. The
mt_military_retirement_exemptionand override documentation now describe the estimate and when to enter the statutory amount. No input for work location exists anywhere in PE-US (searchedvariables/for other-state, work-state and source-income inputs), so the fallback still counts a commuter's out-of-state wages. The note says this openly. - New test expectations match (8)(b):
- Commuter entering 0 gets 0.
- $10,000 of Montana wages gets 10,000.
- A Montana business netting $30,000 beside a Wyoming loss gets 30,000 with $80,000 of pay. (8)(b)(ii) "carried on in the state" leaves the Wyoming loss out.
- Two returns in one household get 0 and 10,000.
- An entry of -1,000 counts as no entry and gives 8,000.
Coordinator assessment: Still resolved at 8d9f794. The override is now read through tax_year_input, so the tax-year guard is kept, and a new person-level mt_military_retirement_montana_wages input adds a direct (8)(b)(i) route. The round-2 commuter and out-of-state cases still pass.
A2 — PR-caused red CI: in-place write into a cached array in mt_subtractions (OPEN)
- Location:
policyengine_us/variables/gov/states/mt/tax/income/subtractions/mt_subtractions.py:30(added in 8250611):total_subtractions -= min_( max_(0, reported_wmre), max_(0, other_subtractions) )
- CI: run 46590926384, job 142451429301 ("Python tests / Full Suite - Rest (Python shard 2)") at head 8d9f794:
1 failed, 2951 passed, 10 skipped. The one failure ispolicyengine_us/tests/code_health/test_no_in_place_writes_to_cached_arrays.py::test_formulas_do_not_write_into_cached_arrays:assert not ['policyengine_us/variables/gov/states/mt/tax/income/subtractions/mt_subtractions.py:30 in formula(): total_subtractions (augmented assignment)']. The "Check Rest Python shards" gate fails because of it. The test has been on main since #9739 (2026-10-02). The line is the PR's own, so the PR causes the failure, not main. The merges of main add nothing to it. - Local reproduction: the same test fails locally against the snapshot with the same message, naming only
mt_subtractions.py:30(run 2 log below). The other 255 Python tests in that invocation pass, includingtest_mt_military_retirement_exemption_cache.pyandtest_source_conflicts.py. - Not just a static-scan false positive:
total_subtractionscomes fromadd(person, period, p.subtractions). Core'sfor_each_variablereturns the cached array itself when the list holds a single same-entity variable. Executed (diag2-output.json,G_alias_single_list): under a reform that setsgov.states.mt.tax.income.subtractions.subtractionsto["mt_other_subtractions"]for 2026, withmt_other_subtractions15,000 and 5,000 reported as WMRE,mt_subtractions= 10,000. After that,mt_other_subtractionsreads 10,000 instead of the input's 15,000. Every later reader in the simulation then sees the corrupted value. Baseline lists hold 4 to 7 variables, soaddbuilds a new array and baseline results are unaffected (D0-D5 and all YAML cases are correct). - Fix:
total_subtractions = total_subtractions - min_(max_(0, reported_wmre), max_(0, other_subtractions)). - Severity: should-address. It is a PR-caused red check on the head. Main has no required status checks configured (the
required_status_checksAPI returned empty), so it is not a "failing required check" under the critical rubric. The aliasing affects only a reform with a one-variable subtraction list.
A3 — the lower bound of the five-year window, and the cap on the reported WMRE amount, have no failing test (OPEN)
- Location:
mt_military_retirement_exemption.py:46-49,(year >= first_year) & (year < first_year + p.eligibility_years), andmt_subtractions.py:30-32,min_(max_(0, reported_wmre), max_(0, other_subtractions)). - Mutation evidence (
mut-output.json): I removed(year >= first_year) &from the formula in-process. The only YAML case with a tax year beforefirst_year("June 30 mover can qualify in 2026 after a 2025 denial") still passes: 2025 = 0, 2026 = 15,000. It passes because the case also entersmt_military_retirement_exemption_eligible: {2025: false}, which zeroes 2025 by itself. Without that entry, a Montana resident withfirst_year2026 gets 2025 = 0 at the head and 2025 = 15,000 under the mutant. No case catches this. - Executed head behavior is correct: B in
diag-output.json(first_year2026, Montana every year, no annual entry) gives 2024 = 0, 2025 = 0, 2026-2030 = 15,000, 2031 = 0. A (first_year2024) gives 15,000 for 2024-2028 and 0 for 2029-2030. C (nonresident year 2026 after a claim) gives 15,000 for 2024-2025 and 0 for 2026-2028. - Cap: each WMRE-reconciliation case enters a reported amount ≤
mt_other_subtractions, so dropping themin_would not fail any case. Executed at the head (D3): 20,000 reported against 15,000 of other subtractions givesmt_subtractions15,000 and tax 2,311.60. That is correct. - Remedy: two cases. One for a Montana resident in a year before
first_year, with no annual eligibility entry, expecting 0. One with the reported WMRE amount larger thanmt_other_subtractions, expecting the modeled exemption alone. - Severity: should-address (missing boundary coverage on new branches; the behavior is correct when executed).
A4 — The Schedule E conflict now says PE-US goes against the statute, but the model follows the statute (OPEN)
- Location:
source_conflicts/candidates.yaml,us-mt:military-retirement-exemption-schedule-e-income,pe_us.follows. Commit 2b57731 changed it fromstatutetoconflicting-source. - What the record says:
- The file header defines
conflicting-sourceas "against the statute; the 2026-10-19 rule calls for a model change". - The candidate's
otherreading is the WMRE line 4 instruction. Under it, all of Schedule 1 line 5 (rents, royalties, estates and trusts, Form 4835 farm rent) counts toward the cap.
- The file header defines
- What the model does:
- PE-US leaves those amounts out. The note itself says "Unclassified rents, royalties, Form 4835 rent and estate income remain outside the estimate".
- The case "Rents, royalties, farm rent and estate income are not earned income" expects 0, where the line 4 reading gives 15,000.
- The new rental input adds only nonpassive rental business income, which is the statute-plus-ARM 42.15.1501(2) reading.
- Expected:
follows: statute, as at the approved head. - Impact: no change to any computed amount. The conflict register misstates the ruling and signals a model change that is not needed. That would mislead the move of this candidate to the rulespec-us register.
- Source: MCA 15-30-2120(8)(b); ARM 42.15.1501(2); WMRE instructions, line 4 (PDF p. 3).
- Proposed severity: SHOULD ADDRESS (misleading source record).
A5 — The axiom line says needed, but the PR is a maintainer's and a parity issue exists (OPEN)
- Location: PR body,
axiom: needed. - Rule: CLAUDE.md lines 151-155 (present at both the prior and current heads) reserve
neededfor "an external contributor [who] cannot complete the Axiom work". Otherwise the line must read<legal id> encoded-correct | <rulespec PR> encoded | <rulespec issue> queued | n/a. - Observed:
- The author is MaxGhenis.
- TheAxiomFoundation/rulespec-us#2075, "Encode Montana's working military retirement and survivor benefit exemption from 2024 (MCA 15-30-2120(3)(n), (8), (9)) (PE-US #10713)", is OPEN and labelled
pe-parity. - I found no recorded blocker in its body, which
queuedrequires. It was last updated 2026-11-11, before these commits. - Its output 3 frames (9)(b) as "fewer than 5 earlier consecutive years" claimed. The PR now models a window that starts at first eligibility, so the issue does not describe the new eligibility behavior.
- Expected:
axiom: TheAxiomFoundation/rulespec-us#2075 queued, with the blocker recorded in the issue, or a rulespec PR markedencoded. The issue should be updated to cover the (9)(b) window and (9)(c) inputs as now modeled. - Impact: parity tracking only, with no change to computed amounts. The line predates these commits and was not raised in rounds 1-2.
- Source: snapshot CLAUDE.md "Axiom Parity";
gh issue view 2075 -R TheAxiomFoundation/rulespec-us, read-only, fetched during this review. - Proposed severity: SHOULD ADDRESS (axiom-line problem).
Suggestions
S1 — No YAML case asserted Montana taxable income or tax for the new exemption (RESOLVED)
- Fix: the new case "An eligible single filer's Montana taxable income and tax" (
mt_military_retirement_exemption.yaml, TY2026) asserts the full chain:mt_military_retirement_exemption=mt_subtractions= 15,000mt_taxable_income_joint= 48,900mt_income_tax= 2,311.60
- Check: these match the round-2 executed diagnostic: 0.047 × 47,500 + 0.0565 × 1,400 = 2,311.60. The case passes locally.
- Entry path: I also ran a diagnostic for the new input (
diag-output.json,end_to_end_commuter). A commuter with an entry of 0 gets Montana taxable income of 53,900 and tax of 2,594.10. Without the entry, they get 38,900 and 1,828.30. Both match hand arithmetic.
S2 — mt_other_subtractions documentation didn't warn against entering the exemption (RESOLVED)
mt_other_subtractions.py:15 now lists "the military retirement and survivor benefit exemption (Form WMRE)" among the amounts PolicyEngine computes separately. That is the remedy round 2 proposed.
S3 — say what the RIC memo's $24.8 million measures (RESOLVED)
mt_military_retirement_exemption_eligible.py:25-31no longer calls the figures a benchmark for microsimulation totals. It gives 1,711 claimants and $24.8 million (and >1,783 and $25.5 million), says the memo labels them revenue loss, and adds that "At about $14,500 per resident claimant, the amounts suggest that the table may measure income exempted rather than tax".- Checked against the memo (PDF p. 1):
- The table "USE OF EXEMPTION FOR MILITARY PENSION OR RETIREMENT INCOME, 2024" shows 1,711 / $24,754,179 and >1,783 / $25,530,804.
- The prose: "resulted in a loss of revenue of $25.5 million … 1,711 residents received a reduction of nearly $24.8 million".
- $24,754,179 / 1,711 = $14,467.67, which supports "about $14,500".
- Note, not a finding: strictly, the memo calls only the $25.5 million total a revenue loss and the $24.8 million "a reduction". The documentation's caution makes this harmless.
S4 — a reported WMRE amount stays in other subtractions when the exemption is switched off (OPEN)
- Location:
mt_subtractions.py:22-25. The reported amount is removed onlyif p.military_retirement.in_effect. - Trigger (
diag2-output.json,E_reform_off): TY2026, single filer, 30,000 of military retirement pay, 50,000 of wages,mt_other_subtractions15,000, of which 15,000 is reported inmt_military_retirement_exemption_in_other_subtractions. A reform setsmilitary_retirement.in_effectto false for 2026. - Observed: exemption 0,
mt_subtractions15,000,mt_income_tax2,311.60. That is identical to baseline, so the repeal shows no effect for this household. - Expected: the input's documentation says "PolicyEngine removes that portion of the manual entry and applies the separately calculated exemption". By that reading,
mt_subtractionswould be 0 and Montana taxable income 63,900 (hand arithmetic: tax 0.047 × 47,500 + 0.0565 × 16,400 = 3,159.10; not executed). - Scope: baseline is unaffected in every claimed year (2024 onward,
in_effectis true). Before 2024 the exemption did not exist, so a reported amount there has no meaning. The issue matters only when scoring a reform that turns the exemption off for a household that uses the new reporting input. The input is not in any dataset. - Remedy: drop the
in_effectcondition and keep the"mt_other_subtractions" in p.subtractionscheck. Alternatively, document that the reported amount is removed only while the exemption is in effect. - Severity: suggestion.
S5 — mt_subtractions lost its citation for years before 2024 (OPEN)
- Location:
policyengine_us/variables/gov/states/mt/tax/income/subtractions/mt_subtractions.py:13-16. Commit 8250611 replaced the 2022 MCA 15-30-2110 (Justia) link with the current MCA 15-30-2120 link. - Why it matters: the variable computes subtractions from 2010 (
subtractions.yamlhas 2010, 2017, 2024 and 2025 lists). The pre-2024 lists follow former 15-30-2110, which, per that file's own comment, SB 399 repealed effective tax year 2024. - Observed: only the current statute and the 2022 Form 2 are now cited.
- Expected: keep the 15-30-2110 link next to the new 15-30-2120 link.
- Impact: documentation only. The 2022 Form 2 still sources the earlier years.
- Proposed severity: SUGGESTION.
Evidence Gaps
No material gaps reported.
Notes
- Round 3 covers the two author commits since the 11-30 approval (2b57731 and 8250611) and two merges of main. This review replaces that approval.
- The new eligibility behavior matches the sources:
-
- the five-consecutive-year window starting at first eligibility (MCA 15-30-2120(9)(b); WMRE p. 2; Form 2 p. 25);
-
- loss of eligibility after moving away ((9)(c) and the WMRE Mary example);
-
- taxable dependent care benefits in the wage cap (WMRE line 2);
-
- passive Schedule C income left out, and nonpassive Montana rental income allowed (ARM 42.15.1501(2));
-
- uncapped survivor benefits ((8)(a) and the Jim example);
-
- netting a negative stream against the other, which matches
irs_gross_income's per-person floor.
- netting a negative stream against the other, which matches
- Executed at the head, all matching hand arithmetic: a first year of 2024 gives $15,000 for 2024–2028 and $0 after; a first year of 2026 gives $0 for 2024–2025 and $15,000 for 2026–2030. With $15,000 of WMRE saved inside
mt_other_subtractionsand reported through the new input, the result is $15,000 of subtractions and tax of $2,311.60 (unreported, it double counts to $30,000 and $1,593.30). - code-1 is the cause of the red checks:
test_no_in_place_writes_to_cached_arraysflagsmt_subtractions.py:30. Under a reform with a one-variable subtraction list, it corrupts the cachedmt_other_subtractions(15,000 reads back as 10,000). Baseline results are unaffected. The fix is one line:total_subtractions = total_subtractions - …. - Both merges of main are clean, and
candidates.yamlcarries exactly the PR's change set relative to main. No main entry was lost. - Not audited: rulespec-us#2075's required outputs and companion tests, beyond the axiom line and its (9)(b) framing.
Validation Summary
Local tests at the reviewed head (review venv, policyengine-core 3.37.2, matching uv.lock; imports resolved to the snapshot), split into two bounded runs for the deadline: the Montana income tax YAML tree passed, and the Python run reproduced CI's single failure (test_no_in_place_writes_to_cached_arrays, naming mt_subtractions.py:30), with the other 255 tests passing, including test_mt_military_retirement_exemption_cache.py and test_source_conflicts.py. Diagnostics executed the window, nonresident, reconciliation, joint-window and reform households, and an in-process mutation of the window's lower bound. Sources: MCA 15-30-2120, ARM 42.15.1501 and 42.15.1510, the 2025 Form WMRE and Form 2 instructions, and 2025 Mont. Laws ch. 586; manifest check passed. CI at 8d9f794: 34 checks pass, 2 fail (Python Rest shard 2 and its gate; see code-1).
Timing
setup seconds: 4.00s; scope seconds: 60.00s; parallel review seconds: 980.80s; policy role seconds: 579.80s; code role seconds: 980.80s; adjudication seconds: 180.00s; consolidation cleanup seconds: 193.80s; elapsed seconds: 1423.00s
Review Severity
COMMENT. Open findings: 0 critical, 4 should address, 2 suggestions.
What was missing
PolicyEngine-US included taxable military retirement pay and survivor benefits in federal income. Montana had no dedicated Form WMRE subtraction. The shared military income inputs and Montana subtraction list documented that omission.
The law
Change
For tax years beginning in 2024 or later, the head’s record carries the return’s retirement and survivor exemptions. The model nets each filer’s signed military adjustments as federal gross income does. It applies each filer’s residency and five-year window, then pools qualifying pay and survivor benefits across the head and spouse. A reported year of becoming a nonresident after claiming disqualifies that filer from that year onward. Dependents contribute neither pay nor earnings.
The retirement exemption is the lesser of half the eligible retirement pay and the return’s Montana source wage income. The survivor exemption is half the eligible survivor benefits. The wage estimate combines federal employment income and taxable employer dependent-care benefits, net Schedule C income after reported passive amounts, nonpassive partnership and S corporation income plus entered qualifying Montana rental income, and Schedule F income. It floors each return-level source at zero. A nonnegative person-level Montana compensation entry replaces that filer’s federal wage estimate. A nonnegative return-level entry replaces the entire cap for that tax year.
The annual eligibility and qualifying-payment inputs handle mixed service, part-year receipts, and streams with different residency or timing eligibility.
mt_military_retirement_exemption_first_yearanchors the five consecutive years.mt_military_retirement_exemption_nonresident_year_after_claimrecords a disqualifying departure once. The 2024 and 2025 subtraction lists carry the dedicated WMRE amount. For saved miscellaneous subtractions, report the already included WMRE amount inmt_military_retirement_exemption_in_other_subtractionsor remove that portion from the saved entry.Readings taken
Four readings go into
source_conflicts/candidates.yaml(step 1 of CONTRIBUTING.md#source-conflicts; no marker until the register holds them):us-mt:military-retirement-exemption-schedule-e-incomeus-mt:military-retirement-and-survivor-exemptions-same-returnus-mt:military-retirement-exemption-business-loss-floorus-mt:military-retirement-exemption-wage-locationsource_conflicts/sources/us-mt/form-wmre-2025.txt(pdftotext 26.09.0, pages 1 to 3, sha256851ebc5378ce1855177456fd497a2d72333469cc2b0aad9dcd8b6e1e81607ed6) holds the 2025 Form WMRE text these readings quote, for the register'spending_textswhen the readings move there. Page 1 follows the form's visual reading order, and pages 2 and 3 follow its column order with one line per paragraph or list item. Each of the eleven Form WMRE excerpts the four candidates quote appears in the capture verbatim. The capture keeps the form's text as printed, including "Senate Bill 124" and the line 5 instruction's "Schedule 1, line 11" (Schedule 1 reports farm income on line 6).Assumptions
Invariants
The exemption is zero before 2024, outside applicable eligibility windows, and on records other than the head’s. The retirement component is min(50% × eligible federally included retirement pay, Montana wage cap). The survivor component is 50% × eligible federally included survivor benefits. Apply qualifying-payment entries and signed adjustments before those limits. Each component is nonnegative. With the other subtractions held fixed, applying WMRE cannot raise Montana taxable income.
Tests
mt_military_retirement_exemption.yamlcontains 57 cases, including saved overlap, signed payment adjustments, taxable dependent-care compensation, stream-specific qualification, disqualification after a post-claim move, and Montana wage sourcing. Other cases cover:mt_subtractions15,000; $8,000 of wages binds (8,000); no earnings gives 0; $10,000 of survivor benefits alone gives 5,000; retired pay and a spouse's survivor benefits on one return give 10,000; a retiree who is also a survivor beside an ineligible spouse with wages and pay gives 16,000.farm_income, with only rents, Form 4835 farm rent and estate income, with a dependent’s retirement pay, or with only a dependent’s wages.mt_subtractions15,000; TY2023 (0).The Python cache test (
tests/core/test_mt_military_retirement_exemption_cache.py) verifies that a current-year cap edit invalidates the cached exemption. At 8250611c56 and on a merge with main at 8e81d6637f, all 13 selected Montana income tax YAML files pass, and at 8250611 the five supporting Python test files pass. The suite and mutation counts below apply to the commits they cite.Removing each new term fails at least one case:
irs_employment_incomefromearned_income_sourcestotal_self_employment_incomefarm_operations_incomeself_employment_income(non-SSTB only) instead oftotal_self_employment_incomefarm_income(Schedule J) to the listsubtractions.yamlentryfilermask on earningsfilerinstead ofeligibleAt 3b127ca, removing the tax-year check fails 2 of 35 cases. The 2026 zero and positive entries carry into 2027.
At 8250611, each of four more mutations fails at least one case: removing the saved-WMRE overlap adjustment (1 case), restoring separate zero floors on signed military payments (2), dropping taxable dependent-care benefits from the wage estimate (1), and removing the post-claim departure check (1).
At 09ed698f28 (this branch, with main merged at 3386304d28), all 1,122 cases under
tests/policy/baseline/gov/states/mtpass, and so do the 107 tests intests/code_health/test_source_conflicts.pyandtests/code_health/test_military_retirement_readers.py. ruff format and check pass on the changed Python files.At e65f906ee7, which adds the first version of the capture, the 103 tests in
tests/code_health/test_source_conflicts.pyand the 22 cases inmt_military_retirement_exemption.yamlpass.At ceb2f71466, which reflows the capture on top of a merge of main (538c7c8cc3), the 251 tests in
tests/code_health/test_source_conflicts.py, the 4 intests/code_health/test_military_retirement_readers.pyand the 22 cases inmt_military_retirement_exemption.yamlpass, and so do all 1,229 tests undertests/policy/baseline/gov/states/mt, main's Montana changes included.At fb6d94b071, which adds the fourth candidate, the end-to-end case and three documentation edits on top of another merge of main (87fe953dc5), then takes the Montana amount as an optional entry, leaves passive partnership and S corporation income out of the sum and adds eight cases, local runs (macOS, policyengine-core 3.37.2, one file per process) pass all 31 cases in
mt_military_retirement_exemption.yaml, the 22 in the Montana incomeintegration.yaml, the 251 tests intests/code_health/test_source_conflicts.py, the 4 intests/code_health/test_military_retirement_readers.py, the 32 intests/code_health/test_reference_urls.pyand the 5 intests/core/test_input_variable_definitions.py. ruff format and check pass on the changed Python files. Each of the sixteen mutations in the table above fails at least one case at b1a147f13e; fb6d94b changes only the wage-location note after it.Before and after
TY2026, a single filer age 55 with $30,000 of military retired pay, before this fix (2eeb5d3) and after (09ed698):
farm_income(AGI $30,000)A married couple, one spouse age 45 with $30,000 of military retired pay and $60,000 of wages, TY2026, at 09ed698: Montana income tax is 2,716.60 with
in_effectset to false and 2,011.60 with the 15,000 exemption. 2eeb5d3 gave the same 2,011.60. With no pension the couple owes 1,306.60, so Montana's tax on the pay falls from 1,410 to 705. A retired couple, ages 67 and 65, with $45,000 of military retired pay, $30,000 of Social Security and no earnings gets no exemption. Every 09ed698 figure in this section holds at ceb2f71466 and at fb6d94b, each from a household run.axiom: needed
🤖 Generated with Claude Code