feat: persist the claim ledger (tier 2, inverted SM-2) #26

Closed
opened 2026-11-05 03:53:14 +00:00 by david · 0 comments
Owner

Tier 1 (shipped in #13/#15) warns about a restated figure within one transcript. It forgets everything when the session ends, so the same figure can be re-derived and restated every session forever.

Design

A claim is keyed by unit+value, so 6,884 lines and 6884 lines are one claim.

Interval arithmetic is SM-2 with the sign flipped:

  • verified (sourced) → ease up (max 2.5), interval × ease, reuse debt cleared
  • restated (stale) → ease down (floor 1.3), due immediately
  • unsupported → tracked, due in a week; usually a hypothetical

Standard SM-2 expands an interval on successful recall. Here the failure is restating without re-checking, so that is what shortens the interval.

Surfaces

  • knox claims record — fold verdicts into the ledger
  • knox claims due — what needs re-checking, most-reused first
  • plugin: record once per distinct prose, inject a capped digest at turn start

Two bugs the tests caught

  1. A brand-new claim read EF=0 (zero value) and contracted straight to the 1.3 floor on its first restatement.
  2. My first test asserted "one restatement is not yet due" — wrong policy. The moment to re-check is the first repetition.
Tier 1 (shipped in #13/#15) warns about a restated figure **within one transcript**. It forgets everything when the session ends, so the same figure can be re-derived and restated every session forever. ## Design A claim is keyed by unit+value, so `6,884 lines` and `6884 lines` are one claim. Interval arithmetic is SM-2 with the sign flipped: - **verified (sourced)** → ease up (max 2.5), interval × ease, reuse debt cleared - **restated (stale)** → ease down (floor 1.3), **due immediately** - **unsupported** → tracked, due in a week; usually a hypothetical Standard SM-2 expands an interval on successful recall. Here the failure is restating without re-checking, so that is what shortens the interval. ## Surfaces - `knox claims record` — fold verdicts into the ledger - `knox claims due` — what needs re-checking, most-reused first - plugin: record once per distinct prose, inject a capped digest at turn start ## Two bugs the tests caught 1. A brand-new claim read `EF=0` (zero value) and contracted straight to the 1.3 floor on its first restatement. 2. My first test asserted "one restatement is not yet due" — wrong policy. The moment to re-check is the first repetition.
david closed this issue 2026-11-05 03:53:35 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: david/knox#26