The plugin could already warn about a restated figure within one transcript.
This makes it remember across turns and sessions.
A claim is keyed by unit+value, so '6,884 lines' and '6884 lines' are the same
claim. Interval arithmetic is SM-2 with the sign flipped: verification expands
the interval and restores ease, while restating a claim without new evidence
contracts ease and falls due immediately — repetition is the failure signal,
not the achievement.
Adds 'knox claims record' (fold check verdicts into the ledger) and 'knox claims
due' (what needs re-checking). The plugin records once per distinct prose (the
context hook fires for every model call, so naive recording would inflate the
reuse count) and injects a capped digest at turn start.
Two bugs caught by the tests: a new claim defaulted to EF=0 and contracted
straight to the 1.3 floor, and my first test encoded the wrong policy — a
single restatement is already due, which is the behaviour worth having.
feat: index reasoning, and close the session freshness gap (#19)
Co-authored-by: David Gwilliam <dhgwilliam@gmail.com>
Co-committed-by: David Gwilliam <dhgwilliam@gmail.com>
fix: load the claims plugin without the @opencode/plugin import (#17)
Co-authored-by: David Gwilliam <dhgwilliam@gmail.com>
Co-committed-by: David Gwilliam <dhgwilliam@gmail.com>
feat: live guardrail for restated figures (opencode plugin) (#15)
Co-authored-by: David Gwilliam <dhgwilliam@gmail.com>
Co-committed-by: David Gwilliam <dhgwilliam@gmail.com>