Difficulty: Advanced · Estimated time: 20 min
What You'll Learn
Three concrete techniques to catch hallucination and drift before they reach something that matters: an uncertainty rule, a human review checkpoint, and periodic testing.
Why This Matters
A specialised agent that's wrong confidently is more dangerous than a generalist chat that's obviously guessing, because you've started trusting it. The more you reuse an agent, the more a single unnoticed bad habit gets repeated. This guide is about catching that early.
The Concept
Three layers of protection, used together:
None of these is a one-off fix. They're habits you build into how the agent is used, not lines you write once and forget.
Step-by-Step
Example
For the weekly report writer from Guides 16 and 17:
Uncertainty rule: "If my notes don't mention progress on something you'd expect to see, say 'no update given' rather than assuming it's done or dropped."
Review checkpoint: the draft report always comes to you before it's forwarded to your manager — never auto-sent.
Known-answer test: keep one saved set of notes with a known-good report already written. Run it through the agent every month; if the new output drifts from the saved standard, check what changed in the instructions.
Try This
For one agent you've built in this level, write its uncertainty rule now, and identify exactly which of its outputs need a human to look at them before they're used.
Copy This
VERIFICATION RULES FOR: [AGENT NAME]
UNCERTAINTY RULE:
If [TYPE OF REQUIRED INFORMATION] is missing or unclear, say
"[EXACT PHRASE, e.g. 'Information required: ...']" instead of guessing.
HUMAN REVIEW CHECKPOINT:
Output requiring sign-off before use: [WHICH OUTPUTS]
Reviewed by: [WHO]
Before: [WHAT HAPPENS NEXT, e.g. sending, publishing, filing]
KNOWN-ANSWER TEST LOG
Test case: [INPUT] Expected output: [KNOWN-CORRECT RESULT]
Last run: [DATE] Result: [MATCH / DRIFTED]
Action taken if drifted: [WHAT WAS CHANGED]Common Mistakes
Level-Up Tip
Keep the known-answer test set itself under version control — when you update it, note why, so you can tell a genuine improvement in the agent apart from a test that just got easier.
Action Checklist
Next Guide
21, continuing the roadmap into Level 5. Head there when you're ready.
LEVEL 4 CHECKPOINT
You should now be able to design a specialised Claude-powered role for a recurring job, rather than rebuilding the same prompt from scratch every time.
Premium Content
Levels 2–6 require a mygyaan membership to access the full guides.
₹1,000/month — full mygyaan.ai access (all modules)
₹3,000 one-time — this course only
