Files
wanderbooks/docs/spec/claims/1099.md
T
swaitsandClaude Sonnet 5.5 422a956ffc docs(spec): wanderbooks declares its picks for the new CHOICE records (partner, asset, 1099, format)
bookspec split the CHOICEs embedded in BS-partner-1..4, BS-asset-1, BS-asset-4,
BS-1099-1 and BS-format-2 into records of their own (S-C7b). Wanderbooks'
decisions are unchanged; each is now recorded against the id an engine
declares it by:

- partner: BS-partner-5 largest-remainder-first-listed (owner, 2026-10-13),
  -6 cumulative-from-first-close (D-10, 2026-10-16), -7 running-split (D-38,
  2026-10-20), -8 outside-the-books and -9 tin-facts-then-w9 (2026-10-15),
  -10..-13 money, entry flow, books' carrying amount, labelled basis
  (2026-10-15, 2026-10-20), -14 tax-basis-beside-book (D-41), -15
  running-cumulative (D-38's rule, 2026-10-22)
- asset: BS-asset-5 straight-line-by-days, -6 lesser-of-value-and-basis, -7
  books-recorded-amounts, -8 register-carries-tax-figures
- 1099: BS-1099-2 refuse-an-unknown-year, -3 presumed-a-check-ach-or-transfer,
  -4 dated-by-the-payments-date
- format: BS-format-3..7 (D-36, 2026-10-20)

Each is a `**Pick (BS-..):**` line in docs/spec/claims/<area>.md and a
`with_choice` in the adapter's claims(). The rules_md test no longer expects a
B-n row for a rule born without one (a split-out CHOICE has none): it requires
the pick line, that the pick is one of the record's options, and that the
adapter declares the same option.

The pin is not moved here: this needs bookspec's s-c7b to be merged and the
pin moved to it. Verified with ledger-core's bookspec test patched to the
s-c7b checker and runner (53 passed).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 13:46:41 -07:00

125 lines
6.8 KiB
Markdown

# Claims: 1099
Wanderbooks' claims for bookspec area **1099**: what each rule requires, where the engine enforces it, and which tests check it. The accounting text lives in bookspec's records (`rules/1099/`); here stay the option wanderbooks picks, its enforcement and tests, and the product rules that are only wanderbooks' (`WB-1099-<n>`).
Rules: B-19.
---
## B-19 1099 reporting thresholds, payment methods, and decisions
**bookspec:** `BS-1099-1`
**Claims:** yes
**Pick:** `refuse-an-unknown-year` and the D-40 options: a threshold the engine does not know is refused, never guessed (CHOICE, the owner, 2026-10-13); a payment from a cash account with no recorded method is presumed a check, ACH or transfer and counts (CHOICE D-40, the owner, 2026-10-20); a shared entry counts only the payee's share (CHOICE, the owner, 2026-10-15); decisions are dated, and each payment takes the decision in force on its reversal chain's first entry's date (CHOICE D-40, the owner, 2026-10-20: "legally this has to be 2 dated statuses").
**Pick (BS-1099-2):** `refuse-an-unknown-year`, the owner, 2026-10-13.
**Pick (BS-1099-3):** `presumed-a-check-ach-or-transfer`, the owner, D-40, 2026-10-20.
**Pick (BS-1099-4):** `dated-by-the-payments-date`, the owner, D-40, 2026-10-20.
**Enforced:** the bucket table is `kernel::payment_bucket` and
`kernel::net_buckets`; `kernel::apportion` splits a payee's part across
the buckets; `form1099::vendor_1099_report` applies the threshold and the
status function; `shares::resolve` resolves a shared entry's target;
`Ledger::set_entry_parties`, `Ledger::set_entry_vendor`, `add_vendor`.
Kani `payment_bucket_is_the_table`, `payment_split_is_exact`,
`net_buckets_keeps_the_total`. **Checked:**
`an_unknown_year_threshold_is_never_guessed`,
`dated_rules_go_stale_on_their_review_date`,
`the_report_needs_the_cash_accounts_and_dollars`,
`payments_come_from_cash_and_financing_only`,
`undecided_is_not_not_reportable`,
`a_members_personal_card_payment_is_not_a_1099_payment`,
`card_account_payments_are_listed_not_dropped`,
`a_debit_card_payment_from_the_bank_is_excluded_when_tagged`,
`a_tag_naming_another_account_is_undetermined`,
`paying_down_a_financing_liability_pays_no_vendor`,
`paying_the_card_bill_pays_no_vendor`,
`a_negative_unknown_keeps_a_reportable_vendor_undetermined`,
`a_sale_to_a_contractor_does_not_lower_its_1099`,
`money_from_a_vendor_that_is_no_refund_does_not_lower_its_1099`,
`a_status_change_mid_year_applies_by_payment_date`,
`two_status_changes_in_a_year_and_a_reversal_across_them`,
`an_incorporation_on_december_30_is_a_new_vendor`,
`an_llc_electing_corporate_taxation_keeps_its_vendor`,
`a_dated_decision_records_a_change`,
`a_decision_change_names_the_payments_it_reaches`,
`an_undated_old_decision_is_in_force_from_the_beginning`,
`payment_bucket_is_the_table_in_all_16_cases`,
`a_shared_payment_splits_across_buckets_to_the_cent`, the properties
`no_instruments_no_financing_is_the_old_report`,
`buckets_partition_each_payment`, `a_reversal_nets_every_bucket_to_zero`,
`the_worksheet_ties_to_the_ledger`, `party_totals_are_the_1099s_buckets`
(ledger-core `tests/form1099.rs`);
`tagging_the_vendor_keeps_a_shared_entrys_parties`,
`clearing_the_vendor_on_a_shared_entry_is_refused`,
`re_apportioning_a_reversed_entry_re_apportions_its_reversal`,
`a_named_party_gaining_a_vendor_record_keeps_one_vendor_per_entry`;
`the_untagged_note_counts_only_money_out`,
`the_other_receipts_note_says_what_each_entry_did` (ledger-package); the
MCP tests through a real books server (ledger-cli); bookspec
`examples/1099-*.toml`.
### Product rules
**WB-1099-1** The worksheet names untagged posted entries only when they
paid money out (netted counts plus undetermined above zero) for something
(a debit to an expense, to payables, or to an asset no money is paid out of
and no one owes), leaving out payroll runs, entries marked as having no
counterparty, entries naming only parties with no 1099 role, and entries
reversed in the year: one count, the entries when ten or fewer, and the
tool to tag them.
*Enforced:* `form1099::Vendor1099Report::untagged`, `books.vendor_1099`,
`books.set_entry_vendor`; the digest and Needs attention.
*Checked:* `the_untagged_note_counts_only_money_out`,
`the_other_receipts_note_says_what_each_entry_did` (ledger-package).
**WB-1099-2** The years whose threshold the engine knows are a dated
registry (`ledger_core::rules::THRESHOLD_1099`, known through 2026, review
from 2026-11-01). For a later year the engine refuses with `RuleNotKnown`
rather than guess, and the digest and the viewer's "Needs attention" list
flag the rule once its review date passes.
*Enforced:* `form1099::default_threshold`, `ledger_core::rules`;
`books.digest`; `ledger-gui` Needs attention.
*Checked:* `an_unknown_year_threshold_is_never_guessed`,
`dated_rules_go_stale_on_their_review_date`.
**WB-1099-3** Payment methods are recorded once (`instrument.added`: bank,
business_card, member_card, member_cash_or_check, platform, each with the
account it pays through) and entries are tagged with the one they were paid
with (`entry.instrument_set`, the reversal chain together). A vendor's
1099 decision and an entry's instrument are set through the tools
(`books.set_vendor_1099`, `books.set_entry_instrument`), and every decision
names who made it and when (`settings::Source`).
*Enforced:* `Store::add_instrument`, `Store::set_entry_instrument`,
`Store::set_vendor_1099`; `ledger-mcp` `books.set_vendor_1099`,
`books.set_entry_instrument`; `settings::Source`.
*Checked:* `a_dated_decision_records_a_change`,
`a_decision_change_names_the_payments_it_reaches`,
`an_undated_old_decision_is_in_force_from_the_beginning`; the ledger-cli
MCP tests.
**WB-1099-4** The worksheet's card accounts are the recorded
business-card methods' accounts only. Party totals use the same accounts
once a card is recorded and, while none is, the liabilities named "card"
(but not "gift") (`parties::card_accounts`, B-35). A charge to such a card
leaves no cash or financing account, so the worksheet counts it for no one
either way (not as a payment, not as excluded), and lists it as a card's
only once the card is recorded.
*Enforced:* `parties::card_accounts`; `form1099::vendor_1099_report`.
*Checked:* `card_account_payments_are_listed_not_dropped`;
`ledger-core` `tests/spec_party_totals.rs`.
**WB-1099-5** Gross proceeds paid to an attorney ($600, Treas. Reg.
§1.6045-5(a)(1)) and royalties ($10, §6050N(a)) have their own thresholds
and forms (`BS-1099-1`, applicability); wanderbooks models neither, and the
worksheet says so: its status notes that royalties at $10 and attorneys'
gross proceeds at $600 are not modelled, to be confirmed with the CPA.
*Enforced:* `form1099::default_threshold`, `form1099::Status1099`
(`UnderThreshold`, the note).
*Checked:* none beyond the doc comments; the worksheet's one amount is
the tested one (`an_unknown_year_threshold_is_never_guessed`).