Two changes that make the index reflect work as it happens.
Reasoning is now indexed. The model's own justification is where a decision is
explained, and it never appears in the text a reader sees. It is also enormous —
individual parts reach 175 KB — so each part is truncated to 1.2 KB and each
session is budgeted 4 KB. It lands in content (searchable) but stays out of the
summary, which is what search results and MCP output show.
Capturing it exposed a dedupe bug: sessions were skipped when created_at and
summary matched, so content that gained reasoning behind unchanged prose was
never recorded. IngestResult now carries a content hash and the sweep compares
it, which is what the observation layer already used internally.
Freshness: the watcher polls every two minutes, so a finished turn stayed
unsearchable that long. IngestSessionsNow shares the watcher's logic, sweeps
only sessions newer than a stored watermark, and runs in ~45 ms steady state
(a full sweep is ~21 s for 59k messages). The plugin calls it at prompt
admission, fire-and-forget.
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>