Module 05 Summary
What this module established
The moment a graph acts outside itself, retries stop being free. An idempotency key derived from the run id and step name makes retries safe by construction; deduplicating on arguments cannot, because two genuine identical refunds and two retries of one look the same.
Carry forward
- Validate tool arguments in two layers. Schema validation catches types and will happily accept a transfer of ninety-nine thousand - policy belongs in code where it can be audited.
- Give every tool the same result envelope so the graph has one error branch. A raising tool discards the state of the whole run.
- Log attempt and outcome after the call returns. Logging before it means a timeout that succeeded looks like a call that never ran.
Before moving on
Move on when a triple call to your action produces one effect, every tool returns the same envelope, and one node has been split into a pure half and a guarded half.
