Turn failed production agent traces and user thumbs-downs into anonymized regression cases
Synthetic test prompts miss weird customer inputs. Build a clean flywheel from Langfuse, Braintrust, or OTel failure traces into golden tests.
Building a safe production-to-eval flywheel
- 01
Mine implicit failure signals beyond thumbs-down
Less than 2% of users click thumbs-down; mine traces with >4 tool retries, user 'stop/no' interrupts, or discarded diffs.
- 02
Trim multi-turn history to minimal reproducible state
Slice 30-turn sessions down to the exact pre-failure workspace/tool snapshot plus the triggering prompt.
- 03
Replace real user data with structurally equivalent synthetic rows
Preserve exact edge-case structure—null columns, Unicode accents, 400KB payloads—while swapping real names and keys.
- 04
Confirm the new case fails before editing SKILL.md
Just like TDD bug fixes, verify the extracted test case reproduces the failure first, then confirm your skill update turns it green.
Questions and answers
Why are implicit failure signals better than explicit user ratings?
Developers and ops users rarely click feedback buttons—they simply hit Escape, revert git changes, or rephrase the prompt three times in frustration.
How do you prevent eval suite bloat if you add production bugs weekly?
Cluster duplicate failure modes by root cause and promote representative canonical cases into tiered smoke vs full nightly suites.
Is OpenTelemetry GenAI semantic tracing supported?
Yes, trace-import workflows map standard OTel gen_ai.* tool call and response spans directly into harness fixtures.
Related tasks in this category
See all in Internal Evals & Golden Test Suites-
Design a reproducible 30-to-100 case golden evaluation suite for your internal skills
Vibe-checking three prompts after editing SKILL.md hides regressions. Structure realistic happy-path, edge-case, and no-trigger test cases.
-
Benchmark stochastic skill reliability with pass@1, pass@3, and pass^5 consistency metrics
A skill with 80% single-run pass@1 succeeds on all 5 consecutive runs (pass^5) less than 33% of the time. Measure variance before shipping.
-
Calibrate LLM-as-judge grading rubrics against human reviewers for open-ended skills
Uncalibrated 1-to-5 LLM judges reward long, confident bullet lists even when facts are wrong. Build binary, human-aligned graders.
-
Build recorded HTTP and MCP fixtures to benchmark tool-use skills offline and deterministically
Live Slack, Jira, and search APIs mutate every hour and hit rate limits in CI. Replay realistic stateful fixtures cleanly.
-
Block pull requests in GitHub Actions when SKILL.md edits drop benchmark pass rates or spike tokens
Treat SKILL.md and helper script changes like production code: run fast smoke evals on PRs and post pass-rate + token-cost diffs automatically.
-
Evaluate whether agent skills ask concise questions instead of guessing on vague tasks
Over-eager skills guess destructive parameters on vague prompts; timid skills ask 6 annoying questions when repo context already answers 5.