Task 4.1
Explicit Criteria
Measurable instructions over vague directives
📘What You Need to Know
Why Vague Instructions Fail
Domain 4 consistently rewards explicit, measurable criteria over vague instructions. When you tell Claude to "review for quality issues" or "be thorough," you have not defined what success looks like. The model must guess — and it guesses broadly. It flags style preferences, minor naming inconsistencies, and speculative issues alongside real defects.
Vague prompts are not just imprecise; they are actively harmful in production review systems. Developers receive dozens of low-signal warnings per PR. They learn to ignore the tool entirely. The exam tests whether you can recognize this pattern and replace it with checkable conditions.
Explicit vs Vague: A Side-by-Side Comparison
Explicit criteria name the exact conditions to flag. Each condition is independently verifiable — a human or script could check it without interpretation. Vague criteria delegate judgment to the model without boundaries.
# Vague (anti-pattern)
"Review this code for quality issues. Be thorough."
# Explicit (correct)
"Flag ONLY the following conditions:
- Functions longer than 50 lines
- Async operations missing try-catch
- Hardcoded API key patterns (sk-*, AKIA*)
- Public functions missing JSDoc
- SQL queries using string concatenation instead of parameterization"On the exam, explicit measurable criteria always beats "be thorough," "find all issues," or "make it better."
The Alert Fatigue Cascade
Over-flagging follows a predictable cascade in production. First, the review tool reports too many issues — mixing critical security flaws with subjective style notes. Developers start dismissing warnings without reading them. Eventually, a real SQL injection or hardcoded secret gets buried in noise and merged anyway.
Explicit criteria break this cycle by constraining output to high-signal findings. When every flagged item maps to a defined rule, developers trust the tool again. Alert fatigue is not a UX problem — it is a prompt design problem caused by vague instructions.
- •Vague prompt → over-flagging → developers ignore warnings → real defects slip through
- •Explicit criteria → focused findings → developers act on each flag → trust maintained
- •Measurable conditions enable automated verification of review quality
Writing Measurable Criteria
Good criteria share three properties: they are binary (flag or do not flag), bounded (numeric thresholds or explicit patterns), and scoped (ONLY these conditions — not everything). "Improve error handling" fails all three. "Flag async functions without try-catch blocks" passes all three.
When designing review prompts for the exam or production, list conditions as a closed set. Use ONLY to signal that anything outside the list should not be reported. This word appears frequently in correct exam answers.
- •Use numeric thresholds: ">50 lines", ">500ms latency", "complexity >10"
- •Name specific patterns: "sk-*", "eval(", "innerHTML ="
- •Scope with ONLY: "Flag ONLY: [list]" prevents scope creep
- •Avoid subjective terms: "clean", "professional", "better", "best practices"
Applying Explicit Criteria Beyond Code Review
The same principle applies to extraction, classification, and compliance prompts. "Extract all important fields" is vague. "Extract invoice_number (required), vendor_name (required), line_items (array of {description, quantity, unit_price}), tax_amount (dollar value, not percentage)" is explicit.
Exam scenarios often present a vague prompt alongside a specific business requirement. The correct answer translates the requirement into measurable, checkable conditions — not into a longer version of "be thorough."
If you cannot write a unit test or regex that checks the condition, the criterion is probably too vague for production use.
⚠️Exam Traps
Trap: "Be thorough" or "find all issues" as review criteria
Why it's wrong: Vague criteria cause over-flagging and alert fatigue — developers stop trusting the tool.
Trap: "Make it better" or "improve the code" without defined standards
Why it's wrong: No measurable standard for what "better" means — output is subjective and inconsistent.
Trap: "Check if this code follows best practices"
Why it's wrong: "Best practices" is undefined — the model invents its own standards per run.
Trap: Adding more vague language to fix over-flagging ("only report serious issues")
Why it's wrong: "Serious" is still subjective — the model cannot calibrate severity without explicit rules.
✓Concept Check
Which code review prompt will produce the most actionable, trustworthy results?
🔨Build Exercise
Beginner30 minutesRewrite Vague Prompts with Explicit Criteria
What you'll learn
- •Convert vague review instructions into measurable criteria
- •Design criteria that prevent alert fatigue
- •Practice ONLY scoping for production review prompts