Add observe-only quant anomaly detection and safe alerts #62
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/llm-log!62
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rage/58-60-quant-anomaly-alerts-r3"
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?
Part of #58 and #60. Stacked on #63.
Policy
Quant anomaly detection is disabled by default in llm-log core. This slice observes and emits evidence; it does not change OpenRouter routing and does not block requests.
Detectors
Streamed tool calls are reconstructed by
tool_call.indexbefore validation so parallel calls do not generate the false malformed-JSON signal seen with naive chunk concatenation.Derived evidence
anomalies.jsonl: versionable detector evidence linked by event ID;alerts.jsonl: safe metadata only — event ID, severity/category, model, provider/selected provider, disclosed quantization, detector IDs;Exact precision is never inferred from output behavior. If router metadata discloses FP4/INT4/etc. it is grounded; otherwise quantization remains
unknownand behavioral anomalies stay a separate signal.RED-first structure
Detector + safe-alert contracts were committed before implementation.
Validation status
Branch/diff structure is audited. Full local unittest and Nix gates are still required before leaving draft.
Pull request closed