Skip to content

Compute Form 8906, the distilled spirits credit - #425

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

captaincole merged 6 commits into
mainfrom
form-8906

Conversation

@captaincole

@captaincole captaincole commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

In order to compute the credit of a wholesaler, distiller or importer of bottled distilled spirits, the engine now has rules for every line of Form 8906 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.

What changed

  • Form 8906 has rules for every line: the number of cases times the average financing cost per case that the form prints, plus the credit from Schedule K-1.
  • Two decisions, rows A143 and A144 in docs/rule-decisions.md: each K-1 credit rounds on its own ($420.40 twice gives $840, not $841); a taxpayer whose only credit is on a K-1 puts it on Form 3800 and does not file Form 8906.
  • A new made-up taxpayer, Chel, locks the values.

Verified

  • Typecheck, lint, format and npm test (196 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 form's text matched the engine.
  • 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 27, 2026 21:29
In order to claim the distilled spirits credit of a wholesaler, distiller or
importer, Form 8906 now figures every line: line 1 adds the cases of each lot
(liters / 9 x proof / 80, to three places, as the instructions' example), line
3 multiplies by the printed 0.29717, line 4 adds the K-1 code AL credits, and
line 5 goes to Form 3800 Part III line 1n as one own source next to the K-1s.

A new fact kind (distilled_spirits.<slug>) holds the lots of a Schedule C
business. The credit is neither income nor a lower deduction: the Schedule C
lists name neither. A K-1 alone does not file the form (row A134), and each
K-1 rounds before line 4 adds (row A133). The form moves out of
formsWithNoRules.ts into creditForms.ts. The synthetic scenario chel (a Texas
wholesaler with a K-1) fills every line.

Co-Authored-By: Claude <noreply@anthropic.com>
A blind preparer filled 14 cases from the form alone. All lines match but
case 6, where two K-1s with cents round each before the add (decision A133,
the rule of row A96) instead of rounding the total once. The engine keeps
the decision. PolicyEngine-US does not model the form. The open doubt on
spirits stored over several years goes in QUESTIONS.md.

Co-Authored-By: Claude <noreply@anthropic.com>
The law library is installed, so the notes that said section 5011 was not
read were wrong. Section 5011(d)(2) counts a lot by liters divided by 9
only; the form's line 1 also multiplies by proof/80. The engine keeps the
form's formula, and QUESTIONS.md now holds both texts for docs/law-findings.md.
QUESTIONS.md is sorted under the three review headings, and rows A133 and
A134 now say what the statute says. No value changes.

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

- Form 8906 is the last source in laterFormSources and in ENGINE_FORM_LINES.
- Decision rows A133 and A134 of Form 8906 are now A143 and A144.

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

- In laterFormSources, the order is Form 8994, Form 8896, then Form 8906.
- Decision rows: A139 (Form 8994), A140 to A142 (Form 8896), then A143
  and A144 (Form 8906).
- Add a test: a figured Form 8932 credit and a figured Form 8994 credit on
  one business. Each credit lowers the wages once, and California gives
  both back. While the leave employees do not state the Form 8932 wages,
  Form 8994 waits.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
@captaincole
captaincole merged commit 07bdaa4 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