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.
|
Picking this up for the US hub. I'll post a hand-off comment here when it's ready. Generated by Claude Code |
Brings in the source-conflict guard and backlog files the round-2 recording needs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The statute does not settle whether rental real estate is a 32(i)(2)(C) rent or a 32(i)(2)(E) passive activity, so the model follows the IRS's reading in Publication 596 Worksheet 1 (lines 8-10 versus 11-12) and section 469(c)(2). The documentation now says so instead of framing it as a data limitation, and states the consequence: a rental real estate loss no longer offsets trust royalties. Two YAML cases pin it, including the review's witness (12,000 of trust royalties and a 5,000 rental loss give 12,000). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
P.L. 105-206 added the bar effective as if included in RRA 1990, so the earlier-years caveat is replaced with that history. A childless 2020 control shows the bar needs a qualifying child. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
elects_section_911_exclusion now serves only the broad 32(c)(1)(C) test, so its docstring no longer describes the refundable CTC bar. Worksheet B's comment names the 24(d)(3) bar, and the refundable CTC bar's documentation says the 2021 ARPA exemption is applied to every filer, which most section 911 claimants cannot meet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A claimable spouse aged 65 and blind with 2,000 of interest must file under 6012(f)(2)(D). A deduction-only section 911 filer with a residential clean energy credit runs through Worksheet B and keeps a 3,000 refund. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The three backlog entries now say the model follows the statute, list the deciding files and cite this PR. New candidates cover former 32(c)(1)(F), where rental real estate goes in the EITC test, and the 2021 abode test for section 911 claimants. The deciding comments now say plainly that the form conflicts with the statute, and those files are listed in KNOWN_UNMARKED until the register entries and markers land after merge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Ready for hub review Head: What was asked and how it's resolvedSol P2: nonbusiness rents and royalties. Documentation and code only; the formula is unchanged (hub ruling of 2026-10-20).
DTrim99 Should 1: record the conflicts (commit
Suggestion 1, former (F) history ( Suggestion 2, the rental consequence ( Suggestion 3, 2021 and §911 claimants ( Suggestion 4, documentation polish (
Suggestion 5, rulespec-us#1829. I didn't touch the issue. Proposed blocker line for F1, F2 and F4:
Suggestion 6, body. The Review section now says r1 was Opus 5.5 in plan mode and r2 was read-only, and that no review executed the tests before the shell-backed ones. It lists the shell-backed Sol review (REQUEST_CHANGES at
Peak memory wasn't measured. Suggestion 7, edge cases (
The body has a Round 2 table mapping each item to its commit. Tests (one file per process, at the head's tree)
Model computations (scratch script, household level)
MutantMoving CIPull request run 41400184227 at Judgment calls
Follow-ups to propose
Generated by Claude Code |
|
Ready for hub review Independent round-2 delta review of I found no P1 or P2 issues. The five P3 items below are documentation and register polish plus merge ordering. None changes a result. FindingsP3-1. The 2021 abode candidate's example isn't computed, but the model can compute it
Failure scenario. A reader of the backlog can't see how large the overstatement is. In the model, the 2021 claimant gets the whole $6,000 as a refundable credit. Replacement for the example: In 2021, a filer abroad all year with $30,000 of wages, all excluded under section 911(a), and two
qualifying children aged 7 and 9 gets $6,000 of refundable child tax credit in the model; under the statute
subsection (d) applies, and the (d)(3) bar denies the refundable part.and in the note, replace "Example not computed by the model." with "The model gives the $6,000 figure." P3-2. The housing-deduction candidate still hedges the reading the code now follows
Failure scenario. A reader of the register entry made from this candidate takes the statutory reading as doubtful. Replacement: statute: Section 24(d)(3) bars only a taxpayer who elects to exclude an amount under section 911; the section
911(c)(4)(A) housing deduction is a deduction, claimed without an election (Treas. Reg. 1.911-7(a)(3)), so it
alone does not trigger the bar.P3-3.
|
| File | Result |
|---|---|
eitc_investment_income_estate_trust.yaml |
24 passed |
eitc_relevant_investment_income.yaml |
27 passed |
eitc_eligible.yaml |
15 passed |
tax_unit_is_required_to_file_dependents.yaml |
60 passed |
refundable_ctc.yaml |
17 passed |
ctc_credit_limit_worksheet_b_applies.yaml |
11 passed |
refundable_ctc_barred_by_section_911_exclusion.yaml |
14 passed |
code_health/test_source_conflicts.py |
103 passed |
core/test_dependent_eitc_investment_income_invariants.py |
3 passed |
core/test_filing_requirement_dependent_invariants.py |
5 passed |
git diff --check 97b6d5135c HEAD is clean. No changed variable has a line over 88 characters, so the long line DTrim99 flagged near eitc_relevant_investment_income.py:133 is rewrapped. CI run 41400184227 at 22e92cc032 passed all 34 jobs, with none skipped or cancelled.
Mutants. Each ran on a scratch worktree, which I restored and confirmed clean with git status --porcelain.
- A, the hand-off's mutant: move
rental_incomefrom the passive basket into the (C) basket. It fails 5 of 24 cases ineitc_investment_income_estate_trust.yaml, matching the hand-off's count. Run alone, both new cases fail ("A rental real estate loss does not offset trust royalties, so the couple loses the credit" and "A rental real estate loss with interest and trust royalties stays in the passive basket"). - B, mine: switch the CTC bar back to the broad
elects_section_911_exclusion. It fails 2 of 17 inrefundable_ctc.yaml. Run alone, the new case "A filer claiming only the housing deduction completes Worksheet B with a residential clean energy credit" fails. - C, mine: put Table 2's addition back on the 2018–2025 joint test (
joint & False). It fails 3 of 60 intax_unit_is_required_to_file_dependents.yaml. Run alone, the new case "2025, a claimable spouse aged 65 and blind must file with $2,000 of interest" fails. - D, mine: drop the has-qualifying-child condition from the (F) bar. Run alone, the new control "2020 filer with no qualifying child at all keeps the childless credit" fails.
The guard. I ran the guard's own _unmarked_conflict_comments() on the merged head. It counts exactly 1 for each of the four files given : 1 in KNOWN_UNMARKED:
ctc_credit_limit_worksheet_b_applies.py:38;eitc_relevant_investment_income.py:148;eitc_eligible.py:41;tax_unit_is_required_to_file.py:130.
It counts 0 for the PR's other scanned files: section_911.py, refundable_ctc_barred_by_section_911_exclusion.py, estate_royalty_income.py, tax_unit_is_filer.py and the new parameter. The new entries are sorted. The comments say "conflicts with the statute" plainly rather than dodging the pattern, which is the sanctioned in-flight path.
Candidates. All six pass the guard's schema (follows and state take values from the guard's allowed sets, and every code path is tracked).
us:additional-child-credit-housing-deduction-bar:follows: statute. Its code list matches the deciding files, includingctc_credit_limit_worksheet_b_applies.py, and Follow the statute where IRS forms differ: refundable CTC housing deduction, joint filing test, EITC trust royalties, former 32(c)(1)(F) #10297 is added. P3-2 covers the stale "arguably".us:eitc-trust-royalties-investment-income:follows: statute, addsestate_royalty_income.py, Follow the statute where IRS forms differ: refundable CTC housing deduction, joint filing test, EITC trust royalties, former 32(c)(1)(F) #10297 added. The note matches the formula: a separate basket, floored at zero.us:filing-claimable-spouse-unearned-income-additions:follows: statute. The note matchesstatutory_joint_test, which isjoint & standard_deduction_rule.applies, true 2018–2025.us:eitc-qualifying-child-identification-bar: years 2018–2020, the years of the instructions compared. The example matches my run ($0 vs $459).us:eitc-rental-real-estate-basket:gap-fill,ruled, matching the hub's ruling. The example matches my run (12,000/$0 vs 7,000/$4,328). Itsyears.from: 2018is narrower than the code's reach: the classification applies in every year. That's harmless for a backlog entry, but the register entry should say why 2018.us:additional-child-credit-2021-abode-section-911:not-modelled. P3-1 gives the computed example.
Each DTrim99 item against its commit:
- Should 1. Resolved: the candidates, the (F) candidate, plain comments,
KNOWN_UNMARKED, and the IRS-processing line in the body. The comment attribution is off (P3-4). - Suggestion 1. Resolved in
c9ae810689: the parameter comment gives the history, and the childless 2020 control is added. I couldn't confirm the history's text; see below. - Suggestion 2. Resolved in
32be34f9e6and22e92cc032. The documentation states the consequence, "a rental real estate loss offsets other passive income but not estate and trust royalties". The candidate is added, and DTrim99's example is pinned. - Suggestion 3. Resolved in
c24a8c0715and22e92cc032, with no code change. The documentation sentence atrefundable_ctc_barred_by_section_911_exclusion.py:16matches the formula:bar_in_forceis false wheneverfully_refundableis true, which is 2021 only. My run confirms that the model overstates the 2021 credit ($6,000 refundable). - Suggestion 4. Resolved:
- The
elects_section_911_exclusiondocstring names the EITC, the state EITC helpers, the New Jersey childless EITC andtax_unit_is_filer. A grep of non-test code finds exactly those callers:eitc_eligible.py,tools/state_eitc_helpers.py,nj_childless_eitc_age_eligible.pyandtax_unit_is_filer.py. The §24(d)(3) and Schedule 8812 references moved toexcludes_amount_under_section_911, whose only caller isrefundable_ctc_barred_by_section_911_exclusion.py. - The Worksheet B comment now says what DTrim99 asked.
- The
- Suggestion 5. Deferred to the hub by design. The hand-off proposes a blocker line.
- Suggestion 6. Resolved. The body's Review section is corrected. The CI timings match the
--durationsoutput in the job logs:- main run 39334519568, job 118397218840;
- PR run 39365247045, job 118459687145;
test_table_2_boundary_grid0.67 s → 1.28 s; seeded EITC population 0.54 s → 0.76 s (2021) and 0.54 s → 0.75 s (2025); differential 2.09 s → 2.50 s.
- Suggestion 7. Resolved in
c0b52bef79, hand-checked above. - Sol P2. Resolved as the hub ruled: documentation, comment and the two YAML witnesses. The second case the brief asked for, with royalties netted against their own allocable deductions, can't be written:
estate_royalty_incomeis defined as already net of them, and the model has no deduction input. The hand-off says so.
Readers.
refundable_ctc_barred_by_section_911_exclusionis read byrefundable_ctc,ctc_credit_limit_worksheet_b_applies,co_refundable_ctc,pr_refundable_ctc, and the Wyden-Smith and AFA reforms.ctc_credit_limit_worksheet_b_appliesis read byctc_limiting_tax_liability,residential_clean_energy_credit_credit_limitandok_federal_ctc.eitc_relevant_investment_incomeis read by:eitc_investment_income_eligibleandtools/state_eitc_helpers.py;- the CA, IN, WI, MO, WA (two variables), OK and NYC credits;
- the MT HB268 reform.
eitc_eligibleis read byeitc,nj_eitc,ca_sf_wftcand the Winship reform.tax_unit_is_required_to_fileis read bytax_unit_is_filer,eitcandtools/state_eitc_helpers.py.estate_royalty_incomeand the new parameter each have one reader.
None of these readers changed in round 2, and round 1 already reviewed them. I found no reader that the round 2 commits make reachable and worse.
Scope and body.
- Nothing under
.github/orpolicyengine_us/tests/policy/baseline/partners/changes. - The changelog fragment is top-level.
- The
axiom:line is present and unchanged. - The body has no
impact:line in that exact form, but its "Impact" section gives the hub's measurement.
What I couldn't check
-
Primary sources. This VM couldn't reach irs.gov, govinfo.gov or uscode.house.gov (CONNECT refused; WebFetch found irs.gov outside the allowed network), and a web search gave no usable text. So I couldn't confirm any of these against the source:
- Publication 596 Worksheet 1 lines 8–13, including the "NPA" marking and whether lines 11–12 take Schedule E line 26 rather than only the passive estate columns 34a(d) and 34b(c) that DTrim99 quoted;
- §469(c)(2);
- P.L. 105-206 §6021(b)(2) and (c)(2), and P.L. 108-311 §205(b)(1).
The wording at
eitc_relevant_investment_income.py:40-61and:148, and the parameter comment, match the hub's ruling and DTrim99's quotes. Nobody has yet confirmed them against the source in a session that could reach it, the author included. The hub should check Worksheet 1 lines 11–12 in particular before the register entry is written. One search snippet placed Worksheet 1 on page 13 of the 2025 PDF, while the references use#page=7. That snippet came from an unofficial site, but the anchor deserves a look too. -
Population impact. No microsimulation ran here. The no-change claim rests on the formula being identical to the measured head, which I confirmed from the diff.
-
Peak memory of the expanded property tests. CI doesn't report it.
-
test_dependent_eitc_investment_income_invariants.pyandtest_filing_requirement_dependent_invariants.pyneededhypothesis(a dev extra) added to the environment before they ran.
Generated by Claude Code
Both sides changed source_conflicts/candidates.yaml at us:education-benefits-joint-claimed-spouse. Keep main's shorter note, since main moved the student loan half to its own entry, and keep this PR's two new entries after it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ng deduction reading plainly The delta review ran the 2021 filer through the model, so the entry can give the figure. The entry already follows the statute, so "arguably" no longer fits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thanks for the review. The Round 2 table in the body answers each item, and source_conflicts/candidates.yaml now records the conflicts. A delta review approved at 22e92cc, and the head adds a merge of main and two register notes.
|
US + core hub merge audit, us#10297 at
|
#10297's 2026 joint case, a claimed spouse aged 65 with $2,000 of interest, expected no return. Under (A)(iv) the head must file in 2026, since the head's own $0 equals the zero exemption amount. Run the case in 2017, with its $4,050 exemption amount, and add a 2026 case with the same inputs that expects a return. Limit the docstring's zero-income rule for separate filers to 2026 on, record the 2026 ruling in the source-conflict note, and drop a repeated `joint` assignment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… every 2026 filer (#10590) * Keep ABLE contributions in the saver's credit and apply the 2027 rules Pub. L. 119-21 preserves ABLE contributions by the designated beneficiary in the section 25B credit, which main dropped from 2026. From 2027 the credit covers ABLE contributions only, with a $2,100 cap, and 25B(d)(2) reduces them by relevant ABLE distributions rather than retirement-plan distributions; a new person input records those. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6K4grkKNkfjkW6hbaN * Apply the 6012(a)(1)(A) and (B) threshold to every 2026 filer From 2026 section 6012(a)(1)(A) excuses a return only when gross income is less than the exemption amount plus the basic standard deduction. With a zero exemption amount, a married individual filing separately has no exception, so even $0 of gross income requires a return; main kept a positive-income gate. Subparagraph (C) withdraws the (A) exception from a filer who can be claimed in further cases; it does not replace (A), so a claimable filer meets the (A) threshold too, with the section 63(c)(5) limited basic deduction and the age-only addition. Tests and invariant references that endorsed the zero-income exemption or the dependent bypass are updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6K4grkKNkfjkW6hbaN * Describe both 2026 fixes in the changelog fragment Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6K4grkKNkfjkW6hbaN * Apply 6012(a)(1)(A)(iv)'s claimable-spouse exclusion and (C)(ii) Under 6012(a)(1), clause (iv) does not apply when another taxpayer is entitled to an exemption for the spouse, so on a joint return the other spouse has no exception and must file once their own gross income reaches the exemption amount ($0 from 2026). And (C)(ii) withdraws the (A) exception when section 63(c)(6) zeroes the standard deduction, which the age addition could otherwise revive. 6012(f), 2018 to 2025, is unchanged. Adds hand-computed YAML cases for 2026 and 2017 and Hypothesis properties for joint returns, and drops an internal id from a comment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6KWdpQsFeBJEmuZXhx * Drop internal decision ids from filing requirement test comments The comments keep their meaning; the ids point to records outside the repository. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6KWdpQsFeBJEmuZXhx * Describe (C)(i)(II) as the statute does, widen ABLE input docs, anchor a claimable head The 2017 (C)(i)(II) comments called the code's pre-2018 threshold, which adds the exemption amount, the statute's test; the statute compares gross income with the standard deduction alone, and 6012(a)(1)(D)(ii) zeroes the exemption amount for a 151(d)(2) individual. No formula change. able_contributions_person also feeds able_contributions, which Arizona and Colorado subtract, so its documentation no longer limits it to a beneficiary's own contributions. Property 8 passed with the (A)(iv) exclusion applied only for a claimable spouse; a joint anchor with the claimable adult as head, and an assertion that such a row exists, now catch that. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Reduce saver's credit contributions by ABLE distributions in every year 25B(d)(2)(A) reaches distributions from any entity that can take (d)(1) contributions, and ABLE accounts take them through 2026 too, so the 2018 distribution list now holds the relevant ABLE distribution input beside retirement_distributions. New 2023, 2026 and 2027 cases pin the list on each side of the 2027 change. Also correct review text without moving expected values: the (C)(ii) case now says it pins the model's separate_filer_itemizes rule rather than law for a head of household; the 2017 (iv) comments name (D)(ii); the ABLE input documentation says the saver's credit counts the whole amount; stale "open" and "stay clear" sentences on the 2026 rule are updated; and the source-conflict candidates match the 2026 code, with a row for the statute-over-Chart-B ruling. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6FzZjERFUaWqE3b64t * Move the (C)(i)(I) joint case to 2017 and pin 2026 under (A)(iv) #10297's 2026 joint case, a claimed spouse aged 65 with $2,000 of interest, expected no return. Under (A)(iv) the head must file in 2026, since the head's own $0 equals the zero exemption amount. Run the case in 2017, with its $4,050 exemption amount, and add a 2026 case with the same inputs that expects a return. Limit the docstring's zero-income rule for separate filers to 2026 on, record the 2026 ruling in the source-conflict note, and drop a repeated `joint` assignment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
#10297's `qualifying_child_without_identification_bar` already encodes ARPA section 9622, so `eitc_demographic_eligible` reads it and this PR's complement goes. Move the federal cases to a file named for the variable. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… 2021 (#10583) * Let a qualifying child without an SSN establish EITC eligibility from 2021 IRC 32(c)(1)(A)(i) makes an individual with a qualifying child an eligible individual; 32(c)(3)(D) and (m) leave a child without a valid SSN out only of the amount under subsection (b). ARPA section 9622 struck former 32(c)(1)(F) from 2021. The model based eligibility on the SSN-filtered count, so such a parent under 25 failed the childless age test and got nothing. Eligibility now also counts the identification- independent qualifying child from 2021; the amount still uses the filtered count, giving the zero-child schedule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Give the under-25 DC case the federal self-only credit and DC's match From 2021 a filer whose only qualifying child lacks a TIN is an eligible individual under IRC 32(c)(1)(A)(i), so the federal credit is the zero-child $459. D.C. Code 47-1806.04(f)(4) keeps the child a qualifying child, and (f)(1)(B-1) allows 70% of that credit: $321.30. Update the with-child formula's comment to match. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Merge remote-tracking branch 'origin/main' into eitc-no-ssn-child-age-test * Pin both NJ EITC routes, make the no-SSN property test search, and fix a page range The property test now leaves qualifying-child status to the formulas and compares each filer with an age-40 childless twin, so it fails if the no-SSN child stops establishing eligibility or if the head counts as a qualifying child. The pre-2021 property becomes an upper bound that holds whether or not former 32(c)(1)(F) is modeled. Two NJ cases pin 54A:4-7(a)(1) for the federally eligible parent and (a)(4) for the childless filer under the federal age floor. 32(c)(3)(D) is on file page 3 of the 2021 Code PDF. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Search the EITC property at its age boundaries and with a TIN Round 2's mutants found that random ages rarely reach 64 and that no property case had a child with has_tin false. The New Jersey parent case also pinned nj_childless_eitc_age_eligible at a value the ruling rejects; nj_eitc alone kills the same mutant. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Merge main: keep both sides' NJ EITC cases and pin the federal credit beside them nj_eitc.yaml conflicted because both sides appended cases; both are kept, main's first. With this branch, a child without an SSN makes main's two NJ separate filers federally eligible (zero-child 612 in 2025), so those cases now say so and pin eitc 612; nj_eitc stays 0 under N.J.S.A. 54A:4-7a.(3). Adds a 2021 married separate case to the federal witness file so the #10307 marital exception and this branch's demographic rule are tested together. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Expect the federal zero-child credit for the separated CA parent whose child lacks an SSN Main's case from #10307 expected eitc_eligible false for a 2025 separated parent aged 20, since the parent is under the childless minimum age. On this branch the child without an SSN establishes federal eligibility from 2021 (IRC 32(c)(1)(A)(i)) while staying out of the amount, so the parent gets the zero-child 649. The CalEITC outputs do not move. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Read main's EITC identification bar instead of a second parameter #10297's `qualifying_child_without_identification_bar` already encodes ARPA section 9622, so `eitc_demographic_eligible` reads it and this PR's complement goes. Move the federal cases to a file named for the variable. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Merge main into EITC child without SSN Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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. Rental real estate stays in the passive basket (see Readings).Pulled out
The IRS processes returns under the form's version for all four items, so the model's results differ from the IRS's for households at those edges.
Readings
rental_income) is an (E) passive activity; trust royalties are a (C) basket of their own, so a rental real estate loss doesn't offset themus:eitc-rental-real-estate-basketSource conflicts
source_conflicts/candidates.yamlnow records each item withpe_us.follows: statute, its deciding files and this PR:us:additional-child-credit-housing-deduction-bar,us:filing-claimable-spouse-unearned-income-additions,us:eitc-trust-royalties-investment-incomeand the newus:eitc-qualifying-child-identification-bar. Two more candidates record readings:us:eitc-rental-real-estate-basket(gap-fill, above) andus:additional-child-credit-2021-abode-section-911(not modelled: the 2021 ARPA §24(i)(1) exemption is applied to every filer, which most §911 claimants can't meet). The deciding comments say plainly that the form conflicts with the statute, and their four files are inKNOWN_UNMARKEDuntil the register entries and# Source conflictmarkers land after merge (the register records only code on main).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
7b1af2d5b2): served by Opus 5.5 in plan mode, with no shell. Items 1-3 confirmed, §129 sent to a decision, documentation findings fixed.de6830ab07): GPT-6.1 Sol in a read-only sandbox; it rangit diff --checkbut stopped the YAML run before any test completed. APPROVE.de6830ab07: REQUEST_CHANGES, one P2 (rents and royalties netting); execution was incomplete (16 passing cases inrefundable_ctc.yamland the isolated investment income formulas).de6830ab07: REQUEST_CHANGES, no critical items, one should-fix (record the conflicts) and seven suggestions. Round 2 below answers each.22e92cc032(Opus 5.5, shell-backed, ran the tests and four mutants): APPROVE, five P3 notes. It ran the witnesses through the model, but its VM couldn't reach the primary sources.Round 2
32be34f9e6KNOWN_UNMARKEDentries; IRS-processing line above22e92cc032(candidates,KNOWN_UNMARKED, two comments);c24a8c0715,32be34f9e6(the other two comments)c9ae810689us:eitc-rental-real-estate-basket32be34f9e6,22e92cc032us:additional-child-credit-2021-abode-section-911; no code changec24a8c0715,22e92cc032elects_section_911_exclusiondocstring, Worksheet B comment, rewrapped (C) commentc24a8c0715,32be34f9e6c0b52bef79Main was merged in at
e9e238e81fand4cf2630e10.f7f94adbbegives the 2021 abode candidate a computed example and states the housing deduction reading plainly.CI cost of the two expanded property tests (pytest
--durationsfrom the Python Rest job; main79249f0fearun 39334519568 vs headde6830ab07run 39365247045):test_table_2_boundary_grid0.67s → 1.28s; the seeded EITC population 0.54s → 0.76s (2021) and 0.54s → 0.75s (2025); the dependent differential 2.09s → 2.50s. Peak memory wasn't measured.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.
impact: none on the default dataset in 2025 or 2026 (see Impact); the formulas match the measured head
axiom: TheAxiomFoundation/rulespec-us#1829 queued (pe-parity; every provision needs encoding)
🤖 Generated with Claude Code