merge: every reversal is dated on or after its original (D-73; branch t3/reversal-dating-d73, bb5008ed; reviewed)

claims/ledger.md conflicted with the reduced B-9 section: the D-73 pick,
Enforced and Checked lines sit above its product rules; the check's
place corrected (after the schedule double-post check, not ahead of it)
and the citation completed (BS-ledger-16, the Lean model since L-G1).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Opus 5.5 committed 2026-11-08 17:14:13 -07:00
commit e080f761a0
14 files changed
+279 -69

No files matched your search

+19
View File
@@ -106,6 +106,25 @@ and never called corrupt (statement 4). **Checked:** Lean `Step.extends`,
`reversal_of`). **Checked:** Kani `reversal_mirrors`, `reversal_cancels`;
Lean `accepted_reversal_iff`, `movement_with_reversal`.
**Pick (D-73, the owner, 2026-11-08):** every reversal is dated on or after
the entry it reverses, for every kind of entry (it was enforced only for
document reversals and for schedule and depreciation runs): a correction
comes after what it corrects. The same day is allowed. New commands only:
a journal an earlier version wrote may hold a reversal dated before its
original, and it replays as it was (B-28).
**Enforced:** `Ledger::check_reversal` (SCENARIO 6) refuses with
`ReversalBeforeOriginal`, after the schedule double-post check (SCENARIO 5); the
store's `check_reverse_entry` and so `books.reverse_entry` (preview and
post alike) and every document void go through it, and replay is exempt
(`crate::parties::is_replaying`). **Checked:** store
`a_plain_entrys_reversal_is_not_dated_before_it`,
`a_journal_with_an_earlier_dated_reversal_opens_as_it_was`; core
`reversal_before_original_refused_for_documents`,
`a_reversal_dated_before_its_run_matches_the_trial_balance` (replayed);
the model oracle `the_ledger_matches_its_model` (its `reverse` requires
the date, as BS-ledger-5 and its CHOICE BS-ledger-16 do, and the Lean
model's `reverse` step since L-G1).
### Product rules
None.