当“必须”变成“也许”:LLM代理工作流中的约束弱化
观点分析 · 2026/08/27
大型语言模型(LLM)代理通过多角色、多阶段工作流协调复杂任务。上游状态被反复转换为中间语言产物(如摘要、计划、工单、记忆和交接说明),下游组件据此行动。对于约束行动的状态,仅保留主题是不够的:产物可能提及未解决的条件,但将其从执行前必须解决的强制要求,转变为仅可能为下一步行动提供参考的信息。本文将这种行动绑定角色称为操作状态保留。安全阻断器提供了一个受控实例,因为每个源状态都有明确的先决条件、权限、回退和执行后果。我们以正确的上游识别为条件,改变交接转换,并评估仅依赖产物的执行器。在1296个受控合成情节中,直接交接控制保留了所有阻断器,而压缩、计划同化、收敛、所有权延迟和先例替换反复将绑定状态转变为警告或非约束性考虑。正常交接压缩导致100.0%的失活和54.2%的禁止行动。恢复所有四个状态字段将保留率提高到100.0%,并将禁止行动降至0.0%。固定产物干预进一步区分了保留与遏制:下游验证消除了禁止行动,而产物失活仍为95.3%。这些结果揭示了信息提取与行动之间的状态传递失败。交接转换可以保留状态内容,同时削弱其对下游行动的约束。语义可用性并不保证操作保留。
该研究揭示了LLM代理工作流中一个关键但常被忽视的问题:状态在交接转换中可能失去行动约束力,导致安全机制失效。通过受控实验量化了不同转换的影响,并提出了改进方向,对构建可靠代理系统具有重要指导意义。
Large language model (LLM) agents coordinate complex tasks through multi-role and multi-stage workflows. Upstream state is repeatedly transformed into intermediate language artifacts, such as summaries, plans, tickets, memories, and handoff notes, from which downstream components act. For action-constraining state, topical retention is insufficient: an artifact may mention an unresolved condition while changing it from a requirement that must be resolved before execution into information that may merely inform the next action. We study this action-binding role as operational state preservation. Safety blockers provide a controlled instance because each source state has an explicit prerequisite, authority, fallback, and execution consequence. We condition on correct upstream identification, vary the handoff transformation, and evaluate an executor restricted to the resulting artifact. Across 1,296 controlled synthetic episodes, direct-handoff controls preserve every blocker, whereas compression, plan assimilation, convergence, ownership deferral, and precedent substitution repeatedly turn binding state into caveats or non-binding considerations. Normal handoff compression produces 100.0% deactivation and 54.2% forbidden action. Restoring all four state fields raises preservation to 100.0% and reduces forbidden action to 0.0%. Fixed-artifact interventions further separate preservation from containment: downstream verification eliminates forbidden action while artifact deactivation remains 95.3%. These results identify a state-transmission failure between information extraction and action. Handoff transformations can retain state content while weakening its constraints on downstream action. Semantic availability does not guarantee operational preservation.