Lv.1 0 XP

Chain Reliability — Validation Gates Between Steps

Core 6 min +25 XP
💡
THE ANALOGY

Quality gates on an assembly line. Finding a defect at station 3 costs 10 minutes. Finding the same defect at station 8 costs 10 minutes plus all the downstream work since station 3. Validate at each step — catching errors early is always cheaper.

⚠️ EXAM TRAP — The Wrong Answer People Choose

Validating only at the end of the chain. A bad step 2 output that passes undetected causes step 3 to produce a confidently wrong result — compounding the error.

KEY POINTS
1 Validate step output BEFORE passing to next step — format check AND quality check.
2 Lightweight evaluator Claude call between heavy steps: cheap quality assessment before expensive next step.
3 Retry the failing step before propagating failure — transient issues resolve on retry.
4 Low confidence outputs route to human review rather than continuing the chain.
5 Quality gates catch semantic errors that schema validation misses.