Course contents · Chapter 4
AI LiteracyChapter 4 of 42 min reading + practice

Recover without duplicating actions

A timeout leaves uncertainty about whether an action completed.

A timeout leaves uncertainty about whether an action completed.

Before retrying a consequential request, use a request identifier or status lookup where available. Stop when the result cannot be established safely.

The bigger picture

A tool-using assistant can request actions beyond generating text. That makes input validation, permissions and observable results part of the system. A model's proposed action is a request to check, not proof that the action is authorised or correct.

  1. Receive goal
  2. Propose action
  3. Validate authority
  4. Execute and verify
A working model for this course. Use it to locate where a decision or failure occurs.

Concepts to keep close

Tool call
A structured request for an application to perform a defined operation.
Least privilege
Granting only the access needed for an authorised task.
Idempotency
Designing an operation so a retry does not unintentionally duplicate its effect.

Reasoning through the problem

Assign one identifier to the intended request.

Check status before submitting it again.

Escalate unresolved outcomes instead of assuming failure.

Use the idea carefully

Separate planning from execution. Validate arguments and authorisation at the tool boundary, keep untrusted content from redefining permissions and require appropriate approval for consequential actions. Log outcomes and handle partial failure. Test retries and timeouts, including cases where an action succeeded but its response was lost.

Further reading & course resources

Original documentation and teaching references for further investigation.