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

+2 -2
View File
@@ -1,7 +1,7 @@
//! The store refuses what the books can't hold, before it journals
//! anything, never a panic (P0 review round 3, S1: a panic stops the books
//! server). The bounds are for new commands only: books an earlier version
//! wrote past them open exactly as written (rules.md B-28; P0 review round
//! wrote past them open exactly as written (BS-entry-4; P0 review round
//! 4), each bound's pair here or in tests/fixtures/old-books.
//!
//! ```text
@@ -233,7 +233,7 @@ fn disposal_proceeds_larger_than_a_line_are_refused() {
assert_eq!(old.ledger().get_entry(2).unwrap().date(), d(10000, 1, 31));
}
/// The bounds are for new commands only (rules.md B-28: posted is
/// The bounds are for new commands only (BS-entry-4: posted is
/// forever). A journal line an earlier version wrote past them (a date
/// after 9999, up to chrono's last day, as chrono writes it: "+10000-01-01";
/// a draft or recurring line past the line limit) opens, in the writer and the viewer alike, exactly as written. A