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.
- 1Classify failure
- 2Inspect state
- 3Bound retries
- 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
- Record states and evidence step by step for each trace.
- Mark retryable steps and mandatory stopping points.
- 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.