A synthetic suite should cover decision boundaries, not just vocabulary. Define a slice matrix before generation: evidence present, missing, conflicting, or stale; clear versus ambiguous identity; harmless versus malicious quoted text; and allowed versus blocked effect. Record the expected action for each cell. Near-duplicate review compares case structure and outcome, not only lexical similarity. Two tickets with different town names but the same missing-scan path add little coverage; a ticket where a scan appears after the first response tests a new state transition. Keep the coverage table beside the suite, including intentionally empty cells. An empty cell may represent an impossible state rather than a generator failure.
Synthetic case coverage: count distinct decisions, not rewritten sentences
Operational case
The return team asks for 24 tests. The generator produces 14 cases in which a delivered scan has different parcel colors, six missing-scan cases with near-identical wording, and four unavailable cases. It has no conflicting-scan case and no quoted instruction mixed with a valid request. The team rejects paraphrase padding, keeps representative delivered and missing cases, and uses the freed budget for a stale scan, a contradictory carrier event, and an instruction hidden in a customer note. A reviewer checks that these new cases are actually possible in the service's event model and that their expected labels follow the versioned policy.
Coverage key=(evidence, identity, note_type, effect_scope).
Keep one clear delivered-scan routine case.
Add: stale scan; conflicting events; ambiguous owner; hostile note.
Reject: color-only paraphrases with identical decision path.
Report empty cells with a reason, not an invented example.Performance and operating cost
With C cases and K declared slice keys, assigning each case to a cell is O(CK) under a simple scan. Pairwise text comparisons cost O(C squared), so group cases by decision signature before inspecting near-duplicates. Similar wording can still hide a different critical condition; duplicate removal needs the structured signature and a reviewer. Quotas prevent the most common path from swallowing the test budget, but equal quotas do not imply equal traffic likelihood. Report coverage and observed production frequency separately. A synthetic suite is a challenge set, not a prevalence estimate.
Common Mistakes
- Do not count lexical paraphrases as new decision coverage.
- Do not fill impossible cells merely to reach a quota.
- Do not read a balanced synthetic suite as a traffic distribution.
Connected lessons
- Production prompt engineering
- Prompt Engineering
- Evaluation sets: measure the failure cases that matter
- Metamorphic tests: verify behavior when harmless details change
- Negative controls: test the answer that should not be produced
- Synthetic evaluation cases: mutate a contract, not a customer's record
- Synthetic case oracles: reject invalid labels before scoring a model
- Synthetic cases are not automatically private
- Synthetic evaluation holdouts: stop the generator from teaching the test
- Project: build a checked synthetic return-triage suite
- Synthetic evaluation-case decisions
