Cordon: 工具使用型LLM代理的语义事务
Cordon: Semantic Transactions for Tool-Using LLM Agents
AI总结:
提出Cordon事务运行时系统,通过语义事务边界实现多步代理工作流的提交、回滚、恢复和审计,减少不可逆效应失败并暴露跨步违规。
摘要:
使用工具的LLM代理正在将计算单元从显式的人类指令转变为具有状态后果的模型驱动任务。然而,今天的代理运行时仍然将工具暴露为孤立的RPC。这种接口为运行时提供了便捷的集成点,但缺乏用于跨多步代理工作流进行提交、回滚、恢复和审计的任务范围执行边界。我们认为,这种不匹配需要运行时隔离边界,而不是另一个每次调用的护栏。本文介绍了Cordon,一个事务性运行时系统,用于在提交前暂存和验证不可逆的代理效应。语义事务是一个任务级执行边界,它将工具意图和运行时跟踪的结果谱系绑定到可逆的本地状态、暂存的外部效应、委托的权限和审计元数据。Cordon通过一个事务管理器实现这种抽象,该管理器跟踪派生结果对象,在影子状态中执行可逆突变,在效应发件箱中暂存面向外部的动作,并记录恢复元数据。然后,运行时在提交状态或释放外部效应之前验证组合的执行流程。我们在对抗性和良性工作流上的评估表明,Cordon暴露了现有防御措施遗漏的跨步违规。它还在保持良性任务完成的同时,以适度的批准和延迟开销减少了不可逆效应失败。
英文摘要:
Tool-using LLM agents are shifting the unit of computation from explicit human-issued commands to model-driven tasks with stateful consequences. Yet today's agent runtimes still expose tools as isolated RPCs. This interface gives runtimes a convenient integration point, but it lacks a task-scoped execution boundary for commit, rollback, recovery, and audit across multi-step agent workflows. We argue that this mismatch calls for a runtime containment boundary rather than another per-call guardrail. This paper introduces Cordon, a transactional runtime system for staging and validating irreversible agent effects before commit. A semantic transaction is a task-level execution boundary that binds tool intents and runtime-tracked result lineage to reversible local state, staged external effects, delegated authority, and audit metadata. Cordon implements this abstraction with a transaction manager that tracks derived result objects, executes reversible mutations in shadow state, stages outward-facing actions in an effect outbox, and records recovery metadata. The runtime then validates the composed execution flow before it commits state or releases external effects. Our evaluation across adversarial and benign workflows shows that Cordon exposes cross-step violations missed by existing defenses. It also reduces irreversible-effect failures while preserving benign task completion with modest approval and latency overhead.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。