Skip to content
Ameen Abozaid
Planned lessonMID-069-L05

Side effects, idempotency, and human approval

  • Lesson 5 of 8
  • Mid-level
On This Lesson 4 topics

This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.

In this lesson

control tools that change things.

Planned topics

  • Classify tools: read-only, reversible write, irreversible or money-moving.
  • Side-effect tools create a pending request; a human (or explicit user confirmation) approves.
  • Use idempotency keys so a retried call does not refund twice.
  • Log who requested, who approved, and the arguments.
Draft outline details

Demonstration

state machine: PENDING → APPROVED → EXECUTED or REJECTED; the tool only creates PENDING.

Check your understanding

Why can an agent loop double-refund?

Show answer

It retries a non-idempotent tool after a timeout.

Practice

Apply this lesson with the module's lab, exercises and quiz.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Continue to next lesson

Type to search levels, phases, modules and lessons.