← Back to Syllabus
Week 4 Assignment

Design Error Recovery

Design an error recovery strategy for your harness. Define what happens when each tool fails: retry, switch tool, degrade, or escalate. Implement a circuit breaker for at least one tool.

Deliverables

  • 1. Decision tree: tool error → recovery action for each tool
  • 2. Circuit breaker spec: threshold (N failures), cooldown time, half-open test
  • 3. Graceful degradation plan: what does L1 → L4 look like for your agent?

Bonus

Implement the Manus pattern: inject the full error message into context and have the agent try a different tool. Write pseudocode showing the context injection step.