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:
1 parent
7a177a3cfc
commit
489360f598
221 files changed
+1706
-1580
No files matched your search
@@ -1,5 +1,5 @@
|
||||
//! Spec-blind tests for the project tools of the books server (rules.md
|
||||
//! B-37), driven through a real `wanderbooks server` as an agent reaches
|
||||
//! Spec-blind tests for the project tools of the books server (
|
||||
//! BS-statement-5), driven through a real `wanderbooks server` as an agent reaches
|
||||
//! it (common.rs).
|
||||
//!
|
||||
//! Expected behavior comes only from the tool descriptions and parameter /
|
||||
@@ -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 (rules.md B-37 item 7), as the viewer shows
|
||||
/// The snapshot's figures (BS-statement-5 item 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(
|
||||
)
|
||||
}
|
||||
|
||||
/// rules.md B-37 item 8: each invoice and bill line takes a project (by
|
||||
/// BS-statement-5 item 8: 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() {
|
||||
);
|
||||
}
|
||||
|
||||
/// B-37 items 4 and 8: an invoice line naming an on-spec project is taken
|
||||
/// BS-statement-5 items 4 and 8: 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