AI MOOC
✦ Grow togetherInvite 3 friends, earn 1 month of membership · Up to 12 monthsInvite friends →

Library / My reading notes

Verify before retrying or handing off

Complete success, timeout and unrecoverable-error traces.

Back to course plan: Design an AI workflow that can stop and recover

Chapter 3 / 3 · Read and take notes

Complete success, timeout and unrecoverable-error traces.

Understand the method

Different failures need different responses. Fix invalid input; stop on permission errors; use bounded retries for temporary rate limits. A timeout after saving is an unknown outcome: query by task identifier before creating another draft. Bound steps, retries and runtime and stop when a limit is reached.

A handoff includes the goal, completed steps, last confirmed state, error and suggested next action. “Something failed” is not enough. Resume from a confirmed state and check that previous results remain valid. A diagram and rehearsal establish a design, not a deployed automation.

  1. 1Classify failure
  2. 2Inspect state
  3. 3Bound retries
  4. 4Human handoff

Included material

Trace A: save returns saved.
Trace B: save times out; lookup finds the existing draft.
Trace C: source access is denied.

Work through the steps

  1. Record states and evidence step by step for each trace.
  2. Mark retryable steps and mandatory stopping points.
  3. Package the flow, contracts, three traces and handoff note.

Worked example

A: running → saved → awaiting_review.
B: running → unknown → lookup finds draftId → awaiting_review; no duplicate.
C: running → blocked_permission → human handoff; no expanded permissions or endless retries.
All traces stop before sending.

Your exercise

Add a failed-lookup scenario and write a five-part handoff. Explain why success cannot be claimed without knowing whether the draft was saved.

Check before delivery

  • Each trace identifies the last confirmed state.
  • Unknown outcomes never become success and sending is not automatic.
Finish the exercise, then view the reference

After save and lookup timeouts, preserve unknown and stop automatic creation. Include the goal, completed steps, last confirmed state, both timeout observations and a recommendation for manual lookup.

An original course with teaching exercises. Reading records, practice outcomes and independent certification are distinct.

References and further reading

The lessons are original. The following sources are provided under their respective permissions.

Course

AI Agents for Beginners

Microsoft · en/zh

MIT

License checked. This entry links to the original; the book text is not mirrored.

License checked: 2026-10-16 · Pinned 6c3a5e13
Article / guide

Building Effective Agents

Anthropic · en

Original link; commercial republication permission not verified

Original link only; full text is not mirrored.

License checked: 2026-10-16
Whitepaper / report

NIST AI 600-1: Generative AI Profile

NIST / Autio et al. · en

NIST Technical Series reprint policy

Original PDF provided under the institution’s reprint policy.

License checked: 2026-10-16