Forward Deployed EngineeringAI EngineeringAgent Architecture

When is an agent the wrong answer? Argue against using agents.

Question 50 of 73 · Updated

On this page

Interview-ready answer#

An agent is the wrong answer when the workflow is already understood well enough to encode in software. If the inputs, allowed actions, transition rules and success criteria are known, a deterministic workflow is usually cheaper, easier to test and more predictable to operate.

I distinguish using an LLM from giving an LLM control over the workflow. A conventional application can use a model to classify a ticket, extract fields or generate a response while retaining control over which action happens next. It becomes meaningfully agentic when the model dynamically chooses tools and subsequent steps based on intermediate observations.

That autonomy is useful when the execution path genuinely cannot be specified in advance—for example, investigating an unfamiliar software defect across several sources. But uncertainty about a business rule is not a reason to delegate the rule to a model.

My default is to start with the least autonomous architecture that meets the customer's requirements. I would introduce an agent only when adaptive planning demonstrably improves task completion enough to justify additional latency, cost, failure modes and governance.

1. Choose the smallest necessary decision-making surface#

Customer requirementBetter starting point than an agent
Calculate a refund, tax or eligibility decisionDeterministic business rules and authoritative data
Answer a question about internal documentationRAG with a fixed retrieval and generation pipeline
Extract invoice fieldsOne structured model call followed by validation
Route a support ticketClassifier or bounded router with an explicit fallback
Execute a known multi-step approval processWorkflow engine or state machine
Process independent documents in parallelBounded fan-out/fan-in workflow
Investigate an open-ended technical problemConsider a bounded agent if fixed alternatives underperform

A workflow can contain branching, loops, retries, parallel tasks and human approvals without being an agent. The distinguishing feature is who decides the next step: application logic or the model.

2. The case against autonomy#

Reliability. Each model-controlled decision introduces another opportunity to choose the wrong action, stop prematurely or misinterpret an observation. More calls are not inherently bad, but additional decision points must earn their place. A deterministic transition eliminates one source of uncertainty; it does not eliminate infrastructure failures.

Latency and cost. An adaptive loop often requires several sequential model round trips. Later requests may also carry accumulated tool results, increasing input cost. Parallelizing independent operations helps, but dependent decisions remain on the critical path. Variable step counts make tail latency and capacity planning harder.

Security and decision authority. An agent with broad tools has a larger potential blast radius than a fixed workflow. If an application knows the only permitted sequence, exposing arbitrary alternatives creates risk without adding business value. Keep permission checks, spending limits and irreversible-action approval in application-controlled code.

Operability. A state machine has explicit legal transitions and termination conditions. With an agent, debugging may require reconstructing the model's proposals, tool observations and changing execution paths. Replaying the same input does not necessarily reproduce the same trajectory. The team must support failure recovery across those possible paths, not just the happy path.

FDE-0043 covers tool execution and recovery invariants in depth. Reducing unnecessary autonomy makes those invariants easier to enforce; it does not replace them.

3. Quantify whether the extra flexibility is worth it#

Suppose a workflow requires five decisions, each with a 98% conditional probability of being correct given that all earlier decisions were correct. If every decision must be correct and there is no recovery, the probability of a completely correct path is:

0.98⁵ ≈ 90.4%.

This uses the probability chain rule under the stated conditional-success assumptions, not an assertion that real agent failures are independent. Agents can recover from errors, and some tasks tolerate intermediate mistakes. Measure end-to-end completion rather than multiplying unrelated benchmark scores.

Consider a separate hypothetical customer trial:

Per 1,000 eligible requestsFixed workflowAgent
Correct automated completions900950
Incorrect automated completions1015
Escalations9035
Automated processing cost$20$100

Assume each escalation costs $2 to resolve and each incorrect completion incurs $20 of remediation. Under those assumptions:

  • Workflow: $20 + 90 × $2 + 10 × $20 = $400.
  • Agent: $100 + 35 × $2 + 15 × $20 = $470.

The agent has higher automation success yet worse total cost. Its reduced escalations save $110, but its additional processing and remediation cost $180. These figures are invented to illustrate the trade-off, not measured results. High-impact errors may also be unacceptable regardless of average cost.

4. A practical architecture decision#

I would use four gates:

  1. Path uncertainty: Are there important cases where the next useful action cannot reasonably be specified using a bounded workflow?
  2. Feedback: Can the system observe whether each action made progress, and can it recover from mistakes?
  3. Containment: Can we bound permissions, steps, time, cost and irreversible effects while defining a reliable termination condition?
  4. Incremental value: Does a representative evaluation show a material advantage over the best simpler baseline at the required reliability and service objectives?

If path uncertainty is low, I would use a workflow. If feedback is weak or actions cannot be adequately contained, I would restrict the model to recommendations or human-reviewed proposals. If the economic and quality advantage is unproven, I would not commit to autonomous execution.

5. Customer scenario: enterprise refunds#

A customer asks for an agent that handles refunds end to end.

Refund eligibility depends on purchase date, payment state, product category and approved exceptions. The normal process is fixed: retrieve the order, calculate eligibility, obtain any required approval, execute the authorized refund and verify its outcome.

I would implement that process as a state machine. The LLM can interpret the user's natural-language request and draft an explanation, but it does not decide refund policy or whether to issue a second payment after a timeout.

Unusual disputes may need flexible investigation across conversations and policy documents. I would isolate that capability in a read-only investigation agent that returns evidence and a proposed resolution. The existing approval and refund workflow remains the authority.

This gives the customer flexibility where the task is ambiguous without making the predictable financial process autonomous.

6. Prove the architecture before rollout#

Compare the fixed workflow, a model-assisted workflow and a bounded agent on the same representative requests. Include routine cases, ambiguous cases and injected service failures. Define correctness and prohibited side effects before evaluating.

Measure end-to-end task success, incorrect automated actions, escalation rate, p95 latency, cost per successful task and recovery effort. Inspect results separately for routine and complex cases: a hybrid router may deliver better value than sending every request to an agent.

Start in recommendation-only or shadow mode for consequential operations, then expand authority only after the agreed acceptance gates pass. Keep the known workflow as a fallback where appropriate.

A strong FDE does not sell an agent because the customer requested one. They identify the business outcome, demonstrate the simplest adequate solution, and explain with evidence where additional autonomy is worth buying.

Related questions

Explore other topics:AI AgentsAI System DesignLarge Language Models