fix: rule references the rewrite missed and ranges it mangled

common.rs (two doc comments and a test-helper panic message) and the fuzz target still cited the retired numbering outside the script's roots; they now cite BS-period-3 and BS-arap-2. A repo-wide sweep of tracked files found no other real citations beyond the deliberately kept strings.

Bookspec ids are not ordered across areas, so ranges the script produced are nonsense: the three 'all rules' ranges now say all 45 rules in docs/spec/rules.md's index, the seven allocated ids and the nine statement-era ids are listed explicitly, taken from that index table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Opus 5.5 committed 2026-11-08 20:02:08 -07:00
1 parent d45cb8687b
commit 9aeee94fd2
6 files changed
+18 -16

No files matched your search

+3 -2
View File
@@ -327,8 +327,9 @@ to move to its own repository (P13 step 6, D-34, Z-17):
per rule: pass, fail or not claimed. It compares the engine's answers
with the examples' exact expected values; it never asks the engine
whether its own answer is right.
- `bookspec/spec/rules-index.md` maps BS-entry-1 to BS-ledger-13 to the bookspec ids;
`docs/spec/rules.md` carries each stated rule's id under its heading.
- `bookspec/spec/rules-index.md` maps all 45 rules in `docs/spec/rules.md`'s index to the bookspec ids;
the rules themselves are bookspec's `rules/` records, and wanderbooks'
claims on them are in `docs/spec/claims/` (`docs/spec/rules.md` is only the index).
- `crates/ledger-core/tests/bookspec/` is the wanderbooks adapter: it
implements `Engine` over `Store` (a dev-dependency only, so no engine
crate depends on the specification) and remains the loader that checks
+3 -3
View File
@@ -108,7 +108,7 @@ P13 is a specification, not a feature, so no row of the semantic catalog
moves and the floor stands. It adds the checker crate (`bookspec/checker`:
the example schema, the rule identifiers `BS-<area>-<n>` and the `Engine`
trait), the runner (`bookspec/runner`: pass, fail or not claimed per rule),
and the rule index from BS-entry-1 to BS-ledger-13 (`bookspec/spec/rules-index.md`). Every
and the rule index covering all 45 rules in `docs/spec/rules.md`'s index (`bookspec/spec/rules-index.md`). Every
existing bookspec example still runs on every `cargo test`, through both
the loader's own checks and the `Engine` trait.
@@ -142,8 +142,8 @@ The viewer's invoice page shows the number, terms, bill-to and PO and
saves the issued copy beside the re-created one; the Money in list names an
invoice by its number. The handbook's invoices-and-bills procedure is
complete (issue, collect, pay on terms, void or write off, the fee, the
CPA's list) and says what waits for the owner's upgrade. rules.md gains
BS-arap-3 (terms) and BS-arap-4 (numbers and the issued copy). No golden moved.
CPA's list) and says what waits for the owner's upgrade. `docs/spec/claims/arap.md` gains
the claims for BS-arap-3 (terms) and BS-arap-4 (numbers and the issued copy). No golden moved.
### P9a self-host deployment (2026-10-26)
+3 -4
View File
@@ -1738,7 +1738,7 @@ mid-year, a refund, a loan, depreciation with a run reversed and caught
up, a disposal that credits back part of a month's run, a distribution
declared then paid, monthly closes with odd cents), checked on June 30,
September 15 and December 31: the same fact from two pieces agrees, or
rules.md says why not. Mutation runs wait for P12 (D-33).
bookspec's rules / `docs/spec/claims/` say why not. Mutation runs wait for P12 (D-33).
- **Engine** (`ledger-package/tests/p3_seams.rs`):
`the_members_figures_agree_on_every_date` (members' equity, the K-1
@@ -2890,10 +2890,9 @@ adapter claims the rules the catalogue gives an example; a rule with no
example is not claimed, never silently passed.
Step 3 adds the rule identifiers: `BS-<area>-<n>` for the eleven areas,
`bookspec/spec/rules-index.md` as the table from BS-entry-1 to BS-ledger-13, and each
stated rule's id under its heading in `docs/spec/rules.md`. `DECISION`
`bookspec/spec/rules-index.md` as the table covering all 45 rules in `docs/spec/rules.md`'s index. `DECISION`
there is bookspec's `CHOICE`: the specification names the options, an
engine declares its pick (`Claims::with_choice`). BS-arap-3 to BS-ledger-13 are
engine declares its pick (`Claims::with_choice`). BS-arap-3, BS-arap-4, BS-arap-5, BS-arap-6, BS-entry-5, BS-ledger-12 and BS-ledger-13 are
allocated (`plan/served.md` 8.0.3) and not yet stated; they carry an id and
an area and no status.