arXiv:2607.00269cs.AI2026-07被引 4

让AI生成的工作流在运行时自动验证修复,防止错误传播。

Mnemosyne: Agentic Transaction Processing for Validating and Repairing AI-generated Workflows

  • 将AI生成的操作视为不可信提案,仅运行时通过约束才可提交。
  • 在9个安全基准中100%拦截违规,本地修复操作量减少近10倍。
  • 适合需要高可靠性的AI工作流系统,如自动化运维与决策引擎。

大型语言模型生成的工作流动作可能看似合理但已过时、不可行、冲突或破坏自身证据。本文提出代理事务处理(ATP),将生成动作视为未受信任的提议,仅在可执行约束集C下经确定性审批后才被接受。其核心原则是:任何提议都不是真理,也无法预见所有干扰。所有动作均可提出,但只有运行时可接纳并提交;未预期干扰触发有限范围的主动修复,修复结果重新进入审批流程。Mnemosyne 实现了ATP,采用追加式转换日志、有效状态投影、依赖安全补偿和主动合约记录。在给定假设下,证明了四项安全性质(权限分离、序列等价生成准入、证据保留修复、义务控制)并建立有限反应式修复机制。在九个安全基准及四例时间SDK对比中,ATP成功拒绝所有目标违规,同时接纳有效工作流。匹配数据规模测试显示,相比本地持久提交路径,吞吐量成本增加5.2%-6.6%,暴露局部饱和点。在配套调度框架中,本地修复修改的操作数比全局重算少近一个数量级;12场景中断压力测试中,成功拒绝所有过时恢复候选,未丢失观测且无无效提交。两次有限试点中,来自四个异构LLM的80个提案通过同一入口,零无效提交;40个中途提案中24个被接纳,16个被拒绝,包括4次明确安全拒因。

原文摘要 · Abstract (English)

LLMs increasingly generate workflow actions and repairs that may be well formed yet stale, infeasible, conflicting, or destructive of their own evidence. We introduce Agentic Transaction Processing (ATP), which treats generated actions as untrusted proposals until deterministic admission accepts them under an executable constraint set C. Its two-sided principle is: a proposal is not truth, and no proposal foresees every disruption. Anything may propose, but only the runtime admits and commits; unforeseen disruptions trigger bounded reactive repair whose output re-enters admission. Mnemosyne realizes ATP with an append-only transition log, effective-state projection, dependency-safe compensation, and active contract records. Under stated assumptions and relative to C, we prove four safety properties (authority separation, serial-equivalent generative admission, evidence-preserving repair, and obligation containment) and establish bounded reactive repair. Across nine safety benchmarks and a four-case Temporal SDK comparison, ATP rejects every targeted violation while admitting valid work. A matched data-size sweep measures 5.2-6.6% incremental throughput cost over the same local durable commit path and exposes local saturation. In a companion scheduling harness, local repair edits nearly an order of magnitude fewer operations than global recompute; a 12-scenario interruption stress test rejects every stale recovery candidate without losing observations or producing invalid commits. Two bounded pilots route 80 proposals from four heterogeneous LLMs through the same gate with zero invalid commits; 24 of 40 mid-execution proposals are admitted and 16 are rejected, including four explicit safety rejections.

AI工作流安全验证LLM可靠性事务处理

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。