core practice · system design prompt
Design exercise: Hallucination & Failure Detection
Unsupported claims, citations, abstention, tool errors, constraint violations, uncertainty, and escalation. Implement designOutline() returning non-empty values for: evidenceCheck, constraintCheck, escalation. Each value must name a concrete mechanism or decision.
The mechanism
Detect failures against evidence and task constraints. Require citations where possible, validate structured claims, calibrate abstention, and route uncertainty to tools or humans.
Expected evidence
A design outline with evidenceCheck, constraintCheck, escalation plus an explicit failure mode or trade-off.
Try this drill in the practice workspace →
Hints when you need them
- Name the failure mode before selecting the mechanism.