Files
wanderbooks/docs/spec/rules.md
T
swaitsandDeepSeek V4.1 Flash ca8d676d53 docs(spec): rules.md splits into one claims file per bookspec area
P14 unit S-D0 (plan/bookspec-audit.md D0) is a mechanical split, no
content change. bookspec is becoming the definitive spec, and later
units move each rule's accounting text there and reduce wanderbooks'
copy to the engine's claim (the pick, where it is enforced, which
tests check it) plus product rules. Several workers reduce different
areas in parallel; one 3,696-line file blocks them, so the file is
split first by bookspec area (the B -> area map is bookspec's
spec/rules-index.md).

Every `## B-n` section moves verbatim, in B order, into
docs/spec/claims/<area>.md: entry 5, ledger 13, statement 5, period 3,
partner 4, asset 4, prepaid 1, arap 6, revenue 1, 1099 1, format 2.
docs/spec/rules.md keeps its preamble and becomes the index (B,
bookspec id, area, link to the claims heading), so the existing
"rules.md B-n" references still resolve until S-E rewrites them. The
bookspec test now reads every claims file and the index, so every
stated rule's id is still verified where it is carried.

The split is proved lossless: the preamble plus the 45 claims sections
concatenated in B order is byte-identical to the old rules.md. No WB-n
product rules exist in rules.md, so no docs/spec/product.md is created
(D0's other half) until product rules are written.

Co-Authored-By: DeepSeek V4.1 Flash <noreply@opencode.ai>
2026-11-08 11:10:16 -07:00

7.3 KiB

Rule catalog

Every rule the engine enforces, the authority for it, and what checks it. Status is AUTHORITY (a source states the rule), CONVENTION (common practice no authority states; the best reference is given), or CHOICE (a human chose, and when; bookspec's CHOICE: the specification names the options, an engine declares its pick). Vendored sources are in sources/; FASB and OpenStax are quoted briefly under their copyright and license (see README.md). Quotes from FASB's Codification were read in Deloitte's DART roadmaps, which reproduce it ("FASB Accounting Standards Codification: Copyright © 2005 - 2026 by Financial Accounting Foundation").

Spec blocks in the code cite these as SOURCE: rules.md B-n. Every rule also has a bookspec identifier, **bookspec:** BS-<area>-<n>: the table from B-1 to B-45 is spec/rules-index.md in the bookspec repository, https://git.swaits.com/swaits/bookspec (P13, D-34).


Index

Every rule's claims live in claims/, one file per bookspec area (P14 unit S-D0). This file is the index until unit S-E rewrites the rules.md B-n references to bookspec ids; the rule text itself is in the claims files.

B bookspec id area file
B-1 BS-entry-1 entry claims/entry.md
B-2 BS-entry-2 entry claims/entry.md
B-3 BS-ledger-1 ledger claims/ledger.md
B-4 BS-ledger-2 ledger claims/ledger.md
B-5 BS-ledger-3 ledger claims/ledger.md
B-6 BS-statement-1 statement claims/statement.md
B-7 BS-statement-2 statement claims/statement.md
B-8 BS-ledger-4 ledger claims/ledger.md
B-9 BS-ledger-5 ledger claims/ledger.md
B-10 BS-ledger-6 ledger claims/ledger.md
B-11 BS-period-1 period claims/period.md
B-12 BS-period-2 period claims/period.md
B-13 BS-partner-1 partner claims/partner.md
B-14 BS-statement-3 statement claims/statement.md
B-15 BS-asset-1 asset claims/asset.md
B-16 BS-prepaid-1 prepaid claims/prepaid.md
B-17 BS-revenue-1 revenue claims/revenue.md
B-18 BS-arap-1 arap claims/arap.md
B-19 BS-1099-1 1099 claims/1099.md
B-20 BS-ledger-7 ledger claims/ledger.md
B-21 BS-entry-3 entry claims/entry.md
B-22 BS-asset-2 asset claims/asset.md
B-23 BS-ledger-8 ledger claims/ledger.md
B-24 BS-asset-3 asset claims/asset.md
B-25 BS-asset-4 asset claims/asset.md
B-26 BS-partner-2 partner claims/partner.md
B-27 BS-format-1 format claims/format.md
B-28 BS-entry-4 entry claims/entry.md
B-29 BS-ledger-9 ledger claims/ledger.md
B-30 BS-period-3 period claims/period.md
B-31 BS-ledger-10 ledger claims/ledger.md
B-32 BS-ledger-11 ledger claims/ledger.md
B-33 BS-statement-4 statement claims/statement.md
B-34 BS-format-2 format claims/format.md
B-35 BS-partner-3 partner claims/partner.md
B-36 BS-partner-4 partner claims/partner.md
B-37 BS-statement-5 statement claims/statement.md
B-38 BS-arap-2 arap claims/arap.md
B-39 BS-arap-3 arap claims/arap.md
B-40 BS-arap-4 arap claims/arap.md
B-41 BS-arap-5 arap claims/arap.md
B-42 BS-arap-6 arap claims/arap.md
B-43 BS-entry-5 entry claims/entry.md
B-44 BS-ledger-12 ledger claims/ledger.md
B-45 BS-ledger-13 ledger claims/ledger.md