Repository navigation
Conversation
D.C. Law 26-189 (FY2027 Budget Support Act; emergency D.C. Act 26-416) adds D.C. Code 47-1803.04(e)(3)-(6): from tax year 2026 DC allows the federal deductions for qualified tips, qualified overtime, personal car loan interest and the enhanced senior deduction, in computing the net income of any individual. Add them to the DC deduction through a dated list, so 2025 and earlier do not change, and let dc_deduction_indiv allocate them between spouses filing separately on one return like the rest of the deduction. 47-1801.04(3A)(B) sets the base year of the basic standard deduction's cost-of-living adjustment to 2025, so the 2026 adjustment is zero and the 2025 amounts apply. From 2030, 47-1801.04(44)(C)(vi) returns DC to the federal standard deduction. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…idate D.C. Code 47-1803.04(a)(1) places the subsection (e) deductions in a parenthetical after "itemized deductions", while (e) allows them "in computing net income of any individual". Record the reading this PR takes (every filer) with its sources, and point the parameter's fiscal impact statement reference at the pages that describe the deductions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #10806 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 4 +3
Lines 37 69 +32
=========================================
+ Hits 37 69 +32
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
D.C. Code 47-1803.04(e)(5) and (6) allow only the deduction allowed under IRC 163(h)(4) and 151(d)(5)(C), and both sections allow none for taxable years beginning after December 31, 2028. The federal variables carry no date gate (the federal deduction lists drop them from 2029), so DC kept allowing them. The DC list now keeps only the tips and overtime deductions from 2029, whose in_effect parameters zero them, as the federal lists do. Adds 2029 cases and limits the source-conflict candidate to 2026-2028. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…path The round-2 review found that removing the 2026 SEPARATE ($15,000) or SURVIVING_SPOUSE ($30,000) basic standard deduction passed every test, and that only an input-level case checked the overtime deduction. Add a case for each amount, and a household case with $90,000 of wages, an $8,000 overtime premium and $3,000 of qualified vehicle loan interest: DC's additional deductions are $11,000 and its tax before credits $3,840. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR Review: Apply DC's 2026 deductions for tips, overtime, car loan interest and seniorsSummaryThe PR implements three parts of the Tax Code Conformity and Clarification subtitle (Title VII, Subtitle I) of DC's FY2027 Budget Support Act:
I researched the law before reading the code. I read the enacted text in D.C. Act 26-416, the codified 47-1803.04 and 47-1801.04, the CFO's fiscal impact statement, OTR's 2025 D-40 booklet and 2026 D-40ES booklet, and 26 U.S.C. 151, 163, 224 and 225. The model matches the statute:
The PR applies the four deductions to standard-deduction filers too, not just itemizers. That is the better reading, and the PR records it as a There are two Should items, both small:
I ran no Python or tests. Each claim rests on one of these:
Critical (must fix)None. Should address1. The 2029 The 2029 list keeps tips and overtime "so a reform that extends them also reaches DC", as the comment at lines 14-19 and the PR body say. No test covers that:
Fix: add one 2029 unit case to - name: 2029, DC still follows the federal tips and overtime deductions if federal law allows them.
period: 2029
input:
state_code: DC
tip_income_deduction: 1_000
overtime_income_deduction: 2_000
output:
dc_additional_deductions: 3_0002. The 2026 basic standard deduction is a statute-vs-form choice with no
I agree with following the statute. The booklet came out before the act and reflects the CFO's earlier view that 2026 followed federal law. But CONTRIBUTING.md#source-conflicts says that when a statute conflicts with a form, the statute wins and "every such conflict belongs in the register". Step 1 is a Fix: add a second candidate, for example
Suggestions1. Confirm and cite the permanent law. The PR body, the changelog fragment and the candidate's citation name "D.C. Law 26-189, effective October 2, 2026". I could not open it:
Every 2. Record the second consequence of the reading in the candidate's note (
3. A page in a reference title ( 4. Stale section in a reference the PR extends ( 5. Comment wording ( Verified correctLaw (S). Everything quoted here is text I read.
Mechanics (R).
Hand checks (H). DC rates: 4% to $10,000; $400 + 6% to $40,000; $2,200 + 6.5% to $60,000; $3,500 + 8.5% to $250,000. The federal additional standard deduction for age is $1,650 married / $2,050 unmarried in 2026, and $1,600 / $2,000 in 2025 (
Related, outside this PR (R). The same subtitle's 85% DC EITC match for 2026-2028 ((f)(1)(B-2)(ii)) is already on Axiom line assessment
CI statusAll 38 checks pass at
Branch statusThe branch is 4 commits ahead of
Verdict: REQUEST_CHANGES |
DTrim99
left a comment
There was a problem hiding this comment.
Requesting changes: 0 critical, 2 should address, 5 suggestions (details in the report above). The model matches D.C. Act 26-416 §§ 7112-7113: the deductions start in 2026 with the federal amounts and phase-outs and end after 2028. It reuses the federal variables, and all 11 hand checks match.
- The 2029 tips and overtime entries in
sources.yamlhave no case. A 2029 case with tip and overtime inputs, expecting their sum, would pin them. - The Limits section names a choice between the statute and OTR's 2026 D-40ES: line 2b prints the federal $16,100/$24,150/$32,200. That choice isn't in
source_conflicts/candidates.yaml; it needs its own candidate under CONTRIBUTING's source-conflict steps.
Itemizers now put the four federal deductions in DC's nonexempt itemized pool before the 5% reduction; standard-deduction filers deduct them alongside the standard deduction. Cites the permanent D.C. Law 26-189, adds a 2029 tips and overtime case, a candidate for the 2026 basic standard deduction, and captures of the act, D-40, D-40ES, D.C. Code and fiscal impact statement passages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 2029 header now says what the case checks, and the household-example heading no longer limits itself to 2025 and 2026. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The D-40 reference title in the DC standard deduction amounts no longer carries a page (the href keeps it), and `dc_standard_deduction` cites 47-1803.04(b), which now holds the rule that neither spouse gets the standard deduction when one itemizes on a separate return. No output changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Should 1 b16cd25d07 adds your 2029 case to Should 2 The same commit adds Suggestion 1 The Law Library now publishes D.C. Law 26-189 (Act 26-418, effective Oct. 2, 2026), and the codified 47-1803.04 credits it for sec. 7112(e). b16cd25 cites it in place of Act 26-416 in every reference, comment and test header in the PR, and in the changelog and both candidates. Suggestion 2 b16cd25 also reverses the order. Your note named the consequence: if (a)(1) folds the (e) deductions into itemized deductions, the (c)(2) reduction reaches them. (a)(1) does fold them in: it allows "itemized deductions (including the additional deductions set forth in subsection (e) of this section, if applicable)". (c)(2)(A) reduces "the amount of the itemized deductions otherwise allowable", and (c)(2)(B)(ii) exempts only medical, investment interest and casualty, theft and wagering losses. So OTR's Schedule I practice, which you tied the old order to, cuts against the new order for itemizers: the 2025 D-40 subtracts the (e)(1) and (e)(2) amounts before DC AGI, outside Calculation F's reduction. The text settles where an itemizer takes the (e) deductions, though not who gets them, so the statute governs here: CONTRIBUTING puts the statute first and lets the agency break only true ties. The candidate's note and the body's Limits record the practice. If OTR's 2026 forms put the four new deductions on Schedule I, an itemizer above the threshold keeps amounts the model reduces. Suggestions 3 to 5 faadc34e17 drops the page from the D-40 reference title in Tests at faadc34e17
TheAxiomFoundation/rulespec-us#2163 now has output 4 in this order, cites D.C. Law 26-189, and adds the $250,000 itemizer and the 2029 case as companion cases 9 and 10. |
DTrim99
left a comment
There was a problem hiding this comment.
Program review
Base repository: PolicyEngine/policyengine-us
PR number: 10806
Reviewed head SHA: faadc34
Merge base SHA: 3386304
Mode: full, with a recheck of David's earlier review (head bfd9554)
Scope: changed behavior and affected dependencies
Source manifest: /private/tmp/policyengine-command-runs/ea33c0bb2b64/pr-10806-review-sources.json
Review status: COMPLETE
Source Documents
- law-26-189.html — cached original.
- code-47-1803.04.html — cached original.
- code-47-1801.04.html — cached original.
- code-47-1803.02.html — cached original.
- d40-2025.pdf — cached original.
- d40es-2026.pdf — cached original.
- fis-bsa-2027.pdf — cached original.
- otr-notices.html — cached original.
- afs-alert.html — cached original.
- ntu.html — cached original.
- kiplinger.html — cached original.
Critical
None.
Should Address
A1 — The federal senior-deduction extension reform never reaches DC, because the DC list hard-codes the 2029 sunset (OPEN)
- Severity: SHOULD ADDRESS (current-law baseline is correct; this affects a reform shipped in the repo)
- Location:
policyengine_us/parameters/gov/states/dc/tax/income/deductions/additional/sources.yaml:20-22(2029 entry dropsadditional_senior_deductionandauto_loan_interest_deduction); read byvariables/gov/states/dc/tax/income/deductions/dc_additional_deductions.py:26 - Trigger: 2029, single filer aged 70 with $40,000 of pension in DC, with
policyengine_us.reforms.crfb.senior_deduction_extensionapplied. That reform extends the senior deduction past 2028 by addingadditional_senior_deductionback to the federaldeductions_if_itemizinganddeductions_if_not_itemizinglists from 2029. - Expected vs observed: the new D.C. Code 47-1803.04(e)(6) allows "any deduction for an enhanced senior deduction allowed under § 151(d)(5)(C)" for every year after 2025, with no end date of its own. So when federal law allows the deduction, DC should allow it too. Executed: under the reform, federal taxable income falls from $20,600 to $14,600 (the $6,000 senior deduction applies). But
dc_additional_deductionsstays $0 and DC tax before credits stays $1,108, the same as in the baseline. The PR body gives $748 for this filer when the 2029 senior deduction does apply. The 2029 entry keeps tips and overtime "so a reform that extends them also reaches DC" (the YAML comment and the PR body). The PR doesn't apply that design to the other two deductions, so any car-loan or senior extension done through the federal lists silently skips DC. - Why this diff: the DC list is new in this PR. It copies the federal sunset as a fixed date instead of following what the federal return allows.
- Fix direction (untested): give
dc_additional_deductionsa formula that adds only the DC-listed deductions that also appear in the federaldeductions_if_not_itemizinglist for the period. Or keep all four listed and gate the two federal variables on their own sunset parameter, as tips and overtime already do throughin_effect. Then add one 2029 case that runs under the reform. - Evidence:
/tmp/policyengine-command-runs/ea33c0bb2b64/pr-10806-review-code-diag.py, output/tmp/policyengine-command-runs/ea33c0bb2b64/pr-10806-review-code-diag.json(all inputs keyed to the year, import confirmed inside SNAPSHOT). The 2028 rows match the PR's $769 for this filer in both baseline and reform, so the setup agrees with the PR's own figures.
Suggestions
S1 — The itemizer-order alternative is in the candidate's note, not in its question or readings (OPEN)
- Severity: SUGGESTION
- File:
source_conflicts/candidates.yaml:2161-2211(us-dc:additional-deductions-standard-deduction-filers) - Trigger: b16cd25 moved an itemizer's (e) deductions inside the (c)(2) 5% reduction, for 2026-2028 itemizers with DC AGI above $200,000.
- Expected: CONTRIBUTING#source-conflicts gives each statute-versus-agency-practice conflict a question and readings, and step 2 builds the register's alternatives from them. This candidate's
questionasks only whether (e) "reach[es] a filer who takes the standard deduction, or only one who itemizes". Itsreadings.otherpresents only the itemizer-only reading. - Observed: the other side of the order question is OTR's 2025 D-40 Schedule I placement of (e)(1) and (e)(2): before DC AGI and outside Calculation F's reduction (PDF p. 64; the D-40 is already a listed source). It appears only in
note, andreadings.statutegives the PR's order as settled. - Fix: widen
questionto also ask where an itemizer takes the (e) deductions, relative to (c)(2). Add the Schedule I placement as a reading, or open a second candidate with the same sources. Code and outputs are unaffected. - Source: 47-1803.04(a)(1), (c)(2)(A)-(B) (code-47-1803.04.txt); 2025 D-40 booklet, https://otr.cfo.dc.gov/sites/default/files/dc/sites/otr/publication/attachments/2025_D40_Book_082026_v1.pdf#page=64
S2 — The new variable uses a documentation attribute (OPEN)
- Severity: SUGGESTION
- Location:
policyengine_us/variables/gov/states/dc/tax/income/deductions/dc_additional_deductions.py:15-25 - The model-development rules say to use
referenceand never adocumentationfield. Other repo variables do usedocumentation(itemized_deductions_less_salt,dc_taxable_income_indiv), so this is a style point only. A code comment aboveaddswould carry the same explanation.
S3 — The $250,000 itemizer case forces an itemization election no real filer would make (OPEN)
- Severity: SUGGESTION
- Location:
policyengine_us/tests/policy/baseline/gov/states/dc/tax/income/dc_income_tax_before_credits.yaml:310-331 - The case sets
tax_unit_itemizes: truefor a single filer whose only itemized item is $1,000 of real estate taxes. Federally that filer would take the $16,100 standard deduction, and DC requires the same election. The arithmetic correctly pins the new order (additional deductions inside the 5% reduction: 1,000 + 15,000 − 2,500 = 13,500; tax $18,502.50). A case with enough itemized deductions to itemize on its own, such as about $20,000 of mortgage interest, would also test the itemized path end to end through the federal election.
Evidence Gaps
No material gaps reported.
Notes
- Earlier review: every item is resolved.
- Should 1 (2029 tips and overtime unpinned): the new 2029 case ($1,000 + $2,000 = $3,000) pins both entries.
- Should 2 (2026 statute-vs-form choice):
us-dc:basic-standard-deduction-2026-amountcites sec. 7112(b), 47-1801.04(11) and the D-40ES line 2b, withfollows: statute. - Suggestions 1-5 are done. Suggestion 2 became a behavior change: an itemizer's four deductions now sit inside the (c)(2) 5% reduction. The text supports it, and the $250,000 case pins it at $18,502.50.
- The 2026 baseline is right. D.C. Law 26-189 (effective Oct. 2, 2026, applying from Jan. 1, 2025) allows the four federal deductions (tips, overtime, car-loan interest, the senior deduction) in their federal amounts, for standard-deduction filers too. DC keeps its 2025 standard deduction amounts in 2026. 2025 outputs are unchanged.
- On code-1: the PR's own design keeps tips and overtime in the 2029 list so that a reform extending them also reaches DC. 47-1803.04(e)(6) has no end date of its own. Applying the same design to car-loan interest and the senior deduction, or gating all four on the federal list for the period, closes the gap. Then add one 2029 case under
policyengine_us.reforms.crfb.senior_deduction_extension. - The branch is 473 commits behind main but merges cleanly, and the DC income test directory passes on the merged tree. Main's move of
wagering_losses_deductioninto DC's exempt items makes the PR body's Limits sentence ("exempts only medical and casualty losses") stale on merge.
Validation Summary
Local tests at the reviewed head pass (the changed tests plus the DC income tax directory; review venv, imports from the snapshot), and the DC directory passes on a merged-with-main tree. Executed diagnostics: 2028 and 2029 senior filer with and without the CRFB senior-deduction-extension reform (pr-10806-review-code-diag.json). Sources: 11 originals (D.C. Law 26-189, D.C. Code 47-1801.04 and 47-1803.04, the 2025 D-40 booklet, the 2026 D-40ES, the fiscal impact statement), checksums validated.
Timing
policy role seconds: 459.00s; code role seconds: 540.00s; parallel review seconds: 540.00s; elapsed seconds: 640.00s
Review Severity
COMMENT. Open findings: 0 critical, 1 should address, 3 suggestions.
What was wrong
From tax year 2026, the District of Columbia allows the federal deductions for qualified tips, qualified overtime, personal car loan interest and the enhanced senior deduction, for as long as federal law allows them (through 2028). PolicyEngine-US applied none of them in DC. It also raised DC's 2026 basic standard deduction by national inflation ($30,650 joint), although the statute's cost-of-living adjustment is zero in 2026, and it kept DC's own standard deduction past 2029, when DC returns to the federal one.
Example: a married couple aged 67 and 65 with $45,000 of military retired pay and $30,000 of Social Security in 2026 has DC AGI of $45,000 (DC subtracts the $19,600 of taxable Social Security). Main deducts $33,950 and charges $463. With a $33,300 standard deduction and two $6,000 senior deductions, the deductions exceed $45,000 and the tax is $0.
The law
The Fiscal Year 2027 Budget Support Act of 2026 (D.C. Law 26-189, effective October 2, 2026; emergency version D.C. Act 26-416), Title VII, Subtitle I, "Tax Code Conformity and Clarification". Sec. 7113 applies the subtitle as of January 1, 2025.
New D.C. Code 47-1803.04 (sec. 7112(e)):
Subsection (d)(6) to (9) denies the same four "for taxable years beginning before January 1, 2026".
Each (e) deduction is the deduction "allowed under" a federal section, and federal law allows none of the four after 2028. 26 U.S.C. 151(d)(5)(C)(i) allows the senior deduction "In the case of a taxable year beginning before January 1, 2029"; 163(h)(4)(A) excludes qualified passenger vehicle loan interest from personal interest "In the case of taxable years beginning after December 31, 2024, and before January 1, 2029"; and 224(h) and 225(g) allow no tips or overtime deduction for taxable years beginning after December 31, 2028. The fiscal impact statement agrees: "OBBBA schedules these deductions to expire at the end of tax year 2028."
Subsection (c)(2)(A) reduces "the amount of the itemized deductions otherwise allowable for the taxable year" by 5% of the excess of DC AGI over $200,000 ($100,000 for married filing separately). (c)(2)(B)(ii) leaves only the medical, investment interest, and casualty, theft and wagering loss deductions out of that reduction.
New D.C. Code 47-1801.04(3A) (sec. 7112(b)) sets the basic standard deduction at $15,000, $22,500 and $30,000 for 2025 and, for 2026 to 2029, those amounts "increased annually pursuant to the cost-of-living adjustment", rounded down to $50. (3A)(B) gives that adjustment a base year of "the calendar year beginning January 1, 2025, or the calendar year beginning one calendar year before the calendar year in which the new dollar amount of the basic standard deduction shall become effective, whichever is later". 47-1801.04(11)(A) multiplies the amount by "the difference between the Consumer Price Index for the preceding calendar year and the Consumer Price Index for the base year, divided by the Consumer Price Index for the base year". For 2026, the preceding calendar year and the base year are both 2025, so the adjustment is zero and the 2025 amounts apply. Amended 47-1801.04(44)(C)(v) makes the standard deduction the basic amount plus the IRC 63(c)(3) additional amount for 2025 to 2029, and (vi) returns to "the standard deduction as prescribed in section 63(c)" for taxable years beginning after December 31, 2029.
The CFO's fiscal impact statement (PDF pp. 105-106): "Beginning in tax year 2026, the subtitle couples with certain deductions that were allowed at the federal level under OBBBA by allowing District taxpayers to take deductions for qualified tips, overtime earnings, personal car loan interest, and an enhanced senior deduction of $6,000."
The reading taken
New 47-1803.04(a)(1) allows "either the standard deduction or itemized deductions (including the additional deductions set forth in subsection (e) of this section, if applicable)", and (b) says a filer who takes the standard deduction gets "no itemized deductions and other additions to the standard deduction [...], except as otherwise provided in this chapter". Read alone, the parenthetical in (a)(1) could limit the (e) deductions to itemizers. This PR applies them to every filer:
Itemizers take the (e) deductions inside itemized deductions, so (c)(2)'s 5% reduction applies to them. Standard-deduction filers deduct them in full alongside the standard deduction. The text settles where itemizers take them, though not who gets them: (a)(1) puts the (e) deductions inside itemized deductions, (c)(2)(A) reduces "the amount of the itemized deductions otherwise allowable", and (c)(2)(B)(ii) exempts only three deductions, none of them in (e). So, for the four, the statute governs over the Schedule I placement OTR gives (e)(1) and (e)(2), outside the reduction: statute first, and the agency breaks only true ties (CONTRIBUTING.md#source-conflicts). Limits gives the effect if OTR's 2026 forms extend that placement to the four.
Under the itemizer-only reading, the couple above would owe $502. OTR has not published 2026 forms.
source_conflicts/candidates.yamlrecords the reading, with the itemizer order, asus-dc:additional-deductions-standard-deduction-filers(CONTRIBUTING.md#source-conflicts, step 1), andsource_conflicts/sources/us-dc/captures the act, D-40 and fiscal impact statement passages it cites.The change
parameters/gov/states/dc/tax/income/deductions/additional/sources.yaml(new): an empty list until 2025, thentip_income_deduction,overtime_income_deduction,auto_loan_interest_deductionandadditional_senior_deductionfrom 2026. From 2029 the list keeps only the tips and overtime deductions, as the federaldeductions_if_itemizinganddeductions_if_not_itemizinglists do. The federaladditional_senior_deductionandauto_loan_interest_deductionvariables carry no date gate (federal taxable income drops them only through those lists), so without the 2029 entry DC kept allowing them after federal law ends them. The tips and overtime deductions stay listed because their ownin_effectparameters zero them from 2029, so a reform that extends them also reaches DC.dc_additional_deductions(new): the sum of that list, in the amounts the federal return allows.dc_itemized_deductionsaddsdc_additional_deductionsto the nonexempt pool before DC's 5% reduction (47-1803.04(a)(1) and (c)(2)).dc_deduction_jointtakes that reduced itemized deduction for itemizers and addsdc_additional_deductionsto the standard deduction for everyone else.dc_deduction_indivthen splits the total between spouses who file separately on one return, as it already splits the standard and itemized deductions, to minimize their combined tax. The deductions lower DC taxable income, not DC AGI, so the reduction measures DC AGI before them.deductions/standard/amount.yaml: 2026 amounts of $15,000, $22,500 and $30,000; later years still applygov.irs.upratingto them.dc_standard_deduction: aformula_2030that returns to the federal basic and additional standard deduction (47-1801.04(44)(C)(vi)).source_conflicts/candidates.yaml:us-dc:additional-deductions-standard-deduction-filersfor the reading above, andus-dc:basic-standard-deduction-2026-amountfor the 2026 amounts against the D-40ES. Five captures undersource_conflicts/sources/us-dc/hold the passages both candidates cite: sections 7112 and 7113 of the act, 47-1801.04(11), the 2025 D-40 (PDF pp. 13 and 64), the 2026 D-40ES (PDF p. 10) and the fiscal impact statement (PDF pp. 105-106).dc_additional_deductions.yaml; new cases indc_deduction_joint.yaml,dc_income_tax_before_credits.yamlanddc_standard_deduction.yaml. The only existing expectations this PR edits are the three 2026 basic standard deduction cases indc_standard_deduction.yaml($30,650 to $30,000, $15,300 to $15,000 and $23,000 to $22,500).amount.yamland pointsdc_standard_deductionat 47-1803.04(b), which now holds the rule that neither spouse gets the standard deduction when one itemizes on a separate return. 54e213c216 rewords two test-file headers. Neither commit changes an output.Invariants and how the tests check them
dc_additional_deductionsadds nothing to the standard deduction or the itemized pool, and the 2025 amounts and formula stay as they were. The 2025 cases (the couple, $508; the tipped worker, $1,300;dc_additional_deductions0 with all four federal deductions set) check it, and every pre-2026 case in the DC folder passed without edits at ad16a95a85 and again at b16cd25.dc_additional_deductionsequals the sum of the four federal deductions exactly (unit cases for 2026 and 2028 indc_additional_deductions.yaml). A standard-deduction filer'sdc_deduction_jointexceeds the standard deduction by exactly that sum. For an itemizer, the sum joins the nonexempt pool before the 5% reduction, so it raises the itemized deduction by the full sum when the reduction takes no more than the ordinary nonexempt deductions, and by between zero and the sum when the reduction takes more.dc_deduction_joint.yamlchecks a standard-deduction filer (33,300 + 12,000 = 45,300) and an itemizer below the threshold (18,000 + 4,000 = 22,000). Indc_income_tax_before_credits.yaml, a single itemizer with $250,000 of DC AGI, $1,000 of real estate taxes and a $15,000 tips deduction gets 1,000 + 15,000 − 5% × 50,000 = $13,500 of deductions, $236,500 of DC taxable income and $18,502.50 of tax before credits.dc_additional_deductionsis zero: the 2029 unit case (car loan and senior deductions set, 0), a single filer aged 70 with $40,000 of pension (0), a filer with $5,000 of qualified vehicle loan interest (0) and a tipped worker (0). Two 2029 tax cases indc_income_tax_before_credits.yamlfix the standard deduction as an input, so they do not move with CPI projections, and check the tax: $1,108 and $2,456.75. If federal law extends the tips and overtime deductions, DC follows: a 2029 unit case with $1,000 of tips and $2,000 of overtime deductions gives $3,000.dc_deduction_indiv[45,300, 0] againstdc_deduction_joint45,300).No Python property test: the repo's CLAUDE.md sends policy calculations to YAML, and these cases cover each boundary.
Before and after
DC tax before credits on main at 3386304d28 and on this branch. The YAML tests' expected values come from hand calculations on the statute and the federal amounts.
The $200,000 filer pays $25.50 more: the basic standard deduction falls from $15,300 to $15,000, taxed at 8.5%.
Each household above takes the standard deduction, so b16cd25d07 leaves these figures as they were. It raises tax for an itemizer whose reduction exceeds the ordinary nonexempt deductions: the $250,000 itemizer in invariant 2 owes $18,502.50, where the previous head, bfd955450c, adds the $15,000 tips deduction after the reduction and gives the same filer $235,000 of taxable income and $18,375 of tax (by hand).
After 2028, on this branch (main allows none of the four in any year, and its standard deduction differs from 2026 on):
Before ad16a95 added the 2029 entry, the branch (17daeebe89) gave these filers $6,000 and $5,000 of DC deductions in 2029 and charged $748 and $2,137.
Limits
gov.irs.upratingas a stand-in for the Washington-Baltimore CPI-U (12 months ending July 31) that 47-1801.04(11)(B) names. Before this PR it did so from 2026.us-dc:basic-standard-deduction-2026-amountrecords the choice.dc_itemized_deductionsexempts only the medical and casualty loss deductions from the 5% reduction. (c)(2)(B)(ii)(II) also exempts investment interest, which the model reduces as part ofinterest_deduction(throughnon_mortgage_interest). The narrower list predates this PR and changes no figure above.Tests
policyengine-core test policyengine_us/tests/policy/baseline/gov/states/dc -c policyengine_us: 467 passed at b16cd25d07, which changes thedc_itemized_deductionsformula that every DC itemizer case reads; 462 passed at ad16a95, before the three cases bfd9554 adds and the two b16cd25 adds.dc_standard_deduction.yaml(23),dc_income_tax_before_credits.yaml(13) anddc_additional_deductions.yaml(12) pass.sources.yaml; the tipped worker passes either way, because the federal tips deduction already ends through itsin_effectparameter.test_source_conflicts.py,test_parameter_yaml_keys.py,test_reference_urls.py,test_no_concatenated_reference_urls.py,test_known_dead_reference_urls.py): 257 passed at ad16a95.test_uprating_placement.pypassed at 280ead54f6 and ad16a95, and no later commit changes uprating.sources.yaml, and the $250,000 itemizer ($13,500 of deductions, $18,502.50 of tax). Thedc_deduction_joint.yamlitemizer case now suppliesitemized_deductions_less_saltinstead ofdc_itemized_deductions, so its $4,000 of additional deductions run throughdc_itemized_deductions; it still expects $22,000.dc_standard_deduction.yaml(23),dc_income_tax_before_credits.yaml(14),dc_additional_deductions.yaml(13) anddc_deduction_joint.yaml(4) pass, 54 cases in all;test_source_conflicts.pypasses 103 tests; andruff formatleaves the Python files unchanged.TheAxiomFoundation/rulespec-us#2163 now has output 4 in this PR's order, cites D.C. Law 26-189, and adds the $250,000 itemizer and the 2029 case as companion cases 9 and 10.
axiom: TheAxiomFoundation/rulespec-us#2163 queued
🤖 Generated with Claude Code