fix: the last rule citations in program output name bookspec ids
The engine's last program-output citations were the retired wanderbooks numbers. Each moves to the bookspec id that states the rule: - B-43 -> BS-entry-5, in the eight evidence-source strings of `Ledger::origin_exemption` and the two golden lines that record them. - B-23 -> BS-ledger-8, in the CPA package README's aging tie-out. - B-38 -> BS-arap-2, in `books.bills_due`'s description. - B-37 -> BS-statement-5, in the project page's contribution note. The old "item 7" was the snapshot presentation in the retired numbering; in BS-statement-5 the figures are item 2 (a project's figures are exactly its tagged lines, net revenue less expenses) and item 4 (no cost is allocated), so the note cites those. None of the strings is stored. The evidence source is computed on every call by `evidence::requirement` from the ledger (`origin_exemption`); the journal records only a draft state's note and a discard's reason (`entry.draft_state_set`, `entry.draft_discarded`), never the gate's source. The CPA README is built on request into the package's bytes and exported for a token; it is never read back. Tool descriptions are compiled into the router. The GUI note is a `const`. So an old book replays unchanged and reports the new text; no compatibility layer is needed. Golden verification: `draft_states_and_evidence_gate.json` changes in exactly two strings, the reversal's and the closing entry's evidence sources. Both are recomputed from the same ledger by the test and compared whole; after the change the test passes against the file, and `git diff` shows no other line moved. The figures, decisions, journal lines and trial balances are untouched, as the hand worksheet `plan/golden-worksheets/draft-states-and-evidence-gate.md` derives. Co-Authored-By: DeepSeek V4.1 Flash <noreply@opencode.ai>
This commit is contained in:
1 parent
946777628f
commit
797c418184
5 files changed
+15
-13
No files matched your search
@@ -375,7 +375,7 @@ impl BooksServer {
|
||||
name = "books.bills_due",
|
||||
title = "Bills due",
|
||||
description = described(
|
||||
"What to pay and when: every open bill due on or before a day (through; omitted: today), due date first, with its vendor, the vendor's invoice number and what it still owes, and the early-payment discount each vendor's terms give (the last day it is open, the most off, and what to pay to take it). by_date is the running total of what falls due through each date, for planning. The figures are read from the bills' ledger lines that stand (B-38).",
|
||||
"What to pay and when: every open bill due on or before a day (through; omitted: today), due date first, with its vendor, the vendor's invoice number and what it still owes, and the early-payment discount each vendor's terms give (the last day it is open, the most off, and what to pay to take it). by_date is the running total of what falls due through each date, for planning. The figures are read from the bills' ledger lines that stand (BS-arap-2).",
|
||||
ledger_core::calendar::PeriodKind::AsOf
|
||||
),
|
||||
annotations(read_only_hint = true, open_world_hint = false)
|
||||
|
||||
Reference in new issue
Block a user