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
@@ -419,7 +419,7 @@ impl Snap {
|
||||
}
|
||||
|
||||
/// The note on contribution: what it counts and what it leaves out.
|
||||
pub const CONTRIBUTION_NOTE: &str = "Revenue less this project's direct costs: every expense line tagged to it, fixed and variable alike (what management accounting calls a segment margin, not a variable-cost contribution margin). Company overhead that isn't tagged to a project (rent, software, insurance, the owner's time) isn't counted, so a project in the black can still leave the company in the red. A management-accounting view (rules.md B-37 item 7), not a GAAP figure.";
|
||||
pub const CONTRIBUTION_NOTE: &str = "Revenue less this project's direct costs: every expense line tagged to it, fixed and variable alike (what management accounting calls a segment margin, not a variable-cost contribution margin). Company overhead that isn't tagged to a project (rent, software, insurance, the owner's time) isn't counted, so a project in the black can still leave the company in the red. A management-accounting view (BS-statement-5 items 2 and 4), not a GAAP figure.";
|
||||
|
||||
/// The snapshot: a header with where it stands to date and the to date /
|
||||
/// fiscal year switch, then its tiles (`shown`: to date, or for `year`,
|
||||
|
||||
Reference in new issue
Block a user