Operational patterns for tool-connected intelligent systems.
Observe the workflow
Agent failures may arise from planning, tool access, tool errors or unsafe state changes. Trace each stage and correlate execution with the initial request.
Manage changes
Version prompts, models, tools and policies. A tool contract change can affect the agent even when the model is unchanged. Test the full workflow before release.
Build recovery
Use idempotency where appropriate, bounded retries and explicit exception states. Record partial completion and direct uncertain actions to human review.