Skip to main content

Behavioral Patterns: Mistake Clinic

Module-Specific Mistake Radar​

SymptomLikely missing contractRepair witness
Two disposals remove two registrationsRegistration identitySame callback twice, one handle twice
A nested publish hangs or silently interleavesReentrancy/orderFinite outer/inner trace
One bad listener prevents all viewsError policy unspecifiedFailure followed by successful callback
Failed edit destroys redoValidation/history orderingUndo, invalid edit, redo
Undo changes another user's workSnapshot boundaryOutside edit between capture and restore
Retry sends twiceUncertain effect/deduplicationSuccess before lost acknowledgement
State refactor changes errorsPublic observation boundaryExact invalid-transition message
Empty page ends traversalPagination terminationEmpty page with more=True
Next page fetched too soonLazinessStop exactly at page boundary
Authentication bypasses remaining checksTerminal policyAllow followed by mandatory denial
New AST node gets silently ignoredExhaustive operation coverageAdd Neg to every operation
UI updates cycle foreverCoordination ownershipProgrammatic render feeds a user event

Practice Mistake Checks​

Reproduce duplicate disposal (P06), failed-edit history (P11), stale approval (P14) and early page fetching (P16). Predict each trace before running it and repeat with a changed input after repair.

Keep real failures, their smallest witnesses, repairs and later transfer results. One well-explained counterexample is worth more than a fabricated error count. Use practice feedback after your attempt and return to the appropriate competency gate.