expire existed but nothing called it, so the queue refilled until someone
ran it by hand.
expire --every N now runs only when the last sweep is at least that old
and records the run in settings['snippets_expire_last_run'] — including
runs that found nothing, since the window was still checked. The clock
lives in the index, not the caller, so an agent hook, a cron job and a
human share one schedule and a reloaded plugin cannot cause a burst.
plugins/maintenance runs it from the prompt hook (fire-and-forget) with
an in-process guard that only avoids spawning a CLI that would decide it
is not due.
feat: persist the claim ledger with an inverted SM-2 interval (#27)
Co-authored-by: David Gwilliam <dhgwilliam@gmail.com>
Co-committed-by: David Gwilliam <dhgwilliam@gmail.com>
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>