Skip to content

Compute Form 8908, the energy efficient home credit - #426

Merged
captaincole merged 6 commits into
mainfrom
form-8908
Nov 28, 2026
Merged

captaincole merged 6 commits into
mainfrom
form-8908

Conversation

@captaincole

@captaincole captaincole commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

In order to compute the credit of a builder for each new energy efficient home sold or leased, the engine now has rules for every line of Form 8908 and sends the credit to Form 3800.

  • Risk: routine. No Form 1040 or Form 540 file changes, and no value of an existing scenario changes.
  • Complex: the credit lowers the cost of a home the builder leases, so its depreciation goes down.

What changed

  • Form 8908 has rules for every line: a count of homes for each of six kinds times that kind's amount ($500 to $5,000), the certifier table, the first 20 homes, and the credit from Schedule K-1.
  • A home acquired after June 30, 2026 gets no credit; a 2025 return is not affected.
  • Two decisions, rows A145 and A146 in docs/rule-decisions.md: each K-1 credit rounds on its own; a home that fails a test loses only its own credit ($2,500 of $20,000 in the example), not the credit of every home.
  • Named gap: a home sold from a Schedule C business. The engine does not compute cost of goods sold yet, so Form 3800 shows the gap and no wrong amount.
  • A new made-up taxpayer, Edelle, locks the values.

Verified

  • Typecheck, lint, format and npm test (197 checks) pass locally on the head with main merged in. The all gates check on GitHub runs the rest.
  • A blind fill by hand from the instructions matched the engine in 15 cases.
  • Not run: the e2e, and no comparison with a filed return.

PDFs to review

Refs

🤖 Generated with Claude Code

captaincole and others added 6 commits November 28, 2026 00:08
Co-Authored-By: Claude <noreply@anthropic.com>
The blind fill of 15 cases matched the engine on every line. PolicyEngine-US
does not model section 45L, so only the statute was compared: its amounts
and its end date are the same as the engine's.

Co-Authored-By: Claude <noreply@anthropic.com>
The second pass of the tax review read every page of the edelle return
and worked each printed value out again: no difference. QUESTIONS.md now
sorts each item under two texts that conflict, should we do this now,
and pattern change. The line 7 DECISION comment quotes the Form 3800
instructions word for word.

Co-Authored-By: Claude <noreply@anthropic.com>
Join Form 8908 with Forms 8874, 8900, 8941 and 8932 from main.

- Form 8908 is the last source in laterFormSources and in ENGINE_FORM_LINES.
- The Form 8908 reduction comes after Form 8941 and before Form 6765.
- Decision rows A133 and A134 of Form 8908 are now A145 and A146.

Co-Authored-By: Claude <noreply@anthropic.com>
Join Form 8908 with Forms 8994, 8896 and 8906.

- In laterFormSources, Form 8908 comes last, after Form 8906.
- In ENGINE_FORM_LINES, line 1p (Form 8908) comes after line 1n (Form 8906).
- Decision rows A145 and A146 of Form 8908 come after the Form 8906 rows.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
@captaincole
captaincole merged commit be32f2c into main Nov 28, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant