行动—观察循环 ·
调用成功,不等于业务完成Action-Observation Cycle · A Successful Call Is Not a Completed
Task
action → transport result → business observation → validation →
retry / human handoff
行动—观察循环(Action-Observation
Cycle)在执行动作后读取环境结果,再把真实结果用于下一次决策。工具调用成功发出不等于任务成功完成。The action-observation cycle reads the environment after an action and
uses the real outcome for the next decision. A successfully issued
tool call does not mean the task succeeded.
01 · 快递接口回了 200,包裹却没出库01 · The shipping API returned 200; the parcel never left
如果系统只看“请求成功发送”就宣布完成,谁来发现
reserved = false,并决定重试还是转人工?If the system declares success after a request is sent, who notices
reserved = false and decides whether to retry or hand off?
200≠✓
02注入“调用成功但业务失败”,校验真实观察后重试或转人工Inject “Call Succeeded, Business Failed,” Then Validate the
Observation and Retry or Hand Off
行动 → 观察 → 校验 → 下一步act → observe → validate → next
状态 AMetric A
—
—
状态 BMetric B
—
—
状态 CMetric C
—
—
所有概率、命中率、得分与输出均为固定种子的教学模拟,不代表真实模型。拖回主变量即可复核结论。All probabilities, hit rates, scores, and outputs are fixed-seed
teaching simulations, not real model output. Move the main
variable back to verify the conclusion.
03把刚才的变化拆成 4 个零件Break the Change into Four Parts
Action-Observation Cycle
ACTION
行动Action
调用 reserve_stock 改变外部状态。reserve_stock attempts to change external state.
TRANSPORT
调用层结果Transport result
HTTP 200 只表示请求被接收。HTTP 200 means only that the request was accepted.
OBSERVATION
业务观察Business observation
reserved 字段说明库存是否真的预留。reserved states whether inventory was actually reserved.
NEXT
下一步Next action
校验后完成、修正重试或转人工。After validation: complete, retry with a fix, or hand off.
04最小机制:主交互能逐项验证Minimal Mechanism: Verify Each Link in the Interaction
注入失败时 call_ok 仍为 true,而 reserved =
false;完成门因此保持关闭,循环必须选择重试或转人工。When failure is injected, call_ok remains true while reserved =
false. The completion gate stays closed, forcing a retry or
handoff.
执行动作Act调用外部工具invoke external tool
读取观察Observe传输 + 业务状态transport + business state
校验决策Validate完成 / 重试 / 转人工complete / retry / hand off
05让 HTTP 200 与 reserved = false 同时出现Return HTTP 200 Together with reserved = false
主动制造失败Create a failure
边界实验Boundary experiment
这是最危险的“表面成功”。完成门必须读取业务后置条件,重试还要考虑
S7-13 幂等性。This is dangerous surface success. Completion must inspect the
business postcondition, and any retry must consider S7-13
idempotency.
尚未执行。先在主交互中观察正常机制。Not run yet. Observe the normal mechanism in the main interaction
first.
✗ HTTP 200 就代表任务完成。HTTP 200 means the task is complete.→ ✓ 还要检查业务后置条件 reserved。The reserved business postcondition must also
pass.
✗ 业务失败就无限重试。Retry forever after a business failure.→ ✓ 应有次数、幂等性与转人工边界。Retries need limits, idempotency, and a human
boundary.
✗ 观察只是写日志,不影响下一步。Observations are only for logs.→ ✓ 真实观察必须改变下一次决策。Real observations must change the next decision.
06 · 一句话带走06 · One line to keep
行动—观察循环必须把工具返回拆成调用状态与业务结果;只有后置条件通过才能完成,否则校验后重试或转人工。An action-observation cycle separates call status from business
outcome. Completion requires the postcondition; otherwise
validate, retry, or hand off.