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
@@ -239,7 +239,7 @@ fn recurring_entries_generate_drafts_never_posts() {
|
||||
let _ = b.revenue;
|
||||
}
|
||||
|
||||
/// Regression (B-12, found by the store's refusal property on
|
||||
/// Regression (BS-period-2, found by the store's refusal property on
|
||||
/// 2026-10-13): a recurring occurrence dated in a closed period is
|
||||
/// refused, leaves nothing behind, and is reported as needing a human.
|
||||
#[test]
|
||||
@@ -825,7 +825,7 @@ fn plan_values(plan: Vec<(NaiveDate, Decimal)>) -> Vec<serde_json::Value> {
|
||||
/// A year of prepaid insurance at 100.00 a month (three months posted,
|
||||
/// 900.00 left) and three months of deferred revenue at 333.33, 333.33,
|
||||
/// 333.34 (the last period takes the rounding, so the three sum to
|
||||
/// 1,000.00 exactly: rules.md B-16).
|
||||
/// 1,000.00 exactly: BS-prepaid-1).
|
||||
#[test]
|
||||
fn golden_amortization_plans() {
|
||||
let mut b = books();
|
||||
|
||||
Reference in new issue
Block a user