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
@@ -989,7 +989,7 @@ mod paying_on_terms {
|
||||
|
||||
/// One deposit settles two invoices of one customer: one entry, one
|
||||
/// receivable line per invoice, each tagged with its own invoice, and the
|
||||
/// output names both documents (BS-arap-6 INVARIANTS 1 and 3).
|
||||
/// output names both documents (BS-arap-6 invariant 3 and WB-arap-15).
|
||||
#[test]
|
||||
fn one_payment_settles_two_invoices() {
|
||||
let mut s = setup("settle-two");
|
||||
@@ -1046,7 +1046,7 @@ mod paying_on_terms {
|
||||
}
|
||||
|
||||
/// A discount outside the document's terms needs a reason; with one the
|
||||
/// payment is taken and recorded (BS-arap-6 INVARIANT 2; the terms are S4.3's
|
||||
/// payment is taken and recorded (BS-arap-6 invariant 6; the terms are S4.3's
|
||||
/// to journal, so this bill states none).
|
||||
#[test]
|
||||
fn late_discount_needs_a_reason() {
|
||||
@@ -1075,7 +1075,7 @@ mod paying_on_terms {
|
||||
}
|
||||
|
||||
/// A fee posts gross (A-4): the deposit gets the net, the fee its expense,
|
||||
/// and A/R is credited the gross (BS-arap-6 INVARIANT 1).
|
||||
/// and A/R is credited the gross (BS-arap-6 invariant 3).
|
||||
#[test]
|
||||
fn a_fee_posts_gross_to_receivables_and_net_to_the_bank() {
|
||||
let mut s = setup("fee-gross");
|
||||
@@ -1445,7 +1445,7 @@ mod bad_debts {
|
||||
assert_eq!(check["agrees"], json!(true), "{check}");
|
||||
}
|
||||
|
||||
/// P4b S7: no evidence, no write-off (BS-arap-5 INVARIANT 1): the tool refuses
|
||||
/// P4b S7: no evidence, no write-off (BS-arap-5 statement 10): the tool refuses
|
||||
/// with neither or both, and an attachment already filed is linked
|
||||
/// instead of a new file.
|
||||
#[test]
|
||||
|
||||
@@ -318,7 +318,7 @@ fn annotations_and_searches() {
|
||||
assert_eq!(answer_of(&r).unwrap()["status"], "ok");
|
||||
}
|
||||
|
||||
/// Plan P6 step 4 and BS-ledger-12 item 5: consolidation never leaves an
|
||||
/// Plan P6 step 4 and WB-ledger-15 INVARIANT 3: consolidation never leaves an
|
||||
/// entry the receipt policy covers with no evidence.
|
||||
#[test]
|
||||
fn consolidation_never_removes_an_entrys_only_evidence() {
|
||||
|
||||
@@ -845,7 +845,7 @@ fn books_p2_served_cut_over_whole() {
|
||||
),
|
||||
// An invoice carrying documents_v2's fields (terms: P4b S4.4) and
|
||||
// its line naming its project (document_line_projects,
|
||||
// BS-statement-5 item 8).
|
||||
// BS-statement-5 statement 6).
|
||||
(
|
||||
"books.create_invoice",
|
||||
json!({"customer": "1", "date": "2026-02-10", "terms": "Net 30",
|
||||
|
||||
@@ -2419,7 +2419,7 @@ fn cash_flow_reads_its_account_roles_from_the_books_settings() {
|
||||
}
|
||||
}
|
||||
|
||||
/// BS-statement-3 rule 2: roles that contradict the chart are refused,
|
||||
/// BS-statement-3 statement 3: roles that contradict the chart are refused,
|
||||
/// naming the setting and the fix, never a statement on a wrong partition.
|
||||
#[test]
|
||||
fn cash_flow_refuses_contradictory_roles() {
|
||||
|
||||
@@ -1546,7 +1546,7 @@ fn iif_declares_accounts_by_role_and_balances_every_transaction() {
|
||||
);
|
||||
}
|
||||
|
||||
/// BS-format-2 item 7 through the server: an entry with lines on both the
|
||||
/// BS-format-2 statement 7 through the server: an entry with lines on both the
|
||||
/// receivables and payables control accounts makes `books.export` iif and
|
||||
/// `books.export_cpa_package` refuse, naming the entry, rather than hand
|
||||
/// over a file QuickBooks Desktop will not import.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//! A project's snapshot (BS-statement-5 item 7) in the viewer and from the
|
||||
//! A project's snapshot (WB-statement-7) in the viewer and from the
|
||||
//! books server, on the same books: `books.project`'s strings are the
|
||||
//! figures the viewer's page draws (its `PageFigures` and `Snap`), to the
|
||||
//! cent, to date, by account, by month with the running net, and for the
|
||||
@@ -208,7 +208,7 @@ fn a_projects_snapshot_is_the_same_in_the_viewer_and_from_the_server() {
|
||||
assert_eq!(period["net"], "-722.22", "a refund and costs, no sale");
|
||||
}
|
||||
|
||||
/// BS-statement-5 item 8: a project's invoiced revenue and billed costs,
|
||||
/// BS-statement-5 statement 6: a project's invoiced revenue and billed costs,
|
||||
/// made through the books server's own tools, read the same in the viewer
|
||||
/// (its snapshot, and the invoice's and bill's pages: each line's
|
||||
/// project) and from the server (books.project, books.get_entry).
|
||||
|
||||
@@ -1199,7 +1199,7 @@ fn acquired_date_comes_from_the_acquisition_entry() {
|
||||
);
|
||||
}
|
||||
|
||||
// ------------------------------- posted and scheduled (BS-asset-1 rule 8)
|
||||
// ------------------------------- posted and scheduled (BS-asset-1 statement 28)
|
||||
|
||||
/// Named regression 1 (the brief's reproduction 1, its figures made up): a
|
||||
/// $1,440.00 laptop, 36 months, in service 2026-05-15, nothing run. As of
|
||||
@@ -1501,7 +1501,7 @@ fn dispose_args(x: u64, date: &str, proceeds: &str) -> Value {
|
||||
/// days, 500.00 (the final depreciation); accumulated 5,500.00, book value
|
||||
/// 6,500.00, gain 500.00. Afterwards books.asset_schedule ends there, and
|
||||
/// books.list_assets lists it as gone: not held, every figure 0.00 (it
|
||||
/// left the books with its disposal; BS-asset-1 rule 8). Before P3 the
|
||||
/// left the books with its disposal; BS-asset-1 statement 28). Before P3 the
|
||||
/// schedule showed June 7,000.00, accumulated 12,000.00, book value 0.00.
|
||||
#[test]
|
||||
fn a_disposed_asset_lists_what_it_depreciated_through_its_disposal() {
|
||||
|
||||
@@ -963,7 +963,7 @@ fn party_totals_for_a_customer_a_member_and_a_prepaid() {
|
||||
|
||||
// A prepaid bought with a member's card: an asset, paid through what
|
||||
// the members advanced. That is money when it is a financing account
|
||||
// (BS-partner-3 item 5, P3 defect 24); unlisted, Due to Members is a
|
||||
// (BS-partner-3 statement 7, P3 defect 24); unlisted, Due to Members is a
|
||||
// promise like any other liability, counted when the member is paid
|
||||
// back.
|
||||
let prepaid = |m: &mut Mcp| {
|
||||
|
||||
@@ -585,7 +585,7 @@ fn project_to_date_counts_lines_before_the_period() {
|
||||
assert_eq!(zeta["to_date"]["net"], "3200.00");
|
||||
}
|
||||
|
||||
/// The snapshot's figures (BS-statement-5 item 7), as the viewer shows
|
||||
/// The snapshot's figures (WB-statement-7), as the viewer shows
|
||||
/// them: net is the contribution before overhead, margin_pct its share
|
||||
/// of revenue, to_date.by_account the direct costs by category, and each
|
||||
/// month's net_to_date the running net, the last being to_date's.
|
||||
@@ -1202,7 +1202,7 @@ fn l4(
|
||||
)
|
||||
}
|
||||
|
||||
/// BS-statement-5 item 8: each invoice and bill line takes a project (by
|
||||
/// BS-statement-5 statement 6: each invoice and bill line takes a project (by
|
||||
/// name or id); the entry's revenue or expense side is one line per
|
||||
/// project, the untagged lines' as one, the receivable or payable line
|
||||
/// and the payments untagged; books.project, profit_and_loss_by_class,
|
||||
@@ -1408,7 +1408,7 @@ fn a_document_for_a_finished_project_says_so() {
|
||||
);
|
||||
}
|
||||
|
||||
/// BS-statement-5 items 4 and 8: an invoice line naming an on-spec project is taken
|
||||
/// BS-statement-5 statements 5 and 6: an invoice line naming an on-spec project is taken
|
||||
/// and its result asks whether there is now an agreement (a hoped-for
|
||||
/// payment is no receivable); a bill's cost for one is an expense like any
|
||||
/// other, so a bill gets no such note.
|
||||
|
||||
Reference in new issue
Block a user