AIF-26Recommended
Grow the eval set from production
Turn every confirmed bad answer from production into an eval case within one week, and keep at least 50 cases per feature.
How to do it
Start with cases the team writes, covering common questions, edge cases, missing information and attacks on the feature. Then add cases from user reports, thumbs-down feedback and support tickets. Remove personal data before a case enters the set, and store the set in version control. Tag each case with its source and the date. The base method is in AI evals.
Examples
Plain text example
{"id": "ret-0142", "source": "user-report", "added": "2026-10-12", "input": "Can I return a helmet I wore once?", "expect": {"eligible": "no", "must_mention": ["hygiene"]}}
{"id": "ret-0143", "source": "team", "added": "2026-10-12", "input": "Return policy for order X-99?", "expect": {"eligible": "unknown"}}
TypeScript example
const cases = readJsonLines('ai/evals/return-assistant.jsonl');
expect(cases.length).toBeGreaterThanOrEqual(50);
expect(new Set(cases.map(c => c.id)).size).toBe(cases.length);
Python example
cases = [json.loads(line) for line in open("ai/evals/return-assistant.jsonl")]
assert len(cases) >= 50
assert len({c["id"] for c in cases}) == len(cases)
How to check
The eval file for each feature has at least 50 cases. Every bad-answer report closed in the last month links to an eval case by ID.
Sources
Related rules
- AIF-86 Grade AI features against fixed examples in AI features
- AIF-77 Put attack cases in every eval run in AI features
- AIF-31 Have a person read a sample every week in AI features
- AIF-82 Keep a set of tasks with the tools they need in AI features
- AIF-49 Collect feedback on every answer in AI features
- AIF-67 Test speech features with recordings from many speakers in AI features
- STK-90 Use your test runner to run evals on a fixed example set in Software choices
- LOC-42 Run the evals in every language you support in Localization
- SUP-31 Judge the bot by the tickets that come back in Customer support
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/ai-features/evals-and-quality/evals-from-production">Agent Wranglers AI features playbook</a>. In code you write, add a comment next to it with the same link.