docs: sub-references name bookspec's statements, invariants and scenarios

Unit S-E rewrote each `B-n` citation to its bookspec id but kept the
sub-reference after it ("item 7", "rule 11", "INVARIANT 2"). Those
numbers counted parts of the retired rules.md text, so `BS-statement-5
item 7` pointed at finished and abandoned projects, not at the snapshot
it meant. Bookspec numbers a record's parts from 1 as `statement`,
`invariant` and `scenario`; every sub-reference now says so.

The map was built by content, not by position: each old item,
INVARIANT or SCENARIO was read in `git show ca8d676d5^:docs/spec/rules.md`
(the last full rule text), found in the pinned records
(bookspec bc92cf3) and in docs/spec/claims/, and each reference was
read in its context before it was mapped. Where the old numbering still
survives as the "Rule n" labels inside bookspec's statements (the cash
flow, party totals) the new number is that statement's position; where
a record carries the whole rule differently (the asset depreciation, the
IIF file, the arap invariants) the reference follows the content. Where
bookspec keeps no counterpart, the product rule that states it is cited
instead: WB-statement-5 (a project's facts and names), -7 (the snapshot),
WB-arap-4 (the document_standing feature), -8 (the issued PDF), -15 (a
payment event names its line), WB-ledger-15 (BS-ledger-12 is retired).
A reference that had pointed at the wrong part is corrected, for example
the discount-reason references that said BS-arap-6 INVARIANT 2 (a
bound) now say invariant 6 (the discount cap and date).

Only the reference tokens and their sentence change; no paragraph is
reflowed. A reference wrapped across a comment prefix keeps its wrap.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Sonnet 5.5 committed 2026-11-09 03:30:06 -07:00
1 parent 609e4e6b26
commit e41cc3a161
78 files changed
+298 -302

No files matched your search

+2 -2
View File
@@ -71,7 +71,7 @@
//! amortization: no counterparty by nature) (one item: Info under
//! suggest, Todo under require; its prompt names
//! books.set_entry_party); each warning of the fiscal year's
//! statement of cash flows (BS-statement-3 rule 12: equipment sold for
//! statement of cash flows (BS-statement-3 statement 17: equipment sold for
//! an IOU, Todo; bought on an operating payable, Info; one per
//! entry, its detail the warning's fix); a filed PDF whose text
//! extraction failed (Todo, one per file: a human must read its
@@ -1342,7 +1342,7 @@ pub fn find_with(
}
// The statement of cash flows' warnings this fiscal year (
// BS-statement-3 rule 12, D-35): equipment sold for an IOU, flagged with its fix
// BS-statement-3 statement 17, D-35): equipment sold for an IOU, flagged with its fix
// (Todo); equipment bought on an operating payable, following how the
// payable is classified (Info). A statement the settings can't give
// (no cash accounts yet) has none.
+1 -1
View File
@@ -19,7 +19,7 @@
//! imported close would zero its period's profit. The file's
//! balances are the trial balance as of as_of without the closes.
//! 3. Every class (project) in the books is declared, and each line
//! carries its class (BS-format-2 rule 8).
//! carries its class (BS-format-2 statements 27 and 28).
//! ```
use chrono::NaiveDate;
+1 -1
View File
@@ -16,7 +16,7 @@
//! 2. The cash flow statement needs at least one cash account, and
//! every code it is given must be in the chart; account lists a call
//! leaves empty default to the settings' roles. It foots, or it is
//! refused (an engine error, never a figure: BS-statement-3 rule 9);
//! refused (an engine error, never a figure: BS-statement-3 statement 14);
//! roles that contradict each other or the chart are refused by the
//! engine, naming the setting, so the viewer and the server refuse
//! alike. Members are named on their contributions and