让智能体具备自我诊断与修复能力,实现无需人工干预的持续进化。
VIGIL: A Reflective Runtime for Self-Healing Agents
- 构建反思式运行时,通过情绪化日志分析实现行为自检。
- 识别延迟问题并生成保留核心语义的提示与代码修复方案。
- 支持元级自我修复,适合高可靠性要求的部署场景。
智能体大模型框架虽承诺自主行为,但多数部署系统仍脆弱易崩。它们缺乏运行时内省能力,无法诊断自身失败模式,也无法在无人工干预下持续改进。实践中,许多代理栈退化为简单的LLM调用链,缺乏可靠性结构机制。本文提出VIGIL(可验证内省与受控迭代学习),一个监督同辈代理的反思式运行时,专注于自主维护而非任务执行。VIGIL摄入行为日志,将每个事件转化为结构化情绪表征,维护带有衰减与上下文策略的持久性EmoBank,并生成RBT诊断,将近期行为归类为优势、机会与失败。基于此分析,VIGIL生成保持核心身份语义的受控提示更新,以及由策略引擎根据日志证据与代码热点生成的只读代码建议。VIGIL作为状态门控流水线,非法状态转移会触发明确错误,而非允许LLM随意发挥。在提醒延迟案例研究中,VIGIL识别出延迟升高,提出提示与代码修复;当其诊断工具因模式冲突失效时,它主动暴露内部错误,生成备用诊断并输出修复计划,展示部署环境中元级别的自我修复能力。
原文摘要 · Abstract (English)
Agentic LLM frameworks promise autonomous behavior via task decomposition, tool use, and iterative planning, but most deployed systems remain brittle. They lack runtime introspection, cannot diagnose their own failure modes, and do not improve over time without human intervention. In practice, many agent stacks degrade into decorated chains of LLM calls with no structural mechanisms for reliability. We present VIGIL (Verifiable Inspection and Guarded Iterative Learning), a reflective runtime that supervises a sibling agent and performs autonomous maintenance rather than task execution. VIGIL ingests behavioral logs, appraises each event into a structured emotional representation, maintains a persistent EmoBank with decay and contextual policies, and derives an RBT diagnosis that sorts recent behavior into strengths, opportunities, and failures. From this analysis, VIGIL generates both guarded prompt updates that preserve core identity semantics and read only code proposals produced by a strategy engine that operates on log evidence and code hotspots. VIGIL functions as a state gated pipeline. Illegal transitions produce explicit errors rather than allowing the LLM to improvise. In a reminder latency case study, VIGIL identified elevated lag, proposed prompt and code repairs, and when its own diagnostic tool failed due to a schema conflict, it surfaced the internal error, produced a fallback diagnosis, and emitted a repair plan. This demonstrates meta level self repair in a deployed agent runtime.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。