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

+4 -4
View File
@@ -1,11 +1,11 @@
//! Files that carry full TINs never enter the books (rules.md B-26).
//! Files that carry full TINs never enter the books (BS-partner-2).
//!
//! ```text
//! GOAL: a file holding a full TIN (a W-9, a 1099 worksheet, a CPA
//! package or a file from one) is never filed as a receipt or
//! document, where books.get_receipt would hand its bytes to any
//! agent.
//! SOURCE: rules.md B-26 (no tool output holds a full TIN); DECISION (P0
//! SOURCE: BS-partner-2 (no tool output holds a full TIN); DECISION (P0
//! review round 2, 2026-10-16): one registry, on disk, of every
//! TIN-bearing file the server reads or writes, and a scan of
//! every text file on its way in.
@@ -39,7 +39,7 @@
//! printed 2-7 (DECISION, owner, 2026-10-17: every company
//! document goes into the books, and its formation papers,
//! plans and letters print its EIN; the settings already hold it
//! in full, rules.md B-29). It is the company's, no person's: (a)
//! in full, BS-ledger-9). It is the company's, no person's: (a)
//! still refuses it if the vault holds it for a party.
//! Full-width digits and Unicode hyphens and spaces read as their
//! ASCII kin. Refused bytes are never stored.
@@ -68,7 +68,7 @@
//! answers for up to 2 candidates a filing (4): an agent that files
//! 50,000 refused files can find a TIN, so the access log records
//! every one of those calls and the probe bound keeps each answer
//! from telling more than two guesses apart (rules.md B-26).
//! from telling more than two guesses apart (BS-partner-2).
//! ```
use std::path::Path;