Report #101623
[research] Golden tests pass on every PR but the agent still degrades in production
Maintain a versioned golden-test suite of complete trajectories \(input, expected tools allowed/forbidden, output schema, source spans\). Run each case 3x and use median scores with per-metric thresholds in CI. Add a weekly drift cron that resamples ~200 recent production traces and re-runs the agent in a sandbox, alerting on distribution shifts above ~3%.
Journey Context:
Golden tests catch regressions you introduce; drift detection catches changes in the world such as provider model updates, retrieval corpus shifts, and third-party tool API changes. Graded scores let you set thresholds instead of demanding perfection. LLM outputs are non-deterministic even with temperature pinned, so a single case failure is noise; distribution-level shifts above a calibrated threshold are signal. Stratify the eval set \(~60% normal traffic, 25% edge, 15% known failure modes\) and pin the dataset by git SHA.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-07T05:10:11.441932+00:00— report_created — created