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:
1 parent
609e4e6b26
commit
e41cc3a161
78 files changed
+298
-302
No files matched your search
@@ -282,7 +282,7 @@ fn fixture(tag: &str) -> Fixture {
|
||||
let e = pay(&mut s, d(2026, 1, 20), "Old Co", cash, 12_300);
|
||||
s.set_entry_party(e, Some(old)).unwrap();
|
||||
s.update_party(old, PartyField::Archived(true)).unwrap();
|
||||
// What the members advanced is money (BS-partner-3 item 5): Due to
|
||||
// What the members advanced is money (BS-partner-3 statement 7): Due to
|
||||
// Shareholders is a financing account; the cash account stays the
|
||||
// books' (the settings file names both).
|
||||
journal_settings(
|
||||
@@ -356,7 +356,7 @@ fn each_partys_totals_are_the_books_numbers() {
|
||||
// (BS-1099-1); the card's charge is no payment out of cash.
|
||||
assert_eq!(line.paid, cents(150_000));
|
||||
assert_eq!(line.undetermined, cents(30_000));
|
||||
// Party totals count all of it as paid to Sam (BS-partner-3 item 9): the
|
||||
// Party totals count all of it as paid to Sam (BS-partner-3 statement 11): the
|
||||
// 1099's buckets, and the card's 200 (no business card is recorded,
|
||||
// so the worksheet lists it nowhere).
|
||||
assert_eq!(
|
||||
@@ -1490,7 +1490,7 @@ fn the_party_page_shows_the_basis_and_in_kind() {
|
||||
}
|
||||
|
||||
/// The viewer's what-for reads a reversal as parties::flow does, the
|
||||
/// opposite of its original (BS-partner-3 item 3; design §1.4): a member
|
||||
/// opposite of its original (BS-partner-3 statement 3; design §1.4): a member
|
||||
/// paying the card from their own funds (Dr card / Cr 2100), tagged with
|
||||
/// the issuer, then reversed, is nothing on the issuer's page, paid or
|
||||
/// what for. Its lines alone read as a second payment.
|
||||
|
||||
@@ -603,7 +603,7 @@ fn a_long_party_name_keeps_to_its_card() {
|
||||
}
|
||||
}
|
||||
|
||||
// ------------------------------------------------- the snapshot (BS-statement-5 item 7)
|
||||
// ------------------------------------------------- the snapshot (WB-statement-7)
|
||||
|
||||
/// Books holding one project of `kind`, started `started_on`, with
|
||||
/// `posts`: (date, debit code, credit code, cents), the line that isn't
|
||||
@@ -1253,7 +1253,7 @@ proptest::proptest! {
|
||||
}
|
||||
}
|
||||
|
||||
/// BS-statement-5 item 8: an invoice's or bill's page (its entry's) lists
|
||||
/// BS-statement-5 statement 6: an invoice's or bill's page (its entry's) lists
|
||||
/// the document's lines, each project a link that opens it; an untagged
|
||||
/// line has none. The entry's own lines show the tagged revenue or cost
|
||||
/// line too.
|
||||
@@ -1373,7 +1373,7 @@ fn an_invoice_and_a_bill_show_each_lines_project() {
|
||||
}
|
||||
|
||||
/// The demo's "Client work" project carries every client invoice (
|
||||
/// BS-statement-5 item 8): its revenue to date is the invoices' total, its direct
|
||||
/// BS-statement-5 statement 6): its revenue to date is the invoices' total, its direct
|
||||
/// costs the contractors tagged to it.
|
||||
#[test]
|
||||
fn the_demos_client_work_counts_every_client_invoice() {
|
||||
|
||||
Reference in new issue
Block a user