A common disagreement in solution reviews: for the same task—classifying tickets into eight categories, extracting order numbers and requests, and drafting a reply for support—someone will propose an Agent (a proxy that can autonomously decide its next action): first have one role classify, then another role retrieve from the knowledge base, then a third role write the reply, and finally add a QA role. It sounds like a clear division of labor, but the actual input is just one ticket and a few fixed fields. This task does not require exploring paths; it only requires output according to a contract. One prompt plus structured validation can cover most cases. The problem is not whether the model is strong enough, but that the architecture choice has been led astray by what is “advanced.”
A single prompt is not just writing a sentence casually. It is more like a call contract: what input fields exist, what output fields exist, how each field is validated, and under what conditions to refuse to answer or escalate to a human. If the contract is written clearly, the model can complete mapping-type tasks in a single call. If it is not written clearly, adding an Agent only splits vague requirements into more vague steps.
First determine whether the task has a path
I first look at whether the task has path uncertainty, not whether the task sounds complex. Path uncertainty means: whether the next step depends on the previous step’s tool return or intermediate observation. If all steps can be written down in advance, then even if there are ten steps, it is still a workflow, not an Agent.
Mapping-type tasks are suitable for a single prompt: classification, extraction, summarization, rewriting, scoring, and generation in a fixed format. Given the input, output a verifiable result; the model does not need to “see how things go” in between. Search-type tasks are what require an Agent: first check the logs, find that a service timed out, then decide whether to check dependencies or configuration; first retrieve from the knowledge base, find conflicting answers, then decide whether to ask the user a follow-up question or escalate to a human. The next step depends on the previous step’s observation—this is where an Agent is useful.
Complexity is not the criterion. Refund approval may involve five or six rules and three systems, but the rules are clear and the branches are enumerable, so a fixed workflow is more stable. Online troubleshooting may have only three steps, but what to check at each step depends on what the previous step returns; this kind of task requires autonomous decision-making. Mistaking “complex” for “uncertain” is the most common starting point for over-architecture.
Tasks that a single prompt can solve have three hard characteristics
Tasks that a single prompt can solve usually satisfy three conditions at the same time: clear input boundaries, verifiable output, and failures that can be retried without external side effects. If any one of the three is missing, consider adding a workflow or tools, but do not jump directly to an Agent.
Clear input boundaries mean the model does not need to find missing information itself. The ticket text, order status, and user tier are all in the request, and the model only performs classification and generation. If half the input is missing and the model must decide which system to query, that is another type of problem. Verifiable output means you can write down fields, enum values, length limits, and refusal conditions, rather than just writing “help me handle this.” Failures can be retried without side effects, meaning that if one output is wrong, rerunning or escalating to a human can cover it, and it will not automatically issue refunds, automatically change addresses, or automatically send notifications.
A call contract for a ticket scenario roughly looks like this:
1 | task: 工单分类与摘要 |
Once this contract is written, many arguments disappear. If it cannot be written, it means the task boundary has not been thought through, and adding an Agent will only postpone the boundary problem to runtime. If it can be written, first run a batch of real inputs and see whether failures are concentrated in single-step capability or path selection. This order cannot be reversed.
The cost of multi-step architectures usually shows up in latency and attribution
The cost of multi-step architectures does not grow linearly; latency, tokens (model billing units), and error attribution amplify together. Each additional model call adds one more queueing step, one more context read, and one more output generation. If single-step latency is around one second, five steps in series can easily reach four to seven seconds; in support scenarios, waiting three seconds and waiting seven seconds are two different experiences.
Error rates also accumulate. Assuming a single-step success rate of 95%, the overall success rate of five steps in series is about 0.95 to the fifth power, roughly over 70%; with a single-step rate of 90%, five steps leave only about 60%. This is arithmetic reasoning, not a measured value from a particular system, but it indicates a direction: the more steps there are, the more each step needs validation and fallback. An Agent’s autonomy does not automatically improve single-step accuracy; it only strings multiple single steps together.
What is more troublesome is attribution. When a single call fails, you can look at the input and output to locate whether the error is extraction, classification, or formatting. When a five-step Agent fails, it may be that the first step’s retrieval did not recall, the second step chose the wrong tool, the third step misunderstood the tool return, or the fourth step filled in the wrong parameters for a write operation. Without complete trace logs, online problems can only be guessed. Trace logs must also record each step’s input, tool return, model decision, and latency, and evaluation costs rise accordingly. Agent evaluation cannot compare only the final answer; it must also check whether the path is reasonable, whether the number of steps exceeds budget, and whether write operations have been approved.
There is a clear trade-off here: if the task has a high unit value, failures can be covered by humans, and latency is not sensitive, the cost of a multi-step architecture is acceptable; if the task is high-frequency, low-unit-value, and the user is waiting in front of the screen, a single call plus validation is usually more cost-effective. It is not that multi-step is necessarily wrong, but multi-step must buy new information or new decisions. If it buys neither, you are paying latency for nothing.
Push Agent requirements back into workflows
The most effective action for pushing Agent requirements back into workflows is to first write a single-call contract, then classify badcases (failure samples). I first ask: can this task be written as a single-call contract? Failure samples roughly fall into three categories: insufficient single-step capability, such as insufficient knowledge, unstable formatting, or unhandled ambiguity; path selection errors, such as not knowing what to check first or choosing the wrong tool; and tool execution errors, such as wrong parameters, timeouts, or insufficient permissions. The first two categories should first be addressed by improving retrieval, improving prompts, and adding validation and retries; only the third category requires redesigning the tool interface or introducing limited autonomous decision-making.
The following table can be used for initial screening:
| Question | Single prompt | Fixed workflow | Agent |
|---|---|---|---|
| Can steps be written down in advance? | Yes, single step | Yes | No |
| Do branches depend on intermediate results? | No | Branches enumerable | Yes |
| Are there write operations? | None | Yes, approved per node | Yes, requires sandbox and approval |
| Can failures be retried? | Yes | Yes, node retry | Partially, requires rollback |
| Latency budget | One to three seconds | Three to ten seconds | Ten seconds or more is common |
| Evaluation method | Output comparison | Node plus end-to-end | Trace plus end-to-end |
The latency in the table is an order of magnitude, not a promised value. What it intends to show is that each time the architecture goes up one level, the waiting cost the product must pay and the observability cost engineering must pay both change. The decision chain below is used to decide which level to try first, rather than choosing the heaviest one from the start.
flowchart TD A[输入输出能否固定] -->|能| B[一次提示词加校验] A -->|不能| C[分支能否提前枚举] C -->|能| D[固定工作流] C -->|不能| E[是否需要写操作或长任务] E -->|否| F[受限Agent只读工具] E -->|是| G[Agent加审批与回滚]
If most badcases are incorrect single-step outputs, adding an Agent will only bury the errors deeper. If failures are concentrated in “not knowing what to check first,” that is when the task has path uncertainty and is worth letting the model make limited decisions. This judgment does not require waiting for a major release; running dozens to hundreds of real inputs can reveal the outline. The sample size does not need to be large, but it must cover long-tail and boundary inputs; otherwise it is easy to mistake demo performance for production performance.
If you really need an Agent, write the stop rules first
If you really want to deploy an Agent, write the stop rules first, then talk about autonomy. An Agent’s usability doesn’t depend on how many steps it can take, but on at which step it must stop. Without a step limit, a budget cap, an allowed-tool list, and write-operation approval, so-called autonomy just hides uncertainty in the runtime and pushes the cost of failure onto production.
A minimal configuration looks roughly like this:
1 | agent_budget: |
Every field here is a product constraint. max_steps being six means that beyond six steps it returns partial results and hands off to a human, rather than letting the model keep trying. max_cost_usd is the per-task budget; exceed it and it stops. require_approval blocks write operations like refunds and address changes behind human confirmation. on_step_limit requires returning partial results and the trajectory, not just a one-line failure. Without these, the more autonomous the Agent, the harder production is to backstop.
Write operations also need idempotency keys and a rollback plan. Retrying the same refund request twice must not refund twice; after a failed address change, the original address must be restorable. These aren’t model-capability problems; they’re system-design problems. The Agent can decide “call the refund tool next,” but the refund tool itself must be able to reject duplicate requests, record the approver, and support revocation. Writing the responsibility boundary into the interface is far more useful than writing “please operate carefully” in the prompt.
At review, ask for two things first
At the next review, I’ll first ask the proposer to hand in two things: the input/output contract for a single call, and a failure classification of the most recent twenty badcases. If they can’t produce them, don’t discuss the Agent yet; if they can, and the failures cluster around path selection, then talk about autonomous decision-making. This order filters out most “advanced for the sake of being advanced” proposals, and it also lets tasks that genuinely need an Agent get the budget and observability resources they deserve.
Comments