feat: persist the claim ledger with an inverted SM-2 interval #27
Reference in New Issue
Block a user
Delete Branch "feat/claim-ledger"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #26. Tier 2 of the guardrail.
Tier 1 warns within a transcript and forgets at session end. This remembers.
The inversion
Stock SM-2 lengthens the interval on successful recall. Here the thing to avoid is repeating a figure without re-checking, so repetition is what makes it urgent.
Surfaces
knox claims record/knox claims due [--json]contexthook fires for every model call, so naive recording would inflatereuse_counton every tool continuation — and injects a ≤3-line digest at turn start.Two bugs found by writing the tests
QueryRow), so a new claim contracted straight to the 1.3 floor instead of starting at 2.5. Defaults are now explicit.Verified
go test ./...green, including both ledger testsrestated=2; a sourced recording → clearedtsc --strictclean;knox.claimsandknox.recallbothactiveNot yet observed live: the turn-start digest firing (needs a turn) — currently one real claim is due, so the next turn should show it.