“Help me buy my parents a washing machine under 3,000 yuan with low noise, deliver it to my hometown by the weekend, and don’t buy the extended warranty.”
This sentence contains four hard constraints, one vague constraint (low noise), one explicit exclusion, and nine available tools. In the online canary rollout, 32% of sessions had plans go off track, for example placing the order before checking delivery; another 18% got stuck in loops retrying after tool errors until timeout.
Most candidates’ first reaction is “make the planner more accurate.” But this question is not about the planner; it is about what the product leaves the user when the plan is bound to go wrong. The environment changes, users change their minds, and third-party APIs go down. As long as these three things exist, plans will inevitably be wrong; the only difference is how expensive the mistake is.
Post 2/10 in this series · Previous: An Agent’s capability boundary is not just “confirm high-risk actions” · Next: Retrieval was 78% correct, but answer citations were still wrong
Freeze constraints first, then expand steps
This sentence can be split into two layers. The constraint layer is global and unchanged throughout: budget ≤ 3000, delivery to hometown and reachable on the weekend, no extended warranty, and the noise preference mapped to filterable conditions such as decibels or a “quiet” tag. The execution layer is the steps.
| Step | Depends on | Can run in parallel | Completion condition |
|---|---|---|---|
| s1 Structure constraints | None | — | All four hard constraints have explicit values; the vague item has been converted into filterable conditions |
| s2 Product search + parameter filtering | s1 | In parallel with s3/s4 | Candidate set ≥ 3 and all satisfy price and delivery |
| s3 Review summary (noise) | s1 | Parallel | Each candidate has noise-related evidence |
| s4 Price comparison + post-coupon price | s1 | Parallel | Post-coupon price ≤ 3000 |
| s5 Inventory and delivery-time validation | s2 | — | Weekend-reachable and deliverable to the address |
| s6 Candidate set summary → user confirmation | s3/s4/s5 | — | User selects one unit or requests changes |
| s7 Claim coupon → place order → pay | s6 | Sequential and idempotent | Order number generated |
| s8 After-sales appointment | s7 | — | Optional; can be cut in the first release |
flowchart LR S1[s1 约束快照] --> S2[s2 搜索筛选] S1 --> S3[s3 评论摘要] S1 --> S4[s4 比价券后] S2 --> S5[s5 库存配送] S3 --> S6[s6 用户确认] S4 --> S6 S5 --> S6 S6 --> S7[s7 领券下单] S7 --> S8[s8 售后预约]
What must be frozen before s6 is the constraint snapshot and the candidate-set snapshot, not the entire plan. Freezing constraints keeps them from drifting with context over the next dozen tool calls; freezing the candidate set ensures that the unit the user confirms and the unit they finally buy are the same unit at the same price. Prices change, so the post-coupon price must be recalculated once more before s7; if it is out of range, stop and ask rather than silently placing the order at the new price.
Constraint drift shows up in very concrete ways: after the third round of tool returns, the model checks the extended warranty on the payment page, or treats 3499 as “not over 3000.” This kind of error cannot be cured by a stronger model, because it is locally reasonable at every round and only globally inconsistent.
The root cause of deviations like “place the order first, then check delivery” is usually not that the model is dumb, but that the plan does not make s5 a prerequisite of s7, or does so without writing done_when, that is, a judgeable completion condition. What the product side can do is require every irreversible action to carry such a precondition at the planning stage. This is the same idea as requires_confirmation in the previous post: move probabilistic judgment onto deterministic structure.
When the user changes one constraint, the whole flow should not rerun
The user says, “Change it to 3500.” The worst implementation invalidates s1 through s8 and starts over; the previous thirty seconds are wasted, and review summaries and price comparisons are recalculated too.
My approach is to add plan_version to the plan so that each step declares which constraints it consumes:
- If the budget changes, only the price filtering in s2 and the post-coupon price in s4 are affected; the noise evidence in s3 and the delivery-time and address validation in s5 can be reused.
- If the address changes, s5 must rerun; the product candidates from s2/s3/s4 can be reused, but they must be refiltered by deliverable area.
- If the user switches to a specific model, rerun that branch from s3 onward; the other parallel branches stay untouched.
This declaration has an extra cost: whoever writes the plan template has one more step, writing each step’s inputs clearly. I think this cost is worth paying, because it turns “does changing one number require recalculation” from a verbal argument into a checkable dependency table.
The dependency table also has its own failure modes. When a declaration is wrong, reusing old results is wrong: if the address changed but only price filtering reruns, the delivery-time result still carries the old conclusion. So I add a fallback rule: for any constraint change that affects an irreversible action, s5 and s7 are always recalculated, with no reuse considered. The few seconds saved are not worth compensating for one wrong order.
The interface does not show a black-box message like “replanning”; it shows “Updated to 3500 yuan; the other two checks are still valid.” What the user sees is not recalculation, but which conclusions still hold.
Here is an easy-to-miss detail: when constraints change, keep a reviewable snapshot of the old candidate set. Users often ask, “What about the one from earlier?” If you cannot answer, the trust you built up is wasted.
When a tool fails twice in a row, how should the product state switch
18% of sessions get stuck in retry loops. This is less a matter of poorly designed retry strategy than of the product not giving failure a user-visible state. I require distinguishing three types of failure, and after the same tool fails twice in a row, silent retries are forbidden:
| Failure type | What the user sees | Options |
|---|---|---|
| Temporarily unavailable (timeout/rate limit) | “Delivery time is temporarily unavailable; the other results are ready” | Retry later / skip this step and continue / hand off to a human |
| Invalid parameters (address not deliverable) | “This address cannot be delivered to on the weekend. Change the date or address?” | Change constraints / change candidate |
| Capability missing (no such data) | Clearly state that this cannot be verified and mark it as unconfirmed in the conclusion | Continue with the gap / give up |
This classification is based on what the user can do next, not on academic categories. For temporarily unavailable, the user chooses to wait or skip; for invalid parameters, the user must change constraints; for capability missing, the user can only decide whether to proceed with the gap.
Among the three options, “skip this step and continue” must actually continue, and the result must permanently carry an “unverified” marker; it cannot be dumped on the user only at the payment page. Retry loops make people give up not because of the failure itself, but because users do not know how long they will wait or what they are waiting for.
How granular should plan transparency be
For the version I gave the algorithm engineers, “hide the plan and show only results,” I kept a compromise: the first screen shows only stage progress, with details expandable. Users see 3–5 stages (finding matching models / checking delivery / waiting for your confirmation), without exposing tool names, parameters, or retry counts. Constraints become editable chips at the top; tapping one to change the budget triggers the incremental recalculation from the previous section.
The basis for tiering is how irreversible the task is. For read-only tasks, a one-line progress note is enough; for tasks that involve placing an order, the full candidate comparison and rationale must be laid out at s6. I don’t really buy the “the more transparent, the more trust” claim — show users the execution logs and most of them will just find it tiring. What users actually want is two things: to be able to change things, and to know it’s waiting on them.
As for which tool to cut, I’d cut s8, the after-sales appointment. It has no decision value before an order is placed, yet it adds an extra call, an extra failure point, and easily makes users feel “we’re talking after-sales before I’ve even bought anything.” The expectation is a slight rise in task success rate (one fewer failure point), no damage to order conversion — possibly even a slight rise because the flow is shorter. Validation looks at two numbers: conversion to the payment page, and tool calls per task. If conversion drops instead, that means this step was doing the work of building trust, so add it back. Daring to make a judgment that the data might overturn beats “keep everything and let users choose.”
What to do when the algorithm wants to hide the plan
I won’t lean on “users have the right to know.” First, clarify which kind of interference they’re worried about: progress text flooding the screen, or users seeing intermediate steps and repeatedly interrupting to change requirements. The former is solved by collapsing; the latter is exactly what the product wants — changing constraints mid-flow is far cheaper than buying wrong and returning.
The decision can be crisp: tier by task risk and run an A/B — hide for read-only tasks, expand for transactional tasks — and look at “mid-task modification rate” and “cancellation rate within 24 hours of ordering.” If the two metrics point in opposite directions, go with the cancellation rate, because the cost of a return is far higher than showing two extra lines of text. This is a product decision, not an aesthetic preference, so it should be settled by business metrics.
How I’d evaluate this answer
Passing grade: can draw the step sequence and articulate “users must be able to intervene.” Good: can distinguish the constraint layer from the execution layer, write out dependencies and completion conditions, and handle tool failures. Excellent: proposes incremental recomputation rather than a full rerun, turns failure into a state with an exit, gives a tiering rationale for transparency granularity, and explains how to validate it.
The most typical way to lose points is answering this as a technical solution: call the planner, add retries, swap in a better model. What a product role must deliver is the state machine, the interactions, and the trade-offs — not the scheduling algorithm.
The value of a plan isn’t getting it right the first time; it’s that when it’s wrong, the user only has to change that one spot.
Once the plan and the tools both run, the next problem is subtler: the material was clearly retrieved, but the answer cites a deprecated version.
Comments