Repository navigation
Follow the statute where IRS forms differ: refundable CTC housing deduction, joint filing test, EITC trust royalties, former 32(c)(1)(F) - #10297
Conversation
…ling test Section 24(d)(3) bars the refundable child tax credit only for a taxpayer who "elects to exclude any amount from gross income under section 911"; the section 911(c)(4)(A) housing deduction is a deduction, not an exclusion. The Schedule 8812 instructions bar every Form 2555 filer. For 2018-2025, section 6012(f)(2)(D) tests a claimable spouse on a joint return against the section 63(c)(5)(A) amount alone; Chart B adds the additional standard deduction for age or blindness. Under the statute-first rule (statute governs where it conflicts with a form or instructions), the model now follows the statute in both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Section 32(i)(2)(C) counts rents and royalties not derived in the ordinary course of a trade or business, and section 662(b) keeps a trust's character for its beneficiaries. Publication 596 Worksheet 1 line 8 takes royalties only from Schedule E line 23b, leaving out royalties received through a Schedule K-1 (Form 1041) box 5. Add estate_royalty_income (a classification of estate_income, default zero) as its own basket, floored at zero, and extend the EITC investment income invariants with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Section 129(b)(1)(B) limits the dependent care assistance exclusion of an employee married at the end of the year to the lesser of the employee's and the spouse's earned income. Section 129(a)(2)(C) imports the section 21(e)(4) living-apart rule only for the dollar cap; the Form 2441 line 19 instructions extend it to the earned income limit. Add absent_spouse_earned_income (defaulting to the existing limit, so results change only when it is supplied) and apply it to separate filers and separated heads of household. Extend the exclusion invariants with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Former 26 U.S.C. 32(c)(1)(F) denied the EITC to an eligible individual with qualifying children none of whom is taken into account because of the identification requirement of 32(c)(3)(D). The 2018-2020 Form 1040 instructions instead route such a filer to the credit without a qualifying child. ARPA section 9622 struck the subparagraph from 2021. Add a parameter (true through 2020) and the bar in eitc_eligible; 2020 example: $0 under the statute, $459 on the instruction route. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…income" This reverts commit 7b1af2d.
Review r1 follow-ups: the 32(i)(2)(C) basket holds only estate and trust royalties because the model has no direct-royalty input; cite section 652(b) alongside 662(b); note the royalty input is not checked against estate_income; update the tax_unit_is_filer comment for the narrower 24(d)(3) bar; name ARPA section 9611 for former 24(i); and note the legacy section 911 aggregates in the changelog. The section 129(b) change moves to a decision (statute ambiguous on "married"). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Hand-off to the US + core hub (statute-first backlog session).
|
PR Review: Follow the statute where IRS forms differ: refundable CTC housing deduction, joint filing test, EITC trust royalties, former 32(c)(1)(F)PR #10297 (author: MaxGhenis). Head SummaryThe PR moves four federal income-tax items from what the IRS forms say to what the Internal Revenue Code says. On the law, all four changes are right, and the encoding matches the statute in every year the PR claims, including the TCJA, ARPA and OBBBA changes.
All four are genuine conflicts, and in each the IRS processes returns under the form's version: the Schedule 8812 instructions, Chart B, Publication 596 Worksheet 1, and the 2018–2020 Form 1040 EIC steps. The statute controls each time, and the PR follows it. Open items:
Critical (must fix)None. Should address1. The four statute-vs-IRS conflicts aren't recorded, and the backlog still says the model follows the forms. In each case below, the statute wins and the PR's code is right. The finding is about recording, not code. (a) Refundable CTC and the housing deduction. The statute wins.
(b) Joint filing test. The statute wins.
(c) EITC trust royalties. The statute wins.
(d) Former §32(c)(1)(F). The statute wins.
What's missing.
Fix.
Suggestions1. Former §32(c)(1)(F): replace "earlier years are not separately verified".
2. A direct rental loss can no longer offset trust royalties (documented, but the consequence isn't stated).
3. 2021 and section 911 claimants (pre-existing).
4. Documentation polish.
5. rulespec-us#1829: name the blocker.
6. PR body.
7. Optional edge tests.
Verified correct
Axiom line assessmentThe line
CI statusPer
Branch status
Verdict: REQUEST_CHANGES |
DTrim99
left a comment
There was a problem hiding this comment.
All four statute-over-form changes are correct in every claimed year (24(d)(3); 6012(f)(2)(D) for 2018-2025; 32(i)(2)(C) with 652(b)/662(b); former 32(c)(1)(F) through 2020). 18 expectations hand-check, and the merged tree passes the #10287 ratchet. One should-address item: none of the four genuine conflicts (the IRS administers the form's version) is recorded. Update the three stale candidates.yaml entries, add a candidate for (F), and note the IRS processing difference in the body. Seven suggestions. Full report in the comment above.
Federal income tax items where the model followed an IRS form or instructions against the statute. Under the statute-first rule (where a statute conflicts with a form, instructions or agency practice, the model follows the statute; forms fill gaps only where the statute is silent), each moves to the statute.
Changes
estate_royalty_income(a classification ofestate_income, default zero) forms the (C) basket, floored at zero. The model has no input for direct royalties, so the basket holds only these.Pulled out
Invariants (property tests)
test_filing_requirement_dependent_invariants.py): on a 2025 joint return the unearned income test is over $1,350 whatever either spouse's age or blindness (the grid now includes aged and blind claimed spouses); lower bound, monotonicity and split invariance as before.test_dependent_eitc_investment_income_invariants.py): a differential against an independent numpy worksheet that now includes the royalty basket; dependents' income never moves the filer's test; a loss in one basket never reaches another. The seeded population exercises every basket.Review
GPT-6.1 Sol r1 (7b1af2d): items 1-3 confirmed, §129 sent to a decision, documentation findings fixed. r2 (de6830a): APPROVE.
Impact
Hub microsimulation on the default dataset, main
79249f0feaagainst headde6830ab07, under the heavy lock.2025 and 2026: no record changes. Nothing moved in
refundable_ctc,eitc,tax_unit_is_filer,eitc_relevant_investment_income,income_tax,state_income_tax,household_net_incomeorhousehold_benefits. No default-dataset record has the facts these items change.2020, the years item 4 covers: 2020 can't be measured on the default dataset: it carries essentially no 2020 data (household net income sums to $0.22bn there, against $15.2T in 2024). The YAML witnesses carry those years.
axiom: TheAxiomFoundation/rulespec-us#1829 queued (pe-parity; every provision needs encoding)
🤖 Generated with Claude Code