feat: audit session transcripts for numeric claims with no tool evidence #12
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Long-lived failure mode in agent sessions: a figure is derived once (sometimes against the wrong reference), then restated in later turns without being re-checked. Repetition raises confidence instead of prompting verification.
Concrete instance from this project:
git diff --stat 6335670 bb852faproduced 6,884 — measured against the wrong ref — and "6,884 lines" was then repeated across five turns, driving a branch decision that had to be undone.Change
internal/claims: deterministic extraction and matching (no model calls).knox claims lint [--session ID] [--json], reading opencode'sopencode.db.Classification
Matching is unit-aware on purpose: matching the number alone makes "200MB" count as backed by any output containing 200.
Known limitation
The DB only contains messages once opencode persists them, so this audits completed sessions. A live guardrail needs the
contextplugin hook (follow-up).