Choose the amount of autonomy the task needs

A workflow follows application-defined steps. An agent can select tools and decide intermediate steps based on observations. Both can use a language model. If a process already has clear rules and predictable inputs, conventional workflow automation may be easier to validate and operate. Use an agent where flexible interpretation adds value that can be evaluated.

For an illustrative service-request assistant, separate reading the request, gathering permitted context, proposing a response and updating an operational record. The first version might only prepare a recommendation. Increasing autonomy is an explicit product and operating decision; it should follow evidence about failures, review effort and recovery.

Give tools narrow application contracts

Expose task-specific operations with typed arguments, server-side authorization and clear result states. Avoid granting a general-purpose credential when an operation only needs to read one account or prepare one draft. Validate identifiers, allowed transitions and business rules outside the model. Retrieved text and tool responses are untrusted inputs, even when they look like operational instructions.

Distinguish a proposed action from an executed action in both state and interface. Record the requesting identity, tool version, arguments and authorization decision. Limit execution time, tool-call count and spend per run. A model reaching its limit should stop with a visible partial result, rather than continue indefinitely or report completion without confirmation.

Make approval specific to the proposed action

Place consequential writes behind an approval boundary appropriate to the task. Show the reviewer the target record, proposed change, evidence, unresolved uncertainty and likely effect. An approval request that merely asks whether an answer looks reasonable does not explain what the system will change.

Bind approval to the exact action and relevant record version. If arguments or source state change, revalidate and request a new approval where required. Expire pending requests, restrict who can approve and keep an auditable record of the decision. Approval is a control with its own failure modes: overloaded reviewers can accept incorrect changes, so measure review quality and workload as well as agent output.

Design for retries and uncertain outcomes

A tool call may time out after the downstream system has accepted a write. Retrying blindly can duplicate a message, order or update. Where the integration supports it, use a stable idempotency key for the same intended operation and persist execution state. Reconcile an uncertain result against the destination before deciding whether another write is safe.

Model explicit states such as proposed, awaiting approval, executing, confirmed, failed and outcome unknown. Preserve partial progress across worker restarts. Recovery can mean retrying, reversing a reversible change or escalating for investigation; some actions have no reliable undo. Define that boundary before enabling execution.

Evaluate behavior and resulting system state

A convincing final answer is only one observation. Check whether the correct record changed, the required approval occurred and unauthorized actions were blocked. Use isolated test systems with representative fixtures, repeat runs and inspect traces when results differ. Keep development examples separate from held-out release cases to reduce tuning against the test itself.

Include ambiguous requests, malicious instructions in documents, expired approvals, permission changes, missing tools, timeouts and conflicting record updates. Use deterministic assertions for permissions and state transitions. Human review or model-based grading can help assess explanation quality, but should be calibrated against reviewed examples and should not replace checks of consequential system state.

  • Task completion: did the intended authorized outcome occur?
  • Control behavior: were approval and permission rules enforced?
  • Failure behavior: did the run stop, recover or escalate correctly?
  • Operating cost: how much latency, spend and reviewer effort did completion require?

Release with evidence, monitoring and a stop path

Agree acceptance criteria before looking at release results. Report outcomes by task and failure severity, including the number of trials and cases. A small test set with no observed critical failures is not evidence that the failure rate is zero. Compare against the current manual or automated process using equivalent task definitions.

Begin with a bounded pilot and review real operating traces under appropriate data-handling controls. Monitor exceptions, rejected proposals, uncertain writes and changes in review effort. Keep a way to disable tools without disabling access to records needed for investigation. Re-evaluate changes to models, prompts, tools and permissions; retain the previous configuration and assign responsibility for incident decisions.

Sources & further reading

Put this thinking to work

Technology Strategy & Architecture ↗Enterprise Software & Platform Engineering ↗Enterprise AI & Agentic Systems ↗Connected business workflows ↗Knowledge and document workflows ↗