From 3c78eb5bed718e94096b607ea672a7c354fc7527 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Mon, 9 Nov 2026 12:05:15 -0700 Subject: [PATCH] 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 --- docs/spec/claims/1099.md | 7 ++++++- docs/spec/claims/asset.md | 9 +++++++-- docs/spec/claims/partner.md | 18 +++++++++++++++--- docs/spec/claims/revenue.md | 9 ++++++++- docs/spec/claims/statement.md | 4 +++- 5 files changed, 39 insertions(+), 8 deletions(-) diff --git a/docs/spec/claims/1099.md b/docs/spec/claims/1099.md index 1252a7fd..4aecb8fb 100644 --- a/docs/spec/claims/1099.md +++ b/docs/spec/claims/1099.md @@ -69,7 +69,12 @@ option picked: a 2027 worksheet is refused through `every_bookspec_example_holds` and `the_runner_reports_every_claimed_rule_green`; the example for the option not picked, `1099-a-worksheet-for-an-unpublished-year-carries-the-last-amount`, -is skipped. +is skipped; for BS-1099-5, `1099-an-entry-naming-two-parties-counts-the-payees-share` +(one check of 1,000.00 naming Dana Studio at 600.00 and a member at 400.00 +counts 600.00 toward Dana, through `shares::resolve`), run likewise, and the +example for the option not picked, +`1099-an-entry-naming-two-parties-counts-the-whole-payment-to-each`, is +skipped. ### Product rules diff --git a/docs/spec/claims/asset.md b/docs/spec/claims/asset.md index cbf513c7..aa05e715 100644 --- a/docs/spec/claims/asset.md +++ b/docs/spec/claims/asset.md @@ -130,7 +130,12 @@ None. **Checked:** `ledger-core` `tests/spec_asset_tags.rs`; `ledger-store` `tests/asset_tags.rs` (`a_journaled_tag_taken_by_another_asset_is_refused_on_open`, `a_retagged_assets_old_tag_is_never_reused`); -`ledger-cli` `tests/spec_assets.rs`. +`ledger-cli` `tests/spec_assets.rs`; the bookspec examples +`asset-a-tag-is-unique-ignoring-case-and-one-of-a-form` and +`asset-a-retagged-assets-old-tag-is-never-reused`, run through +`Store::set_asset_tag` by `every_bookspec_example_holds` and +`the_runner_reports_every_claimed_rule_green`; the example for the option not +picked, `asset-an-engine-that-keeps-no-tags-refuses-to-tag`, is skipped. ### Product rules @@ -156,7 +161,7 @@ printer makes an Avery 5160 label sheet from the register's tags. **Pick (BS-asset-7):** `books-recorded-amounts`, the owner, D-41, 2026-10-20. **Pick (BS-asset-8):** `register-carries-tax-figures`, the owner, 2026-10-15; D-41, 2026-10-20. -**Pick (BS-asset-9):** `traditional`, the owner, D-41, 2026-10-20; recorded as a choice the CPA confirms. +**Pick (BS-asset-9):** `traditional`, the owner, D-41, 2026-10-20; recorded as a choice the CPA confirms. This is the books' convention, not an engine default: `Asset::sec704c_method` is left unset unless a command gives one, so no bookspec example shows the pick apart (the record's note says why). **Enforced:** `kernel::basis_figures` (Kani `basis_figures_laws`), `AssetBasis::check` (a purchase takes no contribution facts; a diff --git a/docs/spec/claims/partner.md b/docs/spec/claims/partner.md index 6ae557c8..bc81cffc 100644 --- a/docs/spec/claims/partner.md +++ b/docs/spec/claims/partner.md @@ -21,7 +21,7 @@ Rules: B-13, B-26, B-35, B-36. **Pick (BS-partner-7):** `running-split`, the owner, D-38, 2026-10-20. **Pick (BS-partner-15):** `contract-is-property-vendor-paid-is-cash`, the owner, 2026-10-15. -**Pick (BS-partner-16):** `close-at-the-change`, the owner, 2026-10-16. +**Pick (BS-partner-16):** `close-at-the-change`, the owner, 2026-10-16. The books close at the members a close is handed and a change of members or shares starts a new count of closes (`Ledger::members_regime`); no command closes a period at a change, so the pick states what the books do by convention at the close, and no bookspec example shows it (the record's note says why). **Enforced:** `CloseTo::Members`, `CloseTo::MembersCumulative`, `Ledger::members_regime`, `Regime::allocate`, @@ -55,7 +55,13 @@ Rules: B-13, B-26, B-35, B-36. `old_books_name_each_closes_rule_and_true_up_at_the_next_close`; `ledger-gui` `a_members_page_shows_the_same_capital_before_and_after_a_close`, `a_yen_members_page_splits_in_whole_yen`; the bookspec examples -`members-close.*`. +`members-close.*`, and for BS-partner-15 the example +`partner-a-prepaid-contract-is-property-and-a-vendor-paid-service-is-cash` +(a prepaid contract credited straight to capital is property, a prepaid +service paid through Due to Members is cash, by `k1_worksheet`), run by +`every_bookspec_example_holds`; the examples for the options not picked, +`partner-every-prepaid-service-is-cash` and +`partner-every-prepaid-service-is-property`, are skipped. ### Product rules @@ -421,7 +427,13 @@ package); the odd cents, `ledger_core::tax_capital::RunningSplit` on `ledger-package` `tests/package.rs` (`the_k1_worksheet_reports_tax_basis_capital`), `tests/p3_seams.rs` (`depreciation_is_one_figure_everywhere`, -`the_cpa_package_as_of_each_date_is_the_tools_figures`). +`the_cpa_package_as_of_each_date_is_the_tools_figures`); for BS-partner-17 +the bookspec example +`partner-a-prepaid-contract-enters-the-tax-capital-at-its-book-amount-with-a-note` +(the contract's 1,500.00 each at its book amount, with the note +`Note::PrepaidAtBook`), run by `every_bookspec_example_holds`; the example for +the option not picked, `partner-a-prepaid-contract-is-left-open-in-the-tax-capital`, +is skipped. ### Product rules diff --git a/docs/spec/claims/revenue.md b/docs/spec/claims/revenue.md index f53dfe02..63390c57 100644 --- a/docs/spec/claims/revenue.md +++ b/docs/spec/claims/revenue.md @@ -13,7 +13,14 @@ Rules: B-17. **Claims:** yes **Enforced:** `payouts::payout_plan`. **Checked:** -`a_payout_is_grossed_up_to_revenue_and_fees`. +`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 diff --git a/docs/spec/claims/statement.md b/docs/spec/claims/statement.md index d962b64a..e8fe3e9e 100644 --- a/docs/spec/claims/statement.md +++ b/docs/spec/claims/statement.md @@ -246,7 +246,9 @@ an invoice's or bill's page (each line's project). and `tests/format_upgrade.rs` (`books_p2_served_cut_over_whole`); bookspec `projects-net-is-its-tagged-lines`, `projects-on-spec-costs-are-expenses` and -`projects-invoice-and-bill-lines-count-by-project`; proptest +`projects-invoice-and-bill-lines-count-by-project` (also BS-statement-9's +rule-level example: one line per project, whose figures come out the same +under both of its options); proptest `prop_document_parts_partition_the_total`; Kani `unrecovered_cost_laws`; proptests `prop_project_nets_partition_the_pnl`, `prop_project_set_round_trips`, `prop_project_contribution_is_the_net_to_date`