Files
knox/internal/claims
david 12fe148cd9
build / test (push) Has been cancelled
build / image (push) Has been cancelled
feat: opencode plugin that warns on restated figures (#14)
Adds knox claims check (JSON on stdin) and a server plugin that runs it from
the session 'context' hook, which fires before every request is dispatched.

Staleness is measured against earlier *prose*, not earlier tool output. That is
the correction that makes this work: the incident had a tool printing
'6884 deletions' while the prose said '6,884 lines', so matching tool output by
number+unit classified the real failure as unsupported and stayed silent. A
figure repeated from an earlier turn without fresh evidence is the thing worth
warning about, and the first assertion is deliberately quiet.

Every failure path in the plugin is swallowed: missing binary, timeout, bad
JSON. A guardrail must not break what it guards.
2026-11-04 18:49:54 -08:00
..