merge: the last rule citations in program output name bookspec ids (S-E2; re-checked)
S-E kept thirteen old B-n citations in program output and one golden, since output is a contract and a golden changes only when verified by hand. They now cite bookspec: the eight evidence sources BS-entry-5, the CPA package's aging tie-out BS-ledger-8, the bills-due tool BS-arap-2, and the projects note BS-statement-5 items 2 and 4 (the figures and that no cost is allocated). None is stored: each is computed when shown, so old books replay and show the new text. The golden moved in exactly those two strings. No retired number now remains anywhere outside the plan and the index. Found on the way: the sub-references S-E carried over keep the old numbering (S-E3). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
3d026b6473
6 files changed
+27
-36
No files matched your search
@@ -15,12 +15,13 @@
|
||||
//! The second check flags any retired rule number (the old wanderbooks
|
||||
//! numbering, a word-boundary capital letter, hyphen and a number from
|
||||
//! 1 to 45) in every tracked text file, outside the excluded index and
|
||||
//! claims files. A deliberately kept occurrence is allow-listed below
|
||||
//! with its exact count per file; the count failing in either
|
||||
//! direction means the list changes only on purpose. Scanning the
|
||||
//! whole file text, not line by line, also catches a reference wrapped
|
||||
//! across lines, filename at the end of one line and the number at the
|
||||
//! start of the next behind a comment prefix.
|
||||
//! claims files. No occurrence is kept (unit S-E2, 2026-11-08: program
|
||||
//! output names bookspec ids too); a future deliberate keep is
|
||||
//! allow-listed below with its exact count per file, and the count
|
||||
//! failing in either direction means the list changes only on purpose.
|
||||
//! Scanning the whole file text, not line by line, also catches a
|
||||
//! reference wrapped across lines, filename at the end of one line and
|
||||
//! the number at the start of the next behind a comment prefix.
|
||||
|
||||
use crate::*;
|
||||
|
||||
@@ -407,23 +408,11 @@ fn retired_count(text: &str) -> usize {
|
||||
#[test]
|
||||
pub(crate) fn no_retired_rule_reference_remains() {
|
||||
let root = repo_root();
|
||||
// Deliberately kept occurrences: path and exact count. Any change
|
||||
// in either direction edits this list, on purpose, in that commit.
|
||||
let allow: &[(&str, usize)] = &[
|
||||
// Kept: user-visible evidence-source strings in program output.
|
||||
("crates/ledger-core/src/ledger.rs", 8),
|
||||
// Kept: goldens are hand-verified expected output.
|
||||
(
|
||||
"crates/ledger-store/tests/golden/draft_states_and_evidence_gate.json",
|
||||
2,
|
||||
),
|
||||
// Kept: user-visible CPA package text in program output.
|
||||
("crates/ledger-package/src/package.rs", 1),
|
||||
// Kept: user-visible tool description text in program output.
|
||||
("crates/ledger-mcp/src/tools/settlements.rs", 1),
|
||||
// Kept: user-visible on-screen contribution note.
|
||||
("crates/ledger-gui/src/pages/projects.rs", 1),
|
||||
];
|
||||
// Deliberately kept occurrences: path and exact count. The list is
|
||||
// empty (unit S-E2): every citation, program output included, names
|
||||
// a bookspec id. A future keep adds its path and count here, on
|
||||
// purpose, in that commit.
|
||||
let allow: &[(&str, usize)] = &[];
|
||||
let output = std::process::Command::new("git")
|
||||
.args(["ls-files", "-z"])
|
||||
.current_dir(&root)
|
||||
|
||||
Reference in new issue
Block a user