Repository navigation
Conversation
…mized deductions on federal SALT as claimed New Jersey: the deduction-or-credit choice compared only the tax saving with the $50 credit, but the deduction also lowers NJ taxable income, which sets the refundable NJ child tax credit and the NJ child and dependent care credit. A filer just above $30,000 kept the $50 credit and lost a $200 child tax credit increase. The choice now counts those credit changes. The child count moves to nj_ctc_qualifying_children so both formulas share it. Nebraska: itemized deductions added real estate taxes capped by the static SALT cap to the non-SALT deductions. That dropped sales taxes claimed on Schedule A and, from 2025, could exceed the federal SALT deduction after the cap phase-down. They now start from the federal SALT deduction and remove only the income taxes in it, counting real estate taxes first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6L5ENJPWh7rPevAeE7
|
Picking this up for the US hub. This continues an earlier session's work on the state taxpayer-choice items; that session pushed nothing, so this branch starts from main. I'll post a hand-off comment here when it's ready. Generated by Claude Code |
…ugs-continued-3mhani
|
Ready for hub review Head: This continues an earlier session's work on these items. It pushed nothing (its branch never existed), so there were no earlier commits to keep or fix. This PR is on branch Source access: this VM couldn't reach any statute or agency site. The Iowa, Virginia, Nebraska, Oregon, New York, New Jersey and New Mexico hosts, irs.gov, govinfo, uscode.house.gov and law.cornell.edu all failed (proxy 403 or DNS). Nothing below quotes a source fetched in this session. The only quotations come from text already in the repo, and they say so. Per item
The witnesses, hand computations and what each blocked item needs are in the PR body. Judgment calls
Tests
CIThe draft was skipped: the Pull request run at Proposed follow-ups
Generated by Claude Code |
|
Picking this up for the US hub. I'll post a hand-off comment here when it's ready. Generated by Claude Code |
…apped Neb. Rev. Stat. 77-2716.01(4) allows federal itemized deductions except the state or local income taxes "before any federal disallowance", and the Form 1040N line 8 instructions say to enter the line 5a income taxes even when the SALT cap limited line 5e. The prior formula counted real estate taxes first inside the capped SALT deduction and removed only the rest, so it left too much whenever the cap bound. Start from itemized_taxable_income_deductions (Schedule A line 17), subtract the income taxes in full when line 5a holds them, and floor at zero. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6K6CPev5JwhCMUY7j6
|
Ready for hub review Head: Ownership note: the last push before mine (22:56Z) was inside the 6-hour window, but it was the named head, and its writer handed off at 22:59Z, before this item was filed. I took it as finished work, not an active writer. Source access: nebraskalegislature.gov failed DNS and web.archive.org was refused, so I couldn't fetch 77-2716.01 or the 1040N booklet. The statute and booklet words in the code, body and here are the text the hub supplied. I didn't verify them independently. Items
CIThe Pull request run at e9502f5 completed as Judgment calls
Proposed follow-ups
Generated by Claude Code |
|
Hub review in progress Reviewing head
Generated by Claude Code |
|
Ready for hub review Independent review of round 1 at the head above. The head hasn't moved since FindingsP2-1. New Jersey: the election departs from Worksheet H, and nothing records that as a reading
P2-2. New Jersey: #10043 rewrites the lines this PR moves, and its rule must go into
|
| Code | ne_itemized_deductions |
|---|---|
| main | 8,000 |
| this head | 8,000 |
| main + #10070 (local trial merge) | 38,000 |
| this head + #10070 (local trial merge) | 38,000 |
The two PRs touch no common file, and the merge reports no conflict. The landing order doesn't matter, and this PR makes nothing worse. Follow-up after #10070 lands: add this gambler case to ne_itemized_deductions.yaml.
Checked and sound
Defects reproduce at main (25c4253483). I ran a witness script against each tree.
- NJ witness: main keeps the credit,
nj_income_tax−1,253.01. The head takes the deduction: −1,450.26. - NE 2025 witness: main gives
ne_itemized_deductions50,000, above the 30,000 federal total, becausecapped_property_taxesignores the 2025 phase-down. The head gives 0, andne_taxable_incomeis 691,400. - NE 2024 binding cap: main 20,000, head 17,000.
NJ hand check of the $197.25 (computed before reading the code).
- Exemptions: 1,000 + 1,500 = 2,500, so taxable income is 33,000 − 2,500 = 30,500.
- Tax: 280 + 10,500 × 1.75% = 463.75.
- Deduction: 18% × 15,000 = 2,700, so taxable income is 27,800 and tax is 280 + 7,800 × 1.75% = 416.50.
- CTC: $800 above $30,000 and $1,000 at or below, from
ctc/amount.yamlfor 2023. - Credit route: 463.75 − 800 − 50 = −386.25. Deduction route: 416.50 − 1,000 = −583.50. The difference is 197.25, which matches −1,253.01 versus −1,450.26.
NE hand checks, all 8 cases, matching the YAML comments:
| Case | Federal itemized | Income taxes removed | Nebraska |
|---|---|---|---|
| Unit test 1 | 2,000 + 24,000 + 10,000 = 36,000 | 5,000 | 31,000 |
| Unit test 2 | 3,000 + 7,000 + 10,000 = 20,000 | 5,000 | 15,000 |
| Sales-tax filer | 23,000 | 0 (sales 3,000 > income 1,000) | 23,000 |
| Uncapped income-tax filer | 22,000 | 2,000 | 20,000 |
| 2025 witness | 30,000 | 35,000 | 0, so ne_taxable_income = 700,000 − 8,600 = 691,400 |
| 2024 binding cap | 25,000 | 8,000 | 17,000 |
| 2023 income above cap | 25,000 | 12,000 | 13,000 |
| Tie | 23,000 | 0 (3,000 = 2,000 + 1,000) | 23,000 |
The NE rule in code.
- The formula subtracts
state_withheld_income_tax + local_income_taxin full when that sum is strictly abovestate_sales_tax + local_sales_tax. That is the same pairstate_and_local_sales_or_income_taxcompares for federal line 5a. - It doesn't branch on filing status or year, so the uncapped subtraction holds for every status, the MFS $5,000 cap included.
- It floors at 0.
- The only reader is
ne_taxable_income, which takesmax_(itm_ded, std_ded)for federal itemizers.state_itemized_deductionslists it, but no non-test variable reads that total.
NE tests, before and after. The head's NE file fails 5 cases with the 6df1752b formula (unit tests 1 and 2, the 2025 witness, the 2024 binding cap, the 2023 above-cap case) and 7 with main's. All 8 pass at the head.
NJ readers of nj_taxable_income.
nj_main_income_tax,nj_ctcandnj_cdccread it, plustaxsim_state_taxable_income, a reporting sum.nj_non_refundable_creditshas no components, so the full main-tax saving reachesnj_income_tax.- The election itself moves
nj_property_tax_credit, which the comparison already counts. - The filing-threshold zeroing can't create a phantom saving, because
nj_property_tax_deduction_eligiblerequires AGI above the threshold. nj_eitcdoesn't read taxable income. No reader goes uncounted.
NJ structure.
- No cycle: the election reads
nj_ctc_qualifying_children(age and dependency),nj_ctc_eligible(filing status), federalcdccandnj_taxable_income_before_property_tax_deduction. None of them depends on the election. nj_ctc_qualifying_childrenhas the same expressionnj_ctchad on main, andnj_ctc.yamlpasses 19/19.taxable_income_after_deductionis floored at 0, likenj_taxable_income.- The CTC term applies
nj_ctc_eligibleasnj_ctc'sdefined_fordoes. - The election also runs in 2020 and 2021 (scratch cases, passed), where the CTC is 0.
NJ tests at main. The head's NJ file fails 3 cases on main's code (the CTC case, which can't load nj_ctc_qualifying_children, the CDCC case and the end-to-end renter) and passes 5. All 8 pass at the head.
Runs at the head, one file per process, all passing:
| File | Passed |
|---|---|
ne_itemized_deductions.yaml |
8 |
nj_taking_property_tax_deduction.yaml |
8 |
salt_refund_integration.yaml |
38 |
ne_income_tax_before_credits.yaml |
4 |
ne_income_tax_rates_2026.yaml |
3 |
ne_taxable_income.yaml |
5 |
ne_integration.yaml |
1 |
nj_taxable_income.yaml |
2 |
nj_ctc.yaml |
19 |
nj_cdcc.yaml |
8 |
nj_main_income_tax.yaml |
6 |
Mutants, each in its own process in a scratch worktree, restored after (git status clean):
| Mutant | Fails | Killed by |
|---|---|---|
| NE: every filer an income-tax claimer | 2 | sales-tax filer; tie |
NE: subtraction capped at salt_deduction |
2 | 2025 witness; 2023 above-cap case |
| NE: no floor | 1 | 2025 witness |
NE: >= |
1 | tie |
| NE: pre-section-68 total | 0, survives | none (P3-3) |
| NJ: drop CTC gain | 2 | CTC bracket case; end-to-end renter |
| NJ: drop CDCC gain | 1 | CDCC rate-rise case |
NJ (mine): drop nj_ctc_eligible |
0, survives | the P3-1 case kills it |
NJ (mine): drop right=True |
0, survives | the P3-2 case kills it |
Body claims about the unchanged items.
- OR:
or_standard_deductiondoesn't readseparate_filer_itemizes, while DC and ID do (grep). - VA: the VA integration test expects 257.5.
- NM:
uncapped_element_percentis 0.4 from 2019 and 0 from 2025, and its reference names HB0037. - NY: Choose New York's itemizing election by State plus City tax and require federal itemizing only before 2018 #10100 is open and still makes
ny_deductionsfollowny_itemizes. I read the diff but didn't run it. Its title now says "only before 2018", but that refers to the federal-itemizing gate. The overlap still goes in every year.
CI. The Pull request run at the head, https://github.com/PolicyEngine/policyengine-us/actions/runs/41745610068, concluded success. All 36 jobs succeeded, including the four state baseline shards and Household API Partners. The earlier draft run (41744533541) was skipped.
Scope and body.
- Seven files changed, none under
.github/orpolicyengine_us/tests/policy/baseline/partners/. - The changelog fragment is top-level and of type
fixed. - The body has
impact: the hub will measureandaxiom: needed. The hub still has to replace the axiom line. - Open-PR search on each changed variable name finds only this PR, except
nj_ctc, which finds Apply New Jersey, Ohio, Oklahoma and Pennsylvania rules for a filer whom another taxpayer can claim as a dependent #10043 (P2-2).
Baseline impact. The diff moves baseline outputs.
- Nebraska federal itemizers in every year:
- Sales-tax claimers gain their sales tax back.
- Income-tax claimers lose up to the part of their income tax that main hid behind real estate taxes.
- From 2025, high-income filers lose main's overstatement from the unphased cap.
- New Jersey filers near a CTC or CDCC bracket switch to the deduction.
- The hub's population run should report:
- the count and net revenue of changed NE itemizers, split by sales-tax and income-tax claimers;
- the count of NJ elections that flip, and their net change in
nj_income_tax.
What I couldn't check
- Sources. This VM couldn't reach any primary source: the proxy refused nebraskalegislature.gov, revenue.nebraska.gov, irs.gov, govinfo.gov, uscode.house.gov, ecfr.gov, lis.njleg.state.nj.us, law.justia.com, nj.gov and web.archive.org (403 or DNS failure). So:
- I didn't confirm Neb. Rev. Stat. 77-2716.01(4), the Form 1040N booklets or the $8,600 2025 Nebraska standard deduction. I used PE's parameter.
- I didn't read N.J.S.A. 54A:3A-17 to -20, NJ-1040 Worksheet H, the 2026 Schedule A, or IRC 63(d) and 68.
- A web search returned only third-party summaries of 54A:3A-20, which I don't rely on.
- Population impact. I ran no microsimulation on population data.
- The author's property checks (300 random NJ households, 300 NE filers): not rerun, so unverified.
- The Iowa witness table in the body: not run.
Generated by Claude Code
|
Picking this up for the US hub. I'll post a hand-off comment here when it's ready. Generated by Claude Code |
…st two edges The comment said the formula follows Worksheet H, but since the last round it also counts the change in the refundable NJ CTC and CDCC, which the worksheet leaves out. Two review cases close gaps no existing case covered: a separate filer, who cannot claim the NJ CTC, keeps the $50 credit; and a deduction that lands taxable income exactly on $30,000 gets the 50% NJ CDCC rate, as nj_cdcc's right=True reads it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QpcqEDJ2tmDgRbDecMcN7j
|
Ready for hub review Head: What the round 1 review asked for, and what I did
Hand computations (2023, single rates 1.4% to $20,000, 1.75% to $35,000)
MutantsEach ran in its own process on a scratch worktree, against the 10-case file at this head. I removed the worktrees afterwards;
Tests at the head (one process per file)
CINot finished at the 60-minute mark; the runners were congested. This is the only run at this head: the Pull request run 41856636964 at At 16:20Z, 60 minutes after my 15:20Z push, the run was
The hub needs to read the run's conclusion. Judgment calls
Proposed follow-upNJ child tax credit: an income exactly on a bracket edge gets the lower amount. The 2025 NJ-1040 instructions (line 65, fetched from nj.gov this session) give $1,000 for taxable income of "$30,000 or less". But Generated by Claude Code |
|
Hub review in progress Round 2 delta review of head
Generated by Claude Code |
|
Ready for hub review Round 2 delta review, from FindingsP3-1. NJ CTC at exactly $30,000: the election inherits
|
| Mutant | Result | Killed by |
|---|---|---|
M1: drop * nj_ctc_eligible |
1 failed, 9 passed | Separate filer with a child… |
M2: drop right=True on the after-deduction CDCC rate |
1 failed, 9 passed | Deduction that lands NJ taxable income exactly on $30,000… |
M3: drop + ctc_gain |
2 failed | CTC bracket case; renter end-to-end |
M4: drop + cdcc_gain |
2 failed | CDCC rate rise; $30,000 case |
M5 (mine): >= instead of > |
survives 10/10 | none. At a tie the net tax is equal either way, so this is close to an equivalent mutant |
M6 (mine): right=True in both CTC calls |
survives 10/10 | none (P3-1) |
| M7 (mine): drop the cohabiting halving | survives 10/10 | the P3-3 case kills it (1 failed) |
M1-M4 match the hand-off and the body's mutant sentence.
Runs at the head, one file per process:
| File | Result |
|---|---|
nj_taking_property_tax_deduction.yaml |
10 passed |
nj_ctc.yaml |
19 passed |
nj_ctc_eligible.yaml |
2 passed |
nj_cdcc.yaml |
8 passed |
ne_itemized_deductions.yaml |
8 passed |
test_source_conflicts.py |
103 passed |
ruff format --check and ruff check on the changed Python file both pass.
Overlap paragraph. It holds at #10043's current head, 6f241acce1 (open, draft, last updated 2026-10-16).
- Apply New Jersey, Ohio, Oklahoma and Pennsylvania rules for a filer whom another taxpayer can claim as a dependent #10043's
nj_ctc.pysetsfiler_is_dependent = person.tax_unit("head_or_spouse_is_dependent_elsewhere_without_filing_exception", period)anddependent = ... & ~filer_is_dependentin the child count this PR moves. git merge-tree --write-tree pr-10654 pr-10043reportsCONFLICT (content)innj_ctc.py, so git won't let the condition land silently in the wrong file. It also reports a conflict inok_eitc.yaml.- Apply New Jersey, Ohio, Oklahoma and Pennsylvania rules for a filer whom another taxpayer can claim as a dependent #10043 already conflicts with main in
nj_eitc.yamlandok_eitc.yaml, so it needs a rebase in any case. - Apply New Jersey, Ohio, Oklahoma and Pennsylvania rules for a filer whom another taxpayer can claim as a dependent #10043 also edits the contrib
nj_dependent_exemption_reform.py, which doesn't read the CTC count.
Readers. The round 2 delta changes no formula, so no reader moves. The readers are unchanged from round 1:
nj_taking_property_tax_deduction:nj_property_tax_deductionandnj_property_tax_credit;nj_ctc_qualifying_children:nj_ctcand the election.
Body.
- "7 new cases, 10 in all" is right: main's file has 3 cases and the head's has 10.
- The listed cases and the mutant sentence match my runs.
impact: the hub will measureandaxiom: neededare present.neededis CLAUDE.md's form for an external contributor, so the hub still has to replace it.
Baseline impact. The delta can't move any output, since it changes a comment and adds tests. The PR as a whole moves NE itemizers and NJ elections near a CTC or CDCC bracket edge, as round 1 listed. The population check round 1 asked for still applies.
Scope.
- Seven files changed, none under
.github/orpolicyengine_us/tests/policy/baseline/partners/. - An open-PR search for
nj_taking_property_tax_deduction,nj_ctc_qualifying_childrenandne_itemized_deductionsfinds only this PR. A search fornj_ctcalso finds Apply New Jersey, Ohio, Oklahoma and Pennsylvania rules for a filer whom another taxpayer can claim as a dependent #10043. git merge-treeof the head withorigin/main(25c4253483) reports no conflict.
CI. The Pull request run at the head, https://github.com/PolicyEngine/policyengine-us/actions/runs/41856636964, concluded success. All 36 jobs succeeded, none skipped or cancelled, including Python Full Suite - Microsimulation and every Contrib shard, which were still running at the hand-off.
Still open from round 1, not in this round's scope: P3-3, Nebraska line 7 before or after section 68, and P3-4, wagering losses until #10070 lands.
What I couldn't check
- Sources. This VM's proxy refused nj.gov, lis.njleg.state.nj.us, pub.njleg.state.nj.us, www.njleg.state.nj.us, law.justia.com, casetext.com and govinfo.gov (403 on CONNECT or DNS failure). So I didn't read:
- N.J.S.A. 54A:3A-20(a)(1). The hub's reading of it is taken as given.
- Worksheet H.
- The NJ-1040 line 65 "$30,000 or less" wording, or 54A:4-17.1.
- The author's 300-household NJ property check: not rerun.
- Population impact: I ran no microsimulation.
Generated by Claude Code
|
Picking this up for the US hub. I'll post a hand-off comment here when it's ready. Generated by Claude Code |
…filers The election's reading rests on N.J.S.A. 54A:3A-20, which the property tax credit parameter already cites, so cite it here too. Add a case for a separate filer who lives with the spouse: the $50 credit halves to $25, so a $47.25 tax saving makes the deduction the better choice. Without the case, dropping the halving passed every test in the file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6HWtPqg7fKcLTqL3ef
|
Ready for hub review Head: Built on Items
MutantM7: CIPull request run 41947357640 at Judgment calls
Proposed follow-up (the hub's to file)None from this round. The review's P3-1 ( Generated by Claude Code |
PR Review: Fix state taxpayer-choice bugs: NJ property tax election and NE itemized deductionsSummaryThe New Jersey change is sound in principle. N.J.S.A. 54A:3A-20(a)(1) lets a taxpayer "elect to take a credit instead of the deduction". Both refundable credits that read taxable income (the NJ CTC and the NJ CDCC) use NJ-1040 line 42, after the property tax deduction. So counting their change when picking the better election is the right comparison. The algebra matches the net-tax difference, and the inputs don't depend on the election, so there is no cycle. The Nebraska change matches 77-2716.01(4) and the Form 1040N line 7–8 instructions for every year tested (2021–2025, all checked word for word). There are four open issues:
I hand-checked all 16 expectations in the two changed test files. CI is 36/36 green, and the merge with current main is clean. CriticalNone. Should addressS1. Nebraska: a filer whose federal SALT deduction is capped either way would enter sales taxes on line 5a. The PR always subtracts income taxes, which reverses its own 2025 witness and makes common homeowner cases worse than main.
S2. New Jersey: 54A:3A-20(b) halves the credit for every spouse filing separately, but the code (and a new test) halves it only for spouses who live together. The choice isn't recorded.
S3. New Jersey CTC boundary: the new election term (and
S4. Two new terms are unpinned: deleting either fails no test.
Suggestions
Verified correct
Axiom line assessment
CI status
Branch status
Verdict: REQUEST_CHANGES |
DTrim99
left a comment
There was a problem hiding this comment.
Requesting changes per the review above: 0 critical, 4 should (NE line 5a always treated as income taxes even when the SALT cap makes the sales-tax election free; NJ separate-filer half credit follows the instructions over 54A:3A-20(b) without a record; NJ CTC $30,000-or-under boundary; two unpinned terms), 4 suggestions.
nj_ctc.py: Keep the shared child count and the federal dependency reference. Move the dependent-filer condition and its explanation to nj_ctc_qualifying_children.py. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Choose sales taxes on Schedule A line 5a when they give the same federal deduction. Subtract the full income taxes when the filer chooses income taxes. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Use the same inclusive brackets in the credit and property tax election. Keep filers with zero taxable income in the first bracket. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Use half the credit in the election and in the payment. Record the different treatment in Worksheet H. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Include local income taxes in the Nebraska subtraction case. Keep the New Jersey care credit at the same rate when income starts at $30,000 and falls. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Treat an equal benefit as a deduction choice, as in Worksheet H. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Add the Nebraska line 7 and 8 pages. Cite the New Jersey credit statutes and the pages for Worksheets H and J. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Count a five-year-old dependent. Exclude an older child, a child who is not a dependent and children of a filer whom someone else can claim. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Include deductible wagering losses in line 7. Use the reduced federal total from 2026 and remove the full income taxes on line 8. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
A supplied federal SALT deduction can hold taxes the model does not list, such as value-based motor vehicle taxes, so it alone can't show that the filer claimed income taxes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The New Jersey child tax credit change here also fixes #10072, so I won't open my separate PR for it. If more boundary coverage helps, I have 19 more
I can open them as a test-only PR once this merges. Co-authored with Claude Code (Claude Opus 5.5, xhigh effort) |
DTrim99
left a comment
There was a problem hiding this comment.
Program review
Base repository: PolicyEngine/policyengine-us
PR number: 10654
Reviewed head SHA: bf2c86b
Merge base SHA: c44636b
Mode: incremental from 1511c2c922b1e3d3e5ce9e0bcbcb2f6cdc49b6dc
Scope: changed behavior and affected dependencies
Source manifest: /private/tmp/policyengine-command-runs/ea33c0bb2b64/pr-10654-review-sources.json
Review status: COMPLETE
Source Documents
- nj1040i_2025.pdf — cached original.
- lis_53666.html — cached original.
- lis_53687.html — cached original.
- lis_53663.html — cached original.
- pl2021c308.pdf — cached original.
- s4531_i1.htm — cached original.
- ne2021.pdf — cached original.
- ne2022.pdf — cached original.
Critical
None.
Should Address
A1 — rulespec-us #2037 and #2038 still mirror the old head and require outputs it no longer gives (OPEN)
- Location: PR body line 75 (
axiom: ... #2037 and ... #2038 queued). - Trigger: both issues still say "Mirror ... at head
1511c2c922". Neither was updated after the 11-30 commits; #2038 was last updated 11-05 and #2037 on 11-16. - Expected vs observed:
- #2037, row 153 ("2023: separate filer with child", noncohabiting, benefit $47) requires PE "Same", i.e. election false. Under 54A:3A-20(b), which the issue itself quotes, and at this head (f452c28), the expected value is true.
- #2037 rows missing. It has no rows for the new $25 noncohabiting credit, the tie case, the $30,000 CDCC no-change case, or the CTC $0/$30,000/$80,000 cases.
- #2038, 2025 integration row. It gives $30,000 property tax → $691,400, and its PE column describes the old "larger-amount and tie convention". The head now gives 30,000 / 670,000 for that case and treats the cap-free sales-tax election as the filer's choice.
- #2038 rows missing. The 2024 homeowner, supplied-SALT, wagering-loss and 2026 section 68 cases are not companions.
- Impact: CLAUDE.md "Axiom Parity" requires a queued issue to be dispatch-ready, with the required outputs and companion tests. As written, an encoder would mirror superseded behavior and the noncohabiting separate-filer result that contradicts the statute.
- Source: CLAUDE.md lines 151-155;
gh issue view 2037/2038 -R TheAxiomFoundation/rulespec-us(read-only, 2026-12-02); N.J.S.A. 54A:3A-20(b). - Fix: update both issues to head bf2c86b with the corrected rows and the new cases. The PR line can stay
queued. - Proposed severity: should-address.
Coordinator assessment: This is the only blocking item. The code is ready: every round-1 item is resolved and the tests pass. Updating both issues to bf2c86b, including the noncohabiting separate-filer row that 54A:3A-20(b) makes true, clears it. The PR line can stay queued.
Suggestions
S1 — PR body does not link #10072 (OPEN)
- Location: PR body. It has no "Fixes #10072", although fc2b79b implements that issue's fix and the contributor withdrew a separate PR on that basis.
- Expected vs observed: the issue should close when this PR merges. It stays open.
- Fix: add
Fixes #10072to the body. - Proposed severity: suggestion.
S2 — Nebraska still assumes a federal-first line 5a election outside the cap-tie case (OPEN)
- Location:
ne_itemized_deductions.py:39-41. - Trigger: income taxes exceed sales taxes, and the sales-tax election costs less federal SALT than it gains on Nebraska line 8.
- Example (hand trace, no code run): 2024, single, $100,000 wages, $5,000 real estate tax, $5,000 state income tax, $4,500 sales tax, $15,000 mortgage interest.
- Income-tax election: federal itemized $25,000, Nebraska $20,000.
- Sales-tax election: federal itemized $24,500 (+$110 federal tax at 22%), Nebraska $24,500 (−$262.80 at 5.84%).
- The filer saves about $153 by electing sales taxes, but PE removes income taxes.
- Narrower variant:
salt_if_salescannot see taxes that are only inside a suppliedsalt_deduction, such as the vehicle taxes in the new bf2c86b test. A filer with such taxes whose sales-tax election also reaches the cap is treated as electing income taxes. - Impact: the law leaves line 5a to the filer, and PE's federal model always uses the larger amount. Comparing combined federal and Nebraska tax would need a federal recomputation. The code comment does state the convention, and this is the rule the prior review proposed.
- Fix: state the convention and this limitation in the PR body's Nebraska section. Optional: open a follow-up issue for a combined comparison.
- Proposed severity: suggestion.
S3 — A supplied salt_deduction at the cap that includes other taxes still removes income taxes (OPEN)
- Location:
policyengine_us/variables/gov/states/ne/tax/income/deductions/ne_itemized_deductions.py:36-40(bf2c86b). - Trigger: 2024, single, $100,000 wages,
salt_deductionsupplied as $10,000. That amount is RE $7,000 + $2,000 value-based motor-vehicle (personal property) tax + $4,000 income tax, capped at $10,000. Sales tax is $1,500 and mortgage interest $15,000. - Expected under the PR's own convention: the sales election gives 1,500 + 7,000 + 2,000 = 10,500, which caps to $10,000. Federal SALT is the same either way, so the filer can enter sales tax on line 5a and leave line 8 blank. NE itemized deductions would be $25,000 and taxable income $75,000.
- Observed (executed):
salt_if_sales= min(10,000, 7,000 + 1,500) = 8,500 < 10,000, so the code removes $4,000. NE itemized deductions are $21,000 and taxable income $79,000: about 4,000 × 5.84% = $233.60 more NE tax. - Why this diff: bf2c86b's new test explicitly treats a supplied
salt_deductionas including motor-vehicle taxes. The sales-election comparison, however, rebuilds that side fromreal_estate_taxesalone. PE's computedsalthas only income/sales and real-estate sources, so the gap arises only when a user suppliessalt_deduction. With a capped input, the uncapped personal-property amount cannot be recovered. - Impact: limited to API or emulator users who override
salt_deduction. No dataset path is affected. - Proposed severity: SUGGESTION. Document the assumption in the formula comment and test (a supplied SALT at the cap is treated as having no non-real-estate property taxes), or accept a personal-property-tax input if one is added later.
S4 — The np.round(deduction_benefit, 8) guard cannot remove float32 noise and no test pins it (OPEN)
- Location:
policyengine_us/variables/gov/states/nj/tax/income/property_tax/nj_taking_property_tax_deduction.py:96(98cf164). - Evidence: the formula computes in float32. One executed benefit came out as 231.85000610351562 for 231.85, so the error at these magnitudes is about 1e-5. Rounding to 8 decimals leaves that error in place. The tie test passes only because its float32 arithmetic lands on exactly 50.0, so removing the rounding also passes (trace from the executed value).
- Impact: at an exact $50/$25 tie whose float32 sum lands just below the threshold, PE would report the credit instead of the deduction. Net tax is equal at a tie, so the only effect is which of line 41 or line 56 is reported.
- Proposed severity: SUGGESTION. Round to cents (
np.round(deduction_benefit, 2)) or compare againstcredit_amount - 0.005.
Evidence Gaps
No material gaps reported.
Notes
- This round covers the nine author commits since the 11-06 review and one merge of main. All four round-1 should-address items and all four suggestions are resolved.
- Should 1 (Nebraska line 5a): Income taxes come out only when they exceed sales taxes and SALT exceeds min(cap, real estate + sales taxes), per the 1040N booklet's line 8 instruction. The 2025 witness now gives 30,000 / 670,000 and the 2024 homeowner case 25,000 / 125,000.
- Should 2 (NJ separate-filer half credit): Both the credit and the election divide by
1 + separate, as N.J.S.A. 54A:3A-20(b) says. The source conflict with Worksheet H line 8's same-home wording is recorded withfollows: statute. - Should 3 (NJ CTC boundary): The first threshold is
-.infandright=Trueis set at all three call sites, matching 54A:4-17.1(a) ("$30,000 or under ... not over $80,000"). This also resolves #10072, as aidansiegel noted. - Should 4 (unpinned terms): The local income tax split and the CDCC $30,000 case each fail without their term.
- The tie-break (deduction at a $50 tie) matches Worksheet H line 8 and the lines 7–8 instructions. The references now point to the dated booklets and compiled statutes.
- Merge 23774dc moved main's dependent-filer condition intact into
nj_ctc_qualifying_children.py, and no main entry was lost. The head merges cleanly with current main.salt_deductionitself is unchanged, so its other readers are unaffected.
Validation Summary
Local tests at the reviewed head (review venv, policyengine-core 3.37.2, matching uv.lock; imports resolved to the snapshot): the NJ and NE income tax folders, 588 passed, 0 failed. Diagnostics executed the Nebraska, NJ property tax and CTC boundary households and one mutant. Sources: Neb. Rev. Stat. 77-2716 and the 2021–2025 Form 1040N booklets; N.J.S.A. 54A:3A-17, 3A-20 and 4-17.1, P.L.2021 c.308 and the 2025 NJ-1040 instructions; manifest check passed. CI: 35/35 checks pass at bf2c86b.
Timing
setup seconds: 7.00s; scope seconds: 60.00s; parallel review seconds: 710.80s; policy role seconds: 285.00s; code role seconds: 710.80s; adjudication seconds: 90.00s; consolidation cleanup seconds: 85.00s; elapsed seconds: 1268.00s
Review Severity
COMMENT. Open findings: 0 critical, 1 should address, 4 suggestions.
PolicyEngine compares tax and refundable credits when it chooses the New Jersey property tax deduction or credit. For Nebraska filers who itemize, it uses federal Schedule A and infers the choice of taxes on line 5a from the amounts supplied.
Items
3. New Jersey property tax election
Eligible filers can elect the deduction or credit. PolicyEngine adds the tax saving and the change in the refundable child tax credit and child and dependent care credit. It chooses the deduction when that sum meets or exceeds the property tax credit. It uses half the property tax credit for each eligible spouse who files separately. Property tax credit statute · 2025 NJ-1040 instructions
A filer with one qualifying child and exactly $30,000 of taxable income gets a $1,000 child tax credit in 2023. They get $200 at exactly $80,000. The election uses the same brackets as the credit. 2023 child tax credit law · Child and dependent care credit law · Worksheet J and line 65
In the 2023 renter case, a single parent earns $33,000, pays $15,000 in rent and has one child aged 3. On main, the filer has $30,500 of taxable income, takes the $50 property tax credit and gets an $800 child tax credit. Their net New Jersey income tax is −$1,253.01.
The filer now takes the $2,700 deduction, has $416.50 in tax before credits and gets a $1,000 child tax credit. They have $27,800 of taxable income and −$1,450.26 of net New Jersey income tax. The $47.25 tax saving plus $200 in child tax credit exceeds the $50 property tax credit by $197.25.
PolicyEngine includes the dependent-filer condition from merged #10043 in
nj_ctc_qualifying_children.py. The election and the credit use that shared count.4. Nebraska itemized deductions
Nebraska filers enter the federal Schedule A total on Form 1040N line 7 (line 17 through 2025, line 18 on the 2026 draft). They remove the full income taxes on Schedule A line 5a, even when the federal cap limited their SALT deduction. They leave line 8 empty when they choose sales taxes. PolicyEngine infers an income-tax election only when income taxes exceed sales taxes and federal SALT exceeds the amount sales taxes would give. A supplied SALT total at the federal cap that includes vehicle taxes is still ambiguous. It floors line 9 at zero because filers take the greater of that amount and the standard deduction. Nebraska statute · 2024 Form 1040N instructions · 2025 Form 1040N instructions · IRS Schedule A instructions
Both elections give the first two filers the same $10,000 federal SALT deduction. Main applies the unreduced cap to the 2025 filer’s real estate taxes. In the third case, Nebraska removes $6,000 of state and $2,000 of local income taxes from $25,000 in federal deductions. 2025 IRS SALT worksheet
PolicyEngine includes allowed wagering losses in the Schedule A total after #10070 merged. In the 2024 case, $3,000 in wagering losses contributes to the $30,000 on line 7. In the 2026 case, the filer reduces line 7 by $3,000 under section 68 and still removes $12,000 on line 8. They deduct $40,500 in Nebraska. IRS instructions for other itemized deductions · Public Law 119-21
1. Iowa alternate tax
Not changed. Compare lines 7–11 of Iowa Alternate Tax Worksheet 41-145 with Iowa Code 422.5 for 2021–2022. The question covers filing statuses 3 and 4.
2. Virginia spouse tax adjustment
Not changed. Verify the shortcut against the 2021–2025 Form 760 Spouse Tax Adjustment Worksheet and its statutory basis. The cited section is Va. Code §58.1-332.
5. New York tuition
PR #10100 covers the tuition credit and deduction overlap. It changes
ny_deductionsto followny_itemizes. PolicyEngine #101006. Oregon standard deduction
Not changed. Confirm the rule for a filer whose spouse itemizes in ORS 316.695 and the OR-40 instructions.
7. New Mexico net capital gains
Not changed. Check the enacted 2025 version of NMSA 7-2-34 and the cited HB 37 and HB 252 for gains from business sales.
New Jersey tax table
Not changed.
nj_main_income_taxand the election both use the rate schedule, so the election minimizes the tax the model computes. The published table for taxable income below $100,000 can differ enough to decide a near tie. #11358 covers it.Tests
nj_taking_property_tax_deduction.yamlhas 16 passing cases. They cover the separate filer who takes the deduction against a $25 credit and the separate filer with a child who keeps the credit when the deduction saves $17.50.nj_property_tax_credit.yamlhas 4 passing cases.nj_ctc.yamlhas 35, andnj_ctc_qualifying_children.yamlhas 4.ne_itemized_deductions.yamlhas 13 cases.test_source_conflicts.pyhas 251 andtest_claimable_filer_nj_pa_invariants.pyhas 4.impact: not yet compared with main.
axiom: TheAxiomFoundation/rulespec-us#2037 and TheAxiomFoundation/rulespec-us#2038 queued
🤖 Generated with Claude Code