merge: the traceability gate (X-J; reviewed, re-checked twice, fixes applied)
Every claim in docs/spec/claims/ now has to be backed. A yes or partly claim names where the engine enforces it and what checks it, and every name resolves strictly: a Rust item by its whole path (a method on its own type), a test by its #[test], a Kani harness by its #[kani::proof], a Lean theorem in the list bookspec audits, a path that exists. Every kernel function has a harness and a bridge property that call it, and a law whose rules its own SOURCE cites; the fourteen that cannot are listed with why, and the seven it cannot check for a law are pinned. The gate found what the claims got wrong: B-22 claimed partial enforcement of a rule the engine does not enforce (now no); WB-prepaid-2 claimed K-U5's rounding before it landed (now partly); two rules cited retired ids as live; nineteen names had moved or never existed. The reviews found three ways a wrong name could still pass, then two more; all closed, with probes that a made-up name of each kind fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
90e62e20b3
23 files changed
+3393
-36
No files matched your search
@@ -76,7 +76,7 @@ Lean `Documents.control_agrees`, `Documents.Step.document_unattached`,
|
||||
(through role assignments and releases),
|
||||
`Documents.Reachable.control_is_documents`. The model's limits: it
|
||||
starts from empty books (legacy lines are covered by the identity
|
||||
`control_agrees` alone), it names documents by one id space (an injective
|
||||
`Documents.control_agrees` alone), it names documents by one id space (an injective
|
||||
coding of `DocRef`), and an account becoming a control account by its
|
||||
first document, holding lines from before, is outside it (those lines are
|
||||
listed as unattached).
|
||||
@@ -325,8 +325,9 @@ check_discount}`, `arap::{Application, Fee, SettleParams, SettlementRow}`,
|
||||
(`a_settlement_names_its_lines_and_replays`, `settlement_waits_for_documents_v2`,
|
||||
`legacy_payment_events_keep_the_positional_rule`), `tests/arap_props.rs`;
|
||||
`ledger-cli` `tests/documents.rs`; `ledger-package`'s aging tie-out test.
|
||||
The Lean step is `Documents.Step.document` with every control line tagged
|
||||
(`Documents.settle_unattached`); no new `Step` constructor.
|
||||
The Lean step is the document constructor of the Lean documents model, with
|
||||
every control line tagged (`Documents.settle_unattached`); no new step
|
||||
constructor.
|
||||
|
||||
### Product rules
|
||||
|
||||
|
||||
Reference in new issue
Block a user