Files
wanderbooks/docs/spec/claims/revenue.md
T
swaitsandClaude Sonnet 5.5 3c78eb5bed docs(claims): the bookspec examples that check BS-revenue-1, BS-asset-3, BS-partner-15, -17, BS-1099-5 and BS-statement-9
Each claim's Checked line names the examples that now run it on the engine, and
the example for each option wanderbooks did not pick, which is skipped. Two
claims say what the engine does not: BS-partner-16's pick states what the books
do by convention at a close, since no command closes a period at a change of
shares, and BS-asset-9's is the books' convention, not an engine default (a
contributed asset's 704(c) method is unset until a command gives one), so no
example shows either pick apart.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 12:05:15 -07:00

1.2 KiB

Claims: revenue

Wanderbooks' claims for bookspec area revenue: the engine's pick for each rule, where it enforces it, and which tests check it. The accounting text lives in bookspec's records (rules/revenue/).

Rules: B-17.


B-17 Platform payouts are recorded gross when the business is the principal

bookspec: BS-revenue-1

Claims: yes

Enforced: payouts::payout_plan. Checked: a_payout_is_grossed_up_to_revenue_and_fees; the bookspec examples revenue-a-principals-payout-is-recorded-gross, revenue-an-agents-payout-is-its-commission-only and revenue-a-payout-that-does-not-reconcile-is-refused, run through payouts::payout_plan (a payout whose deposit is not gross less fee is refused InvalidPayout, which the examples word payout_does_not_reconcile), by every_bookspec_example_holds and the_runner_reports_every_claimed_rule_green.

Product rules

WB-revenue-1 books.record_payout is the tool that records a platform payout: it takes the gross, the platform's fee and the deposit account and posts the gross presentation of BS-revenue-1 in one call.

Enforced: payouts::payout_plan, books.record_payout. Checked: a_payout_is_grossed_up_to_revenue_and_fees.