Agent architectures organize reasoning, tool use, state, and control. Their value depends on the task; adding agents can increase coordination cost and failure modes as well as specialization.

Start with one bounded workflow

Consider an illustrative support task: find the relevant policy, draft an answer, and request a case update. Begin with a single agent using read-only retrieval and a proposed update. Add more agents only when independent expertise or execution paths justify the extra handoffs.

ReAct and the action observation loop

A reason/action/observation loop lets the application incorporate tool results before choosing another step. It needs a terminal condition, a maximum step/cost budget, and a policy for unavailable tools. A model deciding to continue is not an adequate termination mechanism by itself.

Supervisor and hierarchy

A supervisor can assign policy lookup and account diagnosis to specialized workers. A hierarchy can group larger responsibilities. Both need schemas for delegated tasks and results, deadlines, and ownership of shared state. Two workers editing the same case can create a coordination problem rather than solve one.

Pattern Useful when Failure to plan for
Single tool-using agent One bounded task has a coherent context Unbounded looping or irrelevant tool calls
Supervisor Independent subtasks have useful specialization Lost handoffs, duplicated work, inconsistent results
Hierarchy Several bounded groups require coordination Accumulated latency and unclear ownership
Human approval An action needs review or missing judgment Approval state lost or action repeated after resume

A durable agent action boundary

Conceptual illustration; labels describe responsibilities, not a deployment specification.

Durable state and external effects

Before an external update, record its action ID and intended inputs. After a timeout, reconcile with the external system before retrying. A database checkpoint alone cannot make an arbitrary API call exactly once.

For the support example, retrieval can be retried without changing the case. A case update needs authorization and a stable idempotency/reconciliation mechanism. On resume, load the prior approval and outcome rather than asking the model to infer whether the update already happened.

A failure exercise

Interrupt after retrieval, after approval, and after the external write but before receiving its acknowledgement. Check that the answer uses the correct evidence, approval is preserved, and a retry does not duplicate the update. Measure total latency and tool cost, including delegated work.

The source playbook provides the original pattern discussion. AgentCore boundaries and prompt evaluation cover complementary implementation concerns.