refactor: rule references cite bookspec ids

Every B-n citation in crates/, docs/, deploy/, scripts/ and .github/ now names its bookspec id BS-<area>-<n> (D-68), via scripts/rewrite-rule-refs.py: the map is parsed from docs/spec/rules.md's index, rules.md-prefixed and bare forms are rewritten, sub-references (rule 11, item 7, INVARIANT 2) survive, and plan/, docs/spec/rules.md and docs/spec/claims/ are untouched. Program-output string literals that cited a rule were reverted by hand so user-visible output and its goldens are unchanged; DatedRule.catalog, metadata no output prints, now holds BS-1099-1. One SOURCE line that cited only 'R-?' now also cites BS-statement-5.

Co-Authored-By: Muse Wonder 1.0
This commit is contained in:
swaitsandMuse Wonder 1.0 committed 2026-11-08 19:40:22 -07:00
1 parent 7a177a3cfc
commit 489360f598
221 files changed
+1706 -1580

No files matched your search

@@ -5,7 +5,7 @@ revenue its lines name. A bill is a vendor's invoice to us: it posts Dr
the expense or asset its lines name, and Cr Accounts Payable. A document's
own figures are read from the ledger lines tagged with it, never kept on
the document: a reversed payment, a void or a write-off comes out right
without another copy to correct (B-38).
without another copy to correct (BS-arap-2).
{documents_v2}
@@ -17,7 +17,7 @@ without another copy to correct (B-38).
An abandoned preview uses up no number.
- Confirm with `confirmed: true` only after the human has seen it. The
invoice posts Dr Accounts Receivable / Cr each line's account, takes the
next number (B-40), and the issued PDF, the page the customer gets, is
next number (BS-arap-4), and the issued PDF, the page the customer gets, is
filed with it. That filed copy never changes: a later look at the
invoice (`books.document` with `pdf: true`, or the viewer's Save invoice
PDF) is a re-created copy as of that day, says so, and shows what has
@@ -167,7 +167,7 @@ if it was reversed, that it no longer stands).
tie the aging to the trial balance before the CPA asks).
- Invoice numbers are unique and sequential, voids stay visible with
their number, nothing is deleted.
- Every bill is coded to its real account (the Form 1065 lines, B-32),
- Every bill is coded to its real account (the Form 1065 lines, BS-ledger-11),
never a catch-all, with the vendor's invoice attached and its number
recorded, and no bill is paid twice (the same vendor and number twice is
refused).