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 @@
|
||||
//! Tax categories at account creation, and `policy.require_tax_category`
|
||||
//! (P3, defect 8; rules.md B-32), through a real books server as an
|
||||
//! (P3, defect 8; BS-ledger-11), through a real books server as an
|
||||
//! agent reaches it (common.rs).
|
||||
//!
|
||||
//! ```text
|
||||
@@ -7,7 +7,7 @@
|
||||
//! or the human hears that it doesn't; a company that refuses
|
||||
//! uncategorized accounts gets exactly that, never a refused
|
||||
//! invoice.
|
||||
//! SOURCE: rules.md B-32; plan/served.md P3 defect 8 and "Settled in
|
||||
//! SOURCE: BS-ledger-11; plan/served.md P3 defect 8 and "Settled in
|
||||
//! design" (warn by default, headers exempt).
|
||||
//! ```
|
||||
//!
|
||||
@@ -322,7 +322,7 @@ fn require_tax_category_refuses_defect_8() {
|
||||
assert_eq!(out["warnings"].as_array().unwrap().len(), 2, "{out}");
|
||||
}
|
||||
|
||||
/// rules.md B-31 for new accounts: a name another account under the same
|
||||
/// BS-ledger-10 for new accounts: a name another account under the same
|
||||
/// parent has, ignoring capitals (top-level accounts are siblings too),
|
||||
/// or one holding nine digits in a row, is refused, for books.add_account
|
||||
/// and books.import_chart_csv alike; under another parent the name is
|
||||
@@ -369,7 +369,7 @@ fn a_new_account_named_like_a_sibling_is_refused() {
|
||||
);
|
||||
}
|
||||
|
||||
/// rules.md B-32: a gain on business property (`form_4797_gain_loss`, the
|
||||
/// BS-ledger-11: a gain on business property (`form_4797_gain_loss`, the
|
||||
/// disposal account a refusing company must categorize) is exported apart
|
||||
/// in the tax summary, JSON and CSV alike: at its book amount, with no tax
|
||||
/// amount, and outside income and both nets (Form 4797 figures it from
|
||||
|
||||
Reference in new issue
Block a user