经验时代的自改进智能体:从自我演化到元演化 · 中英对照全文精读

Self-Improving Agents in the Era of Experience: A Survey of Self- to Meta-Evolution — Bilingual Full-Text Reading Guide

原文 / Original: Jiang, Zhong, Fu, Tian, et al. · Tsinghua University & Horizon Research, Frontis.AI · 2026-06-25
本页含:① 各节精简总结;② 论文正文原文全文(中英逐段对照,点击各节“原文全文”展开);③ 全部公式的背景知识与推导过程(紫色公式卡);④ 原论文图 1–9 与表 1–6。原文已去除文献引用标注与参考文献列表;译文由 AI 生成,仅供参考。

💡 文中带紫色虚线下划线的术语可悬停查看解释;右侧为全部术语表(可搜索/筛选/按字母跳转)。

摘要Abstract

在"经验时代"(Era of Experience),智能体 AI 的定义不再只是模型能从静态数据中推断出什么,而是一个部署后的系统如何积累、组织、复用交互中产生的经验。本文综述"经验驱动的改进"(experience-driven improvement):以 harness(运行时控制层)为基础设施——它捕捉轨迹、路由动作、暴露反馈、治理可变状态——考察经验如何变成可复用技能、持久记忆、可验证的环境反馈、可训练的模型行为,以及元层控制。文章最后梳理可靠改进尚存的障碍:纵向评测、迁移、验证与安全治理。

一句话概括:让智能体在部署后变聪明,是一个"从轨迹到能力"(trace-to-capability)的问题——要学会捕捉经验、把经验指派到正确的更新表面、验证其价值,并在系统不断变化时保持控制。

In the Era of Experience, agentic AI is no longer defined only by what a model can infer from static data, but by how a deployed system accumulates, organizes, and reuses experience from interaction. This survey studies experience-driven improvement, focusing on the harness — the runtime infrastructure that captures traces, routes actions, exposes feedback, and governs mutable state. It reviews how experience becomes reusable skill, persistent memory, verifiable environment feedback, trainable model behavior, and meta-level control, then identifies the remaining barriers: longitudinal evaluation, transfer, verification, and safety governance.

In one sentence: making agents smarter after deployment is a trace-to-capability problem — the field must learn to capture experience, assign it to the right update surface, verify its value, and preserve control as the system changes.

Figure 1: Overview of the survey
Figure 1 | Overview of the survey. The figure summarizes how the paper moves from the harness-agent definition to external runtime adaptation, parameter-side consolidation, and the evaluation and safety conditions for turning deployment experience into durable capability.
中文图注:论文全景图。它总结了全文的推进路线:从 harness–智能体的定义出发,到外部运行时适应(技能/记忆/环境)、参数侧固化(RL 与持续学习)、元层协调(元演化智能体),再到把部署经验变成持久能力所需的评测与安全条件。
图释:图中可见各章的关键词——§2 Harness Paradigm(harness 范式)、§3 Skills(创建/使用/演化)、§4 Memory(表示/操作/演化)、§5 Environment(可执行性/协议化/可学习性)、§6 RL & CL(部署前训练、部署后训练、live traces)、§7 Meta-Evolving Agent(结构/策略/元层)、§8 Benchmarks(留出集增益、后向保持、改进效率、路径归因、纵向稳定性、安全不回退)、§9 Safety(技能劫持、记忆投毒、协议利用、反馈操纵、对齐漂移)。图的底部把"任务循环 → 跨任务复用 → 运行时系统"与"响应-动作 / 反馈-奖励"环对应起来。
📖 展开本节原文全文 · Expand the full original text

在经验时代(Era of Experience),智能体 AI 的定义不再仅仅是模型能从静态数据中推断出什么,而是一个部署后的系统如何从交互中积累、组织并复用经验。本综述研究部署后的智能体 AI 系统中的经验驱动改进。我们聚焦于运行时控制层(runtime harness)——作为捕捉轨迹、路由动作、暴露反馈并治理可变状态的基础设施。围绕这一基础设施,我们回顾了经验如何变成可复用的技能、持久的记忆、可验证的环境反馈、可训练的模型行为,以及元层(meta-level)控制。随后,我们指出了可靠改进仍然存在的障碍,包括纵向评测、迁移、验证与安全治理。因此,让智能体在部署后变得更聪明是一个“从轨迹到能力”(trace-to-capability)的问题:该领域必须学会如何捕捉经验、将经验指派到正确的更新表面、验证其价值,并在系统变化时保持控制。

In the Era of Experience, agentic AI is no longer defined only by what a model can infer from static data, but by how a deployed system accumulates, organizes, and reuses experience from interaction. This survey studies experience-driven improvement in deployed agentic AI systems. We focus on the runtime harness as the infrastructure that captures traces, routes actions, exposes feedback, and governs mutable state. Around this infrastructure, we review how experience becomes reusable skill, persistent memory, verifiable environment feedback, trainable model behavior, and meta-level control. We then identify the remaining barriers to reliable improvement, including longitudinal evaluation, transfer, verification, and safety governance. Making agents smarter after deployment is therefore a trace-to-capability problem: the field must learn how to capture experience, assign it to the right update surface, verify its value, and preserve control as the system changes.

经典 AI 把智能体定义为自主控制、感知环境、长期运行、适应变化、目标导向(Russell & Norvig)。"经验时代"把这些属性重新放回中心:未来的进步越来越多来自智能体与环境交互产生的经验——有接地奖励、后果在长时程上才显现。

历史线索:Gödel Machine(自修改前必须先证明期望效用改进)→ Darwin Gödel Machine(用经验选择取代证明门槛:改自己的代码、评估变体、把成功后代存档)→ 自动化 AI 研究循环 → 业界所称的 "loop engineering"(循环工程)。核心洞见:改进要可信,靠的不是一次性的证明或分数,而是"变化的证据"被保留下来并持续支撑后续行为。

经验只有在给系统留下持久效果时才算数:一个可检索的技能、一段改变后续上下文的记忆、一次策略更新、一条指导下一次改进尝试的记录。AlphaEvolve、SkillRL、Agent0 等系统都依赖**能收集经验、支撑评估、治理"什么允许改变"的持久运行时基础设施**。

Classical AI characterizes agents by autonomous control, environment perception, prolonged operation, adaptation to change, and goal-directedness. The Era of Experience brings these attributes back to the center: future progress increasingly comes from experience generated as agents interact with environments, receive grounded rewards, and face consequences that unfold over long horizons.

The intellectual arc: the Gödel Machine (self-modification admitted only after a proof of expected-utility improvement) → the Darwin Gödel Machine (empirical selection replaces the proof gate: modify one's own code, evaluate variants, keep successful descendants) → automated AI-research loops → what practitioners now call "loop engineering". The core insight: improvement becomes credible when the evidence around a change remains available to future attempts and continues to support later behavior.

Experience matters when it leaves a durable effect: a retrievable skill, a memory that changes later context, a policy update, or a record that guides the next improvement attempt. Systems like AlphaEvolve, SkillRL, and Agent0 all depend on persistent runtime infrastructure that can collect experience, support evaluation, and govern what is allowed to change.

📚 第 1 章总览 · 手写精读(本章主旨与各小节导读)

本章主旨:能力增长正在从"训练阶段"转移到"部署阶段"——智能体的经验在部署后持续积累并被转化成技能、记忆与参数更新。本文把这种系统称为自改进智能体,并以"经验如何变成能力"为主线组织全文。

  • 1.1 时代背景:从静态模型到部署后持续演化的智能体;
  • 1.2 本文主张:部署后的经验是未来能力增长的主要来源;
  • 1.3 与既有综述的划界(表 1):外部表面 × 长程开放环境 × 多种演化机制。

The point of this chapter: capability growth is shifting from the training phase to the deployment phase — an agent keeps accumulating experience after deployment and turns it into skills, memory, and parameter updates. This survey calls such systems self-improving agents and organizes the whole paper around one question: how experience becomes capability.

  • 1.1 The setting: from static models to agents that keep evolving after deployment;
  • 1.2 The thesis: post-deployment experience is the main source of future capability gains;
  • 1.3 Delimitation against prior surveys (Table 1): external surfaces × long-horizon open environments × multiple evolution mechanisms.
📖 展开本节原文全文 · Expand the full original text

1. 引言 1. Introduction

经典 AI 以自主控制、环境感知、长时间运行、对变化的适应和目标导向性来刻画计算机智能体。经验时代将这些属性重新带回智能体 AI 的中心:未来的进步越来越来自智能体与环境交互、获得有环境依据的奖励、面对在长时间范围内逐渐展开的后果时所产生的经验。因此,关键研究对象是一个已部署的智能体 AI 系统,其中积累的经验塑造后续行为。问题在于经验如何变成可靠的改进。Gödel Machine 形式化了一个理想情形:只有在给出期望效用改进的证明之后,才允许自我修改。近期的自我改进编程智能体用经验性选择取代了这一证明关卡:Darwin Gödel Machine 允许智能体修改自己的代码,评估所产生的变体,并将成功的后代保留在存档中。同样的模式在更大规模的自动化 AI 研究循环中反复出现:所提议的研究变更被实现、测试、检查是否存在回归或奖励黑客,然后被折叠进上下文以供后续尝试使用。实践者的讨论已开始将这类工作方式描述为“循环工程”(loop engineering)。这些例子指出了一条从证明走向经验的实用路线:当某项变更周围的证据对后续尝试仍然可用、并持续支撑后续行为时,改进才变得可信。这使得长期运行的部署成为智能体 AI 研究的核心。当经验对系统留下持久影响时,经验才有意义:一项可检索的技能、一段会改变后续上下文的记忆、一次策略更新,或是一条指导下一次改进尝试的记录。AlphaEvolve、SkillRL 和 Agent0 等近期系统体现了这种从孤立任务执行向工程化改进过程的转变。它们在领域和更新机制上各不相同,但都共同依赖于能够收集经验、支撑评估并管控哪些变更被允许的持久运行时基础设施。harness 一词已经出现,用来描述这一运行时控制层。在 Anthropic 的托管智能体栈中,它指的是调用 Claude 并在持久会话与执行沙箱之间路由工具调用的循环;相关的 Claude Agent SDK 指南对跨越长时间工作来收集上下文、规划和执行的长期运行智能体使用了同样的表述。在更广泛的实践者社区中,harness 越来越被用来指模型周围的控制层,规划、工具使用、上下文、记忆、权限、验证、恢复、停止条件和升级路径都在其中被指定、观察和修订。在编程智能体实践中,这种控制角色也可以用指南(guides)和传感器(sensors)来描述:指南在行动前塑造智能体被允许或被鼓励做什么,传感器则暴露反馈,让智能体在行动后检测错误并修正其轨迹。基于这些工程实践描述,我们将 harness 视为经验基础设施,已部署的智能体 AI 系统可以通过它将交互转化为后续行为。上述讨论引出了本综述的主要问题:在经验时代,长期部署的智能体如何利用 harness 中介的控制来积累经验、自我进化,并最终支撑元进化?为回答这一问题,本综述按如下方式回顾了关于已部署智能体 AI 基础、外部运行时适应、参数侧固化、元进化、评估、安全和开放问题的最新工作。

Classical AI characterizes computer agents by autonomous control, environment perception, prolonged operation, adaptation to change, and goal-directedness. The Era of Experience brings these attributes back to the center of agentic AI: future progress increasingly comes from experience generated as agents interact with their environments, receive grounded rewards, and face consequences that unfold over long horizons. The key object is therefore a deployed agentic AI system in which accumulated experience shapes later behavior. The question is how experience becomes reliable improvement. The Gödel Machine formalized an ideal case in which self-modification is admitted only after a proof of expected-utility improvement. Recent self-improving coding agents replace this proof gate with empirical selection: Darwin Gödel Machine lets agents modify their own code, evaluates the resulting variants, and keeps successful descendants in an archive. The same pattern appears at a larger scale in automated-AI-research loops, where proposed research changes are implemented, tested, checked for regressions or reward hacks, and then folded into the context for later attempts. Practitioner discussions have begun to describe this style of work as "loop engineering". These examples point to a practical route from proof to experience: improvement becomes credible when the evidence around a change remains available to future attempts and continues to support later behavior. This makes long-running deployment central to the study of agentic AI. Experience matters when it leaves a durable effect on the system: a retrievable skill, a memory that changes later context, a policy update, or a record that guides the next attempted improvement. Recent systems such as AlphaEvolve, SkillRL, and Agent0 illustrate this shift from isolated task execution toward engineered improvement processes. They differ in domain and update mechanism, but they share a dependence on persistent runtime infrastructure that can collect experience, support evaluation, and govern what is allowed to change. The term harness has emerged to describe this runtime control layer. In Anthropic's managed-agent stack, it denotes the loop that invokes Claude and routes tool calls between a persistent session and an execution sandbox; related Claude Agent SDK guidance uses the same language for long-running agents that gather context, plan, and execute across extended work. In the wider practitioner community, harness is increasingly used for the control layer around the model, where planning, tool use, context, memory, permissions, verification, recovery, stop conditions, and escalation paths are specified, observed, and revised. In coding-agent practice, this control role can also be described through guides and sensors: guides shape what the agent is allowed or encouraged to do before action, while sensors expose feedback that lets the agent detect errors and correct its trajectory after action. Building on these engineering accounts, we treat the harness as the experience infrastructure through which deployed agentic AI systems can turn interaction into later behavior. The discussion above motivates the survey's main question: in the Era of Experience, how can long-term deployed agents use harness-mediated control to accumulate experience, self-evolve, and eventually support meta-evolution? To answer it, this survey reviews recent work on deployed agentic AI foundations, external runtime adaptation, parameter-side consolidation, meta-evolution, evaluation, safety, and open problems as follows.

• 我们首先将已部署的智能体 AI 系统形式化为一个运行时对象,其行为由基础模型、可变 harness、用户侧和环境侧共同塑造。我们将 harness 定义为经验基础设施,将其分解为交互接口与经验落点,并在第 2 节回顾从任务有界的工具使用循环到长期运行的已部署运行时的发展。

• We first formalize the deployed agentic AI system as a runtime object whose behavior is shaped by a base model, a mutable harness, a user-facing side, and an environment-facing side. We define the harness as experience infrastructure, decompose it into interaction interfaces and experience destinations, and review the development from task-bounded tool-use loops to long-running deployed runtimes in Section 2.

• 随后,我们追踪部署经验的主要更新落点:可编辑的运行时表面与模型参数固化。技能、记忆和可执行环境展示了经验如何在不改变模型权重的情况下塑造后续行为;模型侧固化则追问:来自部署的稳定经验教训应在何时被内化到参数之中。这些更新位置在第 3–6 节展开。

• We then follow deployment experience to its main update destinations: editable runtime surfaces and model-parameter consolidation. Skills, memory, and executable environments show how experience can shape later behavior without changing model weights; model-side consolidation asks when stable lessons from deployment should be internalized into parameters. These update sites are developed in Sections 3–6.

• 此外,当改进过程本身成为演化系统的一部分时,元层负责协调哪些组件、规则、预算、评估器和更新机制应当发生变化。这一元进化层将在第 7 节讨论。

• In addition, when the improvement process itself becomes part of the evolving system, meta-layers coordinate which components, rules, budgets, evaluators, and update mechanisms should change. This meta-evolution layer is discussed in Section 7.

• 最后,我们研究已部署智能体 AI 系统能够可靠改进的条件。评估必须区分真正的纵向增益与过拟合、成本转移和隐藏回归;安全必须将可变的技能、记忆、工具、反馈渠道和治理策略作为不断变动的攻击面加以管控。这些问题构成第 8、9、10 节的核心内容。

• Finally, we study the conditions under which deployed agentic AI systems can improve reliably. Evaluation must distinguish real longitudinal gain from overfitting, cost transfer, and hidden regression; safety must control mutable skills, memories, tools, feedback channels, and governance policies as moving attack surfaces. These issues anchor Sections 8, 9, and 10.

第 2 章 · harness 作为经验基础设施2. Harness as Experience Infrastructure

2.1. 运行时适应需要经验基础设施2.1. Runtime Adaptation Requires Experience Infrastructure

📚 第 2 章总览 · 手写精读(本章主旨与各小节导读)

本章主旨:部署系统是四元组 A_t = ⟨M_θt, H_t, U_t, E_t⟩,harness 是"经验基础设施"——它中介三条通路(用户请求→模型上下文、模型输出→环境动作、轨迹→未来更新)。经验必须编译(过滤/压缩/归因/验证)成 z_i 才可用;更新有快慢两条路径(外部化 Φ_H 与参数固化 Φ_M)。

  • 2.1 四元组、轨迹窗口与编译经验、快慢路径;
  • 2.2 三代演进:任务循环 → 跨任务复用 → 运行时系统;
  • 2.3 综述组织:以经验流通为单一主轴;
  • 2.4 相关综述:三条线(系统级/组件级/面向进化)。

The point of this chapter: a deployed system is the four-tuple A_t = ⟨M_θt, H_t, U_t, E_t⟩, and the harness is the "experience infrastructure" — it mediates three channels (user requests → model-visible context; model outputs → environment actions; traces → future updates). Experience must be compiled (filtered, compressed, attributed, verified) into z_i before use, and updates flow along two paths: externalization Φ_H and parameter consolidation Φ_M.

  • 2.1 The four-tuple, trace windows, compiled experience, and the fast/slow paths;
  • 2.2 Three generations: task loops → cross-task reuse → runtime systems;
  • 2.3 Survey organization: one spine — the flow of experience;
  • 2.4 Related surveys: three lines (system-level, component-level, evolution-oriented).

本节要点Section at a glance

由经验驱动的改进依赖于系统中能够在部署时间尺度上发生变化的那一部分。在当代智能体 AI 系统中,这一角色越来越多地由模型周围的运行时控制层(harness)承担:它是组织上下文、工具访问、权限、执行、反馈、记忆与恢复的那一层。

Experience-driven improvement depends on a part of the system that can change on the timescale of deployment. In contemporary agentic AI systems, this role is increasingly served by a runtime harness around the model: the layer that organizes context, tool access, permissions, execution, feedback, memory, and recovery.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §2.1 原文全文 · Expand the full original text

2. harness 作为经验基础设施 2. Harness as Experience Infrastructure

2.1. 运行时适应需要经验基础设施 2.1. Runtime Adaptation Requires Experience Infrastructure

由经验驱动的改进依赖于系统中能够在部署时间尺度上发生变化的那一部分。在当代智能体 AI 系统中,这一角色越来越多地由模型周围的运行时控制层(harness)承担:它是组织上下文、工具访问、权限、执行、反馈、记忆与恢复的那一层。它的实际重要性来自一种时间尺度不对称:与模型权重相比,harness 状态在部署期间可以被检查、修订和治理的频率高得多、成本低得多,而它又直接塑造模型能看到什么、能采取什么动作、能捕获什么证据,以及交互的哪些部分成为可复用的经验。这引出了我们的分析单位:一个部署后的智能体 AI 系统,其在时间 𝑡 的行为由基座模型、可变的 harness、用户侧界面(目标、指令、偏好与反馈由此进入)以及环境侧界面(动作、观察、测试与运行状态由此暴露)共同决定:A𝑡 = ⟨𝑀𝜃𝑡, 𝐻𝑡, 𝑈𝑡, 𝐸𝑡⟩。这里 𝑡 表示部署的墙钟时间。𝑀𝜃𝑡 是在时间 𝑡 可用的基座模型,参数为 𝜃𝑡;𝐻𝑡 是有状态、可变的 harness;𝑈𝑡 表示部署的用户侧,包括聊天、网关、工作流接口、用户协议以及从用户意图组装上下文;𝐸𝑡 表示环境侧,包括文件系统、浏览器、shell、MCP、A2A、工具、测试、日志与运行状态。这个四元组定义运行时对象,而耦合关系由 harness 承载:𝐻𝑡 中介用户请求如何变成模型可见的上下文、模型输出如何变成环境动作、以及产生的轨迹如何变成未来的更新。部署是连续的,但经验不必在每次交互之后都编译一次。因此我们区分墙钟时间 𝑡 与不规则的轨迹窗口边界 0 = 𝑡0 < 𝑡1 < 𝑡2 < · · · < 𝑡𝑖 < · · ·。边界 𝑡𝑖 是 harness 层的切分决策,可能有模型辅助。在 𝑡𝑖−1 与 𝑡𝑖 之间,系统可能包含许多原子交换,包括用户-智能体交互、智能体-环境执行,甚至用户-环境的直接反馈。我们把第 𝑖 个轨迹窗口写作该区间内交互记录的集合:𝜏𝑖 = {𝛼 | time(𝛼) ∈ [𝑡𝑖−1, 𝑡𝑖)}。当窗口关闭时,harness 把这条轨迹映射为可用经验:𝑧𝑖 = 𝐻𝑡𝑖(𝜏𝑖)。这里 𝐻𝑡𝑖 表示关闭窗口并执行这一编译的 harness 状态——此时基于 𝑧𝑖 的任何更新尚未提交。符号 𝑧𝑖 故意不是原始日志:它表示经过充分过滤、压缩、归因或验证、足以用于后续适应的经验。截至部署时域 𝑇,经验库为 𝑍𝑇 = {𝑧𝑖 : 1 ≤ 𝑖 ≤ 𝑁(𝑇)},其中 𝑁(𝑇) = max{𝑖 : 𝑡𝑖 ≤ 𝑇}。这正是部署后的智能体能够在部署之后变得更聪明的时刻。在快时间尺度上,编译经验在轨迹窗口边界处改变 harness:。在较慢的时间尺度上,累积的经验可以在更稀少的更新检查点 0 < 𝑠1 < 𝑠2 < · · · < 𝑠𝑘 < · · · 被固化进模型参数:。在这一形式化中,部署后的智能体 AI 系统在环境中行动,把轨迹窗口变成编译经验,并用这些经验更新其未来行为。图 2 总结了这一运行时对象,展示 harness 如何中介用户侧上下文、环境侧执行、编译经验与可变的更新表面。

Experience-driven improvement depends on a part of the system that can change on the timescale of deployment. In contemporary agentic AI systems, this role is increasingly served by a runtime harness around the model: the layer that organizes context, tool access, permissions, execution, feedback, memory, and recovery. Its practical importance comes from a timescale asymmetry. Harness state can be inspected, revised, and governed during deployment far more frequently and cheaply than model weights, yet it directly shapes what the model sees, what actions it can take, what evidence is captured, and which parts of interaction become reusable experience. This motivates our unit of analysis: a deployed agentic AI system whose behavior at time 𝑡 is jointly determined by the base model, the mutable harness, the user-facing side through which goals, instructions, preferences, and feedback enter, and the environment-facing side through which actions, observations, tests, and operational state are exposed: A𝑡 = ⟨𝑀𝜃𝑡, 𝐻𝑡, 𝑈𝑡, 𝐸𝑡⟩. Here 𝑡 denotes wall-clock deployment time. 𝑀𝜃𝑡 is the base model available at time 𝑡, with parameters 𝜃𝑡; 𝐻𝑡 is the stateful mutable harness; 𝑈𝑡 denotes the user-facing side of deployment, including chat, gateways, workflow interfaces, user protocols, and context assembly from user intent; and 𝐸𝑡 denotes the environment-facing side, including filesystems, browsers, shells, MCP, A2A, tools, tests, logs, and operational state. This tuple defines the runtime object, while the coupling relation is carried by the harness: 𝐻𝑡 mediates how user requests become model-visible context, how model outputs become environment actions, and how resulting traces become future updates. Deployment is continuous, but experience need not be compiled after each individual interaction. We therefore distinguish wall-clock time 𝑡 from irregular trace-window boundaries 0 = 𝑡0 < 𝑡1 < 𝑡2 < · · · < 𝑡𝑖 < · · ·. The boundary 𝑡𝑖 is a harness-level segmentation decision, possibly made with model assistance. Between 𝑡𝑖-1 and 𝑡𝑖, the system may contain many atomic exchanges, including user–agent interaction, agent–environment execution, and even direct user–environment feedback. We write the 𝑖-th trace window as the collection of interaction records in that interval: 𝜏𝑖 = {𝛼 | time(𝛼) ∈ [𝑡𝑖-1, 𝑡𝑖)}. When the window closes, the harness maps this trace into usable experience: 𝑧𝑖 = 𝐻𝑡𝑖 (𝜏𝑖). Here 𝐻𝑡𝑖 denotes the harness state that closes the window and performs this compilation, before any update based on 𝑧𝑖 is committed. The symbol 𝑧𝑖 is deliberately not a raw log. It denotes experience that has been filtered, compressed, attributed, or verified enough to be usable for later adaptation. Up to deployment horizon 𝑇, the experience reservoir is 𝑍𝑇 = {𝑧𝑖: 1 ≤ 𝑖 ≤ 𝑁(𝑇)}, 𝑁(𝑇) = max{𝑖: 𝑡𝑖 ≤ 𝑇}. This is the point at which the deployed agent can become smarter after deployment. On the fast timescale, compiled experience changes the harness at trace-window boundaries: . On the slower timescale, accumulated experience can be consolidated into model parameters at rarer update checkpoints 0 < 𝑠1 < 𝑠2 < · · · < 𝑠𝑘 < · · ·: . In this formulation, a deployed agentic AI system acts in an environment, turns trace windows into compiled experience, and uses that experience to update its future behavior. Figure 2 summarizes this runtime object, showing how the harness mediates user-facing context, environment-facing execution, compiled experience, and mutable update surfaces.

📖 原文依据(论文逐字引用)|Verbatim from the paper
§2.1 原文:“This motivates our unit of analysis: a deployed agentic AI system whose behavior at time 𝑡 is jointly determined by the base model, the mutable harness, the user-facing side … and the environment-facing side …: A𝑡 = ⟨𝑀𝜃𝑡, 𝐻𝑡, 𝑈𝑡, 𝐸𝑡⟩. … 𝑀𝜃𝑡 is the base model available at time 𝑡, with parameters 𝜃𝑡; 𝐻𝑡 is the stateful mutable harness; 𝑈𝑡 denotes the user-facing side of deployment, including chat, gateways, workflow interfaces, user protocols, and context assembly from user intent; and 𝐸𝑡 denotes the environment-facing side, including filesystems, browsers, shells, MCP, A2A, tools, tests, logs, and operational state. … the coupling relation is carried by the harness: 𝐻𝑡 mediates how user requests become model-visible context, how model outputs become environment actions, and how resulting traces become future updates.”
公式卡 1 · 部署系统四元组(§2.1)Formula Card 1 · The deployed-system 4-tuple
背景知识|Background
  • 复合 AI 系统(compound AI systems):现代智能体不是“一个模型调用”,而是模型 + 外部组件(工具、记忆、检索器、编排器)的组合;形式化时要把它们显式分开。A modern agent is a compound system, not one model call; formalizing it requires separating the parts.
  • 运行时(runtime)与状态:部署中的系统随时间 t 演化;“哪部分会变、以什么频率变”是建模的核心问题。The deployed system evolves over wall-clock time t; what changes, and how often, is the core modeling question.
  • 经典 RL 只用 (模型, 环境) 两元;本文补上两侧界面与中间控制层,因为部署期可变的东西(技能、记忆、权限、编排)在二元对里没有归属。Classical RL uses only (model, environment); the survey adds two interfaces and the control layer because deployment-mutable parts (skills, memory, permissions, orchestration) have no home in the binary pair.
推导过程|Derivation
  1. 提问:t 时刻部署系统的行为由什么共同决定?答案是“基座模型 + 其周围可变的运行时逻辑 + 两个对外的界面”。Ask: what jointly determines behavior at time t? The base model, the mutable runtime logic around it, and two facing interfaces.
  2. 模型项 M_θt:θt 是 t 时刻的权重(随版本升级而变)。M_θt: the base model available at time t, with parameters θ_t.
  3. 控制层 H_t:组织上下文、路由工具、管权限、执行、反馈、记忆与恢复——它有状态且可变,是部署期最高频的修改点(时间尺度不对称)。H_t: context organization, tool routing, permissions, execution, feedback, memory, recovery — stateful, mutable, and the most frequently revised part (the timescale asymmetry).
  4. 用户侧 U_t:目标、指令、偏好、批准、纠正由此进入。U_t: the user-facing side through which goals, instructions, preferences, approvals, corrections enter.
  5. 环境侧 E_t:动作、观测、测试、运行状态由此暴露(浏览器、shell、MCP、A2A、日志)。E_t: the environment-facing side exposing actions, observations, tests, operational state (browser, shell, MCP, A2A, logs).
  6. 耦合由 H_t 承担:用户请求 → 模型可见上下文;模型输出 → 环境动作;产生的轨迹 → 未来更新。三条通路都经过 harness——这就是它被称为“经验基础设施”的原因。The harness carries the coupling: requests → model-visible context, outputs → environment actions, traces → future updates. Hence "experience infrastructure".
论文中的用法|Usage:全文唯一的分析单位;快路径 Φ_H 写在这个四元组的 H 上,慢路径 Φ_M 写在 M 上。The single unit of analysis of the whole survey; Φ_H acts on H, Φ_M acts on M.
📖 原文依据(论文逐字引用)|Verbatim from the paper
§2.1 原文:“Deployment is continuous, but experience need not be compiled after each individual interaction. We therefore distinguish wall-clock time 𝑡 from irregular trace-window boundaries 0 = 𝑡0 < 𝑡1 < … The boundary 𝑡𝑖 is a harness-level segmentation decision, possibly made with model assistance. … We write the 𝑖-th trace window as the collection of interaction records in that interval: 𝜏𝑖 = {𝛼 | time(𝛼) ∈ [𝑡𝑖−1, 𝑡𝑖)}. When the window closes, the harness maps this trace into usable experience: 𝑧𝑖 = 𝐻𝑡𝑖 (𝜏𝑖). … The symbol 𝑧𝑖 is deliberately not a raw log. It denotes experience that has been filtered, compressed, attributed, or verified enough to be usable for later adaptation. Up to deployment horizon 𝑇, the experience reservoir is 𝑍𝑇 = {𝑧𝑖 : 1 ≤ 𝑖 ≤ 𝑁(𝑇)}, 𝑁(𝑇) = max{𝑖 : 𝑡𝑖 ≤ 𝑇}.”
公式卡 2 · 轨迹窗口与编译经验(§2.1)Formula Card 2 · Trace windows and compiled experience
背景知识|Background
  • 集合构造记号 {x | P(x)}:满足性质 P 的所有 x 组成的集合;这是定义“窗口内的记录”的标准写法。Set-builder notation {x | P(x)}: the set of all x satisfying P — the standard way to define "records in a window".
  • 轨迹(trace):一次交互产生的原始记录流(消息、动作、观测、错误),相当于系统的“日志”。A trace is the raw record stream (messages, actions, observations, errors) — the system's log.
  • 信号处理的类比:原始采样 → 滤波/压缩/特征提取 → 可用特征;z_i 就是“特征提取”这一步。Analogy from signal processing: raw samples → filtering/compression/feature extraction → usable features; z_i is that extraction step.
推导过程|Derivation
  1. 连续流需要切分:部署是连续的,但不可能每次交互都做一次更新——引入不规则的窗口边界 0 = t0 < t1 < …,切分是 harness 层的决策(可由模型辅助)。Deployment is continuous but updates cannot run per interaction — introduce irregular window boundaries t_0 < t_1 < …, a harness-level segmentation decision (possibly model-assisted).
  2. 窗口内容 τ_i:时间戳落在 [ti−1, ti) 的全部原子交互(含用户–智能体、智能体–环境、甚至用户–环境三类)。τ_i collects every atomic exchange whose timestamp falls in [t_{i−1}, t_i).
  3. 为什么不能直接用 τ_i?原始轨迹噪声大、冗余多、没有归因、没有验证——直接更新会把错误当成经验。Why not use τ_i directly? Raw traces are noisy, redundant, unattributed, unverified — using them directly would treat mistakes as experience.
  4. 编译算子 z_i = H_{t_i}(τ_i):把窗口内轨迹过滤(去噪声)、压缩(去冗余)、归因(哪步动作造成哪个结果)、验证(可执行测试通过与否),得到“可用经验”。The compile operator filters, compresses, attributes, and verifies the window into usable experience.
  5. z_i 故意不是原始日志——这是论文的关键立场:只有编译过的证据才配称为“经验”,才能驱动后续适应。z_i is deliberately not a raw log — a key stance: only compiled evidence deserves the name "experience".
  6. 经验库 Z_T:到部署时程 T 为止全部 z_i 的累积,是慢路径(参数固化)的取样池。Z_T accumulates all z_i up to horizon T; it is the reservoir from which the slow path samples.
论文中的用法|Usage:后文所有更新(Φ_H、Φ_S、Eq.1/Eq.2)的输入都是 z_i 而非原始日志。All later updates (Φ_H, Φ_S, Eq.1/Eq.2) consume z_i, never raw logs.
📖 原文依据(论文逐字引用)|Verbatim from the paper
§2.1 原文:“Harness state can be inspected, revised, and governed during deployment far more frequently and cheaply than model weights … On the fast timescale, compiled experience changes the harness at trace-window boundaries: 𝐻𝑡+𝑖 = Φ𝐻 (𝐻𝑡𝑖 , 𝑧𝑖). On the slower timescale, accumulated experience can be consolidated into model parameters at rarer update checkpoints 0 < 𝑠1 < 𝑠2 < · · · < 𝑠𝑘 < · · · : .”
公式卡 3 · 快慢两条更新路径(§2.1)Formula Card 3 · The fast and slow update paths
背景知识|Background
  • 多时间尺度动力学:快变量(如状态)与慢变量(如参数)在不同频率上更新——物理学与控制系统里的经典分解。Multi-timescale dynamics: fast variables (state) and slow variables (parameters) update at different rates — a classic decomposition in physics and control.
  • 外部化 vs 固化之争的延续:RAG/工具/记忆代表“外部化”(不改权重、随时可改、可解释但局部),微调/RL 代表“固化”(全局、可迁移但昂贵、难回滚)。The externalization-vs-consolidation debate: RAG/tools/memory are cheap to revise but local; fine-tuning/RL are global but costly and hard to roll back.
  • 检查点(checkpoint):训练中定期保存的权重快照,是部署发布与回滚的单位。Checkpoints: periodic weight snapshots — the unit of release and rollback.
推导过程|Derivation
  1. 两个候选落点:经验更新可以写进外部表面(技能、记忆、工具)或模型参数。Two candidate destinations: external surfaces (skills, memory, tools) or model parameters.
  2. 成本不对称:H 的修改是文件/配置级操作,可在每次窗口关闭时进行;θ 的更新需要选数据、训练、验证、回滚预案,只能在更稀少的检查点 s1 < s2 < … 进行。Cost asymmetry: editing H is file-level and cheap per window close; updating θ needs data selection, training, validation, rollback — only at rarer checkpoints.
  3. 收益不对称:H 的补丁即时生效但只在命中时有用(检索路径对、记忆条目对);θ 的更新跨任务、跨会话、跨用户传播。Benefit asymmetry: H patches act immediately but only when hit; θ updates travel across tasks, sessions, users.
  4. 由此得到两个时间尺度的更新算子:窗口边界处的 Φ_H(外部化)与检查点处的 Φ_M(固化)。Hence two timescale-separated update operators: Φ_H at window boundaries, Φ_M at checkpoints.
  5. 二者耦合而非对立:Φ_M 的输入 Z_sk 正是由 Φ_H 逐步积累的经验库;且“哪些轨迹能进参数”由 harness 治理(隐私、权限、验证器)。They couple, not compete: Φ_M consumes the reservoir Z_sk built up by Φ_H, and harness governance decides which traces may enter parameters.
论文中的用法|Usage:全篇主轴——§3–5 展开 Φ_H 的三个表面(技能/记忆/环境),§6 展开 Φ_M,§7 问“谁来决定走哪条路径”。The survey's spine: §3–5 elaborate Φ_H (skills/memory/environment), §6 elaborates Φ_M, §7 asks who decides which path to take.
Figure 2: Harness as experience infrastructure for deployed agents. Th
Harness as experience infrastructure for deployed agents. The user side 𝑈𝑡 supplies
图释:harness 总架构图:中间大框是 H_t 的内部模块(技能、记忆、上下文管理、权限/治理、工具注册表),左侧用户侧 U_t、右侧环境侧 E_t;下方是“轨迹 τ_i → 编译经验 z_i → 经验库 Z_T”的数据流,再分叉为快路径 Φ_H(改外部表面)与慢路径 Φ_M(固化参数),底部汇合为“基于经验的自改进”。

2.2. 我们如何走到今天?从任务循环到运行时系统2.2. How Did We Get Here? From Task Loops to Runtime Systems

本节要点Section at a glance

当前以运行时为中心的观点并非一蹴而就。一个有用的历史压缩是将智能体系统区分为三个相继的世代。

The current runtime-centric view did not appear all at once. A useful historical compression is to distinguish three successive generations of agent systems.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §2.2 原文全文 · Expand the full original text

2.2. 我们如何走到今天?从任务循环到运行时系统 2.2. How Did We Get Here? From Task Loops to Runtime Systems

当前以运行时为中心的观点并非一蹴而就。一个有用的历史压缩是将智能体系统区分为三个相继的世代。第一代:任务有界循环。第一代确立了语言模型可以通过显式的推理-行动循环与外部环境耦合。在这一体制下,用户请求初始化一个回合(episode),模型产生交错的推理与动作,任务完成后循环结束。WebGPT 表明语言模型可以在类浏览器环境中运行,并利用参考文献支撑长答案。SayCan 将语言模型的规划接地到机器人可供性(affordances)上,使动作可行性成为智能体循环的一部分。ReAct 随后将交错的推理与行动变成跨知识与决策任务的通用提示模式。Reflexion 在有界回合内加入言语反馈与自我反思,预示了后来的自改进工作,但仍主要停留在以回合为中心。这一代的主要贡献是接口接地:模型能够在有界任务内搜索、调用工具、观察结果、修正下一步动作,有时还能对失败进行反思。其局限在于大多数有用状态仍是回合性的——任务结束后,系统通常没有持久的运行时状态,后续任务无法从早期经验中受益。第二代:持久且可复用的智能体运行时。第二代让智能体状态与执行结构跨回合持久存在。Voyager 是这一转变的重要早期标志:其自动课程、可执行技能库和反馈驱动的程序修复把先前的交互转化为可复用的行为。与此同时,MetaGPT 与 AutoGen 等框架把多智能体角色、对话模式与协调逻辑变成显式的运行时结构。LangGraph 将智能体工作流表示为带分支、检查点与可恢复执行的有状态图,强化了这一运行时视角。SWE-agent 与 OpenHands 等软件智能体系统进一步把领域推向智能体-计算机接口、仓库导航、文件编辑、测试执行与沙箱化执行。在这一代中,智能体不再只是一个提示循环,而成为一个带有可复用过程、持久工件、执行工具与协调机制的运行时系统。然而,这些系统大多仍由人设计或配置;其运行时表面持久,但部署后尚未被系统地演化。第三代:产品化且自演化的运行时系统。第三代把部署后的 harness 本身变成工程与适应的主要对象。Claude Code、Codex 与 Cursor 3 等产品化编码智能体与智能体工作区表明,智能体运行时正在成为开发基座:它运行在终端、仓库、云工作区、受管执行环境与智能体管理界面中;维护任务状态;调用工具;编辑文件;运行测试;并通过可审查的工件将工作交还给人类。OpenClaw 与 Hermes Agent 为这一波产品浪潮提供了开放与个人运行时的对应物。OpenClaw 暴露了一个持久、可编辑的 harness 表面。Hermes Agent 强调一个始终在线的个人智能体,具有持久记忆、智能体管理的技能、cron、MCP 与网关式工具集成。近期的自演化工作研究这类运行时表面如何在交互之后被更新。MetaClaw 研究将快速外部适应与较慢的策略固化相结合的部署智能体;OpenClaw-RL 把实时下一状态信号转化为智能体运行时内的策略学习监督;Agentic Harness Engineering 把工具、中间件、技能、记忆与子智能体配置视为可编辑、

The current runtime-centric view did not appear all at once. A useful historical compression is to distinguish three successive generations of agent systems. Gen 1: task-bounded loops. The first generation established that language models could be coupled to external environments through explicit reasoning-and-acting loops. In this regime, a user request initialized an episode, the model produced interleaved reasoning and actions, and the loop ended when the task was complete. WebGPT showed that a language model could operate inside a browser-like environment and use references to support long-form answers. SayCan grounded language-model plans in robotic affordances, making action feasibility part of the agent loop. ReAct then made interleaved reasoning and acting a general prompting pattern across knowledge and decision-making tasks. Reflexion added verbal feedback and self-reflection inside bounded episodes, foreshadowing later self-improvement work while still remaining largely episode-centered. The main contribution of this generation was interface grounding: the model could search, call tools, observe results, revise its next action, and sometimes reflect on failure inside a bounded task. Its limitation was that most useful state remained episodic. Once the task ended, the system usually had no durable runtime state through which later tasks could benefit from earlier experience. Gen 2: persistent and reusable agent runtimes. The second generation made agent state and execution structure persist across episodes. Voyager is an important early marker of this shift: its automatic curriculum, executable skill library, and feedback-driven program repair turned prior interaction into reusable behavior. In parallel, frameworks such as MetaGPT and AutoGen made multi-agent roles, conversation patterns, and coordination logic explicit runtime structure. LangGraph sharpened this runtime view by representing agent workflows as stateful graphs with branching, checkpointing, and recoverable execution. Software-agent systems such as SWE-agent and OpenHands further moved the field toward agent-computer interfaces, repository navigation, file editing, test execution, and sandboxed execution. In this generation, the agent is no longer only a prompt loop. It becomes a runtime system with reusable procedures, persistent artifacts, execution tools, and coordination mechanisms. However, these systems are still mostly designed or configured by humans; their runtime surfaces are durable, but not yet systematically evolved after deployment. Gen 3: productized and self-evolving runtime systems. The third generation turns the deployed harness itself into the main object of engineering and adaptation. Productized coding agents and agent workspaces such as Claude Code, Codex, and Cursor 3 show that the agent runtime is becoming a development substrate: it runs in terminals, repositories, cloud workspaces, managed execution environments, and agent-management interfaces; maintains task state; invokes tools; edits files; runs tests; and hands work back to humans through reviewable artifacts. OpenClaw and Hermes Agent provide open and personal-runtime counterparts to this product wave. OpenClaw exposes a persistent, editable harness surface. Hermes Agent emphasizes an always-on personal agent with durable memory, agent-managed skills, cron, MCP, and gateway-style tool integration. Recent self-evolution work studies how such runtime surfaces can be updated after interaction. MetaClaw studies deployed agents that combine fast external adaptation with slower policy consolidation; OpenClaw-RL turns live next-state signals into policy-learning supervision inside an agent runtime; and Agentic Harness Engineering treats tools, middleware, skills, memory, and sub-agent configurations as editable,

Figure 3: Historical progression from task-bounded loops to deployed r
Historical progression from task-bounded loops to deployed runtime systems. From
图释:三代演进时间轴(2021→2026):Gen 1 任务循环(WebGPT/SayCan/ReAct/Reflexion)→ Gen 2 跨任务复用(AutoGen/MetaGPT/LangGraph/SWE-agent/OpenHands)→ Gen 3 运行时系统(Claude Code/Codex/Cursor 3/OpenClaw/Hermes Agent),纵轴是部署期自演化能力递增。

可观测且可验证的进化目标。核心转变是时间性和操作性的:智能体是一个持久、与环境耦合的运行时,其 harness 能够收集证据、自我修订并管控部署后的变更。这一代际划分回答了引言中提出的问题:我们是如何走到今天的?该领域走到今天,靠的是逐步将智能体更多的操作性状态外部化,随后又发现:一旦部署期的变更变得系统化,运行时层本身就必须被当作一等科学对象来对待。

observable, and verifiable evolution targets. The central shift is temporal and operational: the agent is a persistent, environment-coupled runtime whose harness can collect evidence, revise itself, and govern post-deployment change. This generational framing answers the question raised in the Introduction: how did we get here? The field arrived here by gradually externalizing more of the agent's operative state and then discovering that, once deployment-time change becomes systematic, the runtime layer itself must be treated as a first-class scientific object.

2.3. 以经验为中心的范围与综述组织2.3. Experience-Centric Scope and Survey Organization

本节要点Section at a glance

基于第 2.1 节中已部署系统的定义,我们围绕智能体 AI 系统中基于经验的改进来组织本综述。其结构遵循一个简单的递进:经验首先通过可变的运行时表面被外部化,然后被选择性地固化进模型参数,接着被用于调度和协调改进过程,最后通过评估与安全加以度量与约束。

Building on the deployed-system definition in Section 2.1, we organize the survey around experience-based improvement in agentic AI systems. The structure follows a simple progression: experience is first externalized through mutable runtime surfaces, then selectively consolidated into model parameters, then used to schedule and coordinate improvement processes, and finally measured and bounded through evaluation and safety.

↑ 本节开头两句要点;完整原文见下方展开框。

§2.3 综述组织:以“经验如何变成能力”为单一主轴§2.3 Survey organization: one spine — how experience becomes capability

整篇综述不是按系统罗列,而是按经验流通的路径组织:从外部表面(§3 技能、§4 记忆、§5 环境)到参数侧固化(§6 RL 与持续学习),再到谁控制演化(§7 元演化),最后是评测(§8)与安全(§9)。图 2 的四元组是全程的分析单位,图 1 是全景地图。

The survey is organized by the flow of experience, not by a list of systems: from external surfaces (§3 skills, §4 memory, §5 environment) through parameter-side consolidation (§6 RL and continual learning), to who controls evolution (§7 meta-evolution), and finally evaluation (§8) and safety (§9). The four-tuple of Figure 2 is the unit of analysis throughout; Figure 1 is the full map.

📖 展开 §2.3 原文全文 · Expand the full original text

2.3. 以经验为中心的范围与综述组织 2.3. Experience-Centric Scope and Survey Organization

基于第 2.1 节中已部署系统的定义,我们围绕智能体 AI 系统中基于经验的改进来组织本综述。其结构遵循一个简单的递进:经验首先通过可变的运行时表面被外部化,然后被选择性地固化进模型参数,接着被用于调度和协调改进过程,最后通过评估与安全加以度量与约束。我们的范围聚焦于那些生成、保留、复用或固化部署经验的组件,而无意罗列每一个智能体组件。图 2 明确了这一组织结构。一个已部署的智能体 AI 系统通过模型、harness、用户和环境之间的交互积累轨迹。只有当运行时能够将这些轨迹转化为后续执行可以继承的持久对象时,轨迹才有用。因此,第一组章节研究对 harness 可见的表面——经验可以在不改变模型权重的情况下写入这些表面。第 3 节研究经验如何变成可复用程序:技能捕获可被检索、组合、验证、修订并在未来任务中复用的行动方式。第 4 节研究经验如何变成持久状态:记忆保存事实、偏好、任务状态、失败、摘要和抽象,这些内容在当前交互之后仍然有用。第 5 节则研究经验得以产生的执行环境。环境决定动作是否接地、结果是否可观测,以及反馈能否通过测试、日志、协议或其他运行时证据得到验证。

Building on the deployed-system definition in Section 2.1, we organize the survey around experience-based improvement in agentic AI systems. The structure follows a simple progression: experience is first externalized through mutable runtime surfaces, then selectively consolidated into model parameters, then used to schedule and coordinate improvement processes, and finally measured and bounded through evaluation and safety. Our scope foregrounds components that generate, retain, reuse, or consolidate deployment experience, without aiming to list every agent component. Figure 2 makes this organization explicit. A deployed agentic AI system accumulates traces through the interaction between the model, the harness, users, and the environment. These traces become useful only when the runtime can turn them into durable objects that later executions can inherit. The first set of chapters therefore studies the harness-visible surfaces where experience can be written without changing model weights. Section 3 studies how experience becomes reusable procedures: skills capture ways of acting that can be retrieved, composed, verified, revised, and reused across future tasks. Section 4 studies how experience becomes persistent state: memory preserves facts, preferences, task state, failures, summaries, and abstractions that remain useful beyond the current interaction. Section 5 then studies the execution environments in which experience is produced. Environments determine whether actions are grounded, whether outcomes are observable, and whether feedback can be verified through tests, logs, protocols, or other runtime evidence.

随后,综述转向模型侧固化。有些经验过于局部、脆弱或特定于上下文,不足以支持参数更新,而另一些轨迹则变得足够稳定,可以作为训练信号。因此,第 6 节研究使用部署产生的轨迹或 harness 中介的信号来更新模型本身的强化学习、微调和持续学习方法。这条路径依赖于运行时系统而非取代它:harness 选择轨迹、提取训练信号、保留执行条件,并确定哪些经验适合参数侧学习。一旦外部路径和参数侧路径都可用,改进就不再只是组件层面的问题。系统还必须决定应当运行哪个改进过程、何时运行,以及在何种预算、证据和回滚条件下运行。第 7 节研究这一元层问题:经验不仅更新技能、记忆、环境或参数,还能为未来更新机制的选择与协调提供信息。最后,基于经验的变更必须被度量与约束。第 8 节研究如何评估纵向改进而非孤立的单任务表现,包括区分真实学习与过拟合、成本转移、基准泄漏和隐藏回归的必要性。第 9 节研究相应的控制问题:可变的技能、记忆、工具、反馈渠道和治理规则在演化过程中扩大了系统的攻击面。这些章节通过追问经验驱动的变更何时可靠到足以在部署后获得信任,从而闭合了整个循环。第 10 节汇集了当基于经验的改进被作为已部署系统的一种属性来研究时出现的其余挑战。

The survey then turns to model-side consolidation. Some experience remains too local, brittle, or context-specific to justify parameter updates, while other traces become stable enough to serve as training signals. Section 6 therefore studies reinforcement learning, fine-tuning, and continual learning methods that use deployment-derived traces or harness-mediated signals to update the model itself. This path depends on the runtime system rather than replacing it: the harness selects traces, extracts training signals, preserves execution conditions, and determines which experience is suitable for parameter-side learning. Once both external and parameter-side routes are available, improvement is no longer only a component-level problem. The system must also decide which improvement process should run, when it should run, and under what budget, evidence, and rollback conditions. Section 7 studies this meta-level problem: experience does not only update skills, memory, environments, or parameters, but can also inform the choice and coordination of future update mechanisms. Finally, experience-based change must be measured and bounded. Section 8 studies how to evaluate longitudinal improvement rather than isolated task performance, including the need to distinguish real learning from overfitting, cost transfer, benchmark leakage, and hidden regression. Section 9 studies the corresponding control problem: mutable skills, memories, tools, feedback channels, and governance rules expand the system's attack surface as they evolve. These chapters close the loop by asking when experience-driven change is reliable enough to be trusted after deployment. Section 10 collects the remaining challenges that appear when experience-based improvement is studied as a property of deployed systems.

2.4. 相关综述2.4. Related Surveys

本节要点Section at a glance

现有综述可以组织为三条互补的脉络。第一条将智能体 harness 和智能体系统作为模型外部的运行时基础设施加以研究。

Existing surveys can be organized into three complementary lines. The first studies agent harnesses and agent systems as model-external runtime infrastructure.

↑ 本节开头两句要点;完整原文见下方展开框。

§2.4 相关综述:三条线§2.4 Related surveys: three lines

  • 智能体 harness 与系统级综述:Li et al. 2026b 的 ETCLOVG 分类法(执行环境、工具接口、上下文管理、生命周期/编排、可观测性、验证、治理七维,映射 170+ 开源项目)、Agentic Harness Engineering 等。
  • harness 组件综述:技能、记忆、工具各自成线(本文 §3/§4 与之对应并扩展)。
  • 面向进化的综述:Tao et al. 的自演化组织、Osmani 2026 的循环工程(loop engineering)等。

本文与它们的区别:位于“外部表面 × 长程开放环境 × 多种演化机制”的交叉处,把部署后经验作为贯穿主线(见 §1 表 1 的比较矩阵)。

  • Agent-harness and system-level surveys: Li et al. 2026b’s ETCLOVG taxonomy (execution environments, tool interfaces, context management, lifecycle/orchestration, observability, verification, governance; 170+ open-source projects); agentic harness engineering; and others.
  • Harness-component surveys: separate lines on skills, memory, and tools (corresponding to §3/§4 here).
  • Evolution-oriented surveys: Tao et al.’s organization of self-evolution; Osmani 2026’s loop engineering; and others.

The difference: this survey sits at the intersection of external surfaces × long-horizon open environments × multiple evolution mechanisms, with post-deployment experience as the through-line (see the Table 1 comparison in §1).

📖 展开 §2.4 原文全文 · Expand the full original text

2.4. 相关综述 2.4. Related Surveys

现有综述可以组织为三条互补的脉络。第一条将智能体 harness 和智能体系统作为模型外部的运行时基础设施加以研究。第二条研究技能、记忆、上下文、工作流、评估和安全等各个单独的 harness 表面。第三条将智能体进化本身作为研究对象。表 1 沿三个问题对这三条脉络进行比较:什么在进化、进化发生在哪里,以及改进如何被驱动。

Existing surveys can be organized into three complementary lines. The first studies agent harnesses and agent systems as model-external runtime infrastructure. The second studies individual harness surfaces such as skills, memory, context, workflow, evaluation, and safety. The third makes agent evolution itself the object of study. Table 1 compares these lines along three questions: what evolves, where evolution happens, and how improvement is driven.

综述
Survey
演化对象
Evolution Object
应用场景
Application Settings
演化方法
Evolution Methods
模型
Model
简单智能体
Simple Agent
harness 中介
Harness-mediated
长程
Long Horizon
开放
Open-ended
人辅助
Human-aided
自改进
Self-improve
元演化
Meta-evolve
本文
Ours
△△✓✓✓✓✓✓
Wang et al. 2024△✓△△△△△×
Xi et al. 2023△✓△△△△△×
Xu 2026a△✓△✓△△△×
Chen et al. 2025a×△✓△△△△×
Meng et al. 2026a×△✓✓✓△△△
Li et al. 2026b×△✓✓△✓△△
Zhou et al. 2026a△△✓✓✓△△△
Lu et al. 2026a△△✓✓✓△✓△
Jiang et al. 2026b×△✓✓△△△×
Xu and Yan 2026×△✓✓△△△×
Zhang et al. 2024b×△△✓△×△×
Du 2026×△△✓△×△×
Yue et al. 2026×△✓✓△△△△
Li et al. 2026a△△△✓△△△△
Mei et al. 2025△△△✓△△△×
Yehudai et al. 2025×✓△△△×××
Mohammadi et al. 2025×✓△✓△×××
Su et al. 2025a×✓△✓△×△×
Tao et al. 2024✓△×△△△✓×
Gao et al. 2026✓✓△✓✓△✓△
Fang et al. 2025a△✓△✓✓△✓△
Xiang et al. 2026✓✓△✓✓△✓△
Zhang et al. 2026c✓✓△✓✓△✓△

表注(Table 1):相关综述的覆盖对比。✓=主要覆盖,△=部分覆盖,×=基本未覆盖。✓ primary coverage, △ partial, × little or none.

2.4.1. 智能体 harness 与系统级综述 2.4.1. Agent Harness and System-level Surveys

宽泛的智能体综述提供了自然的基线。Wang 等人和 Xi 等人帮助建立了通用的 LLM 智能体框架与应用版图,涵盖核心智能体能力、工具/环境交互以及代表性部署场景。更近期的系统级综述使执行循环及周边基础设施更加显式化。Xu 综述了跨架构、应用和评估的 AI 智能体系统,而 Chen 等人将现代 AI 系统界定为模型与外部组件的复合组合,而非孤立的模型调用。Meng 等人明确将智能体 harness 视为围绕 LLM 智能体的一等基础设施层,形式化了其执行、工具、上下文、状态、生命周期和验证功能。Li 等人用 ETCLOVG 分类法扩展了这一以 harness 为中心的脉络,将执行环境、工具接口、上下文管理、生命周期/编排、可观测性、验证和治理区分开来,并将 170 多个开源项目映射到这一工程表面上。Zhou 等人将近期的智能体进展界定为外部化——记忆、技能、协议和 harness 工程将认知负担从模型参数转移到外部基础设施之中,而 Lu 等人则围绕开放策略、环境、群体和基座(substrate)来组织开放部署中的 OpenClaw 智能体。这些综述确立了现代智能体越来越具有系统级和 harness 中介的性质。然而,它们的主要目的是刻画系统组成与执行基础设施。

Broad agent surveys provide the natural baseline. Wang et al. and Xi et al. help establish the general LLM-agent framing and application landscape, covering core agent capabilities, tool/environment interaction, and representative deployment scenarios. More recent system-level surveys make the execution loop and surrounding infrastructure more explicit. Xu surveys AI agent systems across architectures, applications, and evaluation, while Chen et al. frame modern AI systems as compound compositions of models and external components rather than standalone model calls. Meng et al. explicitly treat the agent harness as a first-class infrastructure layer around LLM agents, formalizing its execution, tool, context, state, lifecycle, and verification functions. Li et al. extend this harness-centered line with the ETCLOVG taxonomy, separating execution environment, tool interface, context management, lifecycle/orchestration, observability, verification, and governance while mapping more than 170 open-source projects onto that engineering surface. Zhou et al. frame recent agent progress as externalization, where memory, skills, protocols, and harness engineering shift cognitive burdens from model parameters into external infrastructure, while Lu et al. organize OpenClaw agents in open deployment around open policy, environment, population, and substrate. These surveys establish that modern agents are increasingly system-level and harness-mediated. Their main purpose, however, is to characterize system composition and execution infrastructure.

我们关注的是下一个问题:一旦这些外部结构存在,其中哪些可以在部署后发生变化,这些变化又如何让智能体系统随时间推移变得更有能力?

Our focus is the next question: once those external structures exist, which of them can change after deployment, and how do such changes make the agent system more capable over time?

2.4.2. harness 组件综述 2.4.2. Harness-Component Surveys

第二条脉络综述构成运行时基础设施的各个单独表面。技能类综述将程序性能力视为一种可复用对象,可以被获取、存储、组合、评估、治理和更新。记忆类综述研究跨交互的持久性,包括记忆设计、写入–管理–读取操作、遗忘、检索、评估和安全。工作流与上下文工程综述分析执行图和推理期信息载荷如何被构造、优化并集成进智能体系统。环境工程综述进一步补充了智能体系统执行侧的视角。评估与安全综述进一步界定了智能体部署的验证面和风险面,从基准设计、长时程交互到由自主性引发的安全风险。这些组件层面的视角不可或缺,后续章节直接建立在其上。它们的局限不在于缺乏深度,而在于碎片化:每个表面通常被当作单独的能力层来研究,而已部署的改进取决于技能、记忆、上下文、工作流、评估和安全控制如何在一个运行时循环内部相互作用。

A second line surveys the individual surfaces that make up the runtime infrastructure. Skill surveys treat procedural competence as a reusable object that can be acquired, stored, composed, evaluated, governed, and updated. Memory surveys study persistence across interactions, including memory design, write–manage–read operations, forgetting, retrieval, evaluation, and safety. Workflow and context-engineering surveys analyze how execution graphs and inference-time information payloads are constructed, optimized, and integrated into agent systems. Environment-engineering surveys further add an execution-side view of agentic systems. Evaluation and safety surveys further define the verification and risk surfaces of agent deployment, from benchmark design and long-horizon interaction to autonomy-induced security risks. These component-level views are indispensable, and later chapters build directly on them. Their limitation is not lack of depth, but fragmentation: each surface is usually studied as a separate capability layer, while deployed improvement depends on how skills, memory, context, workflow, evaluation, and safety controls interact inside one runtime loop.

2.4.3. 面向进化的综述 2.4.3. Evolution-Oriented Surveys

第三条脉络将改进本身作为研究对象。Tao 等人在大语言模型层面围绕经验获取、精炼、更新和评估来组织自进化。Gao 等人将范围扩大到自进化智能体,并追问智能体在什么方面、何时、如何以及在何处进化。Fang 等人提出了一个覆盖系统输入、智能体系统、环境和优化器的反馈回路视角,而 Xiang 等人区分了以模型为中心、以环境为中心以及模型–环境共同进化。智能体强化学习综述进一步将改进与时间上延展的交互、部分可观测环境、记忆、工具使用和自我改进联系起来。这些综述之所以重要,是因为它们把适应和改进变成了一等主题。它们通常在模型、策略或宽泛定义的智能体层面上组织进化,但较少系统性地区分哪些改进通过可编辑的外部表面发生、哪些需要参数侧固化、哪些需要一个选择、调度或优化改进机制本身的元层过程。我们的立场。此前的综述已经从互补的角度考察了智能体、harness 和自进化。在这些脉络的基础上,本综述在它们的交叉点上研究部署后的智能体改进:即外部 harness 表面、长时程开放环境与多种进化机制(包括人类辅助修订、自我改进和元进化)之间的相互作用。其贡献在于对已部署智能体系统可以在哪里发生变化、以及这些变化如何变得持久给出一个聚焦的阐述。

A third line makes improvement itself the object of study. Tao et al. organize self-evolution around experience acquisition, refinement, updating, and evaluation at the level of large language models. Gao et al. broaden the scope to self-evolving agents and ask what, when, how, and where agents evolve. Fang et al. propose a feedback-loop view over system inputs, agent systems, environments, and optimizers, while Xiang et al. distinguish model-centric, environment-centric, and model–environment co-evolution. Agentic reinforcement-learning surveys further connect improvement to temporally extended interaction, partially observable environments, memory, tool use, and self-improvement. These surveys are central because they make adaptation and improvement first-class topics. They typically organize evolution at the level of models, policies, or broadly defined agents. They less systematically separate which improvements occur through editable external surfaces, which require parameter-side consolidation, and which require a meta-level process that selects, schedules, or optimizes the improvement mechanism itself. Our position. Prior surveys have already examined agents, harnesses, and self-evolution from complementary angles. Building on these lines, this survey studies post-deployment agent improvement at their intersection: the interaction between external harness surfaces, long-horizon and open-ended environments, and multiple evolution mechanisms, including human-aided revision, self-improvement, and meta-evolution. The contribution is a focused account of where deployed agent systems can change and how those changes may become durable.

Part II. Runtime Infrastructure for Experience Reuse第二部分 · 经验的运行时基础设施(技能 · 记忆 · 环境)
第 3 章 · 技能:经验成为可复用程序3. Skills: Experience Becomes Reusable Procedure

3.1. 技能的形式化定义3.1. Skill Formal Definition

📚 第 3 章总览 · 手写精读(本章主旨与各小节导读)

本章主旨:技能 = 程序性经验的外化——σ = ⟨M, I, R, A⟩(清单/指令/参考/工件)组成时变技能库 S_t。生命周期三阶段:创建(外部来源→组织入库)、使用(路由→组合→执行)、演化(证据发现→更新→验证准入)。复杂度论证:路由降底数(O(|S_t|^d) → O(|S_q,t|^d)),组合压指数。

  • 3.1 形式定义:σ 四元组与技能库 S_t;
  • 3.2 三阶段生命周期闭环;
  • 3.3 创建:四条来源 + 库组织;
  • 3.4 使用:路由与组合的复杂度;
  • 3.5 演化:证据三通道与端到端验证。

The point of this chapter: a skill is externalized procedural know-how — σ = ⟨M, I, R, A⟩ (manifest, instructions, references, artifacts) forming the time-varying bank S_t. The three-stage lifecycle: creation (external sources → an organized library), use (routing → composition → execution), and evolution (evidence discovery → update → validated admission). Complexity argument: routing lowers the base (O(|S_t|^d) → O(|S_q,t|^d)); composition addresses the exponent.

  • 3.1 Formal definition: the σ four-tuple and the bank S_t;
  • 3.2 The three-stage lifecycle loop;
  • 3.3 Creation: four sources plus library organization;
  • 3.4 Use: the complexity of routing and composition;
  • 3.5 Evolution: three evidence channels and end-to-end validation.

本节要点Section at a glance

我们将外部技能层定义为一个随时间变化的库 𝑆𝑡 = {𝜎1,𝑡,..., 𝜎𝑛𝑡,𝑡},其中 𝜎𝑖,𝑡 = ⟨𝑀, 𝐼, 𝑅, 𝐴⟩。每个 𝜎𝑖,𝑡 表示在时间 𝑡 智能体可用的第 𝑖 个技能制品。

We define the external skill layer as a time-varying bank 𝑆𝑡 = {𝜎1,𝑡,., 𝜎𝑛𝑡,𝑡}, 𝜎𝑖,𝑡 = ⟨𝑀, 𝐼, 𝑅, 𝐴⟩. Each 𝜎𝑖,𝑡 denotes the 𝑖-th skill artifact available to the agent at time 𝑡.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §3.1 原文全文 · Expand the full original text

3. 技能:经验成为可复用程序 3. Skills: Experience Becomes Reusable Procedure

技能是程序性经验变成可复用运行时结构的机制。技能将诀窍(know-how)外部化为一种程序,该程序可以持久化在库中、由 harness 调用,并在部署后被修订。在当前的智能体系统中,这种程序越来越多地被打包为以 SKILL.md 为锚点的文件夹。对于复用经验的已部署智能体而言,这使技能层成为一个原生更新面:通过扩展或编辑技能库即可增加新能力,而无需修改基础模型参数。困难在于,经验并不会自动成为好的技能。一个有用的技能必须足够具体以指导未来行动,足够通用以迁移到产生它的回合之外,并且足够稳定以在运行时变化时保持可信。因此,本章追问技能库如何被创建、使用和进化。MUSE-Autoskill 等近期系统在同一个部署循环中耦合了按需技能创建、技能级记忆、管理、单元测试评估和反馈驱动的精炼,这表明当前的前沿正开始将技能生命周期作为一个持久适应层来管理。

Skills are the mechanism by which procedural experience becomes reusable runtime structure. A skill externalizes know-how as a procedure that can be persisted in a library, invoked by a harness, and revised after deployment. In current agent systems, this procedure is increasingly packaged as a SKILL.md-anchored folder. For deployed agents that reuse experience, this makes the skill layer a native update surface: new competence can be added by expanding or editing the skill library, without modifying the base model parameters. The difficulty is that experience does not automatically become a good skill. A useful skill must be specific enough to guide future action, general enough to transfer beyond the episode that produced it, and stable enough to remain trustworthy as the runtime changes. This chapter therefore asks how skill libraries are created, used, and evolved. Recent systems such as MUSE-Autoskill couple on-demand skill creation, skill-level memory, management, unit-test evaluation, and feedback-driven refinement in one deployed loop, indicating that the current frontier is beginning to manage the skill lifecycle as a persistent adaptation layer.

3.1. 技能的形式化定义 3.1. Skill Formal Definition

我们将外部技能层定义为一个随时间变化的库 𝑆𝑡 = {𝜎1,𝑡,..., 𝜎𝑛𝑡,𝑡},其中 𝜎𝑖,𝑡 = ⟨𝑀, 𝐼, 𝑅, 𝐴⟩。每个 𝜎𝑖,𝑡 表示在时间 𝑡 智能体可用的第 𝑖 个技能制品。这个元组与 Agent Skills 社区所收敛的文件夹模式一致:一个必需的 SKILL.md 文件以及可选的支持资源。 𝑀 是让运行时找到正确技能的清单(manifest),对应于 SKILL.md 的 frontmatter 及相关元数据;𝐼 是指令正文,告诉模型如何执行任务,对应于 SKILL.md 的 Markdown 正文;𝑅 是参考集,在需要时提供额外知识,对应于支持性文档、模式(schema)、示例、测试或审计记录,通常放在 references/ 目录下;𝐴 是支撑落地执行的制品包,对应于可执行或静态资源,如 scripts/、assets/、模板、数据文件或辅助代码。这种四部分分解描述的是收敛后的 SKILL.md 模式,而非所有历史上的技能系统。以 Voyager 等程序化技能库为开端的早期系统以较不标准化的形式实现了同一思想。规范的 SKILL.md 系统通过将清单、指令、参考和制品在一个可移植文件夹中显式化,整合了这一谱系。这种打包模式已经在生产系统中具有实际可用性。OpenAI 的挂载式技能包和 OpenClaw 风格的注册表使技能成为可安装、可路由、可限定作用域、可版本化的运行时包;Anthropic 的实现则强调同一设计的上下文一侧,仅当元数据、SKILL.md 和支持文件变得相关时才渐进地披露它们。对于智能体 AI 系统而言,使用和进化技能是在不改变 𝑀𝜃𝑡 的情况下提升性能的最直接途径之一。挂载一个技能为运行时提供了一个针对某类反复出现任务的显式程序,表示为可复用的 𝜎 ∈ 𝑆𝑡。采用第 2 节的记号,部署证据通过 = Φ𝑆 (𝑆𝑡𝑖, 𝑧𝑖) 更新技能库,其中 Φ𝑆 可以新增或退役技能 (±𝜎𝑛𝑖),或通过修改其 𝑀、𝐼、𝑅、𝐴 组件来修订现有技能 (𝜎𝑛𝑖,𝑡 → 𝜎𝑛𝑖,𝑡+ )。本章其余部分追问技能库如何被创建、使用和进化。

We define the external skill layer as a time-varying bank 𝑆𝑡 = {𝜎1,𝑡,., 𝜎𝑛𝑡,𝑡}, 𝜎𝑖,𝑡 = ⟨𝑀, 𝐼, 𝑅, 𝐴⟩. Each 𝜎𝑖,𝑡 denotes the 𝑖-th skill artifact available to the agent at time 𝑡. The tuple aligns with the folder schema around which the Agent Skills community has converged: a required SKILL.md file with optional supporting resources. 𝑀 is the manifest that lets the runtime find the right skill, corresponding to the SKILL.md frontmatter and related metadata; 𝐼 is the instruction body that tells the model how to perform the task, corresponding to the Markdown body of SKILL.md; 𝑅 is the reference set that supplies additional knowledge when needed, corresponding to supporting documentation, schemas, examples, tests, or audit records, often placed under references/; and 𝐴 is the artifact bundle that supports grounded execution, corresponding to executable or static resources such as scripts/, assets/, templates, data files, or helper code. This four-part decomposition describes the converged SKILL.md schema rather than all historical skill systems. Earlier systems, beginning with programmatic skill libraries such as Voyager, realized the same idea in less standardized forms. Canonical SKILL.md systems consolidate this lineage by making the manifest, instructions, references, and artifacts explicit in one portable folder. This packaging pattern has already become operationally useful in production systems. OpenAI's mounted skill bundles and OpenClaw-style registries make skills installable, routable, scoped, and versioned runtime packages; Anthropic's implementation emphasizes the context side of the same design, progressively disclosing metadata, SKILL.md, and supporting files only as they become relevant. For an agentic AI system, using and evolving skills is one of the most direct ways to improve performance without changing 𝑀𝜃𝑡. Mounting a skill gives the runtime an explicit procedure for a recurring class of tasks, represented as a reusable 𝜎 ∈ 𝑆𝑡. In the notation of Section 2, deployment evidence updates the skill bank through = Φ𝑆 (𝑆𝑡𝑖, 𝑧𝑖), where Φ𝑆 may add or retire skills (±𝜎𝑛𝑖) or revise existing ones (𝜎𝑛𝑖,𝑡 → 𝜎𝑛𝑖,𝑡+ ) by changing their 𝑀, 𝐼, 𝑅, 𝐴 components. The rest of the chapter asks how skill libraries are created, used, and evolved.

📖 原文依据(论文逐字引用)|Verbatim from the paper
§3.1 原文:“We define the external skill layer as a time-varying bank 𝑆𝑡 = {𝜎1,𝑡 , . , 𝜎𝑛𝑡,𝑡}, 𝜎𝑖,𝑡 = ⟨𝑀, 𝐼, 𝑅, 𝐴⟩. … 𝑀 is the manifest … corresponding to the SKILL.md frontmatter and related metadata; 𝐼 is the instruction body … corresponding to the Markdown body of SKILL.md; 𝑅 is the reference set … often placed under references/; and 𝐴 is the artifact bundle … such as scripts/, assets/, templates, data files, or helper code. … deployment evidence updates the skill bank through = Φ𝑆 (𝑆𝑡𝑖 , 𝑧𝑖), where Φ𝑆 may add or retire skills (±𝜎𝑛𝑖 ) or revise existing ones (𝜎𝑛𝑖,𝑡 → 𝜎𝑛𝑖,𝑡+) by changing their 𝑀, 𝐼, 𝑅, 𝐴 components.”
公式卡 4 · 技能四元组与技能库更新(§3.1)Formula Card 4 · The skill 4-tuple and bank update
背景知识|Background
  • 程序性知识(procedural knowledge):“知道怎么做一件事”,与“知道一个事实”不同——技能把前者打包成可复用的过程。Procedural knowledge (know-how) vs declarative knowledge; a skill packages know-how as a reusable procedure.
  • 历史谱系:Voyager 的“可执行 JavaScript 技能库”最早把轨迹变成可复用程序;社区随后收敛到 SKILL.md 文件夹规范。Lineage: Voyager's executable skill library first turned trajectories into reusable programs; the community then converged on the SKILL.md folder schema.
  • 包管理概念:manifest(清单)、版本、注册表——技能库正在变成“智能体能力的包生态系统”。Package-management concepts (manifest, versioning, registry): skill libraries are becoming a package ecosystem for agent capabilities.
推导过程|Derivation
  1. 提问:复用一段做法最少需要什么信息?四件事——怎么找到它、怎么做、不会做时查什么、执行时依赖什么。Ask: what information does reusing a procedure minimally require? How to find it, how to do it, what to consult, what it depends on.
  2. 对应四元组:M(Manifest:名称/触发描述/元数据,让运行时找得到);I(Instruction:SKILL.md 正文,告诉模型怎么做);R(References:references/ 下的文档、schema、示例、测试、审计记录);A(Artifacts:scripts/、assets/、模板、数据文件——支撑真实执行)。Map to the 4-tuple: M (manifest/metadata for discovery), I (instruction body), R (reference set), A (artifact bundle for grounded execution).
  3. 技能库 = 时变集合 S_t:技能会增删改,所以带时间下标。The bank is a time-varying set S_t because skills are added, retired, revised.
  4. 更新算子 Φ_S:把编译经验 z_i 变成库变更——新增/退役(±σ)或修改已有技能的 M/I/R/A 分量;与 §2 的 Φ_H 完全同构。Φ_S turns compiled experience z_i into bank changes — add/retire skills or revise their M/I/R/A parts; structurally identical to Φ_H.
  5. 为什么值得形式化:四元组把“技能”从模糊概念变成可验证、可版本化、可路由的运行时对象——这是“不动权重加能力”的最直接机制。Why formalize: the 4-tuple makes a skill a verifiable, versionable, routable runtime object — the most direct way to add capability without touching weights.
论文中的用法|Usage:§3.2–3.5 的创建/使用/演化三阶段都建立在这个定义上;§9 的技能供应链攻击也以它为攻击面。§3.2–3.5 build the creation/use/evolution lifecycle on it; §9 treats it as an attack surface.
Figure 4: External skill lifecycle used in this chapter. Skill Creatio
External skill lifecycle used in this chapter. Skill Creation adds externally produced
图释:技能生命周期闭环:左列创建(人工/仓库/文档/轨迹四条来源 + 库组织)、中列使用(路由→组合→执行)、右列演化(证据发现→更新→验证),三列经技能库 S_t 闭合为 S_ti → τ_i → z_i → S_ti^+ 的循环。

3.2. 外部技能的三阶段生命周期3.2. A Three-Stage Lifecycle for External Skills

本节要点Section at a glance

就本章而言,外部技能库的生命周期是一个由创建、使用和进化组成的闭环。创建将经过审查的外部程序加入库中。

For this chapter, the lifecycle of an external skill library is a closed loop of creation, use, and evolution. Creation adds vetted external procedures to the library.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §3.2 原文全文 · Expand the full original text

3.2. 外部技能的三阶段生命周期 3.2. A Three-Stage Lifecycle for External Skills

就本章而言,外部技能库的生命周期是一个由创建、使用和进化组成的闭环。创建将经过审查的外部程序加入库中。使用是配备技能的运行时步骤。在这一阶段,harness 决定当前库的哪些部分应当塑造一项任务,以及这些部分如何被执行。进化在部署证据积累之后开始:一次失败的运行、一个反复出现的变通做法,或一条成功的轨迹都可以表明库的下一个版本应当改变。更新后的技能库是进化阶段的自然产物:𝑆𝑡𝑖 。这里 𝜏𝑖、𝑧𝑖 和 沿用第 2 节的记号。只有当我们讨论进化时,才会展开 𝑧𝑖 中特定于技能的内容。这三个阶段识别了经验如何进入、塑造并修订技能层。本章其余部分遵循这一三阶段划分。

For this chapter, the lifecycle of an external skill library is a closed loop of creation, use, and evolution. Creation adds vetted external procedures to the library. Use is the runtime step equipped with skills. In this stage, the harness decides which parts of the current library should shape a task and how those parts are carried out. Evolution starts after deployment evidence has accumulated: a failed run, a repeated workaround, or a successful trace can show that the next version of the library should change. The updated skill library is the natural output of evolution stage: 𝑆𝑡𝑖 . Here 𝜏𝑖, 𝑧𝑖, and follow the notation of Section 2. The skill-specific contents of 𝑧𝑖 are unpacked only when we discuss evolution. The three stages identify how experience enters, shapes, and revises the skill layer. The rest of the chapter follows this three-stage breakdown.

3.3. 技能创建:从外部来源到有组织的技能库3.3. Skill Creation: From External Sources to Organized Library

本节要点Section at a glance

技能创建(Skill Creation)研究的是外部或离线经验如何在已部署的 harness(智能体执行框架)开始使用和更新技能库之前被转化为候选程序。这些来源包括人工编写的包(packages)、代码仓库与工作流、文档、市场(marketplaces)以及固定的演示轨迹。

Skill Creation studies how external or offline experience is converted into candidate procedures before the deployed harness begins using and updating the library. These sources include human-authored packages, repositories and workflows, documentation, marketplaces, and fixed demonstration trajectories.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §3.3 原文全文 · Expand the full original text

3.3. 技能创建:从外部来源到有组织的技能库 3.3. Skill Creation: From External Sources to Organized Library

技能创建(Skill Creation)研究的是外部或离线经验如何在已部署的 harness(智能体执行框架)开始使用和更新技能库之前被转化为候选程序。这些来源包括人工编写的包(packages)、代码仓库与工作流、文档、市场(marketplaces)以及固定的演示轨迹。这一阶段以某个程序成为可被索引的技能工件(skill artifact)、并能够被检查后纳入 𝑆𝑡 为结束。这一边界将创建(Creation)与技能演化(Skill Evolution)区分开来:用于引导(bootstrapping)的离线轨迹属于创建,而已部署技能库产生的、用于修订该技能库的轨迹则属于演化。专家与产品编写的技能。最直接的创建路径是刻意编写:领域专家或产品开发者编写一个名称清晰的技能文件夹,并附上触发条件、描述和指令。它们通常还配有示例以及可选的脚本或模板作为补充。Anthropic 的文档技能(document skills)和 OpenAI 的技能包(skill bundles)都在生产环境中实例化了这一模式:程序性知识被打包,使智能体能够以低成本发现它们,并且只在需要时才加载细节。OpenClaw 和 ClawHub 增加了社区分发层:用户在注册表(registry)或市场中发现包,将其安装到本地运行时中,之后再按名称或版本加载选定的技能。因此,产品级系统表明技能创建已经超越了提示词设计(prompt crafting),走向开源社区和包生态系统。基于来源的技能构建。第二条创建路径将技能扎根于已有的外部来源,而非直接由专家编写。仓库与工作流挖掘从经过检验的代码库或智能体工作流中提取程序性结构,其中例程已经内嵌于脚本、工具和执行惯例之中。Corpus2Skill 代表了文档一侧的做法:对语料进行聚类,并将所得结构物化为分层的 SKILL.md/INDEX.md 目录。更具体地说,SkillForge 给出了企业级版本:它从历史支持工单中挖掘工作流和工具,从内部技术文档中检索领域参考资料,并将它们合成为领域专属技能。OpenSkill 扩展了这条基于来源的路径,利用外部信息合成可迁移的技能,并进一步提取可独立核查的锚点,为精炼这些技能构建代理评估(proxy evaluations)。因此,外部来源既能提供技能的内容,也能提供创建期的信号,用于测试该技能是否应当进入技能库。离线轨迹与演示。当轨迹是离线演示、而非来自当前已部署技能库的反馈时,由轨迹派生的候选也可以出现在创建阶段。一类工作将轨迹视为已解样例(worked examples),系统从中蒸馏出可复用的程序。SkillX 使用更强智能体的 rollout(采样轨迹)来提取规划技能、功能技能和原子技能,从而将原始轨迹压缩为多层级技能表示。同样的创建式解读也适用于 Trace2Skill、AutoSkill 和 MIND-Skill 的引导(bootstrapping)一侧:固定的轨迹池、历史对话或成功的演示都可以被蒸馏为初始技能工件。一旦此类轨迹由已部署的技能库产生、并用于修订该技能库,该操作就属于技能演化。综合起来,这些创建路径展示了初始技能库可以来自何处:专家包、代码仓库与工作流、文档与知识库,以及离线演示。技能创建的最后阶段是技能库组织。技能库组织。一个活跃的技能库不能只是一堆平铺的文件。一类系统通过在技能库之上添加显式结构,使搜索具有可扩展性。受控的规模扩展实验给出了技能库一侧的理由:当语义相似的技能停留在平铺池中时,它们会竞争相同的任务状态,使路由变得不那么可靠。以下工作主要在组织技能库的维度上有所不同。SkillNet 将一个 200K+ 规模的技能仓库组织为全局关系图:技能之间通过类别、相似性、依赖性和组合关系相连接。SkillX 则按能力粒度组织技能,将规划、功能和原子技能分开。Corpus2Skill 采用第三种维度,通过 SKILL.md 和 INDEX.md 文件保留文档派生的结构。这些方法表明,技能库可以通过全局技能关系、能力粒度或文档派生的组织方式来构建结构。在每种情况下,路由器接收到的都是中间结构,而非单一的无差别池。一旦技能库完成组织、条目完成暴露,问题就从构建工件转变为在运行时让正确的工件可用,这正是技能使用阶段的核心议题之一。

Skill Creation studies how external or offline experience is converted into candidate procedures before the deployed harness begins using and updating the library. These sources include human-authored packages, repositories and workflows, documentation, marketplaces, and fixed demonstration trajectories. The stage ends when a procedure becomes a indexable skill artifact that can be checked and admitted into 𝑆𝑡. This boundary separates Creation from Skill Evolution: offline traces used for bootstrapping belong here, whereas traces generated by a deployed skill library and used to revise that library belong to Evolution. Expert and product-authored skills. The most direct creation path is deliberate authoring: a domain expert or product developer writes a skill folder with a clear name, triggering description and instructions. They are often enriched by examples and optional scripts or templates. Anthropic's document skills and OpenAI's skill bundles both instantiate this pattern in production settings, where procedural knowledge is packaged so the agent can discover it cheaply and load details only when needed. OpenClaw and ClawHub add the community distribution layer: users discover packages in a registry or marketplace, install them into a local runtime, and later load selected skills by name or version. Product-level systems therefore show that skill creation has moved beyond prompt crafting toward an open-source community and package ecosystem. Source-grounded skill construction. A second creation path grounds skills in existing external sources rather than direct expert authoring. Repository and workflow mining extracts procedural structure from tested code bases or agent workflows, where routines are already embedded in scripts, tools, and execution conventions. Corpus2Skill represents the document side, clustering a corpus and materializing the resulting structure as a hierarchical SKILL.md/INDEX.md directory. More specifically, SkillForge gives the enterprise version: it mines workflows and tools from historical support tickets, retrieves domain references from internal technical documentation, and synthesizes them into a domain-specific skill. OpenSkill extends this source-grounded path by using external information to synthesize transferable skills, and further extracts independently checkable anchors to build proxy evaluations for refining these skills. Thus external sources can provide both the content of a skill and a creation-time signal for testing whether the skill should enter the library. Offline trajectories and demonstrations. Trajectory-derived candidates can also appear in Creation when the trajectories are offline demonstrations rather than feedback from the currently deployed library. One line of work treats trajectories as worked examples from which the system distills reusable procedure. SkillX uses rollouts from a stronger agent to extract planning, functional, and atomic skills, so the raw trace is compressed into a multi-level skill representation. The same creation reading applies to the bootstrapping side of Trace2Skill, AutoSkill, and MIND-Skill: fixed trajectory pools, historical conversations, or successful demonstrations can be distilled into initial skill artifacts. Once such traces are produced by a deployed skill library and used to revise that library, the operation belongs to Skill Evolution. Together, these creation paths show where an initial skill library can come from: expert packages, repositories and workflows, documents and knowledge bases, and offline demonstrations. The final stage of skill creation is library organization. Library organization. An active library must be more than a flat pile of files. One family of systems makes searching scalable by adding explicit structure over the library. Controlled scaling experiments give a library-side reason: when semantically similar skills stay in a flat pool, they compete for the same task states and make routing less reliable. The following works differ mainly in the dimension along which they organize the library. SkillNet organizes a 200K+ skill repository as a global relation graph: skills are connected by category, similarity, dependency, and composition relations. SkillX instead organizes skills by capability granularity, separating planning, functional, and atomic skills. Corpus2Skill follows a third dimension, preserving the document-derived structure through SKILL.md and INDEX.md files. These methods show that a library can be structured through global skill relations, capability granularity, or document-derived organization. In each case, the router receives intermediate structure instead of a single undifferentiated pool. Once the library is organized and the entries are exposed, the problem shifts from constructing artifacts to making the right ones available at runtime, which is one of the central topics in Skill Use stage.

3.4. 技能使用:检索、组合与执行3.4. Skill Use: Retrieval, Composition, and Execution

本节要点Section at a glance

技能使用(Skill Use)在技能进入 𝑆𝑡 之后开始。它研究的是运行时如何针对具体任务让当前技能库发挥作用:哪些技能可见,哪些被暴露,被选中的技能如何组合,以及所得程序能否在 harness 内运行。

Skill Use begins after skills have entered 𝑆𝑡. It asks how the runtime makes the current library operational for a concrete task: which skills are visible, which ones are exposed, how selected skills are combined, and whether the resulting procedure can run within the harness.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §3.4 原文全文 · Expand the full original text

3.4. 技能使用:检索、组合与执行 3.4. Skill Use: Retrieval, Composition, and Execution

技能使用(Skill Use)在技能进入 𝑆𝑡 之后开始。它研究的是运行时如何针对具体任务让当前技能库发挥作用:哪些技能可见,哪些被暴露,被选中的技能如何组合,以及所得程序能否在 harness 内运行。因此,以下段落将从技能库组织推进到路由、组合和执行。这一阶段之所以重要,是因为许多报告中的收益都假设正确的技能已经被注入。真实部署并不具备这种“先知”(oracle):只有在运行时能够在上下文和延迟约束下找到、组合并执行相关程序时,技能库的规模才有帮助。生产运行时暴露的是同样的问题。OpenClaw、OpenAI 的 shell 技能环境以及 Hermes Agent 都必须先向运行时呈现一组可发现的已安装技能:元数据被索引,技能包被放置在已知路径上,加载作用域(loading scopes)决定当前会话可见哪些条目。这一组织操作铺就了路由器据以为任务决定暴露内容的基础。路由、检索与触发。路由在形式上先于组合。它决定是否选中了正确的技能。在大型技能库中,有用的技能可能仍然隐藏,无关的技能可能看起来足够合理而被暴露,近重复项可能竞争相同的任务状态。产品运行时通常将这一步实现为渐进式披露(progressive disclosure),而非纯粹的、外部的 top-𝑘 选择器。在 Agent Skills 规范中,智能体首先看到轻量级元数据,只有当技能看起来相关时才打开完整的 SKILL.md 和支持文件。OpenAI 的生产指南描述了相同的挂载式技能(mounted-skill)模式:运行时在模型上下文中暴露技能元数据,如名称、描述和路径,模型决定使用该技能时即可从该路径读取完整的技能包。MUSE-Autoskill 采用同样的元数据优先运行时模式:智能体首先看到轻量级技能目录,只有当技能看起来相关时才加载完整的 SKILL.md。相比之下,许多学术检索管线仍使用外部检索器在下游智能体开始执行之前选定暴露的技能集。近期检索研究细化了这一图景,表明在面对大规模技能库时,路由会成为一个真实的短板。SkillsWild 量化了理想注入与真实检索之间的差距:强制加载的精选技能可以胜过从大型混合池中的检索结果,因此技能库的增长可能反而隐藏有用的技能,而非暴露它们。SkillRouter 验证了这一观点:先只展示元数据——这是当前的标准做法——在注册表规模下可能不够;紧凑的检索-重排(retrieve-and-rerank)管线通过使用更完整的技能文本而非仅名称和描述来改善匹配。MUSE-Autoskill 更进一步,为每个技能附加一个独立的技能级记忆文件;后续调用可以在静态 SKILL.md 之外一并呈现该记忆。于是检索性能与检索预算之间的权衡自然出现。为了单独评估技能检索性能,SkillRet 随后将长文本技能匹配单独划分为一个专门的检索基准。它表明通用检索器并不能自动解决技能选择问题,而针对技能的微调是有帮助的。因此,一旦技能库变大,路由就不能只是轻薄的元数据查找。组合。组合在检索之后开始,将选中的技能转化为任务级程序。近期系统通过不同结构实现这一点,包括技能库关系、能力层级、局部技能组、工作流和编译后的执行上下文。它们的共同点是兼容性问题:每个技能都必须符合其周围程序的假设、工件、副作用和停止条件。所引用的系统主要在使用何种结构来使这一兼容性问题可控上有所不同。SkillNet 在技能库层面记录依赖(dependency)和 compose_with 关系;检索之后,这些关系可以限定在所选子集上,用于形成运行时技能图以进行工作流合成。GoSkills 做了类似的举措。其局部图从一个锚点技能出发,添加由依赖、工件或其他关系连接的支撑技能;在上述记号中,暴露的技能成为 𝑉𝑞,𝑡,而这些带类型的关系在执行器看到提示词之前提供了 𝐴𝑞,𝑡 中的候选弧。SkillRAE 将选中的技能保留为节点,将任务相关的子单元和被挽救的线索重新附着到这些节点上,作为执行的局部指导。这些系统通过将选中的技能转化为图、组或编译上下文对象,使组合在执行之前变得可见。因此,路由是在 𝑆𝑡 上的检索问题,而组合是在更小的集合 𝑆𝑞,𝑡 上的规划与兼容性问题。组合更为严格,因为每个技能都会改变下一个技能所见的状态。因此,组合器必须在整个工作流中保持前置条件、中间工件、副作用和终止准则 𝑇𝜎。规模扩展问题随之而来:若检索得到的集合大小为 |𝑆𝑞,𝑡|,而任务可能需要深度 𝑑,那么朴素的顺序搜索是 𝑂(|𝑆𝑞,𝑡| 𝑑);没有路由的话,则是 𝑂(|𝑆𝑡 | 𝑑)。路由通过暴露更小的候选集来减小这一搜索的底数。组合则应对指数一侧:它防止智能体尝试每一种长度为 𝑑 的排列,提供一个远低于朴素 𝑂(|𝑆𝑞,𝑡| 𝑑) 搜索的可行执行图。两者结合,检索和组合使搜索更小,并在执行开始之前添加语义约束。运行时约束下的执行。执行是组合后的计划与 harness 相遇之处。被选中的技能可能需要文件、浏览器状态、shell 命令、凭证或限定作用域的记忆。因此,生产运行时实现了执行控制:OpenClaw 暴露 install/load、scope、registry 和 versioning 原语;OpenAI 的 shell 环境将技能包挂载到受控容器中。作为补充,学术工作提供了更细粒度的实践。SkillSmith 将离线技能包编译为边界引导的运行时接口。它不是将整个 SKILL.md 和捆绑资产作为运行时上下文暴露,而是提取操作符、输入-输出契约等元素,形成一个紧凑的执行契约。结果显示,在 SkillsBench 上,求解阶段的 token 用量、推理迭代次数和延迟均有所降低。执行收束了使用阶段:只有当被路由和组合的技能能够被正确调用、并在真实运行时中带来性能增益时,技能库才有价值。这些调用产生的轨迹正是技能演化的原材料。

Skill Use begins after skills have entered 𝑆𝑡. It asks how the runtime makes the current library operational for a concrete task: which skills are visible, which ones are exposed, how selected skills are combined, and whether the resulting procedure can run within the harness. The following paragraphs therefore move from library organization to routing, composition, and execution. This stage matters because many reported gains assume that the right skill is already injected. Real deployments do not have this oracle: library scale helps only when the runtime can find, combine, and execute the relevant procedures under context and latency constraints. Production runtimes expose the same problem. OpenClaw, OpenAI's shell-skill environment, and Hermes Agent must first present the runtime with a discoverable set of installed skills: metadata is indexed, bundles are placed at known paths, and loading scopes determine which entries are visible for the current session. This organization operation prepares the surface on which the router can decide what to expose for a task. Routing, retrieval, and triggering. Routing is formally prior to composition. It decides whether the right skills are selected at all. In a large library, a useful skill can remain hidden, an irrelevant one can look plausible enough to be exposed, or near-duplicates can compete for the same task state. Product runtimes often implement this step as progressive disclosure rather than as a pure external top-𝑘 selector. In the Agent Skills specification, the agent first sees lightweight metadata, then opens the full SKILL.md and supporting files only when the skill appears relevant. OpenAI's production guidance describes the same mounted-skill pattern: the runtime exposes skill metadata such as name, description, and path in the model context, and the model can then read the full skill bundle from that path when it decides to use it. MUSE-Autoskill adopts the same metadata-first runtime pattern: the agent first sees a lightweight skill catalog and loads the full SKILL.md only when the skill appears relevant. By contrast, many academic retrieval pipelines still use an external retriever to choose the exposed skill set before the downstream agent starts execution. Recent retrieval studies refine this picture by showing that routing becomes a real gap when encountering a large-scale library. SkillsWild quantifies the gap between ideal injection and realistic retrieval: force-loaded curated skills can outperform retrieval from a large mixed pool, so library growth can hide useful skills instead of exposing them. SkillRouter verifies this point: Showing metadata alone first, which is standard practice now, can be insufficient at registry scale; compact retrieve-and-rerank pipelines improve matching by using fuller skill text rather than only names and descriptions. MUSE-Autoskill pushes this further by attaching a separate skill-level memory file to each skill; later invocations can surface this memory alongside the static SKILL.md. So the tradeoff between retrieval performance and retrieval budget naturally appears. To evaluate skill retrieval performance alone, SkillRet then isolates long-form skill matching as a specific retrieval benchmark. It shows that general retrievers do not automatically solve skill selection and that skill-specific fine-tuning helps. Routing therefore cannot be a thin metadata lookup once the library becomes large. Composition. Composition starts after retrieval and turns selected skills into a task-level procedure. Recent systems do this through different structures, including library relations, capability levels, local skill groups, workflows, and compiled execution contexts. What they share is a compatibility problem: each skill must fit the assumptions, artifacts, side effects, and stopping conditions of the surrounding procedure. The cited systems differ mainly in what structure they use to make this compatibility problem manageable. SkillNet records dependency and compose_with relations at the library level; after retrieval, these relations can be restricted to the selected subset and used to form the runtime skill graph for workflow synthesis. GoSkills makes a similar move. Its local graph starts from an anchor skill and adds supporting skills connected by dependency, artifact or other relation; in the notation above, the exposed skills become 𝑉𝑞,𝑡, while these typed relations provide candidate arcs in 𝐴𝑞,𝑡 before the executor sees the prompt. SkillRAE keeps selected skills as the nodes, attaches task-relevant subunits and rescued cues back to those nodes as local guidance for execution. These systems make composition visible before execution by turning selected skills into graph, group, or compiled-context objects. Thus routing is a retrieval problem over 𝑆𝑡, whereas composition is a planning and compatibility problem over the smaller set 𝑆𝑞,𝑡. Composition is stricter because each skill changes the state seen by the next one. The composer must therefore preserve preconditions, intermediate artifacts, side effects, and termination criteria 𝑇𝜎 across the whole workflow. The scaling problem is immediate: if the retrieved set has size |𝑆𝑞,𝑡| and a task may require depth 𝑑, naive ordered search is 𝑂(|𝑆𝑞,𝑡| 𝑑); without routing, it would be 𝑂(|𝑆𝑡 | 𝑑). Routing reduces the base of this search by exposing a smaller candidate set. Composition addresses the exponent side: it prevent the agent from trying every length-𝑑 ordering, offering a plausible execution graph far below the naive 𝑂(|𝑆𝑞,𝑡| 𝑑) search. Together, retrieval and composition make search smaller and add semantic constraints before execution begins. Execution under runtime constraints. Execution is where the composed plan meets the harness. A selected skill may need files, browser state, shell commands, credentials, or scoped memory. Production runtimes therefore implement execution controls: OpenClaw exposes install/load, scope, registry, and versioning primitives; OpenAI's shell environments mount skill bundles into controlled containers. Complementarily, academic works provide more fine-grained practice. SkillSmith compiles offline skill packages into boundary-guided runtime interfaces. Instead of exposing the entire SKILL.md and bundled assets as runtime context, it extracts operators, input-output contracts and other elements into a compact execution contract. The result shows reduced solve-stage token use, reasoning iterations, and latency on SkillsBench. Execution closes the Use stage: the library has value only if routed and composed skills can be invoked properly and provide performance gain in the real runtime. The traces produced by these invocations are the raw material for skill evolution.

📖 原文依据(论文逐字引用)|Verbatim from the paper
§3.4 原文:“Routing is formally prior to composition. … The scaling problem is immediate: if the retrieved set has size |𝑆𝑞,𝑡| and a task may require depth 𝑑, naive ordered search is 𝑂(|𝑆𝑞,𝑡|𝑑); without routing, it would be 𝑂(|𝑆𝑡|𝑑). Routing reduces the base of this search by exposing a smaller candidate set. Composition addresses the exponent side: it prevent the agent from trying every length-𝑑 ordering, offering a plausible execution graph far below the naive 𝑂(|𝑆𝑞,𝑡|𝑑) search.”
公式卡 5 · 路由与组合的复杂度(§3.4,非正式公式)Formula Card 5 · Routing–composition complexity
背景知识|Background
  • 排列/组合搜索:从 n 个候选中选出长度为 d 的有序序列,朴素搜索有 nd 种可能——技能编排正是这样的搜索问题。Ordered sequences of length d from n candidates admit n^d possibilities — skill orchestration is exactly this search problem.
  • 检索-重排(retrieve-and-rerank):先召回小候选集,再精细打分——“缩小底数”的标准做法。Retrieve-and-rerank: recall a small candidate set first, then score finely — the standard way to shrink the base.
  • 技能图:技能之间有依赖(dependency)、组合(compose_with)关系,可构成图结构。Skill graphs: dependency and compose_with relations among skills.
推导过程|Derivation
  1. 问题的规模:任务需要深度 d 的技能序列;若无任何约束,从整个库 |S_t| 里枚举所有长度-d 的有序组合 → O(|S_t|d)。Scale: a task needs a depth-d skill sequence; enumerating all ordered length-d combinations over the whole bank |S_t| costs O(|S_t|^d).
  2. 路由降底数:路由把候选缩到任务相关子集 |S_q,t| → 底数从 |S_t| 降到 |S_q,t|。Routing shrinks the base: candidates reduce to a task-relevant subset |S_q,t|.
  3. 组合压指数:组合(技能图/依赖关系)直接给出可行的执行图,避免智能体尝试所有长度为 d 的排序——指数侧被语义约束剪掉。Composition attacks the exponent: dependency-aware skill graphs yield a plausible execution graph directly, pruning the length-d orderings.
  4. 工程含义:这就是“路由在形式上先于组合”的原因——没有路由,组合搜索的底数不可承受;没有组合,指数爆炸依然存在。Engineering meaning: this is why routing is formally prior to composition — without routing the base is unaffordable; without composition the exponent still explodes.
论文中的用法|Usage:解释 SkillsWild 的发现(大库反而“藏”技能)——库越大,路由降底数越关键。Explains SkillsWild's finding that large libraries hide skills — the larger the bank, the more routing matters.

3.5. 技能演化:从部署证据到技能库更新3.5. Skill Evolution: From Deployment Evidence to Library Updates

本节要点Section at a glance

技能演化(Skill Evolution)是后续使用改变技能库本身的环节。技能创建可以播下候选程序的种子,而这些程序的价值只有在新任务上经过检索和执行之后才会显现。

Skill Evolution is where later use changes the library itself. Skill Creation can seed candidate procedures, whose value becomes clear only after retrieval and execution on new tasks.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §3.5 原文全文 · Expand the full original text

3.5. 技能演化:从部署证据到技能库更新 3.5. Skill Evolution: From Deployment Evidence to Library Updates

技能演化(Skill Evolution)是后续使用改变技能库本身的环节。技能创建可以播下候选程序的种子,而这些程序的价值只有在新任务上经过检索和执行之后才会显现。如果不加修订,不断增长的技能库会积累脆弱的触发器、过时的假设和相互重叠的程序。演化利用部署证据,在未来的运行继承这些技能之前,对其进行修订、合并、退役或验证。这里我们对第 2 节中的符号 𝑧𝑖 加以特化:对于技能演化,𝑧𝑖 是与当前技能库 𝑆𝑡𝑖 一起被消费的已整理证据,而不仅仅是原始日志。统一更新仍然为 = Φ𝑆 (𝑆𝑡𝑖, 𝑧𝑖)。而验证(Validation)阶段检查这些更新是否真的有用。SkillOpt 给出了完整演化循环的一个紧凑示例:带评分的 rollout(采样轨迹)定义了证据,优化器模型对技能文档提出有界的添加/删除/替换编辑,而留出验证门只接纳能够改善当前技能的编辑。SkillOS 将这一循环从单技能编辑扩展到学习式的仓库级策展。它冻结智能体执行器,训练一个独立的技能策展器(skill curator),通过 insert_skill、update_skill 和 delete_skill 操作一个 Markdown 格式的 SkillRepo,并使用分组任务流,使先前的仓库编辑通过其对后续相关任务的影响而得到奖励。以下各节展开演化过程,并深入剖析每个阶段。证据发现。第一步是识别值得转化为技能库更新的轨迹证据。成功或人类偏好的轨迹是最清晰的来源:它们展示了已经奏效的程序,或者用户反复引导智能体去做的程序。Voyager 给出了这一路线中最早的实例,它从成功的 Minecraft 经验中积累可执行的 JavaScript 技能,并为后续任务检索它们。Trace2Skill 将同样的证据逻辑从单个智能体的历史扩展到由子智能体处理的执行轨迹,这些子智能体提取轨迹局部的经验教训并将其整合为一个技能目录。AutoSkill 增加了更面向用户的来源,将反复出现的查询和交互轨迹蒸馏为个性化的可复用技能。此外,SkillsVote 将执行轨迹分解为细粒度的、与技能挂钩的子任务,只接纳成功的、可复用的、且有归因支持的发现进入技能库更新。这使得成功成为一种带归因的证据来源,而非原始的轨迹级信号。综合来看,这些工作表明,正向轨迹和反复出现的人类偏好可以揭示值得外化到技能库中的稳定例程。负向轨迹同样重要,因为它们暴露了现有技能库的质量缺口。然而,只有当分析管线将失败转化为具体的更新目标时,失败才有用。因此,关于负向轨迹的工作沿着两条路线展开:产生信息量丰富的失败轨迹,以及将这些轨迹转化为可用于技能演化的证据。SkillEvolver 主要强化第一条路线:全新的下游智能体加载候选技能,它们的轨迹暴露了编写智能体自身的探索可能遗漏的、部署特有的失败。SkillForge 通过失败分析器、技能诊断器和技能优化器将第二条路线落地。它将失败案例分解为知识、工具使用、澄清和风格等维度,然后将反复出现的模式映射到 SKILL.md 中的具体缺陷。EvoSkill 将两条路线连接起来:在记录失败轨迹的同时记录当前的技能清单和真值答案,使提议者能够区分未被覆盖的能力与现有技能的失败。综合来看,这些工作展示了负向轨迹如何成为技能库更新的局部化证据,而非无差别的通过/失败标签。第三个来源是只有在技能成为长期共享资产之后才会出现的证据。这种证据并非新种类的轨迹,因为轨迹要么是成功/高分,要么是失败/低分;区别在于重复使用所产生的聚合信号/统计量。AutoRefine 追踪累积经验模式的有效性、频率和精确度,使反复出现但价值低或冗余的模式可以被剪枝或合并。Memento-Skills 和 Skill-Pro 同样在多次执行中为技能附加持续更新的效用、奖励或失败归因信号,使技能库维护依赖使用历史而非单个片段(episode)。SkillClaw 增加了集体场景:来自多个已部署智能体和用户的轨迹按所引用的技能进行聚合,因此重复的成功定义了稳定行为,而重复的失败则暴露了共同的修正目标。在这一规模上,证据发现有三种渠道:成功或受偏好的轨迹识别出值得保留的例程,失败轨迹定位缺陷或缺失的能力,而重复或共享的使用则提供统计证据,说明哪些条目应当继续影响技能库。这些渠道为接下来讨论的更新操作提供了经验基础。更新操作。一旦发现证据,更新就应当通过它如何改变 𝑆𝑡 来描述。第一种操作是添加(addition)。它应对覆盖缺口:技能库缺少一个在成功轨迹、用户请求或诊断出的失败中反复出现的程序。

Skill Evolution is where later use changes the library itself. Skill Creation can seed candidate procedures, whose value becomes clear only after retrieval and execution on new tasks. Without revision, a growing library accumulates brittle triggers, stale assumptions, and overlapping procedures. Evolution uses deployment evidence to revise, merge, retire, or validate skills before future runs inherit them. Here we specialize the Section 2 symbol 𝑧𝑖: for skill evolution, 𝑧𝑖 is the compiled evidence consumed together with the current library 𝑆𝑡𝑖, not the raw log alone. The unified update remains = Φ𝑆 (𝑆𝑡𝑖, 𝑧𝑖). And Validation stage checks if the updates are actually useful. SkillOpt provides a compact example of the full evolution loop: scored rollouts define the evidence, an optimizer model proposes bounded add/delete/replace edits to the skill document, and a held-out validation gate admits only edits that improve the current skill. SkillOS extends this loop from single-skill editing to learned repository-level curation. It freezes the agent executor and trains a separate skill curator to operate on a Markdown SkillRepo through insert_skill, update_skill, and delete_skill, using grouped task streams so that earlier repository edits are rewarded by their effect on later related tasks. The sections below unpack the evolution process and dig deeper into each stage. Evidence discovery. The first step is to identify trajectory evidence that is worth turning into library updates. Successful or human-preferred trajectories are the clearest source: they show procedures that have already worked, or that users repeatedly steer the agent toward. Voyager gives the earliest concrete example in this line, accumulating executable JavaScript skills from successful Minecraft experience and retrieving them for later tasks. Trace2Skill extends the same evidence logic from a single agent history to execution traces processed by sub-agents, which extract trajectory-local lessons and consolidate them into a skill directory. AutoSkill adds a more user-facing source, where recurring queries and interaction traces are distilled into personalized reusable skills. Further, SkillsVote decomposes execution trajectories into fine-grained skill-linked subtasks and admits only successful, reusable, and attribution-supported discoveries to library updates. This makes success an attributed evidence source rather than a raw trajectory-level signal. Together, these works show that positive trajectories and repeated human preferences can reveal stable routines worth externalizing into the library. Negative trajectories are equally important because they expose quality gaps in the existing library. However, failure is useful only when an analytic pipeline turns it into a specific update target. Work on negative traces therefore follows two lines: producing informative failure trajectories, and transforming those trajectories into usable evidence for skill evolution. SkillEvolver mainly strengthens the first line: fresh downstream agents load a candidate skill, and their traces expose deployment-specific failures that the authoring agent's own exploration may miss. SkillForge operationalizes the second line through a failure analyser, a skill diagnostician, and a skill optimiser. It decomposes bad cases into knowledge, tool-use, clarification, and style dimensions, then maps recurring patterns to concrete defects in SKILL.md. EvoSkill connects the two lines by recording failed traces together with the current skill inventory and ground-truth answers, so the proposer can distinguish uncovered capabilities from failures of existing skills. Together, these works show how negative trajectories become localized evidence for library updates rather than undifferentiated pass/fail labels. A third source is evidence that appears only after skills become long-lived shared assets. This evidence is not a new kind of trajectory, since trajectories are either success/high score or failure/low score; the difference is the aggregate signal/statistics produced by repeated use. AutoRefine tracks the effectiveness, frequency, and precision of accumulated experience patterns, so recurring but low-value or redundant patterns can be pruned or merged. Memento-Skills and Skill-Pro similarly attach running utility, reward, or failure attribution signals to skills across repeated executions, making library maintenance depend on usage history rather than on a single episode. SkillClaw adds the collective setting: trajectories from multiple deployed agents and users are aggregated by referenced skill, so repeated successes define stable behavior while repeated failures expose shared correction targets. At this scale, evidence discovery has three channels: successful or preferred trajectories identify routines worth preserving, failure trajectories locate defects or missing capabilities, and repeated or shared use supplies statistical evidence about which entries should keep influencing the library. These channels provide the empirical basis for the update operations discussed next. Update operations. Once evidence is discovered, the update should be described by how it changes 𝑆𝑡. The first operation is addition. It addresses a coverage gap: the library lacks a procedure that appears repeatedly in successful traces, user requests, or diagnosed failures.

📖 原文依据(论文逐字引用)|Verbatim from the paper
§3.5 原文:“Here we specialize the Section 2 symbol 𝑧𝑖: for skill evolution, 𝑧𝑖 is the compiled evidence consumed together with the current library 𝑆𝑡𝑖, not the raw log alone. The unified update remains = Φ𝑆 (𝑆𝑡𝑖, 𝑧𝑖).” §3.1 原文:“… deployment evidence updates the skill bank through = Φ𝑆 (𝑆𝑡𝑖, 𝑧𝑖), where Φ𝑆 may add or retire skills (±𝜎𝑛𝑖 ) or revise existing ones (𝜎𝑛𝑖,𝑡 → 𝜎𝑛𝑖,𝑡+) by changing their 𝑀, 𝐼, 𝑅, 𝐴 components.”
公式卡 6 · 技能库更新算子(§3.5)Formula Card 6 · The skill-bank update operator
背景知识|Background
  • 技能库是时变集合 S_t = {σ_1,t, …, σ_n_t,t}(§3.1);Φ_S 是与 Φ_H/Φ_M 并列的第三个更新算子,专门作用于"技能库"这个外部表面。The skill bank is a time-varying set S_t; Φ_S is the third update operator (alongside Φ_H and Φ_M), specialized to the skill-library surface.
  • 技能条目的四元组 σ = ⟨M, I, R, A⟩:清单(manifest)、指令(instructions)、参考(references)、工件(artifacts)。更新只能改这四部分或整个条目的存亡。Each skill is the four-tuple ⟨M, I, R, A⟩; updates can only change these parts or the existence of the entry.
  • 与 Φ_H 的关系:Φ_H 更新整个 harness(含技能/记忆/工具等),而 Φ_S 是技能层面的专门化算子——两者同构,作用对象粒度不同。Φ_H updates the whole harness; Φ_S is the skill-level specialization — isomorphic, just finer-grained.
推导过程|Derivation
  1. 变化来源:技能库的变动只有三种——新技能准入(+σ)、旧技能退役(−σ)、既有技能修订(σ → σ⁺,改 M/I/R/A)。Changes can only be: admission (+σ), retirement (−σ), or revision (σ → σ⁺).
  2. 统一记号:把"证据 z_i → 库变更"写成算子作用 Φ_S(S_t, z_i),下标 t_i 表示"窗口关闭时刻的库状态"——与 §2.1 的 z_i = H_t_i(τ_i) 同一时间语义。Write the evidence-to-change map as Φ_S(S_t, z_i) with the library state at the window-close time t_i.
  3. 为什么 z_i 而非原始日志:§3.5 明确——技能演化消费的是编译证据(成功/失败/统计),原始日志直接驱动更新会把噪声当经验(与 z_i 的过滤/压缩/归因/验证一致)。§3.5 stresses that skill evolution consumes compiled evidence, not raw logs.
  4. 闭环:Φ_S 的输出又是下一轮使用的输入——S_ti → τ_i → z_i → S_ti+ → τ_i+1,与 §3.2 的三阶段生命周期首尾相接。The output feeds the next round: S_ti → τ_i → z_i → S_ti+ → τ_i+1, closing the three-stage lifecycle.
论文中的用法|Usage:解释技能演化系统中的代表性做法——SkillOpt 用评分 rollout 定义证据、优化器模型提议有界的增/删/改、held-out 验证门控只准入有效编辑;这与 Φ_S 的三类变动一一对应。Explains representative practice: SkillOpt scores rollouts as evidence, an optimizer proposes bounded add/delete/replace edits, and a held-out gate admits only useful edits — matching Φ_S's three change types.

Trace2Skill 通过横向整合来回答这一问题:许多轨迹局部的补丁相互比较、去重、解决冲突,并合并为单一统一的技能目录。AutoSkill 增加了纵向的仓库比较:将候选与当前 SkillBank 中的邻近条目进行比较,因此只有当候选仍然是独特且持久的能力、而非合并或丢弃的情形时,才会提出 add。第二种操作是编辑(editing)。它应对质量缺口:技能库中已经包含相关技能,但条目中的某些东西使它在使用中失败。SkillOS 表明,仓库演化会自然地转向这一操作:在训练过程中,插入在早期占主导地位,而随着策展器从扩展仓库转向精炼和整合现有技能,更新变得越来越频繁。其他系统使编辑更为保守。SkillForge 贡献了精确且有充分证据的编辑:其诊断器将反复出现的失败模式映射到 SKILL.md 或参考文件中的具体位置,每个提案都带有证据、预期影响和风险。XSkill 通过将任务级技能与上下文敏感的经验分开,增加了另一道护栏。局部经验可以在不立即改写技能的情况下更新;只有当多路径 rollout 一致表明必要时,才会提出对技能的 modify 操作。因此,编辑是仅在证据强到足以区分持久缺陷与临时经验之后,用于修复现有抽象的操作。第三种操作是剪枝与退役(pruning and retirement)。它应对污染缺口:不断增长的技能库可能越来越难以路由。AutoRefine 提出了统计驱动的陈旧策略:如果一个模式经常被检索却很少被使用,或者被使用却没有改善成功率,系统就将其视为剪枝的候选。Hermes Agent 代表了同一操作的生产一侧。它暴露了成熟的生命周期动作,如 create、update、delete 和类归档(archive-style)处理,表明工业技能产品已经将退役视为标准的技能库操作。因此,这两项工作覆盖了退役的不同侧面:AutoRefine 解释了如何识别陈旧的技能,而 Hermes 展示了已部署技能系统必须暴露哪些维护动作。第四种操作是同步、版本管理与回滚(synchronization, versioning, and rollback)。它应对部署缺口:既然技能库成为共享来源,就必须指定一种机制。OpenClaw 和 ClawHub 暴露了 registry、install/load、version 和分发接口。这些系统表明,更新提案可以针对技能库状态和分发元数据,而不仅仅是单个技能的文本。更新的验证与接纳。验证检验更新后的技能库是否真正有用。SkillsBench 和 SWE-Skills-Bench 在基准规模上让这一要求可见:技能可以改善智能体,但自生成或错配的技能也可能导致负迁移(negative transfer)。这已经催生了基础的评估设施。SkillLens 进一步评估了从经验生成、技能提取到技能消费的完整轨迹到技能(trajectory-to-skill)管线。它表明生成的技能经常有帮助,但仍可能产生显著的负迁移,并且一个模型可能是强大的提取者却是弱技能消费者,反之亦然。因此,验证必须是端到端的,即在技能实际被消费的目标模型和领域中测试提取出的技能。例如,SkillTester 将有技能的执行与基线执行进行比较。尽管其原始比较是“有技能对比无技能”,但同样的端到端思路可以复用于更新:在同一组任务上运行旧技能库和更新后的技能库。EvoSkill 实现了这一验证方法的标准版本:包含新技能或已编辑技能的候选程序只有在改善留出验证前沿(validation frontier)时才被保留。

Trace2Skill answers this through horizontal consolidation: many trajectory-local patches are compared with one another, deduplicated, conflict-resolved, and merged into a single unified skill directory. AutoSkill adds a vertical repository comparison: the candidate is compared with nearby entries in the current SkillBank, so add is proposed only when the candidate remains a distinct durable capability rather than a merge or discard case. The second operation is editing. It addresses a quality gap: the library already contains a relevant skill, but something in the entry makes it fail in use. SkillOS shows that repository evolution naturally shifts toward this operation: during training, insertion dominates early, while updates become more frequent as the curator moves from expanding the repository toward refining and consolidating existing skills. Other systems make editing more conservative. SkillForge contributes precise and well-evidenced edits: its diagnostician maps recurring failure patterns to concrete locations inside SKILL.md or reference files, and each proposal carries evidence, expected impact, and risk. XSkill adds a different guardrail by separating task-level skills from context-sensitive experiences. Local experiences can be updated without immediately rewriting the skill; a modify operation on skill is proposed only when multi-path rollouts consistently show necessity. Editing is therefore the operation for repairing an existing abstraction only after evidence is strong enough to distinguish a durable defect from a temporary experience. The third operation is pruning and retirement. It addresses a pollution gap: a growing library can become increasingly harder to route through. AutoRefine proposed a statistic-driven stale strategy: if a pattern is retrieved often but rarely used, or used without improving success, the system treats it as a candidate for pruning. Hermes Agent represents the production side of the same operation. It exposes mature lifecycle actions such as create, update, delete, and archive-style handling, showing that industrial skill products already treat retirement as a standard library operation. The two works therefore cover different sides of retirement: AutoRefine explains how stale skills can be identified, while Hermes shows which maintenance actions a deployed skill system must expose. The fourth operation is synchronization, versioning, and rollback. It addresses a deployment gap: Since skill library becomes a shared source, an mechanism must be specified. OpenClaw and ClawHub expose registry, install/load, version, and distribution surfaces. These systems show that update proposals can target library state and distribution metadata, not only the text of a single skill. Validation and admission of updates. Validation tests whether the updated library is actually useful. SkillsBench and SWE-Skills-Bench make this requirement visible at benchmark scale: skills can improve agents, but self-generated or mismatched skills can also cause negative transfer. This has already led to basic evaluation infrastructure. SkillLens further evaluates the full trajectory-to-skill pipeline across experience generation, skill extraction, and skill consumption. It shows that generated skills often help but can still produce substantial negative transfer, and that a model may be a strong extractor yet a weak skill consumer, or vice versa. Validation therefore has to be end-to-end, testing an extracted skill in the target model and domain where it will actually be consumed. SkillTester, for example, compares with-skill execution against a baseline execution. Although its original comparison is skill versus no skill, the same end-to-end idea can be reused for updates by running the old and updated libraries on the same tasks. EvoSkill implements a standard version of this validation method: candidate programs containing new or edited skills are kept only when they improve the held-out validation frontier.

并非每个验证信号都必须是端到端的任务得分。MIND-Skill 检查由轨迹诱导出的技能是否保留了可迁移的程序性知识,既不遗漏关键步骤,也不死记实例特有的细节。然而,在这一生命周期中,核心的接纳问题仍然是更新之后的任务级效用。因此,近期系统专注于让端到端验证更有效、更可靠。SkillEvolver 观察到,修订后的技能在编写上下文中可能看起来有用,却泄漏了训练实例的细节、依赖私有会话上下文。它的全新会话审计器(fresh-session auditor)在修订后的工件于留出划分(held-out split)上被评估之前,先检查这些失败模式。CoEvoSkills 解决的是另一个问题:真值任务得分具有权威性但很稀疏,因此仅凭通过/失败给出的信号不足。它的代理验证器(Surrogate Verifier)在升级到真值预言机(oracle)之前提供更密集的诊断反馈,而论文同时也展示了仍然存在的代理-预言机差距。SkillClaw 把验证推向更接近用户侧的部署。它的候选是源自跨用户轨迹的集体更新,并以更真实的方式进行评估:评估在夜间、处于空闲状态的用户环境中进行,且完整工具链处于使用中。这些系统防止演化循环把任何提议的更新都当作改进:更新必须经受住一个与技能库使用环境相适应的验证程序。小结。在整个生命周期中,技能为 harness 提供了一层外部的、可编辑的程序性能力。技能创建将专家知识、文档、演示和轨迹转化为初始的技能库条目;技能使用通过组织、路由、组合和执行使这些条目可用;技能演化将部署证据转化为提议的技能库变更,并只接纳通过验证的那些。这一生命周期无需立即更新模型权重即可改变智能体行为,但只有当技能库被持续组织、测试和维护时,它们才持续有用。

Not every validation signal has to be end-to-end task score. MIND-Skill checks whether a trajectory-induced skill preserves transferable procedural knowledge without dropping key steps or memorizing instance-specific details. In this lifecycle, however, the central admission question is still task-level utility after an update. Recent systems therefore focus on making end-to-end validation more effective and reliable. SkillEvolver observes that a revised skill can look useful in the authoring context while leaking training-instance details, relying on private session context. Its fresh-session auditor checks these failure modes before the revised artifact is evaluated on the held-out split. CoEvoSkills addresses a different problem: ground-truth task scores are authoritative but sparse, so pass/fail alone gives insufficient signal. Its Surrogate Verifier supplies denser diagnostic feedback before escalation to the ground-truth oracle, while the paper also shows the remaining surrogate–oracle gap. SkillClaw moves validation closer to user-side deployment. Its candidates are collective updates derived from cross-user trajectories, and are evaluated in a more realistic style: evaluation occurs at night in idle user environments, with the full toolchain in use. These systems keep the evolution loop from treating any proposed update as an improvement: the update must survive a validation procedure appropriate to the setting in which the library will be used. Summary. Across the lifecycle, skills provide the harness with an external and editable layer of procedural competence. Skill Creation turns expert knowledge, documents, demonstrations, and trajectories into initial library entries; Skill Use makes those entries available through organization, routing, composition, and execution; Skill Evolution converts deployment evidence into proposed library changes and admits only those that pass validation. This lifecycle changes agent behavior without requiring an immediate model-weight update, but they remain useful only when the library is continuously organized, tested, and maintained.

第 4 章 · 记忆:经验成为持久状态4. Memory: Experience Becomes Persistent State

4.1. 智能体记忆:上下文中介的持久化4.1. Agent Memory as Context-Mediated Persistence

📚 第 4 章总览 · 手写精读(本章主旨与各小节导读)

本章主旨:记忆 = 以"上下文中介的持久化"(context-mediated persistence)——过去信息存在模型外、被变换后选择性重新注入上下文。三层框架:表示(内容单元 × 组织结构)、操作(写准入/压缩/巩固/检索激活/更新修订)、演化(内容/机制/策略)。记忆是持久化的双刃:既使跨任务改进可能,也延长攻击效应寿命。

  • 4.1 定义与三重辨析(vs RAG、vs 技能、vs 上下文窗口);
  • 4.2 表示:日志/轨迹/摘要三型 × 扁平/分层/图三型;
  • 4.3 操作:五步流水线;
  • 4.4 自演化与下一前沿(评测缺口:一次性使用 vs 纵向演化)。

The point of this chapter: memory is context-mediated persistence — past information lives outside the model, is transformed into useful form, and is selectively re-injected into context. The three-layer frame: representation (content units × organization structures), operations (write admission, compression, consolidation, retrieval/activation, update/revision), and evolution (content, mechanisms, policies). Memory is a double-edged persistence: it enables cross-task improvement yet also extends the lifetime of attacks.

  • 4.1 Definition and three contrasts (vs RAG, vs skills, vs the context window);
  • 4.2 Representation: logs/trajectories/summaries × flat/tiered/graph;
  • 4.3 Operations: the five-step pipeline;
  • 4.4 Self-evolution and the next frontier (the evaluation gap: one-shot use vs longitudinal evolution).

本节要点Section at a glance

智能体记忆使任务相关信息在模型调用、会话和环境之间保持可用。在已部署的智能体中,这与上下文管理不可分割:系统必须决定哪些过去的信息进入活跃上下文,哪些保留在上下文之外可检索,哪些应当被压缩、修订或遗忘。

Agent memory keeps task-relevant information available across model calls, sessions, and environments. In deployed agents, this is inseparable from context management: the system must decide what past information enters the active context, what remains retrievable outside it, and what should be compressed, revised, or forgotten.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §4.1 原文全文 · Expand the full original text

4. 记忆:经验成为持久状态 4. Memory: Experience Becomes Persistent State

4.1. 智能体记忆:上下文中介的持久化 4.1. Agent Memory as Context-Mediated Persistence

智能体记忆使任务相关信息在模型调用、会话和环境之间保持可用。在已部署的智能体中,这与上下文管理不可分割:系统必须决定哪些过去的信息进入活跃上下文,哪些保留在上下文之外可检索,哪些应当被压缩、修订或遗忘。这使智能体记忆区别于普通的检索。RAG 通常从相对静态的语料中检索,而智能体记忆由智能体自身产生、编辑和复用。Generative Agents 表明,存储的观察和反思可以塑造长程行为,而 xMemory 进一步将记忆视为自我编写、可修订且与行动耦合的。因此,关键对象是一个上下文中介的持久化系统:过去的信息存储在模型之外,被转化为有用的形式,并被选择性地重新引入上下文。记忆也不同于技能。技能规定可复用的程序,说明如何再次做某件事。记忆保存状态、证据和历史:发生了什么、什么变了、什么失败了,或者用户偏好什么。一条轨迹可以同时产生两者。如果它成为一个命名的程序,它就属于技能层;如果它作为情境化证据仍有价值,它就属于记忆。当前大多数智能体记忆系统都是上下文中介式的。信息存放在文件、日志、向量库、图、摘要或记忆管理器中,然后通过检索或上下文注入返回。本章聚焦于这一外部记忆层,因为它可检查、可编辑,并且能够在部署过程中改变。图 5 概括了这一观点:记忆不是单一存储,而是从过往交互经由表示、操作和演化进入活跃上下文的受管理流动。表 2 在同一结构下列出了代表性工作,本章其余部分将依次讨论各个方面。

Agent memory keeps task-relevant information available across model calls, sessions, and environments. In deployed agents, this is inseparable from context management: the system must decide what past information enters the active context, what remains retrievable outside it, and what should be compressed, revised, or forgotten. This distinguishes agent memory from ordinary retrieval. RAG usually retrieves from a relatively static corpus, whereas agent memory is produced, edited, and reused by the agent itself. Generative Agents showed that stored observations and reflection can shape long-horizon behavior, and xMemory further treats memory as self-authored, revisable, and action-coupled. The key object is therefore a context-mediated persistence system: past information is stored outside the model, transformed into useful forms, and selectively reintroduced into context. Memory is also different from skill. Skills specify reusable procedures for how to do something again. Memory keeps state, evidence, and history: what happened, what changed, what failed, or what a user preferred. A trajectory can produce both. If it becomes a named procedure, it belongs to the skill layer; if it remains valuable as situated evidence, it belongs to memory. Most current agent-memory systems are context-mediated. Information lives in files, logs, vector stores, graphs, summaries, or memory managers, then returns through retrieval or context injection. This chapter focuses on this external memory layer because it is inspectable, editable, and able to change during deployment. Figure 5 summarizes this view: memory is not a single store, but a managed flow from past interaction into active context through representation, operations, and evolution. Table 2 lists representative works under this same structure, and the rest of the chapter proceeds through each aspect in turn.

Figure 5: Context-mediated memory management and evolution. Memory rep
Context-mediated memory management and evolution. Memory representations
图释:记忆三层框架:表示(内容单元三型 × 组织结构三型)、操作(写准入/压缩/巩固/检索激活/更新修订五步)、演化(内容/机制/策略三层递进)——顶部总括:记忆是从过去交互到活跃上下文的受管理流动。
主题
Topic
代表工作
Representative works
表示·内容单元
Representation · content units
原始日志/活跃上下文:Empowering Working Memory、Hangman、Active Context Compression、TierMem | 情景轨迹:WebCoach、Live-Evo、CAST、MemRL | 摘要/语义抽象:SimpleMem、Memori、Chronos
Raw logs/active context: Empowering Working Memory, Hangman, Active Context Compression, TierMem | Episodic trajectories: WebCoach, Live-Evo, CAST, MemRL | Summaries/semantic abstractions: SimpleMem, Memori, Chronos
表示·组织结构
Representation · structures
扁平/追加:Generative Agents、Reflexion、Cognis、APEX-MEM | 分层:MemGPT、LightMem、Agentic Memory、CLAG | 关系/联想:PlugMem、AriadneMem、GAAMA、MemORAI、SAGE、H-MEM
Flat/append-only: Generative Agents, Reflexion, Cognis, APEX-MEM | Tiered: MemGPT, LightMem, Agentic Memory, CLAG | Relational: PlugMem, AriadneMem, GAAMA, MemORAI, SAGE, H-MEM
操作
Operations
写/准入:AMAC、Agentic Memory、U-Mem | 压缩:Active Context Compression、SimpleMem、Memori、DeMem | 巩固:WebCoach、A-MEM、LightMem、Auto-Dreamer、GAAMA、CLAG | 检索/激活:xMemory、Chronos、AriadneMem、TierMem、MemORAI、Cognis | 更新/修订:Live-Evo、STALE、MemoRepair、APEX-MEM
Write/admission: AMAC, Agentic Memory, U-Mem | Compression: ACC, SimpleMem, Memori, DeMem | Consolidation: WebCoach, A-MEM, LightMem, Auto-Dreamer, GAAMA, CLAG | Retrieval: xMemory, Chronos, AriadneMem, TierMem, MemORAI, Cognis | Update: Live-Evo, STALE, MemoRepair, APEX-MEM
演化
Evolution
内容演化:SimpleMem、Memori、Chronos、Live-Evo | 机制演化:MetaMem、MemSkill、Self-Evolving Memory Extraction、SAGE、CLAG | 策略演化:Agentic Memory、MemRL、DeltaMem、U-Mem、AMAC
Content: SimpleMem, Memori, Chronos, Live-Evo | Mechanism: MetaMem, MemSkill, Self-Evolving Memory Extraction, SAGE, CLAG | Policy: Agentic Memory, MemRL, DeltaMem, U-Mem, AMAC

表注(Table 2):按图 5 三层结构组织的代表性工作。Representative works organized by the three-layer structure of Figure 5.

4.2. 记忆表示:存储了什么以及如何组织?4.2. Memory Representation: What Is Stored and How Is It Organized?

本节要点Section at a glance

表示决定了后续操作能够做什么。将其分为两个相关问题是有益的:存储了什么单元,以及这些单元如何为后续的检索和更新而组织。

Representation determines what later operations can do. It is useful to separate it into two related questions: what units are stored, and how those units are organized for later retrieval and update.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §4.2 原文全文 · Expand the full original text

4.2. 记忆表示:存储了什么以及如何组织? 4.2. Memory Representation: What Is Stored and How Is It Organized?

表示决定了后续操作能够做什么。将其分为两个相关问题是有益的:存储了什么单元,以及这些单元如何为后续的检索和更新而组织。第一个问题关乎内容单元(content unit),即系统把什么作为记忆条目来存储。第二个问题关乎组织结构(organization structure),即已存储的条目如何为保留、检索和更新而排列。因此,理解近期记忆系统的最佳方式,不仅应通过工作记忆、情景记忆或语义记忆的类比,还应通过这个由两部分组成的设计空间。

Representation determines what later operations can do. It is useful to separate it into two related questions: what units are stored, and how those units are organized for later retrieval and update. The first concerns the content unit, or what the system stores as a memory item. The second concerns the organization structure, or how stored items are arranged for retention, retrieval, and update. Recent memory systems are therefore best read not only through working, episodic, or semantic-memory analogies, but through this two-part design space.

4.2.1. 记忆内容单元 4.2.1. Memory Content Units

第一个问题是系统存储什么单元。原始日志和活跃上下文以高保真形式保存消息、工具输出、观察、动作和中间状态。其优点是证据保留;其弱点是密度低。关于工作记忆的研究将其界定为一个控制问题,而非转录累积问题,而类似 Hangman(猜词游戏)的失败表明,即使对话历史可用,智能体也可能需要显式的任务状态。近期系统还将原始上下文视为需要管理的基材,而非简单地保留:Active Context Compression 对活跃交互历史进行剪枝和压缩,而 TierMem 将原始日志保留为更低层级的来源,在摘要不足时可以回访。情景轨迹存储时间上接地(temporally grounded)的动作、观察和结果序列。它们的价值在于顺序与后果:哪次尝试失败了,随后进行了什么纠正,以及哪个状态转换至关重要。WebCoach 保存跨会话的导航经验,并将先前的轨迹检索为任务专属建议。Live-Evo 让情景记录在反馈下演化,而 CAST 通过围绕角色-场景事件及其派生的角色画像来组织记忆,使单元本身更加显式。当未来行动依赖历史而非孤立事实时,这种风格尤其有用;EMemBench 在评估中反映了这一需求。摘要和语义抽象同属从原始历史走向抽象化状态的大方向。其区别主要在于抽象变得多么显式。摘要是更自由的形式:在最简单的一端,它们是将长交互历史压缩为较短任务摘要、反思块或上下文摘要的自然语言压缩。语义事实、画像和事件是同一思想的更结构化形式:系统不再保留散文式摘要,而是将历史压缩为更显式的状态表示,如事实、三元组、画像或事件元组。SimpleMem 从交互历史中提取结构化记忆单元,Memori 将对话改写为三元组加摘要,Chronos 则加入带日期的事件元组和日历。因此,我们将它们归为一组,因为它们构成了从原始轨迹、到摘要化轨迹、再到蒸馏出的语义状态的自然递进。在这些情形中,关键的权衡是密度与保真度。

The first question is what unit the system stores. Raw logs and active context keep messages, tool outputs, observations, actions, and intermediate state in high-fidelity form. Their advantage is evidence preservation; their weakness is low density. Work on working memory frames this as a control problem rather than transcript accumulation, and Hangman-style failures show that agents may need explicit task state even when the dialogue history is available. Recent systems also treat raw context as a substrate to be managed rather than simply retained: Active Context Compression prunes and compresses active interaction history, while TierMem keeps raw logs available as a lower-level source that can be revisited when summaries are insufficient. Episodic trajectories store temporally grounded sequences of actions, observations, and outcomes. Their value lies in order and consequence: which attempt failed, which correction followed, and what state transition mattered. WebCoach keeps cross-session navigation experience and retrieves prior trajectories as task-specific advice. Live-Evo lets episodic records evolve under feedback, while CAST makes the unit itself more explicit by organizing memory around character-and-scene events and derived character profiles. This style is especially useful when future action depends on history rather than isolated facts; EMemBench reflects that need in evaluation. Summaries and semantic abstractions both belong to the same general move away from raw history toward abstracted state. The difference is mainly in how explicit the abstraction becomes. Summaries are the freer form: at the simplest end, they are natural-language compression of long interaction history into shorter task digests, reflection blocks, or context summaries. Semantic facts, profiles, and events are a more structured form of the same idea: instead of retaining a prose summary, the system compresses history into more explicit state representations such as facts, triples, profiles, or event tuples. SimpleMem extracts structured memory units from interaction history, Memori rewrites dialogue into triples plus summaries, and Chronos adds dated event tuples and calendars. We therefore group them together because they form a natural progression from raw traces, to summarized traces, to distilled semantic state. Across these cases, the key trade-off is density versus fidelity.

4.2.2. 记忆组织结构 4.2.2. Memory Organization Structures

第二个问题是已存储的单元如何组织。平铺或仅追加(append-only)的记忆是最简单的结构:记录随时间添加,除顺序、新近度或元数据外,记录之间几乎没有显式关系。这使写入廉价且通用,但将后续检索留给了按需重建结构。观察流和反思日志即使内容单元不同,也往往遵循这一模式。近期对话记忆系统保留了这一仅追加的基材,同时增加了检索期的解读:Cognis 存储带有版本追踪的完整历史记录,而 APEX-MEM 通过仅追加存储显式保留信息的时间演化。

The second question is how stored units are organized. Flat or append-only memory is the simplest structure: records are added over time with little explicit relation between them beyond order, recency, or metadata. This makes writing cheap and generic, but leaves later retrieval to reconstruct structure on demand. Observation streams and reflection logs often follow this pattern even when their content units differ. Recent conversational-memory systems keep this append-only substrate while adding retrieval-time interpretation: Cognis stores full historical records with version tracking, and APEX-MEM explicitly preserves the temporal evolution of information through append-only storage.

分层或层级式(tiered or hierarchical)记忆将记录组织为具有不同访问角色、成本或时间尺度的层。MemGPT 将记忆部分地视为跨越提示词可见层与外部层的分页问题。LightMem 同样在延迟约束下分离活跃存储和长期存储。Agentic Memory 在一个学习的控制器下耦合短期存储和长期存储。CLAG 介于平铺档案和显式图之间,通过将记忆划分为不断演化的语义簇,而非添加丰富的带类型关系。这里的主要收益不是条目之间更丰富的横向关系,而是对什么保持活跃、什么被压缩、什么被归档的更好控制。关系型或联想式(relational or associative)记忆为已存储的单元赋予相互之间的显式链接。这些链接可能相对较弱,如邻域或关联;也可能更强,如覆盖事实、片段、反思和概念的多关系图。PlugMem 和 AriadneMem 使用图结构支持长程检索和桥接发现。GAAMA 在异构记忆节点之上构建联想图,MemORAI 增加了来源感知(provenance-aware)的多关系图检索,而 SAGE 将这种图组织转化为自我演化的联想记忆引擎。核心优势在于系统不仅存储单个记忆,还存储它们之间的关联方式。H-Mem 沿着这一方向,用一棵时间-语义树做整合,并用实体图支持多跳检索。

Tiered or hierarchical memory organizes records into layers with different access roles, costs, or time scales. MemGPT treats memory partly as a paging problem across prompt-visible and external tiers. LightMem similarly separates active and longer-term stores under latency constraints. Agentic Memory couples short-term and long-term stores under a learned controller. CLAG sits between flat archives and explicit graphs by partitioning memories into evolving semantic clusters rather than adding rich typed relations. Here the main benefit is not richer lateral relations between items, but better control over what stays active, what is compressed, and what is archived. Relational or associative memory gives stored units explicit links to one another. Those links may be relatively weak, as in neighborhoods or associations, or stronger, as in multi-relation graphs over facts, episodes, reflections, and concepts. PlugMem and AriadneMem use graph structure to support long-range retrieval and bridge discovery. GAAMA builds associative graphs over heterogeneous memory nodes, MemORAI adds provenance-aware multi-relational graph retrieval, and SAGE turns that graph organization into a self-evolving associative memory engine. The central advantage is that the system stores not only individual memories, but also how they relate. H-Mem extends this direction with a temporal-semantic tree for consolidation and an entity graph for multi-hop retrieval.

4.3. 记忆操作:记忆是如何被处理与使用的?4.3. Memory Operations: How Is Memory Processed and Used?

本节要点Section at a glance

操作决定了已存储的记忆是否会影响到未来的行为。同一种操作因表示方式而异:写入可能意味着把任务状态放入上下文、把一个片段(episode)接纳进存储,或提取一条图边。

Operations determine whether stored memory affects future behavior. The same operation varies by representation: writing may mean placing task state in context, admitting an episode to a store, or extracting a graph edge.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §4.3 原文全文 · Expand the full original text

4.3. 记忆操作:记忆是如何被处理与使用的? 4.3. Memory Operations: How Is Memory Processed and Used?

操作决定了已存储的记忆是否会影响到未来的行为。同一种操作因表示方式而异:写入可能意味着把任务状态放入上下文、把一个片段(episode)接纳进存储,或提取一条图边。主要的操作包括写入/准入、压缩、巩固、检索/激活,以及更新/修订。

Operations determine whether stored memory affects future behavior. The same operation varies by representation: writing may mean placing task state in context, admitting an episode to a store, or extracting a graph edge. The main operations are write/admission, compression, consolidation, retrieval/activation, and update/revision.

4.3.1. 写入与准入 4.3.1. Write and Admission

写入路径在检索开始之前就决定了记忆的质量。只追加式的存储会积累冗余、过时或格式错误的记录。Adaptive Memory Admission Control 将写入视为一个显式的效用决策,综合考虑未来效用、置信度、新颖性、新近性和内容类型等因素。U-Mem 把记忆增长转化为一个主动的获取-验证过程,而不是被动积累。Agentic Memory 将存储、检索、更新、总结和丢弃转化为作用于短期记忆和长期记忆之上的策略动作。更广泛地说,Nemori、SimpleMem 和 Memori 等系统表明,写入质量还取决于候选记忆单元在准入之前是如何形成的。

The write path determines memory quality before retrieval begins. Append-only storage accumulates redundant, stale, or malformed records. Adaptive Memory Admission Control treats writing as an explicit utility decision using factors such as future utility, confidence, novelty, recency, and content type. U-Mem turns memory growth into an active acquisition-and-validation process rather than passive accumulation. Agentic Memory turns store, retrieve, update, summarize, and discard into policy actions over short-term and long-term memory. More broadly, systems such as Nemori, SimpleMem, and Memori show that write quality also depends on how candidate memory units are formed before admission.

4.3.2. 压缩 4.3.2. Compression

压缩通过降低把过往交互向前传递的成本来提高上下文密度。在工作记忆中,压缩在保留任务状态的同时移除重复或过大的轨迹。在语义记忆中,它提取事实、三元组、画像或事件,正如 SimpleMem 和 Memori 所做的那样。DeMem 通过一个决策论意义上的率失真目标来重新定义压缩,而不仅仅关注摘要质量。

Compression increases context density by reducing the cost of carrying forward past interaction. In working memory, compression preserves task state while removing repetitive or oversized traces. In semantic memory, it extracts facts, triples, profiles, or events, as in SimpleMem and Memori. DeMem reframes compression through a decision-theoretic rate-distortion objective rather than summary quality alone.

4.3.3. 巩固 4.3.3. Consolidation

巩固不仅仅是缩短。它合并相关记录、抽象出反复出现的模式,有时还把片段转化为指导。A-MEM 将记忆视为通过链接、合并和修订而随时间演化的对象。LightMem 增加了一个显式的离线长期综合阶段。Auto-Dreamer 通过学习一个巩固器使这条离线路径变得显式,该巩固器把快速的逐会话记忆获取与较慢的跨会话抽象和替换解耦。GAAMA 通过在图结构之上综合更高阶的反思来进行巩固,而 CLAG 则通过画像生成和邻域层面的演化在簇内部局部地进行巩固。悬而未决的问题是:决定哪些抽象应当合并进更稳定的记忆,哪些应当保留为独立的轨迹。

Consolidation goes beyond shortening. It merges related records, abstracts repeated patterns, and sometimes converts episodes into guidance. A-MEM treats memory as evolving over time through linking, merging, and revision. LightMem adds an explicit offline long-term synthesis stage. Auto-Dreamer makes this offline path explicit by learning a consolidator that decouples fast per-session memory acquisition from slower cross-session abstraction and replacement. GAAMA consolidates by synthesizing higher-order reflections over graph structure, while CLAG consolidates locally inside clusters through profile generation and neighborhood-level evolution. The open problem is deciding which abstractions should be merged into a more stable memory and which should remain separate traces.

4.3.4. 检索与激活 4.3.4. Retrieval and Activation

检索决定了哪部分记忆会影响下一步。在活跃上下文中,这可能简单到只是让正确的状态保持可见。在外部存储中,检索需要选择记录、选择注入的形式并分配上下文预算。xMemory 跨消息、片段、语义和主题自上而下地进行检索,而不仅仅依赖扁平化的相似度。Chronos 按时间限定检索范围,AriadneMem 在证据分散时使用图桥发现,TierMem 在摘要证据不足时从摘要升级到原始日志,MemORAI 则让图遍历权重适应查询。检索同时也是一个规划和系统问题。Cognis 把检索与对全部历史记录的版本跟踪耦合起来,使激活不仅取决于相似度,还取决于所存证据的当前有效性。

Retrieval decides which memory affects the next step. In active context, this can be as simple as keeping the right state visible. In external stores, retrieval requires selecting records, choosing an injected form, and budgeting context. xMemory retrieves top-down across messages, episodes, semantics, and themes rather than relying only on flat similarity. Chronos scopes retrieval by time, AriadneMem uses graph bridge discovery when evidence is distributed, TierMem escalates from summaries to raw logs when summary evidence is insufficient, and MemORAI adapts graph traversal weights to the query. Retrieval is also a planning and systems problem. Cognis couples retrieval with version tracking over full historical records, making activation depend not only on similarity but also on the current validity of stored evidence.

4.3.5. 更新与修订 4.3.5. Update and Revision

持久化记忆必须应对变化。偏好会转移,事实会过时,计划会失败,摘要会变得误导。一条记忆可能在一个时段内是正确的、之后却是错误的,因此更新机制必须同时处理隐式失效(implicit invalidation)和显式修正。Live-Evo 根据反馈在线重新加权记忆,STALE 表明当前系统常常无法检测到隐式失效,MemoRepair 将针对派生产物的级联修复形式化,APEX-MEM 则在检索时解决相互冲突或不断演化的证据。

Persistent memory must handle change. Preferences shift, facts become outdated, plans fail, and summaries become misleading. A memory may be correct during one interval and wrong later, so update mechanisms must handle implicit invalidation as well as explicit correction. Live-Evo reweights memories online from feedback, STALE shows that current systems often fail to detect implicit invalidation, MemoRepair formalizes cascade repair over derived artifacts, and APEX-MEM resolves conflicting or evolving evidence at retrieval time.

4.4. 记忆自演化与下一个前沿4.4. Memory Self-Evolution and the Next Frontier

本节要点Section at a glance

当智能体不仅读取已存储的记录、还会改变未来运行将要继承的记忆系统时,记忆本身就成为一个更新面。内容演化(Content Evolution)意味着记忆内容本身发生变化。

Memory itself becomes an update surface when the agent does not merely read stored records, but also changes the memory system that future runs will inherit. Content Evolution means the memory content itself changes.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §4.4 原文全文 · Expand the full original text

4.4. 记忆自演化与下一个前沿 4.4. Memory Self-Evolution and the Next Frontier

当智能体不仅读取已存储的记录、还会改变未来运行将要继承的记忆系统时,记忆本身就成为一个更新面。内容演化(Content Evolution)意味着记忆内容本身发生变化。智能体写入新的经验、把轨迹压缩为摘要并更新过时的记录。表示层面的收益来自结构化语义压缩、时间化记录和在线片段加权。操作层面的收益来自更好的准入、离线巩固、溯源感知的检索和修订。这是部署后改进最直接的外部路径。机制演化(Mechanism Evolution)意味着智能体改进记忆的组织、提取和整合方式。MetaMem 通过把事实记忆与元记忆(meta-memory)分开而使这一区分显式化:事实记忆存储任务信息,而元记忆存储关于如何整合、检索和推理记忆片段的可复用经验。MemSkill 将记忆提取、整合、保留和遗忘视为由控制器选择的可复用记忆技能。Self-Evolving LLM Memory Extraction 把回路收窄到记忆提取器本身,在异构任务上持续改进用于提取有用记忆的提示词。SAGE 在一个自演化的图记忆引擎中闭合记忆读取器与写入器之间的回路,而 CLAG 则展示了一个更轻量的版本:组织机制本身通过聚类和局部演化来自适应。策略演化(Policy Evolution)意味着系统学习何时以及如何操作记忆。一个始终在线的智能体需要:决定何时写入、检索、修订或合并的触发条件;判断某条记忆是否真正有助于后续行动的信用分配(credit assignment);针对错误记忆更新的版本控制与回滚;以及测试以记忆为条件的行为而非仅仅测试回忆的评估协议。AgeMem 等学习到的控制器已经把记忆操作转化为策略动作,而 MemRL、DeltaMem、U-Mem 和 AMAC 则展示了学习检索效用、更新奖励、主动获取以及对记忆记录的准入控制的互补路径。综合来看,这三个层面说明了为什么记忆是智能体部署期改进的主要基质。记忆让智能体在不改变模型权重的情况下于部署后自适应:它可以积累经验、把经验压缩为可复用的抽象、巩固反复出现的模式、修订过时或冲突的状态,并为“哪些内容保持激活、哪些留待稍后检索”学习更好的策略。在这个意义上,记忆提供了一条实用的在线经验回路:行动产生轨迹,记忆操作把那些轨迹蒸馏进一个更好的存储,而后续行为又以改进后的存储为条件。其前景是在真实部署约束下的持续自适应;其风险在于,糟糕的抽象、不稳定的修订或不受控的积累也可能随时间放大错误。当前的评估只部分地刻画了这一回路。LongMemEval、MemoryArena、Mem2ActBench 和 EMemBench 等现有框架已经在测试持续回忆、多会话依赖、以记忆为条件的行动和片段连续性。它们对评估具备记忆能力的智能体很有用,但对自演化智能体仍然薄弱:关于记忆策略是否随时间改进、巩固是否带来更好的未来决策、修订在反复更新之后是否保持稳定、改进是否能在长部署周期中持续,它们能说明的很少。因此,一个关键前沿是对纵向自适应而非一次性记忆使用的评估。因此,本节自然交接给后面关于元记忆和元演化智能体的讨论。在本章中,记忆自演化主要指改进智能体自身记忆的内容和局部操作。在元记忆设定中,改进的对象变成记忆机制本身:决定未来记忆将如何形成和使用的规则、提取器、控制器、评估信号和更新策略。核心的开放问题是:智能体能否维持一个随时间变得更有选择性、组织更好、更值得信赖的记忆,同时不静默地放大过时、有偏或被污染的经验。

Memory itself becomes an update surface when the agent does not merely read stored records, but also changes the memory system that future runs will inherit. Content Evolution means the memory content itself changes. The agent writes new experiences, compresses traces into summaries, and updates stale records. Representation gains come from structured semantic compression, temporal records, and online episode weighting. Operation gains come from better admission, offline consolidation, provenance-aware retrieval, and revision. This is the most direct external path for post-deployment improvement. Mechanism Evolution means the agent improves how memory is organized, extracted, and integrated. MetaMem makes this distinction explicit by separating factual memory from meta-memory: factual memory stores task information, while meta-memory stores reusable experience about how to integrate, retrieve, and reason over memory fragments. MemSkill treats memory extraction, integration, retention, and forgetting as reusable memory skills selected by a controller. Self-Evolving LLM Memory Extraction narrows the loop to the memory extractor itself, continuously improving prompts for extracting useful memory across heterogeneous tasks. SAGE closes the loop between a memory reader and writer in a self-evolving graph-memory engine, while CLAG shows a lighter-weight version where the organization mechanism itself adapts through clustering and local evolution. Policy Evolution means the system learns when and how to operate on memory. An always-on agent needs triggers for when to write, retrieve, revise, or merge; credit assignment for whether a memory actually helps later action; versioning and rollback for bad memory updates; and evaluation protocols that test memory-conditioned behavior rather than recall alone. Learned controllers such as AgeMem already turn memory operations into policy actions, while MemRL, DeltaMem, U-Mem, and AMAC show complementary routes for learning retrieval utility, update rewards, active acquisition, and admission control over memory records. Taken together, these three levels suggest why memory is the main substrate for deploy-time agent improvement. Memory lets an agent adapt after deployment without changing model weights: it can accumulate experience, compress it into reusable abstractions, consolidate recurring patterns, revise stale or conflicting state, and learn better policies for what to keep active or retrieve later. In that sense, memory provides a practical online experience loop: acting produces traces, memory operations distill those traces into a better store, and later behavior is conditioned on the improved store. The promise is continuous adaptation under real deployment constraints; the risk is that poor abstraction, unstable revision, or uncontrolled accumulation can also amplify error over time. Current evaluation only partially captures this loop. Existing frameworks such as LongMemEval, MemoryArena, Mem2ActBench, and EMemBench already test sustained recall, multi-session dependency, memory-conditioned action, and episodic continuity. These are useful for evaluating memory-enabled agents, but they are still weak for self-evolving agents: they say relatively little about whether memory policies improve over time, whether consolidation leads to better future decisions, whether revision remains stable after repeated updates, or whether improvements persist over long deployment horizons. A key frontier is therefore evaluation for longitudinal adaptation rather than one-shot memory use. This section therefore hands off naturally to the later meta-memory and meta-evolving-agent discussion. In this chapter, memory self-evolution mainly means improving the content and local operations of an agent's own memory. In the meta-memory setting, the object of improvement becomes the memory mechanism itself: the rules, extractors, controllers, evaluation signals, and update policies that decide how future memories will be formed and used. The central open question is whether an agent can maintain a memory that becomes more selective, better organized, and more trustworthy over time without silently amplifying outdated, biased, or poisoned experience.

第 5 章 · 环境:智能体所能体验的边界5. Environment: The Boundary of What Agents Can Experience

5.1. 环境作为自我改进的基础设施5.1. Environment as Self-Improvement Infrastructure

📚 第 5 章总览 · 手写精读(本章主旨与各小节导读)

本章主旨:环境是运行时适应的天花板——外部路径只能改进可执行区域内部的搜索,不能扩大区域本身(J★(E) ≤ sup 不等式)。三层递进:可执行性(能运行)→ 协议化(经验可移植)→ 可学习性(反馈可训练);三轴设计张力:动作多样性 × 反馈密度 × 任务时程。可执行 ≠ 可复用 ≠ 可学习。

  • 5.1 环境天花板不等式与可执行子集 A(E);
  • 5.2 把软件变成可执行环境(CLI 世界/可验证/规模化合成);
  • 5.3 协议化边界(MCP/A2A/AG-UI);
  • 5.4 可学习性:稳定回合、可归因奖励、部署噪声(sim-to-real)。

The point of this chapter: the environment is the ceiling of runtime adaptation — external paths can improve search inside the executable region but cannot expand that region (the J★(E) ≤ sup inequality). Three layers in progression: executability (can run) → protocolization (artifacts can travel) → learnability (feedback can train); three design tensions: action diversity × feedback density × task horizon. Executable ≠ reusable ≠ learnable.

  • 5.1 The ceiling inequality and the executable subset A(E);
  • 5.2 Turning software into executable environments (CLI worlds, verifiable, scaled synthesis);
  • 5.3 Protocolizing the boundary (MCP/A2A/AG-UI);
  • 5.4 Learnability: stable episodes, attributable rewards, deployment noise (sim-to-real).

本节要点Section at a glance

一个有用的出发点是区分智能体文献中常常被混为一谈的三个概念。环境(environment)是智能体在其中行动的外部世界。

A useful starting point is to separate three concepts that are often collapsed in the agent literature. The environment is the external world in which the agent acts.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §5.1 原文全文 · Expand the full original text

5. 环境:智能体所能体验的边界 5. Environment: The Boundary of What Agents Can Experience

前几章论证了智能体系统在部署后通过重写流程、积累记忆并反复适应其所处的运行时环境而得到改进。这立即引出一个系统层面的问题:如果暴露给智能体的世界本身就很单薄,那么这种由经验驱动的自适应究竟能取得多大成效?在实践中,环境常常是运行时自适应的制约性约束。一个更强的执行框架只能利用环境真正暴露出来的机会。如果动作面狭窄、反馈稀疏、任务片段短暂或状态性弱,那么即便再精巧的改进也很可能停留在局部。

The previous chapters argued that agentic systems improve after deployment by rewriting procedures, accumulating memory, and repeatedly adapting to the runtime they inhabit. That immediately raises a systems question: how much can such experience-driven adaptation achieve if the world exposed to the agent is itself thin? In practice, the environment is often the binding constraint on runtime adaptation. A stronger harness can only exploit opportunities that the environment actually exposes. If the action surface is narrow, feedback is sparse, and task episodes are short or weakly stateful, then even sophisticated improvements are likely to remain local.

当前系统在构建智能体可以在其中行动并获得反馈的外部环境方面取得了实质性进展,但在让这种反馈足够密集、可归因且足够稳定以用于训练方面,进展则小得多。本章沿这一递进展开:先是可执行环境,其次是可复用的边界,最后是可学习环境,作为通往第 6 节中以 RL 为中心的参数路径的桥梁。

Current systems have made substantial progress in building external environments that agents can act in and receive feedback from, but much less progress in making that feedback dense, attributed, and stable enough to train on. The chapter follows that progression: executable environments first, reusable boundaries second, and learnable environments as the bridge to the RL-centered parameter path in Section 6.

5.1. 环境作为自我改进的基础设施 5.1. Environment as Self-Improvement Infrastructure

一个有用的出发点是区分智能体文献中常常被混为一谈的三个概念。环境(environment)是智能体在其中行动的外部世界。执行框架(execution harness)是通过权限、日志、回放、验证和接口把这个世界暴露出来的工程层。在本章中,接口的讨论属于执行框架的一部分:命令、API、GUI 可供性(affordance)、资源适配器和验证器钩子(verifier hook)是执行框架面向环境一侧的边界,而不是一个单独的主题。基准测试套件(benchmark suite)则是建立在某个特定的环境–执行框架组合之上的任务集合与评估协议。这一区分很重要,因为第 8 节主要关于测量基础设施,而本章是关于经验基础设施:即部署在何种条件下产出可复用的轨迹而非孤立的结果。这里研究的对象是环境连同执行框架面向环境的部分:即把外部世界作为一个可执行、可审计的系统呈现给智能体的那一层。正是在这个意义上,环境可以被视为一个上界变量 𝐸。以下记号并非关于最优性或凸性的定理;它只是以紧凑的方式表达这种约束直觉。令 A𝐿𝑀 表示模型的名义动作空间。环境并不会暴露那个完整的文本动作空间。相反,它诱导出一个可执行子集 A (𝐸) ⊆ A𝐿𝑀,其中只包含在 𝐸 的接口与执行约束下真正可以被解析、落地(ground)、被允许并改变状态的动作。令 Π(𝐸) 表示相应的可执行策略类。若 𝐽(𝜋; 𝐸) = 𝔼𝜏∼𝑃(𝜏|𝜋,𝐸),其中 𝜋 表示运行时策略,𝜏 表示在环境 𝐸 中执行该策略所诱导出的轨迹,𝑃(𝜏 | 𝜋, 𝐸) 表示相应的轨迹分布,𝑅(𝜏) 表示轨迹层面的回报,那么在 𝐸 之下可达的最佳价值受可行集包含关系的约束:𝐽 ★ (𝐸):= sup 𝜋∈Π(𝐸) 𝐽(𝜋; 𝐸) ≤ sup 𝜋∈Π𝐿𝑀 𝐽(𝜋; 𝐸)。这一不等式应当被解读为一种形式化的直觉:提示工程、记忆或执行框架一侧的控制逻辑可以改进可执行区域内部的搜索,但它们本身并不能扩大该区域。要提高这一实践上限,需要改变面向环境一侧的表面:动作空间、可观测性、反馈或验证。图 6 总结了这种关于运行时自适应的环境视角:面向环境的边界决定了智能体能够执行、观察、验证什么,以及能把其中的什么转化为可复用的经验。近期的可执行环境工作使三条分析轴变得可见,而不是建立一个固定的分类法。动作多样性(action diversity)关乎智能体可用的落地动作的广度,以及这些动作能在多大程度上改变真实的外部状态。反馈密度(feedback density)关乎环境是否在不受约束的文本输出之外返回有信息的信号,例如执行错误、基于状态的测试、验证器输出或奖励插桩(reward instrumentation)[Harbor Framework, 2026, Merrill et al., 2026, Trivedi et al., 2024, Wang et al., 2023]。任务视野(task horizon)关乎环境所支持任务的时间深度与状态性,包括中间错误是否可观察、可恢复。动作面狭窄、主要是最终通过/失败验证且视野短浅的环境仍然可以支持提示工程或一次性工具使用,但它们为积累可复用经验提供的基质有限。这些维度在分析上可分离,但在经验上相互耦合。在不改善可观测性的情况下提高动作多样性,会得到更丰富但更难诊断的轨迹。在不加密反馈的情况下延长任务视野,会让任务更真实,同时让失败归因变得困难得多。反之,在简化环境中人为加密的反馈可能使优化更容易,却降低了生态效度。因此,这些轴最好被视为设计上的张力,而不是可以孤立地各自最大化的独立指标。这一框架与近期环境研究的走向一致。ALFWorld 建立了一个早期的交互式设定,具备落地动作和延迟的成功标准。Voyager 表明一个开放式世界可以支持迭代式技能获取,而不仅仅是单任务执行。WebArena 和 WorkArena 走向了现实的浏览器和知识工作设定,从而同时提高了动作多样性和任务视野。OSWorld 把动作面扩展到通用计算机使用,而 AppWorld 则强调在一个可控应用生态系统中带状态的转移。综合来看,这些系统表明,重要的问题不是简单地问哪个基准测试最难,而是问哪些环境最能够扩大部署中智能体可获得的学习面。对照这些要求来看,世界模型在这里最相关的情形是:它们把可执行软件状态转化为多步 rollout 的基质,而不仅仅是下一步预测。这种数字世界的解读是 Agentic World Modeling 中最直接连接到智能体执行框架的部分。WorldCoder 通过与环境交互构建可执行代码世界模型,展示了一条路线;而世界模型增强的 web 智能体则展示了另一条相关路线:在交互式 web 执行期间使用显式世界模型来支持动作修正。Neural Computers 沿互补的方向推进:追问仅凭 I/O 轨迹是否就能把基本的 CLI 和 GUI 交互动力学内化到一个学习得到的运行时状态中,从而有效地把环境的一部分摊销进一个执行模型。这些路线在世界“驻留”于何处上各不相同—外部合成、显式程序诱导或部分内化—但它们强化了同一个系统观点:对于高级智能体而言,有效环境日益成为一个可以被生成、预测、压缩和复用的构造对象,而不是一个被动的背景。剩下的问题是如何从智能体本来就需要操作的软件和工作流中构造出这样的环境。

A useful starting point is to separate three concepts that are often collapsed in the agent literature. The environment is the external world in which the agent acts. The execution harness is the engineering layer that exposes that world through permissions, logging, replay, verification, and interfaces. In this chapter, the interface discussion is part of the harness: commands, APIs, GUI affordances, resource adapters, and verifier hooks are the environment-facing boundary of the harness rather than a separate topic. The benchmark suite is then the task collection and evaluation protocol built on top of a particular environment–harness pair. This distinction matters because Section 8 is mainly about measurement infrastructure, whereas the present chapter is about experience infrastructure: the conditions under which deployment yields reusable trajectories rather than isolated outcomes. The object studied here is the environment together with the environment-facing part of the harness: the layer that presents the external world to the agent as an executable and auditable system. This is the sense in which the environment can be treated as an upper-bound variable 𝐸. The following notation is not a theorem about optimality or convexity; it is a compact way to express the constraint intuition. Let A𝐿𝑀 denote the model's nominal action space. An environment does not expose that full text-action space. Instead, it induces an executable subset A (𝐸) ⊆ A𝐿𝑀, consisting only of actions that can actually be parsed, grounded, permitted, and state-changing under the interface and execution constraints of 𝐸. Let Π(𝐸) denote the corresponding executable-policy class. If 𝐽(𝜋; 𝐸) = 𝔼𝜏∼𝑃(𝜏|𝜋,𝐸), where 𝜋 denotes a runtime policy, 𝜏 a trajectory induced by executing that policy in environment 𝐸, 𝑃(𝜏 | 𝜋, 𝐸) the corresponding trajectory distribution, and 𝑅(𝜏) the trajectory-level return, then the best reachable value under 𝐸 is constrained by feasible-set inclusion: 𝐽 ★ (𝐸):= sup 𝜋∈Π(𝐸) 𝐽(𝜋; 𝐸) ≤ sup 𝜋∈Π𝐿𝑀 𝐽(𝜋; 𝐸). The inequality should be read as a formalized intuition: prompting, memory, or harness-side control logic may improve search within the executable region, but they do not by themselves expand that region. Enlarging the practical ceiling requires changes to the environment-facing surface: action space, observability, feedback, or verification. Figure 6 summarizes this environment view of runtime adaptation: the environment-facing boundary determines what the agent can execute, observe, verify, and convert into reusable experience. Recent executable-environment work makes three analytic axes visible, rather than establishing a fixed taxonomy. Action diversity concerns the breadth of grounded actions available to the agent and the extent to which those actions can alter real external state. Feedback density concerns whether the environment returns informative signals beyond unconstrained text output, such as execution errors, state-based tests, verifier outputs, or reward instrumentation. Task horizon concerns the temporal depth and statefulness of the tasks supported by the environment, including whether intermediate errors are observable and recoverable. Environments with narrow action surfaces, mostly final pass/fail verification, and short horizons can still support prompting or one-shot tool use, but they provide a limited substrate for accumulating reusable experience. These dimensions are analytically separable but empirically coupled. Increasing action diversity without improving observability yields richer but harder-to-diagnose trajectories. Extending task horizon without denser feedback makes tasks more realistic while making failure attribution substantially more difficult. Conversely, artificially dense feedback in a simplified environment may ease optimization while reducing ecological validity. Thus these axes are best treated as design tensions, not as independent metrics that can be maximized in isolation. This framing is consistent with the trajectory of recent environment research. ALFWorld established an early interactive setting with grounded action and delayed success criteria. Voyager showed that an open-ended world can support iterative skill acquisition rather than only single-task execution. WebArena and WorkArena moved toward realistic browser and knowledge-work settings, thereby increasing both action diversity and task horizon. OSWorld extended the action surface to general computer use, while AppWorld emphasized stateful transitions across a controllable app ecosystem. Taken together, these systems show that the important question is not simply which benchmark is hardest, but which environments most enlarge the learning surface available to a deployed agent. Seen against these requirements, world models are most relevant here when they turn executable software state into a substrate for multi-step rollout rather than only next-step prediction. This digital-world reading is the part of Agentic World Modeling that most directly connects to agentic harnesses. WorldCoder illustrates one route by constructing executable code world models through interaction with the environment, while world-model-augmented web agents show a related route in which an explicit world model is used to support action correction during interactive web execution. Neural Computers pushes in the complementary direction by asking whether elementary CLI and GUI interaction dynamics can be internalized into a learned runtime state from I/O traces alone, effectively amortizing part of the environment into a model of execution. These lines differ in where the "world" resides—externally synthesized, explicitly program-induced, or partially internalized—but they reinforce the same systems point: for advanced agents, the effective environment is increasingly a constructed object that can be generated, predicted, compressed, and reused rather than a passive backdrop. The remaining question is how to construct such environments from the software and workflows agents already need to operate.

📖 原文依据(论文逐字引用)|Verbatim from the paper
§5.1 原文:“Let A𝐿𝑀 denote the model’s nominal action space. An environment does not expose that full text-action space. Instead, it induces an executable subset A(𝐸) ⊆ A𝐿𝑀, consisting only of actions that can actually be parsed, grounded, permitted, and state-changing under the interface and execution constraints of 𝐸. Let Π(𝐸) denote the corresponding executable-policy class. If 𝐽(𝜋; 𝐸) = 𝔼𝜏∼𝑃(𝜏|𝜋,𝐸)[𝑅(𝜏)] … then the best reachable value under 𝐸 is constrained by feasible-set inclusion: 𝐽★(𝐸) := sup𝜋∈Π(𝐸) 𝐽(𝜋; 𝐸) ≤ sup𝜋∈Π𝐿𝑀 𝐽(𝜋; 𝐸). The inequality should be read as a formalized intuition: prompting, memory, or harness-side control logic may improve search within the executable region, but they do not by themselves expand that region. … The following notation is not a theorem about optimality or convexity; it is a compact way to express the constraint intuition.”
公式卡 7 · 环境天花板不等式(§5.1)Formula Card 7 · The environment-ceiling inequality
背景知识|Background
  • 马尔可夫决策过程(MDP):智能体在环境中选动作、转移状态、获得奖励;策略 π 是从观测到动作的映射。MDP: the agent picks actions, the environment transitions and rewards; a policy π maps observations to actions.
  • 轨迹分布 P(τ | π, E):在策略 π 和环境 E 下,完整交互序列 τ 出现的概率——刻画“这个策略在这个环境里会走出什么轨迹”。P(τ|π,E): the probability of a full interaction sequence τ under π and E.
  • 回报 R(τ) 与目标 J(π; E):对轨迹质量打分再取期望,即强化学习的基本优化目标。Return R(τ) and objective J(π;E): score trajectories and average — the basic RL objective.
  • 可行集与上确界(sup):在受约束的策略类上取最大值的标准写法;sup 是“最小上界”,比 max 更严谨(最大值可能取不到)。Feasible set and supremum: the standard way to maximize over a constrained class; sup (least upper bound) is rigorous even when max is not attained.
  • 接地(grounding):模型输出的文本只有被环境解析、获准、改变真实状态时才成为“动作”。Grounding: model text becomes an action only when parsed, permitted, and state-changing.
推导过程|Derivation
  1. 名义动作空间 A_LM:模型可以输出任意文本,但大多数文本在给定环境里无法执行。A_LM: the model can emit any text, but most of it is not executable in a given environment.
  2. 可执行子集 A(E):环境只暴露“能被实际解析、接地、获准、并在接口与执行约束下改变状态”的动作——这就是可执行子集 A(E) ⊆ A_LM。A(E): only actions that can actually be parsed, grounded, permitted, and state-changing survive — an executable subset of A_LM.
  3. 策略类随之受限:在 A(E) 上定义的策略构成可执行策略类 Π(E),它是全体策略类 Π_LM 的子类。Policies defined on A(E) form the executable policy class Π(E), a subclass of all policies Π_LM.
  4. 上确界单调性:可行域缩小,目标的上确界不会变大(更小的搜索空间不可能搜出更大的最优值)→ J★(E) ≤ supΠ_LM J(π; E)。Monotonicity of the supremum: shrinking the feasible set cannot raise the supremum — hence the inequality.
  5. 解释:提示工程、记忆、harness 侧控制只能改进“在可执行区域内部搜索得多好”(逼近 J★(E)),不能扩大区域本身;抬天花板必须改环境侧——动作空间、可观测性、反馈、验证。Interpretation: prompting, memory, and harness control only improve search WITHIN the executable region; expanding it requires changing the environment-facing surface.
  6. 作者声明:这不是最优性定理,而是“环境是运行时适应的天花板”这一直觉的紧凑表达。The authors note this is a compact expression of a constraint intuition, not an optimality theorem.
论文中的用法|Usage:§5 的“可执行性→协议化→可学习性”三层递进都是这个不等式的展开:先扩大 A(E),再让经验可移植,最后让反馈可训练。§5's three layers expand the inequality: enlarge A(E), make experience portable, make feedback trainable.
Figure 6: Environment as the ceiling of runtime adaptation. A deployed
Environment as the ceiling of runtime adaptation. A deployed agent can improve
图释:环境作为运行时适应的天花板:三维坐标空间(动作多样性 × 反馈密度 × 任务时程),ALFWorld/Voyager/WebArena/Terminal-Bench/SWE-Gym/MLE-Dojo/OSWorld 等环境点沿三轴散布;底部结论:更丰富的动作、更稠密的反馈、更长的时程抬升适应上限。

5.2. 将软件转化为可执行环境5.2. Turning Software into Executable Environments

本节要点Section at a glance

第一个构造问题是可执行性(executability):软件和工作流如何被转化为智能体真正能够运行的环境。第 5.3 节随后转向可移植性:这些环境所暴露的边界如何跨运行时变得可复用。

The first construction problem is executability: how software and workflows are turned into environments that an agent can actually run. Section 5.3 then turns to portability: how the exposed boundaries of those environments are made reusable across runtimes.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §5.2 原文全文 · Expand the full original text

5.2. 将软件转化为可执行环境 5.2. Turning Software into Executable Environments

第一个构造问题是可执行性(executability):软件和工作流如何被转化为智能体真正能够运行的环境。第 5.3 节随后转向可移植性:这些环境所暴露的边界如何跨运行时变得可复用。近期工作可以归纳为三条相互重叠的路线:CLI 与终端世界、可验证软件环境,以及可扩展的环境合成。CLI 和终端世界是最直接的路线,因为 shell 本就暴露了离散命令、文本观测、文件系统状态和可脚本化的测试。Terminal-Bench 把现实的命令行工作转化为带基于测试的验证的可执行任务,而 CLI-Gym 研究可扩展的命令行任务生成。CLI-Anything 把同一想法从基准测试任务扩展到异构软件包:SKILL.md 描述能力与失败模式,HARNESS.md 规定安装和运行时假设,TEST.md 记录部分正确性检查。此处使用的稳定的章级数字是 28 个软件执行框架和 2130 个自动化测试,表明终端式执行可以成为一个广泛的软件访问层,而不是一组孤立工具的狭窄菜单。可验证软件环境超越命令访问,走向其状态变化可以被检查、回放和审计的操作性工作流。ResearchGym 封装了 AI 研究工作流,DevOps-Gym 封装了软件 DevOps 循环,MEnvAgent 则把环境构造本身视为一个可验证的系统问题。在基准测试套件层面,可执行基准测试(executable benchmarking)通过把工作负载适配器、任务清单、事件模式、回放与冻结策略、声明的驱动器、验证器元数据和报告流水线统一到一个可审计协议之下,使证据契约变得显式。这一转变是从“智能体运行了任务”走向“环境在稳定规则下承认关于该运行的证据”。可扩展的环境合成解决的是另一个瓶颈:如果每个有用的环境都必须手工封装,经验就仍然稀缺。Agent-World 沿着这个方向推进:合成可扩展的真实世界环境和可验证任务,然后把环境增长与持续的自演化智能体训练耦合起来。CLI-Gym、LiteCoder-Terminal-Gen 和 MEnvAgent 在被解读为生成或构造新的可执行设置(而非仅仅在固定设置中评估智能体)的尝试时,也属于这条路线。这条路线之所以重要,是因为长期运行部署不仅需要更丰富的环境,还需要数量足够大、足够多样的环境供应,以产生可重复、可比较的经验。纵观这三条路线,共同的模式是从暴露孤立的工具转向暴露可执行的世界。这是长期自我改进的第一个先决条件:只有在软件对智能体变得可操作之后,任务流程、轨迹、测试和执行假设才能被保留和比较。这些产物能否跨主机复用是另一个边界问题,下一节将讨论。

The first construction problem is executability: how software and workflows are turned into environments that an agent can actually run. Section 5.3 then turns to portability: how the exposed boundaries of those environments are made reusable across runtimes. Recent work can be organized into three overlapping routes: CLI and terminal worlds, verifiable software environments, and scalable environment synthesis. CLI and terminal worlds are the most direct route because shells already expose discrete commands, textual observations, filesystem state, and scriptable tests. Terminal-Bench turns realistic command-line work into executable tasks with test-based verification, while CLI-Gym studies scalable command-line task generation. CLI-Anything broadens the same idea from benchmark tasks to heterogeneous software packages: SKILL.md describes capabilities and failure modes, HARNESS.md specifies installation and runtime assumptions, and TEST.md records partial correctness checks. The stable chapter-level numbers used here are 28 software harnesses and 2130 automated tests, indicating that terminal-style execution can become a broad software access layer rather than a narrow menu of isolated tools. Verifiable software environments move beyond command access toward operational workflows whose state changes can be checked, replayed, and audited. ResearchGym packages AI research workflows, DevOps-Gym packages the software DevOps cycle, and MEnvAgent treats environment construction itself as a verifiable systems problem. At the benchmark-suite level, executable benchmarking makes the evidence contract explicit by joining workload adapters, task manifests, event schemas, replay and freeze policies, declared drivers, verifier metadata, and reporting pipelines under a single auditable protocol. The shift is from "the agent ran the task" to "the environment admits evidence about the run under stable rules." Scalable environment synthesis addresses a different bottleneck: if every useful environment must be manually packaged, experience remains scarce. Agent-World pushes in this direction by synthesizing scalable real-world environments and verifiable tasks, then coupling environment growth with continuous self-evolving agent training. CLI-Gym, LiteCoder-Terminal-Gen, and MEnvAgent also fit this route when read as attempts to generate or construct new executable settings rather than only evaluate agents in fixed ones. This route matters because long-running deployment needs not only richer environments, but a supply of environments large and varied enough to produce repeated, comparable experience. Across the three routes, the common pattern is a shift from exposing isolated tools toward exposing executable worlds. This is the first prerequisite for long-running self-improvement: task procedures, traces, tests, and execution assumptions can be retained and compared only after the software has been made operational for agents. Whether those artifacts become reusable across hosts is a separate boundary problem, taken up next.

5.3. 边界的协议化与标准化5.3. Protocolizing and Standardizing the Boundary

本节要点Section at a glance

可执行性创造了一个本地可运行的世界,但协议化决定这个世界能否加入一个更大的运行时生态。没有共享的边界契约,每个工具、资源、轨迹模式和验证器都仍然绑定在定制的集成上,因此复用程度随适配器工程量而扩展。

Executability creates a local runnable world, but protocolization determines whether that world can join a larger runtime ecosystem. Without shared boundary contracts, each tool, resource, trace schema, and verifier remains tied to a bespoke integration, so reuse scales with adapter engineering.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §5.3 原文全文 · Expand the full original text

5.3. 边界的协议化与标准化 5.3. Protocolizing and Standardizing the Boundary

可执行性创造了一个本地可运行的世界,但协议化决定这个世界能否加入一个更大的运行时生态。没有共享的边界契约,每个工具、资源、轨迹模式和验证器都仍然绑定在定制的集成上,因此复用程度随适配器工程量而扩展。有了协议化的边界,新的工具和环境可以通过公共接口被发现、授权、组合和记录,经验也能以更低的边际成本跨主机流动。因此,第 5.2 节问的是软件如何变得可执行,而本节问的是可执行环境如何成为可扩展的基础设施。近期文献提示了一个有用的三部分分解。MCP 标准化智能体–工具和智能体–资源边界。A2A 标准化智能体–智能体边界,从而支持委派和多智能体互操作。AG-UI 标准化智能体运行时与面向用户的应用程序之间的边界。这些协议解决的是不同的系统问题,它们在本章中的重要性恰恰在于这种分化:现代智能体的执行边界不再仅仅是一个工具 API 边界。从自我改进的视角看,标准化主要影响部署后经验的可复用性。有了共享接口,更大比例的运行时知识变得可移植:流程可以被复用,失败模式可以被比较,验证器逻辑可以被适配,资源访问模式可以跨环境稳定下来。因此,标准化间接但实质性地提高了自我改进的实践上限——不是直接改进模型,而是改进本地经验能够流动多远。同样的可移植性问题在更高的层面再次出现。MCP、A2A 和 AG-UI 标准化了运行时接口,但基准测试证据有自己的边界:任务定义、轨迹模式、验证器约定和报告格式也必须流动。CUBE 通过提出一个在共享协议视角下统一异构智能体基准测试的标准,来解决基准测试层面的碎片化。因此,它并不取代运行时协议。相反,它表明互操作性仍然是多层的:工具调用可能可移植而评估轨迹不可移植,或者基准测试报告可能可比而底层执行主机仍不兼容。合起来读,这些工作阐明了为什么可执行性与协议化必须分开。前者向智能体暴露一个世界;后者决定由此产生的经验的哪些部分能以更低的集成成本在其他地方复用。

Executability creates a local runnable world, but protocolization determines whether that world can join a larger runtime ecosystem. Without shared boundary contracts, each tool, resource, trace schema, and verifier remains tied to a bespoke integration, so reuse scales with adapter engineering. With protocolized boundaries, new tools and environments can be discovered, authorized, composed, and logged through common interfaces, and experience can travel across hosts at lower marginal cost. Section 5.2 therefore asks how software becomes executable at all, whereas the present section asks how executable environments become scalable infrastructure. The recent literature suggests a useful three-part decomposition. MCP standardizes the agent– tool and agent–resource boundary. A2A standardizes the agent–agent boundary and thereby supports delegation and multi-agent interoperability. AG-UI standardizes the boundary between agent runtimes and user-facing applications. These protocols solve different systems problems, and their importance in this chapter lies precisely in that differentiation: the execution boundary of a modern agent is no longer only a tool API boundary. From the perspective of self-improvement, standardization primarily affects the reusability of post-deployment experience. With shared interfaces, a larger fraction of runtime knowledge becomes portable: procedures can be reused, failure modes can be compared, verifier logic can be adapted, and resource access patterns can be stabilized across environments. Standardization therefore raises the practical ceiling of self-improvement indirectly but materially, not by improving the model directly, but by improving how far local experience can travel. The same portability issue reappears at a higher layer. MCP, A2A, and AG-UI standardize runtime interfaces, but benchmark evidence has its own boundary: task definitions, trace schemas, verifier conventions, and reporting formats also have to travel. CUBE addresses this benchmark-layer fragmentation by proposing a standard for unifying heterogeneous agent benchmarks under a shared protocol perspective. Therefore, it does not replace runtime protocols. Instead, it shows that interoperability remains multi-layer: tool calls may be portable while evaluation traces are not, or benchmark reports may be comparable while the underlying execution hosts remain incompatible. Read together, these efforts clarify why executability and protocolization must be separated. The former exposes a world to the agent; the latter determines which parts of the resulting experience can be reused elsewhere with lower integration cost.

5.4. 可执行且可复用,仍不等于可学习5.4. Executable and Reusable Is Still Not Learnable

本节要点Section at a glance

这一区分直接引向第 6 节。一个环境可以可执行、甚至被标准化,却仍未在强化学习的意义上可学习。

This distinction leads directly to Section 6. An environment can be executable and even standardized without yet being learnable in the reinforcement-learning sense.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §5.4 原文全文 · Expand the full original text

5.4. 可执行且可复用,仍不等于可学习 5.4. Executable and Reusable Is Still Not Learnable

这一区分直接引向第 6 节。一个环境可以可执行、甚至被标准化,却仍未在强化学习的意义上可学习。RL 所需要的不仅仅是访问权。它需要片段(episode)、验证器、奖励结构,以及足够的归因能力把结果连接回动作。这就是为什么本章逻辑的最后一步不是可执行性或互操作性,而是可学习性。Terminal-Bench 是一个有用的边界案例。它在 89 个现实的 CLI 任务上评估智能体,每个任务都配有一个可执行环境和测试基础设施,然而即便是强大的前沿系统也远未饱和。按论文报告的结果,最好的模型–智能体组合总体解决率也只有 62.9%。重点不仅仅是这个基准测试很难。更重要的是,现实的执行表面仍然暴露的是奖励稀疏、验证延迟、错误恢复困难的长视野软件工作。要成为训练信号,这类测试必须附着在可重复的片段、富含溯源信息的轨迹,以及能够归因到具体命令序列、文件编辑和恢复尝试的奖励或验证器标签之上。SWE-Gym 展示了软件工程中的这下一步:用可执行任务同时训练智能体和验证器,而不仅仅是为已完成的运行打分。同样的问题出现在 MLE 分支中:原始反馈更丰富,但仍然延迟。MLE-Dojo 由 200 多个真实世界的 Kaggle 挑战构建而成,在交互式机器学习工程环境中评估八个前沿 LLM,然而作者仍然报告了在自主长视野解生成和复杂错误解决方面的显著局限。Kaggle 风格的指标、排行榜名次和提交结果是很有用的结果层面训练信号,但它们本身并不能解释是哪个数据处理步骤、特征选择、模型配置、工具调用或调试动作引起了变化。因此,把 MLE 环境转化为 PRM 或 Gym 风格的训练基质需要更密集的插桩:中间实验状态、指标增量、错误修复和名次变化必须与多步轨迹对齐。MLE-Smith 和 SandMLE 通过规模化 MLE 任务构建并让更廉价的沙箱化优化成为可行而指向这一方向。Harbor 使从可执行评估到可训练环境构建的转变显式化。它不仅把执行框架当作评估包装器,还把它当作运行智能体评估和构建 RL 环境的框架。用本章的术语来说,第 5.2 节扩大了可执行表面,第 5.3 节使该表面更具可复用性。只有当这些环境还能额外提供稳定的片段边界、可执行的验证和奖励插桩时,通往智能体 RL 的桥梁才开始。这一可训练性要求比普通评估更强。一个基准测试可以判定最终状态是否通过,而一个训练环境还必须产出可重复的片段、保留足够的溯源以支持归因,并以优化能够利用的粒度暴露携带奖励的事件。对于智能体系统,这把环境设计变成一个轨迹生产问题:同一个执行基质必须支持行动、审计、回放、验证以及向受治理的学习信号的转化。这就是为什么通往参数路径的桥梁不是简单的“更多基准测试”,而是其反馈能被纳入第 6 节所述训练流水线的环境。鲁棒性构成了另一个可学习性约束。RobustBench-TC 使工具使用智能体的 sim-to-real 差距变得具体:观测、动作空间、与奖励相关的元数据和转移动力学中的部署噪声会急剧降低性能,在所报告的研究中,与奖励相关的扰动和转移扰动分别造成了约 40% 和 30% 的准确率下降。ToolRL-DR 进而表明,鲁棒学习需要扰动感知的环境设计,而不仅仅是干净的基准测试 rollout,因为在 3B 基座上的域随机化 RL 缩小了受扰动性能的差距。在这个意义上,可学习性不仅是奖励密度的问题;它还是环境是否暴露了部署中的策略必须经受住的噪声分布的问题。验证器构建正沿互补的方向前进。MANTRA 使用自然语言手册和工具模式来合成经 SMT 验证的、轨迹级别的合规性检查,把程序性规则转化为机器可检查的基准测试约束。ToolMisuseBench 通过在确定性故障注入下评估非法参数、接口漂移、策略违规、重试行为和恢复,隔离出一种更偏操作的失败模式。合起来看,这些基准测试表明,执行轨迹不必只以最终成功来评判。它们还应该对照合规义务和恢复契约进行检查,这些更接近真实软件环境中策略改进所需的监督。最后,环境前沿正在向多模态和垂直领域扩展。近期的例子包括灾难响应地理空间工作流、临床 EHR 任务、放射学查看器、探索性数据分析、多媒体终端任务和化学采购成本推理。这些基准测试在这里最好被解读为一种趋势,而不是一个单独的分类:随着环境变得领域特定,缺失的拼图不再是通用工具调用,而是校准过的感知、领域落地的状态转移、专门的验证器以及对现实输入噪声的鲁棒性。因此,本章的主要结论比“环境越丰富越好”更窄。更丰富的环境之所以有价值,是因为它们提高了智能体系统所能做和所能体验的上限。但可执行环境、标准化边界和可学习环境是三种不同的成就。第一种让软件能够被智能体运行。第二种让运行时经验可移植。第三种让这种经验可优化。这就是向第 6 节的精确交接。

This distinction leads directly to Section 6. An environment can be executable and even standardized without yet being learnable in the reinforcement-learning sense. What RL needs is not merely access. It needs episodes, verifiers, reward structure, and enough attribution to connect outcomes back to actions. This is why the final step in the chapter's logic is not executability or interoperability, but learnability. Terminal-Bench is a useful boundary case. It evaluates agents on 89 realistic CLI tasks, each paired with an executable environment and test infrastructure, yet even strong frontier systems remain far from saturation. On the paper's reported results, the best model–agent combination reaches only 62.9% overall resolution rate. The point is not only that the benchmark is hard. It is that realistic execution surfaces still expose long-horizon software work with sparse reward, delayed verification, and difficult error recovery. To become training signal, such tests have to be attached to repeatable episodes, provenance-rich traces, and rewards or verifier labels that can be attributed to concrete command sequences, file edits, and recovery attempts. SWE-Gym illustrates this next step in software engineering by using executable tasks to train both agents and verifiers, rather than only to score completed runs. The same issue appears in the MLE branch, where the raw feedback is richer but still delayed. MLE-Dojo is built from 200+ real-world Kaggle challenges and evaluates eight frontier LLMs in interactive machine-learning-engineering environments, yet the authors still report significant limitations in autonomous long-horizon solution generation and complex error resolution. Kaggle-style metrics, leaderboard ranks, and submission outcomes are useful outcome-level training signals, but they do not by themselves explain which data-processing step, feature choice, model configuration, tool call, or debugging action caused the change. Turning MLE environments into PRM- or Gym-style training substrates therefore requires denser instrumentation: intermediate experiment states, metric deltas, error fixes, and rank changes must be aligned with the multi-step trajectory. MLE-Smith and SandMLE point in this direction by scaling MLE task construction and making cheaper sandboxed optimization feasible. Harbor makes the transition from executable evaluation to trainable environment construction explicit. It treats the harness not only as an evaluation wrapper, but as a framework for running agent evaluations and constructing RL environments. In the terminology of this chapter, Section 5.2 enlarges the executable surface, and Section 5.3 makes that surface more reusable. The bridge to agent RL begins only when those environments can additionally provide stable episode boundaries, executable verification, and reward instrumentation. This trainability requirement is stronger than ordinary evaluation. A benchmark can decide whether a final state passes, while a training environment must also produce repeated episodes, preserve enough provenance to support attribution, and expose reward-bearing events at a granularity that optimization can use. For agentic systems, this turns environment design into a trace-production problem: the same execution substrate must support action, audit, replay, verification, and conversion into governed learning signals. That is why the bridge to the parameter path is not simply "more benchmarks," but environments whose feedback can be admitted into the training pipeline described in Section 6. Robustness creates an additional learnability constraint. RobustBench-TC makes the sim-to-real gap concrete for tool-use agents: deployment noise in observations, action spaces, reward-relevant metadata, and transition dynamics can sharply reduce performance, with reward-relevant and transition perturbations producing roughly 40% and 30% accuracy drops in the reported study. ToolRL-DR then suggests that robust learning requires perturbation-aware environment design rather than clean benchmark rollouts alone, because domain-randomized RL on a 3B backbone narrows the perturbed-performance gap. In this sense, learnability is not only a matter of reward density; it is also a matter of whether the environment exposes the noise distribution that deployed policies must survive. Verifier construction is moving in a complementary direction. MANTRA uses natural-language manuals and tool schemas to synthesize SMT-validated, trace-level compliance checks, turning procedural rules into machine-checkable benchmark constraints. ToolMisuseBench isolates a more operational failure mode by evaluating invalid arguments, interface drift, policy violations, retry behavior, and recovery under deterministic fault injection. Together, these benchmarks show that execution traces need not be judged only by terminal success. They should also be checked against compliance obligations and recovery contracts, which are closer to the supervision required for policy improvement in real software environments. Finally, the environment frontier is widening into multimodal and vertical domains. Recent examples include disaster-response geospatial workflows, clinical EHR tasks, radiology viewers, exploratory data analysis, multimedia terminal tasks, and chemistry procurement-cost reasoning. These benchmarks are best read here as a trend rather than a separate taxonomy: as environments become domain-specific, the missing pieces become less about generic tool calling and more about calibrated perception, domain-grounded state transitions, specialized verifiers, and robustness to realistic input noise. The chapter's main conclusion is therefore narrower than "richer environments are better." Richer environments are valuable because they raise the ceiling of what a agentic system can do and experience. But executable environments, standardized boundaries, and learnable environments are three different achievements. The first makes software runnable by agents. The second makes runtime experience portable. The third makes that experience optimizable. That is the precise handoff to Section 6.

层 Layer核心问题 Core question代表对象 Representative objects仍缺什么 What is still missing
可执行性智能体真的能在环境里运行吗?CLI-Anything、OpenHarness、ResearchGym、DevOpsGym 等工作流环境丰富的执行本身并不保证可移植性或学习信号。
ExecutabilityCan the agent actually run in the environment?CLI-Anything, OpenHarness, workflow environments such as ResearchGym and DevOpsGymRich execution does not by itself guarantee portability or learning signal.
协议化运行时工件能否跨主机、工具与智能体流转?MCP、A2A、AG-UI、CUBE共享接口改善了复用,但尚未提供奖励、信用分配或稳定的更新目标。
ProtocolizationCan runtime artifacts travel across hosts, tools, and agents?MCP, A2A, AG-UI, CUBEShared interfaces improve reuse, but do not yet provide reward, credit assignment, or stable update targets.
可学习性交互轨迹能否转化为可供优化的监督信号?Terminal-Bench 式验证、Harbor 式 RL 环境构建即便环境可执行且标准化,仍可能缺少稠密奖励、可靠验证器与稳健的回合结构。
LearnabilityCan interaction traces be converted into optimization-ready supervision?Terminal-Bench-style verification, Harbor-style RL environment constructionEven executable and standardized environments may still lack dense reward, reliable verifiers, and robust episode structure.

表注(Table 3):从可执行环境到可学习环境的三层递进。

Part III. Consolidation and Coordination of Experience第三部分 · 经验的固化与协调(RL 与持续学习 · 元演化)
第 6 章 · 强化学习与持续学习:把经验固化为模型参数6. RL and Continual Learning: Consolidating Experience into Model Parameters

6.1. 参数侧固化为何重要6.1. Why Parameter-side Consolidation Matters

📚 第 6 章总览 · 手写精读(本章主旨与各小节导读)

本章主旨:参数路径——把编译经验固化进权重。两个公式:Eq.1 训练数据选择(从经验库按目标与 harness 状态选出标注子集)与 Eq.2 检查点固化(在选出的数据上最大化目标)。三种训练体制:部署前垂直能力、部署前 harness 功能单元、部署后轨迹学习。核心判断:策略梯度公式已基本解决,真正的瓶颈在 trace-to-update 系统。

  • 6.1 为什么参数路径重要 + Eq.1/Eq.2;
  • 6.2 部署前垂直能力(基底→轨迹训练→能力整合);
  • 6.3 部署前 harness 单元(子代理路由、技能内化、记忆访问);
  • 6.4 部署后轨迹学习(与推理相同的 harness 内训练);
  • 6.5 实践者要点。

The point of this chapter: the parameter path — consolidating compiled experience into weights. Two equations: Eq. 1 training-data selection (choose an annotated subset from the reservoir under the objective and harness state) and Eq. 2 checkpointed consolidation (maximize the objective on the selected data). Three training regimes: pre-deployment vertical capabilities, pre-deployment harness functional units, and post-deployment trajectory learning. The core judgment: policy-gradient math is largely solved; the real bottleneck is the trace-to-update system.

  • 6.1 Why the parameter path matters, plus Eq. 1/Eq. 2;
  • 6.2 Pre-deployment vertical capabilities (substrates → trajectory training → integration);
  • 6.3 Pre-deployment harness units (sub-agent routing, skill internalization, memory access);
  • 6.4 Post-deployment trajectory learning (train in the same harness as inference);
  • 6.5 Takeaways for practitioners.

本节要点Section at a glance

正如第 3 节、第 4 节和第 5 节所记载的那样,有用的先验往往首先出现在模型之外:在可复用技能中、在积累的记忆中、在智能体所处的执行环境的结构中。当那些反复出现的执行框架一侧的教训不再被当作局部补丁,而是被当作底层策略本身应当改变的证据时,参数路径便开始了。

As Section 3, Section 4, and Section 5 document, useful priors often first appear outside the model: in reusable skills, in accumulated memory, and in the structure of the execution environments in which the agent acts. The parameter path begins when those repeated harness-side lessons are no longer treated as local patches, but as evidence that the underlying policy itself should change.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §6.1 原文全文 · Expand the full original text

6. 强化学习与持续学习:把经验固化为模型参数 6. RL and Continual Learning: Consolidating Experience into Model Parameters

6.1. 参数侧固化为何重要 6.1. Why Parameter-side Consolidation Matters

正如第 3 节、第 4 节和第 5 节所记载的那样,有用的先验往往首先出现在模型之外:在可复用技能中、在积累的记忆中、在智能体所处的执行环境的结构中。当那些反复出现的执行框架一侧的教训不再被当作局部补丁,而是被当作底层策略本身应当改变的证据时,参数路径便开始了。这一转变之所以重要,有三个原因。第一,它把稳定的运行时先验内化,而不是反复支付上下文和编排开销。近期的行业报告已经使这一方向具体化:Composer 2 把 RL rollout 与部署时所用的同一编码执行框架对齐。Cursor 的实时 RL 回路随后把生产反馈聚合为频繁的策略更新,而不是把每次失败都当作又一次提示词修补。第二,权重更新通常承诺比字面上的上下文重放更广泛的迁移:只有当正确的文件、记忆条目或检索路径被触发时,一次执行框架编辑才有帮助,而一个好的策略更新可以跨任务、会话和用户传播。经验驱动的智能体训练使这一区分具体化:SEAgent 把软件交互 rollout 转化为优化信号,而不仅仅是在上下文中重放它们。UI-Mem 针对 GUI 经验记忆提出了同样的观点。RetroAgent 进一步表明,经验记忆可以用于回溯性的内在反馈和显式的经验复用。EMPO2 利用记忆来改进探索,并结合同策略(on-policy)与异策略(off-policy)优化,以获得更鲁棒的、记忆增强的智能体。第三,参数更新使部署中的智能体能够集体演化:一旦许多智能体共享一个基础模型,一个智能体的经验就能成为另一个智能体的先验。这反映了联邦学习(federated learning)的核心前提:本地客户端从分散数据中计算更新,并把它们聚合进一个共享模型。生产级联邦学习系统设计使分散式更新可部署,同时数据保留在设备上。这一脉络也为实际部署带来了系统、隐私和通信方面的挑战。更新时机和系统异构性构成了相应的优化问题。使用全文统一的运行时定义 A𝑡 = ⟨𝑀𝜃𝑡, 𝐻𝑡, 𝑈𝑡, 𝐸𝑡⟩,参数路径就是模型分量 𝑀𝜃𝑡 本身被更新、而非仅执行框架分量 𝐻𝑡 被更新的情形。在任何参数更新之前,执行框架必须把已编译的部署经验 𝑍𝑠𝑘 转化为一个经过选择的训练集:. (1) 式 1 是训练数据选择规则。原始经验池 𝑍𝑠𝑘 包含已部署智能体迄今编译的所有内容,但其中一部分不应被直接用于优化。选择算子 𝑆O𝑠𝑘 (·; 𝐻𝑠𝑘) 抽象了“哪些经验池轨迹成为训练样本”这一受治理的选择。它依赖于 𝐻𝑠𝑘 这一点记录了:选择由当前执行框架中介——隐私规则、归因、验证器可用性、权限、轨迹质量和任务覆盖都可能影响一条轨迹是否可用。它依赖于 O𝑠𝑘 这一点记录了:训练目标也很重要——SFT、偏好学习和 RL 可能选择不同的轨迹,并提取不同的反馈或监督对象。例如,在验证器或奖励分数之下,𝑆 可以是一个 top-𝐾 的、阈值化的或以其他方式过滤的索引集,如拒绝采样或奖励排序的微调那样。目标索引写在 𝑆 和 𝑎 上,因为它选择的是算子族;执行框架状态则保留为自变量,因为它提供检查点 𝑠𝑘 处可用的具体权限、验证器、轨迹元数据和提取策略。对于每条被选中的轨迹,𝑎O𝑠𝑘 产出相应的 ŷ𝑖——一个训练信号对象,它可以是 SFT 的示范或动作标签、偏好或评分标准标注,也可以是偏好学习或 RL 使用的标量奖励。参数侧目标于是可以写成一个带检查点的巩固问题:. (2) 式 2 是选择之后应用的模型更新规则。它说的是:下一个可部署检查点是通过在执行框架产出的轨迹与信号标注上优化一个标准训练目标而得到的。这里 𝜋𝜃 是模型参数所诱导的策略,JO𝑠𝑘 是为该检查点选择的后训练目标。对于 SFT,它退化为对从 𝑧𝑖 中提取的已验证动作或示范的对数似然。对于偏好学习或 RL,ŷ𝑖 指定训练目标所使用的反馈:它可以来自人类偏好、基于评分标准的评估器或自动化验证器,并且可以在动作、片段或轨迹层面被赋予。这一表述保留了前几章所作的区分:在外部路径之下,𝑧𝑖 更新技能、记忆或其他执行框架表面;在参数路径之下,经过选择和信号标注的经验 更新 𝜃。

As Section 3, Section 4, and Section 5 document, useful priors often first appear outside the model: in reusable skills, in accumulated memory, and in the structure of the execution environments in which the agent acts. The parameter path begins when those repeated harness-side lessons are no longer treated as local patches, but as evidence that the underlying policy itself should change. This shift matters for three reasons. First, it internalizes stable runtime priors instead of paying repeated context and orchestration overhead. Recent industry reports already make this direction concrete: Composer 2 aligns RL rollouts with the same coding harness used at deployment. Cursor's real-time RL loop then aggregates production feedback into frequent policy updates rather than treating every failure as another prompt repair. Second, weight updates generally promise broader transfer than literal context replay: a harness edit only helps when the right file, memory entry, or retrieval path fires, while a good policy update can travel across tasks, sessions, and users. Experience-driven agent training makes this distinction concrete: SEAgent turns software-interaction rollouts into optimization signal rather than only replaying them in context. UI-Mem makes the same point for GUI experience memory. RetroAgent further shows that experience memory can be used for retrospective intrinsic feedback and explicit experience reuse. EMPO2 uses memory to improve exploration and combines on- and off-policy optimization for more robust memory-augmented agents. Third, parameter updates enable collective evolution across deployed agents: once many agents share a base model, one agent's experience can become another agent's prior. This mirrors the core premise of federated learning, where local clients compute updates from decentralized data and aggregate them into a shared model. Production federated-learning system design makes decentralized updates deployable while data remains on devices. This stream also raises systems, privacy, and communication challenges for practical deployment. Update timing and system heterogeneity create the corresponding optimization problem. Using the survey-wide runtime definition A𝑡 = ⟨𝑀𝜃𝑡, 𝐻𝑡, 𝑈𝑡, 𝐸𝑡⟩, the parameter path is the case in which the model component 𝑀𝜃𝑡 itself is updated rather than only the harness component 𝐻𝑡. Before any parameter update, the harness must turn the compiled deployment experience 𝑍𝑠𝑘 into a selected training set: . (1) Eq. 1 is the training-data selection rule. The raw reservoir 𝑍𝑠𝑘 contains everything the deployed agent has compiled so far, but some of it should not be used directly for optimization. The selection operator 𝑆O𝑠𝑘 (·; 𝐻𝑠𝑘) abstracts the governed choice of which reservoir traces become training examples. Its dependence on 𝐻𝑠𝑘 records that selection is mediated by the current harness: privacy rules, attribution, verifier availability, permissions, trace quality, and task coverage can all affect whether a trace is usable. Its dependence on O𝑠𝑘 records that the training objective also matters: SFT, preference learning, and RL may select different traces and extract different feedback or supervision objects. For example, 𝑆 may be a top-𝐾, thresholded, or otherwise filtered index set under verifier or reward scores, as in rejection- or reward-ranked fine-tuning. The objective index is written on 𝑆 and 𝑎 because it chooses the operator family; the harness state remains an argument because it supplies the concrete permissions, verifiers, trace metadata, and extraction policies available at checkpoint 𝑠𝑘. For each selected trace, 𝑎O𝑠𝑘 produces the corresponding ŷ𝑖, a training-signal object that may be a demonstration or action label for SFT, a preference or rubric annotation, or a scalar reward used by preference learning or RL. The parameter-side objective can then be written as a checkpointed consolidation problem: . (2) Eq. 2 is the model-update rule applied after selection. It says that the next deployable checkpoint is obtained by optimizing a standard training objective over trajectories and signal annotations produced by the harness. Here 𝜋𝜃 is the policy induced by the model parameters, and JO𝑠𝑘 is the post-training objective chosen for the checkpoint. For SFT, it reduces to log-likelihood on verified actions or demonstrations extracted from 𝑧𝑖. For preference learning or RL, ŷ𝑖 specifies the feedback used by the training objective: it may come from human preferences, rubric-based evaluators, or automated verifiers, and it may be assigned at the action, segment, or trajectory level. This formulation preserves the distinction made in earlier chapters: under the external path, 𝑧𝑖 updates skills, memory, or other harness surfaces; under the parameter path, the selected and signal-annotated experience updates 𝜃.

📖 原文依据(论文逐字引用)|Verbatim from the paper
§6.1 原文:“Before any parameter update, the harness must turn the compiled deployment experience 𝑍𝑠𝑘 into a selected training set: . (1) Eq. 1 is the training-data selection rule. … Its dependence on 𝐻𝑠𝑘 records that selection is mediated by the current harness: privacy rules, attribution, verifier availability, permissions, trace quality, and task coverage can all affect whether a trace is usable. Its dependence on O𝑠𝑘 records that the training objective also matters: SFT, preference learning, and RL may select different traces and extract different feedback or supervision objects. For example, 𝑆 may be a top-𝐾, thresholded, or otherwise filtered index set under verifier or reward scores, as in rejection- or reward-ranked fine-tuning. … For each selected trace, 𝑎O𝑠𝑘 produces the corresponding ŷ𝑖 … that may be a demonstration or action label for SFT, a preference or rubric annotation, or a scalar reward used by preference learning or RL.”
公式卡 8 · Eq.1 训练数据选择规则(§6.1)Formula Card 8 · Eq.1, the training-data selection rule
背景知识|Background
  • 监督学习的数据管线:收集 → 清洗 → 筛选 → 标注 → 训练。Eq.1 把中间三步形式化。The supervised pipeline: collect → clean → select → annotate → train. Eq.1 formalizes the middle steps.
  • 拒绝采样微调与奖励排序微调:只用“验证器/奖励模型打分超过阈值或排在前 K”的轨迹训练——S 的实例。Rejection-sampling and reward-ranked fine-tuning: train only on traces above a verifier/reward threshold or in the top-K — instances of S.
  • RLHF 的数据治理:SFT 要示范、偏好学习要成对比较、RL 要标量奖励——不同目标需要不同的轨迹和信号。RLHF data governance: SFT needs demonstrations, preference learning needs pairwise comparisons, RL needs scalar rewards.
  • 数据飞轮(data flywheel):部署产生的数据反哺训练,形成正循环;但入口必须受治理。The data flywheel: deployment data feeds training in a positive loop — but the intake must be governed.
推导过程|Derivation
  1. 原材料不可直接用:经验库 Z_sk 里混有隐私数据、低质轨迹、无法验证的结果——不能整库倒进训练。The reservoir cannot be used as-is: it mixes private data, low-quality traces, unverifiable outcomes.
  2. 选择算子 S:产出索引集 I_sk——哪些 z_i 成为训练样本;S 可以是 top-K、阈值化或其它过滤。A selection operator S outputs the index set I_sk — which z_i become training examples; S may be top-K, thresholded, or otherwise filtered.
  3. S 依赖两样东西:训练目标 O_sk(决定选哪类轨迹、抽哪种信号)与当前 harness 状态 H_sk(隐私规则、归因、验证器可用性、权限、轨迹质量、任务覆盖)。S depends on the training objective O_sk and the current harness state H_sk (privacy rules, attribution, verifier availability, permissions, trace quality, coverage).
  4. 标注算子 a:对每条选中的 z_i 产出信号对象 ŷ_i——SFT 的示范/动作标签、偏好的 rubric 或胜负标注、RL 的标量奖励(可在动作、片段或轨迹级)。An annotation operator a produces the signal object ŷ_i per selected z_i — demonstrations, preferences, or scalar rewards at action/segment/trajectory level.
  5. 得到训练集 Z̃_sk:(轨迹, 信号) 对的集合——这就是参数路径的“数据”。The resulting training set Z̃_sk of (trace, signal) pairs is the parameter path's "data".
论文中的用法|Usage:把“什么能进训练”变成受治理的显式步骤——第 9 章的“反馈操纵”攻击正是针对这一环。Makes "what enters training" an explicit governed step — exactly what §9's feedback-manipulation attacks target.
📖 原文依据(论文逐字引用)|Verbatim from the paper
§6.1 原文:“The parameter-side objective can then be written as a checkpointed consolidation problem: 𝜃𝑠+𝑘 = arg max𝜃 𝐽𝑠𝑘 (𝜃), 𝐽𝑠𝑘 (𝜃) = 𝔼(𝑧𝑖,ŷ𝑖)∼ [JO𝑠𝑘 (𝜋𝜃; 𝑧𝑖, ŷ𝑖)]. (2) Eq. 2 is the model-update rule applied after selection. … For SFT, it reduces to log-likelihood on verified actions or demonstrations extracted from 𝑧𝑖. For preference learning or RL, ŷ𝑖 specifies the feedback used by the training objective: it may come from human preferences, rubric-based evaluators, or automated verifiers, and it may be assigned at the action, segment, or trajectory level. This formulation preserves the distinction …: under the external path, 𝑧𝑖 updates skills, memory, or other harness surfaces; under the parameter path, the selected and signal-annotated experience updates 𝜃.”
公式卡 9 · Eq.2 检查点更新规则(§6.1)Formula Card 9 · Eq.2, the checkpoint update rule
背景知识|Background
  • 经验风险最小化(ERM):在有限样本上平均损失并最小化——机器学习训练的标准形式;Eq.2 是它在“经验库”上的版本。Empirical risk minimization: average a loss over finite samples and minimize — the standard ML training form; Eq.2 is its reservoir version.
  • SFT 目标:对示范动作做负对数似然(交叉熵),让策略模仿好行为。SFT objective: negative log-likelihood (cross-entropy) on demonstrated actions.
  • 偏好学习目标:如 Bradley-Terry 模型下“好回答胜过坏回答”的对数几率。Preference objectives: e.g., the Bradley-Terry log-odds that a good answer beats a bad one.
  • RL 目标:期望累积奖励(可加 KL 正则防止漂移)。RL objective: expected cumulative reward, optionally KL-regularized against drift.
  • arg max:取使目标最大的参数;实践中用 SGD/Adam 迭代逼近,检查点即一次“部署候选”。arg max: the parameters maximizing the objective; in practice approached by SGD/Adam, and the checkpoint is a deployment candidate.
推导过程|Derivation
  1. 从通用训练框架出发:任何参数更新都是“在一批带信号的数据上最大化某个目标”。Start from the generic training frame: an update maximizes some objective over signal-annotated data.
  2. 代入 Eq.1 的训练集:用 Z̃_sk 的经验分布代替真实分布,定义经验目标 J_sk(θ)——期望是对选中的 (z_i, ŷ_i) 对取的。Plug in Eq.1's training set: the empirical objective J_sk(θ) averages over the selected (z_i, ŷ_i) pairs.
  3. 目标函数按训练目标实例化:SFT → J^O = log π_θ(a | z)(对数似然);偏好学习 → J^O = 偏好模型下的胜率对数;RL → J^O = 累积奖励(可加 KL 项)。Instantiate J^O per objective: SFT → log-likelihood; preference → log win-rate under the preference model; RL → cumulative reward (optionally KL-regularized).
  4. 取最优:θ_s_k^+ = arg max_θ J_sk(θ)——新检查点就是在这个数据上的最优(近似)参数。Take the optimum: the new checkpoint is the (approximate) maximizer over this data.
  5. 与快路径的分工:外部路径把 z_i 写进技能/记忆(局部、可回滚);参数路径把“经过选择与标注的 Z̃_sk”写进 θ(全局、难回滚)——Eq.1+Eq.2 合起来就是 Φ_M 的完整定义。Division of labor: the external path writes z_i into skills/memory (local, reversible); the parameter path writes selected, annotated Z̃_sk into θ (global, hard to reverse). Eq.1+Eq.2 together fully define Φ_M.
论文中的用法|Usage:§6.2–6.4 的三类训练(部署前垂直能力、部署前 harness 单元、部署后轨迹学习)都是 Eq.1/Eq.2 的不同实例化。§6.2–6.4's three training regimes are all instantiations of Eq.1/Eq.2.
Figure 7: Parameter-side learning for stronger agents after deployment
Parameter-side learning for stronger agents after deployment. Stable runtime priors
图释:参数侧学习的全景:顶部 6.1 三条理由(内化先验/超越上下文的迁移/集体演化);左面板 6.2 部署前垂直能力(构建基底→轨迹训练→能力整合);中面板 6.3 部署前 harness 单元(子代理路由、技能内化、记忆访问);右面板 6.4 部署后轨迹学习(运行栈→收集轨迹→提取信号→更新策略);底部结论:瓶颈在 trace-to-update 系统。

6.2. 面向垂直智能体能力的部署前训练6.2. Pre-Deployment Training for Vertical Agent Capabilities

本节要点Section at a glance

最近的参数侧工作首先通过把训练压力集中于特定的垂直能力来改进智能体。各大模型厂商公开发布的技术报告与版本说明使这一方向变得明确。

Recent parameter-side work first improves agents by concentrating training pressure on specific vertical capabilities. The public technical reports and release notes from major model builders make this direction explicit.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §6.2 原文全文 · Expand the full original text

6.2. 面向垂直智能体能力的部署前训练 6.2. Pre-Deployment Training for Vertical Agent Capabilities

最近的参数侧工作首先通过把训练压力集中于特定的垂直能力来改进智能体。各大模型厂商公开发布的技术报告与版本说明使这一方向变得明确。OpenAI 的 GPT-5.5 版本强调编码、计算机使用、工具使用和知识型工作流。Anthropic 的 Claude Opus 4.7 报告强调长时间运行的编码与智能体式工具使用。Google DeepMind 的 Gemini 3.5 Flash 报告同样突出类似的智能体式工具使用工作流。MiniMax M2.7 明确以 harness(执行脚手架)感知的自我改进为目标。GLM-5.1 强调长时域自主工程与智能体式编码工作流。Qwen3-Coder-Next 是 Qwen 近期的一份专门针对在可执行环境中训练的编码智能体的报告。在这些前沿模型家族之外,Kimi K2.5 突出视觉智能体智能与自导引的智能体集群,而 Cursor Composer 2 则在与之匹配的部署 harness 中给出了面向产品的编码智能体 RL 实例。其共同传递的信息并不是某个单一优化器就能解决智能体性(agency)问题,而是垂直能力学习是一个栈层面(stack-level)的问题:领域必须首先被做得足够可执行,以生成可靠的轨迹与反馈,而由此产生的行为随后必须通过分阶段训练、混合领域 RL 或蒸馏加以整合,而不是作为孤立的专家模型被搁置。在 Agentic AI 流水线中,这些方法主要是发布前将智能体能力内化的部署前机制:它们在基础策略(base policy)暴露给真实用户之前,教会其经由工具、环境、验证器与长时域工作流来行动。这仍然是主流路径,因为可执行的 gym、合成任务以及由验证器支撑的奖励比嘈杂的部署轨迹更易于控制、扩展、审计与复现,同时仍能缩小后续部署智能体的训练-测试差距(train–test gap)。它还创造了使部署后学习得以成立的可用性门槛:如果一个智能体在发布前不能可靠地完成有用的任务,用户就不会采用它,系统就不会积累有意义的使用轨迹,部署后的 trace-to-update(从轨迹到更新)闭环也就几乎没有可供学习的信号。可执行训练基座。对于参数路径,环境构建已在第 5 节中于上游处理;本小节聚焦于如何将由此产生的基座(substrate)转化为训练信号。在软件工程中,类似 SWE 的世界对代码仓库、测试、issue 轨迹与执行日志进行编码,使反馈映射到正确性、回归或恢复质量。在机器学习工程中,MLE-Dojo、MLE-Smith 与 SandMLE 构建面向实验的沙盒,其中任务编辑、指标增量与执行产物成为优化就绪轨迹的显式轨迹可观测量。在工具领域,基座构建以可执行的 API/任务生成为主:NESTFUL 与 Procedural Environment Generation for Tool-Use Agents 强调可扩展、可验证的工具调用轨迹以及依赖感知的任务合成。在搜索领域,SearchGym 与 DeepResearchGym 构建可验证的仿真/数据生成基座,把查询、检索到的证据与最终答案转化为带奖励的搜索轨迹。在计算机使用领域,CUA-Gym、Gym-Anything、WebGym 与 BrowserGym 贡献跨平台或 GUI/浏览器计算基座,把环境状态、屏幕观测与动作历史转化为可重复的训练回合(episode)。基于可执行轨迹的 SFT 与 RL。一旦基座就绪,方法上的新意并不只是智能体使用了 SFT 或 RL,而在于训练如何围绕可执行轨迹分阶段展开。SFT 从专家、合成或教师生成的轨迹中给出初始策略;RL 随后在验证器支撑的奖励下优化恢复、工具使用、检索与探索行为。最清晰的垂直领域是软件工程:Kimi-Dev、SWE-Dev、SWE-RL、长上下文 SWE-agent RL 与 Self-Play SWE-RL 都把代码仓库、测试、合成 issue、工作流轨迹或执行反馈转化为面向问题解决智能体的训练信号,各自使用中间训练(mid-training)、SFT、拒绝采样或执行反馈微调、在线 RL 与自博弈(self-play)的不同组合。Kimi-Dev 使用无智能体(agentless)训练来引入 SWE 技能先验,随后通过在公开轨迹上的 SFT 适配 SWE-agent 设置。SWE-Dev 结合合成测试用例生成、可执行补丁评估、规模化智能体轨迹以及训练/推理扩展。SWE-RL 在开放的软件演化数据上使用基于规则的 RL 奖励,进行真实世界的 SWE 推理。长上下文 SWE-agent RL 用执行反馈与 RL 训练长上下文、多轮 SWE 智能体,而 Self-Play SWE-RL 研究自博弈式的缺陷注入与修复闭环。ReTool 与 ToolRL 等工具类方法在结果奖励或工具使用奖励下,训练智能体何时以及如何调用代码解释器、调用外部函数或在多个工具之间进行选择。ToolLLM 是面向工具使用智能体的早期 SFT 导向流水线:它构建大规模 API 使用指令与求解轨迹,随后微调 ToolLLaMA,以内化多步工具选择与调用模式。ReTool 引入选择性工具使用,ToolRL 则以奖励感知的控制优化执行轨迹。Search-R1 等搜索方法把同样的 SFT–RL 模式专门用于面向检索的智能体,训练策略以决定何时查询、如何使用检索到的证据,以及如何把搜索观测折叠回推理之中。ComputerRL 与 ACuRL 等计算机使用方法扩展在线桌面或 GUI 环境,并使策略在环境变化下进行适应,其中 ACuRL 还提供面向持续计算机使用适应的自主课程学习。rStar2-Agent 等数学与可执行推理方法使用 Python 执行与分阶段 SFT–RL 配方来训练多步智能体推理。通用多轮框架在智能体层面表达了同样的观点:LOOP 直接在有状态 API 环境中训练交互式数字智能体。AgentGym-RL 提供面向长时域决策的模块化 RL 栈,Agent-R1 则给出相关的智能体级 RL 配方。因此,这些论文中的训练贡献往往是一种轨迹构建与信用分配(credit-assignment)贡献:把领域分解为可验证的子步骤,过滤并重放 rollout,强化正例,扩展合成或自博弈环境,并把工作流训练得到的先验迁移到更灵活的多轮智能体之中。这正是近期的智能体 RL 综述与策略梯度公式本身一样强调 rollout 生成、过滤、控制与重放的原因。一份实践者指南将之表述为在多轮智能体 RL 中协同设计环境、奖励与策略。GFCR 通过 rollout 过滤与控制表达了同样的系统观点,而 Agent Lightning 则通过把智能体执行与 RL 训练解耦、并为现有智能体暴露标准化的轨迹与信用分配接口,将其推进到框架基础设施层面。将垂直能力整合进通用智能体。下一个问题是如何组合众多垂直能力,而不必为每个领域训练并部署一个单独的专家模型。近期报告指出了三种整合模式,不应将它们混为一谈。第一种是分阶段能力整合:按精心安排的顺序强化各项能力,然后将其整合进一个通用 checkpoint。GLM-4.5 是专家优先的例证:其后训练先为推理、智能体任务与通用对话构建专家模型,再通过专家模型迭代与蒸馏式后训练走向统一的混合推理模型。GLM-5 通过异步后训练 RL 与面向长时域工程任务的智能体 RL,使后训练结构更加明确。Qwen3 是一个更柔和的模式融合案例:在长 CoT 冷启动与推理 RL 之后,再进行思维模式融合与 General RL,使一个 checkpoint 同时支持思考与非思考行为、工具使用、编码与指令遵循。第二种模式是混合或多领域 RL:在领域、奖励与环境的混合体上训练单一策略,而不是先构建相互独立的专家。M2RL 在数学、编码、科学、指令遵循与智能体任务上,直接比较了混合多任务 RLVR(可验证奖励强化学习)与“各领域分别 RL 后再进行模型合并”两种方案。Cheng 等人的跨领域研究给出了这一类方法背后有益的提醒:数学、代码与科学等预训练丰富的领域往往受益于跨领域 RL,而逻辑、仿真与表格推理等代表性不足的领域通常需要领域内奖励信号。前沿报告在更大范围上体现了同一思想:Kimi K2 在包含智能体、编码、推理与工具使用设置的现实与合成环境上,使用大规模智能体数据合成与联合 RL。MiMo-VL 将其配方命名为覆盖推理、感知、定位(grounding)、GUI 及其他多样化奖励信号的混合在策略 RL(Mixed On-policy RL)。ERNIE 5.0 在统一基座模型中为覆盖文本、图像、视频与音频的统一多模态基座模型引入 RL。DeepSeek-V3.2 使用大规模智能体任务合成与规模化后训练 RL,同时提升推理能力与智能体能力。第三种模式是基于教师的整合,尤其是在策略蒸馏(on-policy distillation,OPD)。OPD 不要求所有能力在单一稀疏奖励混合中共存,而是让学生按自身策略生成,并在其实际访问的状态上获得密集的教师反馈。MiMo-V2-Flash 引入多教师 OPD:领域专用教师向同一个学生模型提供 token 级监督。KAT-Coder-V2 是最清晰的智能体编码例证:它遵循“先专精后统一”(Specialize-then-Unify)配方,为 SWE、网页编码、终端、网页搜索与通用编码分别训练专家,再通过在策略蒸馏将它们整合为一个模型。GLM-5 使用跨阶段 OPD 在后期训练中保留早期 SFT、推理 RL 与 General RL 阶段习得的技能,而 Nemotron-Cascade 2 则将 Cascade RL 与来自最强中间教师的多领域 OPD 相结合。近期的 OPD 分析区分了一般成功条件、失败模式与开放问题。更具体地说,OPD 受益于教师与学生相容的思维模式以及教师真正新增的能力,而离策略冷启动与教师对齐的提示选择可以挽救失败的 OPD。OPCD 给出了更广泛的在策略上下文蒸馏形式化,CoPD 则研究在 RLVR 中通过双向 OPD 共同演化的专家。

Recent parameter-side work first improves agents by concentrating training pressure on specific vertical capabilities. The public technical reports and release notes from major model builders make this direction explicit. OpenAI's GPT-5.5 release emphasizes coding, computer use, tool use, and knowledge-work workflows. Anthropic's Claude Opus 4.7 report emphasizes long-running coding and agentic tool use. Google DeepMind's Gemini 3.5 Flash report foregrounds similar agentic tool-use workflows. MiniMax M2.7 explicitly targets harness-aware self-improvement. GLM-5.1 emphasizes long-horizon autonomous engineering and agentic coding workflows. Qwen3-Coder-Next is a recent Qwen report specialized for coding agents trained with executable environments. Beyond these frontier model families, Kimi K2.5 foregrounds visual agentic intelligence and self-directed agent swarms, while Cursor Composer 2 gives a product-facing example of coding-agent RL in a matched deployment harness. The common message is not that a single optimizer solves agency. It is that vertical capability learning is a stack-level problem: the domain must first be made executable enough to generate reliable trajectories and feedback, and the resulting behaviors must then be integrated through staged training, mixed-domain RL, or distillation rather than left as isolated specialists. In the Agentic AI pipeline, these methods are primarily pre-deployment mechanisms for internalizing agentic capabilities before release: they teach the base policy to act through tools, environments, verifiers, and long-horizon workflows before it is exposed to live users. This remains the mainstream path because executable gyms, synthetic tasks, and verifier-backed rewards are easier to control, scale, audit, and repeat than noisy deployment traces, while still reducing the train–test gap for later deployed agents. It also creates the usability threshold that makes post-deployment learning possible at all: if an agent cannot reliably complete useful tasks before release, users will not adopt it, the system will not accumulate meaningful usage traces, and the post-deployment trace-to-update loop has little signal to learn from. Executable training substrates. For the parameter path, environment construction is handled upstream in Section 5; this subsection focuses on how the resulting substrates are converted into training signal. In software engineering, SWE-like worlds encode repositories, tests, issue traces, and execution logs so that feedback maps to correctness, regressions, or recovery quality. In machine-learning engineering, MLE-Dojo, MLE-Smith, and SandMLE build experiment-oriented sandboxes where task edits, metric deltas, and execution artifacts become explicit trajectory observables for optimization-ready traces. In tool domains, substrate construction is dominated by executable API/task generation: NESTFUL and Procedural Environment Generation for Tool-Use Agents emphasize scalable, verifiable tool-call trajectories and dependency-aware task synthesis. In search domains, SearchGym and DeepResearchGym build verifiable simulation/data-generation substrates that convert queries, retrieved evidence, and final answers into reward-bearing search trajectories. In computer-use domains, CUA-Gym, Gym-Anything, WebGym, and BrowserGym contribute cross-platform or GUI/browser computational substrates that turn environment state, screen observations, and action histories into repeatable episodes for training. SFT and RL on executable trajectories. Once the substrate exists, the methodological novelty is not simply that agents use SFT or RL, but how training is staged around executable trajectories. SFT supplies an initial policy from expert, synthetic, or teacher-generated traces; RL then optimizes recovery, tool-use, retrieval, and exploration behaviors under verifier-backed rewards. The clearest vertical is software engineering: Kimi-Dev, SWE-Dev, SWE-RL, long-context SWE-agent RL, and Self-Play SWE-RL all turn repositories, tests, synthetic issues, workflow traces, or execution feedback into training signal for issue-resolution agents, using different mixtures of mid-training, SFT, rejection or execution-feedback fine-tuning, online RL, and self-play. Kimi-Dev uses agentless training to induce SWE skill priors and then adapts to SWE-agent settings with SFT on public trajectories. SWE-Dev combines synthetic test-case generation, executable patch evaluation, scaled agent trajectories, and training/inference scaling. SWE-RL uses rule-based RL rewards over open software-evolution data for real-world SWE reasoning. Long-context SWE-agent RL trains long-context, multi-turn SWE agents with execution feedback and RL, while Self-Play SWE-RL studies self-play bug-injection and repair loops. Tool methods such as ReTool and ToolRL train when and how to invoke code interpreters, call external functions, or select among tools under outcome or tool-use rewards. ToolLLM is an early SFT-oriented pipeline for tool-use agents: it constructs large-scale API-use instructions and solution traces, then fine-tunes ToolLLaMA to internalize multi-step tool selection and invocation patterns. ReTool introduces selective tool use, and ToolRL optimizes execution trajectories with reward-aware control. Search methods such as Search-R1 specialize the same SFT–RL pattern for retrieval-facing agents, training policies to decide when to query, how to use retrieved evidence, and how to fold search observations back into reasoning. Computer-use methods such as ComputerRL and ACuRL scale online desktop or GUI environments and adapt policies under environment shifts, while ACuRL provides autonomous curriculum learning for continual computer-use adaptation. Mathematical and executable reasoning methods such as rStar2-Agent use Python execution and staged SFT–RL recipes to train multi-step agentic reasoning. General multi-turn frameworks make the same point at the agent level: LOOP trains interactive digital agents directly in stateful API environments. AgentGym-RL exposes a modular RL stack for long-horizon decision-making, and Agent-R1 supplies a related agent-level RL recipe. The training contribution in these papers is therefore often a trace-construction and credit-assignment contribution: decompose a domain into verifiable substeps, filter and replay rollouts, reinforce positive examples, scale synthetic or self-play environments, and transfer a workflow-trained prior into a more flexible multi-turn agent. This is why recent agentic RL surveys emphasize rollout generation, filtering, control, and replay as much as the policy-gradient formula itself. A practitioner's guide frames this as co-designing environments, rewards, and policies in multi-turn agentic RL. GFCR makes the same systems point through rollout filtering and control, while Agent Lightning pushes it into framework infrastructure by decoupling agent execution from RL training and exposing a standardized trace and credit-assignment interface for existing agents. Integrating vertical capabilities into generalist agents. The next problem is how to combine many vertical capabilities without training and serving a separate specialist for every domain. Recent reports point to three integration patterns, and they should not be conflated. The first is staged capability integration: strengthen capabilities in a deliberate order and then consolidate them into one generalist checkpoint. GLM-4.5 is an expert-first example: its post-training first builds expert models for reasoning, agentic tasks, and general chat, then uses expert-model iteration and distillation-style post-training toward a unified hybrid-reasoning model. GLM-5 makes the post-training structure more explicit through asynchronous post-training RL and agent RL for long-horizon engineering tasks. Qwen3 is a softer mode-fusion case, where long-CoT cold start and reasoning RL are followed by thinking-mode fusion and General RL so that one checkpoint supports thinking and non-thinking behavior, tool use, coding, and instruction following. The second pattern is mixed or multi-domain RL: train one policy on a mixture of domains, rewards, and environments rather than first building independent experts. M2RL directly compares mixed multi-task RLVR with separate domain RL followed by model merging across math, coding, science, instruction-following, and agent tasks. The cross-domain study of Cheng et al. gives the useful caution behind this category: pretraining-rich domains such as math, code, and science often benefit from cross-domain RL, whereas underrepresented domains such as logic, simulation, and tabular reasoning usually need in-domain reward signals. Frontier reports instantiate the same idea at larger scope: Kimi K2 uses large-scale agentic data synthesis and joint RL over real and synthetic environments that include agentic, coding, reasoning, and tool-use settings. MiMo-VL names its recipe Mixed On-policy RL across reasoning, perception, grounding, GUI, and other diverse reward signals. ERNIE 5.0 introduces RL for unified multimodal foundation models over text, image, video, and audio in a unified foundation model. DeepSeek-V3.2 uses large-scale agentic task synthesis and scaled post-training RL to improve both reasoning and agentic capabilities. The third pattern is teacher-based consolidation, especially on-policy distillation . Instead of forcing all capabilities to coexist inside one sparse-reward mixture, OPD lets the student generate from its own policy and receive dense teacher feedback on the states it actually visits. MiMo-V2-Flash introduces multi-teacher OPD, where domain-specialized teachers provide token-level supervision to one student. KAT-Coder-V2 is the clearest agentic-coding example: it follows a "Specialize-then-Unify" recipe, trains specialists for SWE, web coding, terminal, web search, and general coding, and then consolidates them into one model through on-policy distillation. GLM-5 uses cross-stage OPD to preserve skills from earlier SFT, Reasoning RL, and General RL stages during later training, while Nemotron-Cascade 2 combines Cascade RL with multi-domain OPD from the strongest intermediate teachers. Recent OPD analyses distinguish general success conditions, failure modes, and open problems. More specifically, OPD benefits from compatible teacher–student thinking patterns and genuinely new teacher capabilities, while off-policy cold start and teacher-aligned prompt selection can rescue failing OPD. OPCD provides the broader on-policy context distillation formulation, while CoPD studies co-evolving experts with bidirectional OPD during RLVR.

6.3. 面向 harness 功能单元的部署前训练6.3. Pre-Deployment Training for Harness Functional Units

本节要点Section at a glance

垂直能力学习训练模型在某个领域上做得更好。另一条独立的工作路线训练模型更好地使用特定的 harness 功能。

Vertical capability learning trains the model to be better at a domain. A separate line of work trains the model to use particular harness functions better.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §6.3 原文全文 · Expand the full original text

6.3. 面向 harness 功能单元的部署前训练 6.3. Pre-Deployment Training for Harness Functional Units

垂直能力学习训练模型在某个领域上做得更好。另一条独立的工作路线训练模型更好地使用特定的 harness 功能。只有当存在针对模型使用某一功能单元的显式训练信号时,我们才将之纳入本小节;纯提示或工作流工程化的 harness 组件仍属于外部路径,而非本小节讨论的对象。其目标是推理时控制:学会何时调用、调整与协调技能、记忆、工具或子智能体。子智能体编排与路由。子智能体的使用是最清晰的新兴功能单元。Chain-of-Agents 把多智能体系统蒸馏成这样的轨迹:一个模型动态激活工具智能体与角色扮演智能体,然后在可验证任务上应用智能体式 RL;其目标不再是手工编写的多智能体工作流,而是内化了“何时以及如何模拟多智能体协作”的策略。相邻的一条路线在模型组合(portfolio)之上训练编排策略。Router-R1 把多 LLM 路由与答案聚合形式化为一个序贯决策过程:路由器进行推理、调用候选模型、把它们的回答吸收进自身上下文,并在格式、结果与成本奖励下被优化。xRouter 则把编排表述为一个工具调用问题:习得的路由器可以在显式的成本感知奖励下直接作答,或者调用一个或多个外部 LLM。ToolOrchestra 把同样的思想从模型路由推广到“模型+工具”路由,在结果、效率与偏好信号下训练编排器,使“选择模型还是工具”成为被学习的单元。AgentFlow 在规划器-执行器-验证器-生成器 harness 内训练一个规划器,使用在策略的 Flow-GRPO 把轨迹级结果归因回局部规划决策。HiMA-Ecom 把同一问题垂直化:一个电商主智能体协调专门的子智能体,用 SFT 样本与联合多智能体 RL 训练这一层级结构。这些系统是早期证据,表明子智能体激活、模型路由与工具编排可以成为可训练的行为,而不是固定的提示模式。技能使用与内化。技能是参数侧训练中发展最成熟的 harness 单元。SkillRL 在 rollout 期间暴露技能库,使策略不仅学会解决任务,还学会在 RL 下检索、解释并使用与任务相关的可复用技能。Skill1 从共享的任务结果信号出发共同演化技能选择、技能使用与技能蒸馏。ARISE 增加了分层 RL 变体:技能管理器从成功的求解轨迹中生成、选择并维护技能库,而工作者策略在后续 rollout 中使用这些技能。D2Skill 维护一个动态的双粒度任务/步骤技能库,并进行效用感知的更新与检索。SKILL0 从辅助式使用走向内化:训练期间技能可用,但鼓励习得的策略在推理时以更少显式技能支持的方式行动。Skill-SD 研究一条相关路线:仅在训练时提供的技能引导被蒸馏进学生策略。OPCD 给出更一般的上下文蒸馏视角:以上下文为条件的教师可以在学生自身的轨迹上监督学生,把历史轨迹或提示内化进参数。记忆访问与经验复用。记忆训练要求策略在持久化存储之上运行,而不只是消费检索到的文本。MemSearcher 使搜索与记忆访问成为可训练行为的一部分。Agentic Memory 增加了长时域的存储、检索、更新、摘要与遗忘策略。UI-Mem 使用经验记忆引导 GUI 任务中的探索。EMPO2 利用记忆改进探索,并结合在策略与离策略更新,使智能体在有记忆或无记忆的情况下都保持稳健。SEARL 联合优化策略与工具图记忆,使先前的轨迹成为可复用的结构而非扁平日志。Agent-BRACE 给出相关的信念状态变体:训练得到的信念模型把部分观测压缩为带不确定性感知的状态断言,供策略据此行动。最后,关于经验利用的工作把“对先前经验的选择与使用”本身变成可训练的决策,而不是默认“上下文中经验越多越好”。Rethinking Experience 为选择性经验使用提供了更多证据。Traj-Evolve 给出了这种耦合的临床多智能体实例:用经过验证的患者 Experience Pool 进行检索,同时由按奖励排序的 MARL(多智能体强化学习)对工作者智能体与管理者智能体进行微调,用于纵向 EHR(电子健康记录)风险预测。RetroAgent 把回顾性一侧建立在面向在线 RL 的回顾性内在反馈与显式经验复用之上。综合来看,这些论文把 harness 组件从被动的运行时辅助手段转向可训练的接口。其边界仍然很窄:每项工作只优化一个功能单元或少数单元的组合。更广泛的 harness 训练范式很可能需要能够在真实部署中联合治理子智能体、技能、记忆、工具、权限、奖励提取、版本管理、回滚与评估的机制。

Vertical capability learning trains the model to be better at a domain. A separate line of work trains the model to use particular harness functions better. We include a function unit only when there is explicit training signal for the model's use of that unit; purely prompt- or workflow-engineered harness components remain part of the external path rather than this subsection. The target is inference-time control: learning when to call, adapt, and coordinate skills, memory, tools, or sub-agents. Sub-agent orchestration and routing. Sub-agent use is the clearest newly emerging unit. Chain-of-Agents distills multi-agent systems into trajectories where one model dynamically activates tool agents and role-playing agents, then applies agentic RL on verifiable tasks; the target is no longer a hand-written multi-agent workflow, but a policy that has internalized when and how to simulate multi-agent collaboration. A neighboring line trains the orchestration policy over a portfolio of models. Router-R1 formulates multi-LLM routing and answer aggregation as a sequential decision process: the router reasons, invokes candidate models, absorbs their responses into its context, and is optimized with format, outcome, and cost rewards. xRouter instead frames orchestration as a tool-calling problem in which the learned router can answer directly or invoke one or more external LLMs under explicit cost-aware rewards. ToolOrchestra generalizes the same idea from model routing to model-and-tool routing, training an orchestrator under outcome, efficiency, and preference signals, so the choice of model or tool becomes the learned unit. AgentFlow trains a planner inside a planner–executor–verifier–generator harness, using on-policy Flow-GRPO to assign trajectory-level outcomes back to local planning decisions. HiMA-Ecom makes the same issue vertical: an e-commerce master agent coordinates specialized sub-agents, with SFT samples and joint multi-agent RL used to train the hierarchy. These systems are early evidence that sub-agent activation, model routing, and tool orchestration can become trainable behaviors rather than fixed prompt patterns. Skill use and internalization. Skills are the most developed harness unit for parameter-side training. SkillRL exposes skill banks during rollout so the policy learns not only to solve the task, but to retrieve, interpret, and use task-relevant reusable skills under RL. Skill1 co-evolves skill selection, use, and distillation from a shared task-outcome signal. ARISE adds a hierarchical-RL variant in which a skills manager generates, selects, and maintains a skill library from successful solution traces while a worker policy uses those skills for future rollouts. D2Skill maintains a dynamic dual-granularity task/step skill bank with utility-aware updates and retrieval. SKILL0 moves from assisted use toward internalization: skills are available during training, but the learned policy is encouraged to act with less explicit skill support at inference time. Skill-SD studies a related route in which training-only skill guidance is distilled into the student policy. OPCD provides the more general context-distillation view: context-conditioned teachers can supervise the student on the student's own trajectories, internalizing historical traces or prompts into parameters. Memory access and experience reuse. Memory training asks the policy to operate over a persistent store rather than merely consume retrieved text. MemSearcher makes search and memory access part of the trainable behavior. Agentic Memory adds long-horizon store, retrieve, update, summarization, and forgetting policies. UI-Mem uses experience memory to guide exploration in GUI tasks. EMPO2 uses memory to improve exploration and combines on- and off-policy updates so agents remain robust with or without memory. SEARL jointly optimizes a policy and a tool-graph memory so prior trajectories become reusable structure rather than flat logs. Agent-BRACE shows a related belief-state variant, where a trained belief model compresses partial observations into uncertainty-aware state claims that the policy can act on. Finally, work on experience utilization makes the selection and use of prior experience itself a trainable decision, rather than assuming that more experience in context is always better. Rethinking Experience provides additional evidence for selective experience use. Traj-Evolve provides a clinical multi-agent instance of this coupling, using a verified-patient Experience Pool for retrieval while reward-ranked MARL fine-tunes worker and manager agents for longitudinal EHR risk prediction. RetroAgent grounds the retrospective side in retrospective intrinsic feedback for online RL and explicit experience reuse. Taken together, these papers shift harness components from passive runtime aids toward trainable interfaces. The boundary is still narrow: each work optimizes one functional unit or a small combination of units. A broader harness-training regime would likely need mechanisms for jointly governing sub-agents, skills, memory, tools, permissions, reward extraction, versioning, rollback, and evaluation across real deployments.

6.4. 基于智能体轨迹的部署后训练6.4. Post-Deployment Training from Agent Traces

本节要点Section at a glance

部署后系统需要同时满足两个条件:模型必须运行在一个已部署的“模型+harness+环境”栈内部,且学习信号必须来自该运行系统所产生的轨迹。

Post-deployment systems satisfy two conditions simultaneously: the model must run inside a deployed 'model+harness+environment' stack, and the learning signal must come from traces generated by that running system.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §6.4 原文全文 · Expand the full original text

6.4. 基于智能体轨迹的部署后训练 6.4. Post-Deployment Training from Agent Traces

部署后系统需要同时满足两个条件:模型必须运行在一个已部署的“模型+harness+环境”栈内部,且学习信号必须来自该运行系统所产生的轨迹。

Post-deployment systems satisfy two conditions simultaneously: the model must run inside a deployed 'model+harness+environment' stack, and the learning signal must come from traces generated by that running system.

这些轨迹不同于部署前的基准 rollout。反馈周期更长,轨迹往往跨越许多轮次或会话,学习信号相比精心整理的验证器标签更加延迟、不完整且噪声更大。它还可能同时混合多种来源:用户回复、环境状态变化、工具输出、终端或 GUI 观测、运行时错误以及后续的下游结果。最早的先驱出现在聊天场景而非智能体场景中。WildChat 提供了大规模真实的用户-聊天机器人日志。RLHI 表明,这些对话中自然的后续轮次可以转化为训练信号。但这些系统仍属于聊天机器人时代:它们从真实人类交互中学习,却不是运行于更丰富执行环境中的智能体系统。最有力的公开证据来自把训练与评估同产品化 harness 对齐的工业系统。Composer 2 是最清晰的案例:其技术报告指出,RL 在真实的 Cursor 会话中运行,使用与部署模型相同的工具与 harness。Cursor 的实时 RL 文章指出,生产 checkpoint 被提供给用户,用户响应被观测,并且这些响应被聚合为奖励信号,用于频繁的权重更新。OpenAI 的 Codex 也是相关案例:OpenAI 将 codex-1 描述为在跨环境的真实世界编码任务上使用 RL 训练。OpenAI 后来对 Codex harness 的更新则澄清了各 Codex 界面共享的 App Server 与 harness 层。更具推测性的智能体系统把同样的部署后雄心表述得更加明确。OpenClaw-RL 把实时的用户回复、工具输出以及终端或 GUI 状态变化作为部署的智能体运行时内部的在线 RL 监督。MetaClaw 勾勒了一个类似的 OpenClaw 式部署闭环:复用部署中的失败轨迹进行技能演化与轻量参数更新。关于部署后智能体训练的公开证据仍然稀少,真正的部署后智能体训练仍处于非常早期的阶段。因此,实践中的瓶颈不只是又一种策略梯度变体,而是其周围的 trace-to-update 系统:轨迹选择、大规模轨迹收集、信号提取,以及能够在推理时所用的同一 harness 内训练策略的基础设施。

These traces differ from pre-deployment benchmark rollouts. Feedback cycles are longer, trajectories often span many turns or sessions, and the learning signal is delayed, incomplete, and noisier than a curated verifier label. It may also mix several sources at once: user replies, environment state changes, tool outputs, terminal or GUI observations, runtime errors, and later downstream outcomes. The earliest precursor appears in the chat setting rather than the agent setting. WildChat provides large-scale real user–chatbot logs. RLHI shows that natural follow-up turns in those conversations can be turned into training signal. But these systems still belong to the chatbot era: they learn from real human interaction, yet they are not agentic systems operating in richer execution environments. The strongest public evidence comes from industry systems that align training and evaluation with product-like harnesses. Composer 2 is the clearest case: its technical report states that RL runs in realistic Cursor sessions using the same tools and harness as the deployed model. Cursor's real-time RL writeup states that production checkpoints are served to users, user responses are observed, and those responses are aggregated into reward signals for frequent weight updates. OpenAI's Codex is also a relevant case, as OpenAI describes codex-1 as trained with RL on real-world coding tasks across environments. OpenAI's later Codex harness update clarifies the shared App Server and harness layer across Codex surfaces. More speculative agentic systems make the same post-deployment ambition explicit. OpenClaw-RL frames live user replies, tool outputs, and terminal or GUI state changes as online RL supervision inside a deployed agentic runtime. MetaClaw sketches a related OpenClaw-like deployed loop that reuses deployed failure trajectories for skill evolution and lightweight parameter updates. Public evidence of post-deploy agent training remains sparse, and true post-deployment agent training is still at a very early stage. In practice, the bottleneck is therefore not just another policy-gradient variant, but the surrounding trace-to-update system: trajectory selection, large-scale trace collection, signal extraction, and infrastructure that can train the policy inside the same harness used at inference time.

6.5. 对实践者的启示6.5. Takeaways for Practitioners

本节要点Section at a glance

该领域已经解决的 RL 核心问题多于其周边的系统问题。只要 gym、验证器与奖励经过精心设计,部署前 RL 如今在软件工程、搜索、工具使用与 MLE(机器学习工程)上都能工作。

The field has already solved more of the RL core than of the surrounding systems problem. Pre-deployment RL now works across software engineering, search, tool use, and MLE once the gym, verifier, and reward are carefully engineered.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §6.5 原文全文 · Expand the full original text

6.5. 对实践者的启示 6.5. Takeaways for Practitioners

该领域已经解决的 RL 核心问题多于其周边的系统问题。只要 gym、验证器与奖励经过精心设计,部署前 RL 如今在软件工程、搜索、工具使用与 MLE(机器学习工程)上都能工作。更困难的部署问题是完整的 trace-to-update 流水线。部署的智能体面临四个具体工程问题:选择哪些轨迹值得用于训练、以足够规模收集这些轨迹、从混乱的交互记录中提取可用的学习信号,以及在测试时将要使用的同一 harness 内运行训练。最后一项要求尤为重要:如果训练使用简化的脚手架而推理使用真实的运行时 harness,系统就会恰恰在智能体部署后学习本应缩小差距的地方重新引入训练-测试上下文失配。SWE-chat 等数据集表明原始轨迹层正在变得可观测,但把日志转化为可训练信号仍是一个独立的系统问题。这也是通向下一章的桥梁。一旦参数更新成为可行的选项,一个更高层次的问题就不可避免:谁来决定某条经验应当作为本地 harness 工件保留,还是应当被提升为共享的模型更新?元演化智能体(meta-evolving agent)一章直接讨论了这个问题。关于这些更新是否随时间保持能力的度量,则在第 8 节再次讨论。

The field has already solved more of the RL core than of the surrounding systems problem. Pre-deployment RL now works across software engineering, search, tool use, and MLE once the gym, verifier, and reward are carefully engineered. The harder deployment problem is the full trace-to-update pipeline. A deployed agent faces four concrete engineering problems: selecting which trajectories are worth training on, collecting such trajectories at sufficient scale, extracting usable learning signals from messy interaction records, and running training inside the same harness that will be used at test time. The last requirement is especially important: if training uses a simplified scaffold while inference uses the real runtime harness, the system reintroduces a train–test context mismatch exactly where agentic post-deployment learning is supposed to reduce it. Datasets such as SWE-chat indicate that the raw trace layer is becoming observable, but turning logs into trainable signals remains a separate systems problem. This is also the bridge to the next chapter. Once parameter updates become a live option, a higher-level question becomes unavoidable: who decides whether a lesson should stay as a local harness artifact or be promoted into a shared model update? The meta-evolving-agent chapter takes up that question directly. Measuring whether those updates retain capability across time is then picked up again in Section 8.

第 7 章 · 元演化智能体:谁来控制该演化什么7. Meta-Evolving Agents: Who Controls What to Evolve

7.1. 部署后智能体演化的三种范式7.1. Three Regimes of Post-Deployment Agent Evolution

📚 第 7 章总览 · 手写精读(本章主旨与各小节导读)

本章主旨:谁控制演化什么?三体制——TaskAgent 自我演化(改内容资产)、TaskAgent 元学习(改执行机制/改进策略,控制环仍在任务内)、元演化(持久元层接管机制/策略/元层自身)。两轴地图(演化什么 × 谁控制,图 8)。最难的是元层自身可演化:系统失去固定优化器提供的稳定参照(自指两难)。

  • 7.1 三体制与判据(控制权归属);
  • 7.2 TaskAgent 元学习(执行机制与改进策略两线);
  • 7.3 元演化(机制/策略/元层三列 + 自指问题)。

The point of this chapter: who controls what to evolve? Three regimes — TaskAgent self-evolution (content assets), TaskAgent meta-learning (execution mechanisms and improvement strategies, with the control loop still inside the task agent), and meta-evolution (a persistent meta-layer takes over mechanisms, strategies, or the meta-layer itself). The two-axis map (what evolves × who controls, Figure 8). The hardest cell is a meta-layer that can evolve itself: the system loses the stable reference that a fixed optimizer provides (the self-reference dilemma).

  • 7.1 The three regimes and the criterion (who owns the control loop);
  • 7.2 TaskAgent meta-learning (execution mechanisms and improvement strategies);
  • 7.3 Meta-evolution (mechanisms / strategies / the meta-layer itself, plus self-reference).

本节要点Section at a glance

任务智能体自我演化。任务智能体自我演化是这样一种范式:任务智能体把部署后的经验转化为自身持久的内容资产,以供日后使用。

TaskAgent self-evolution. TaskAgent self-evolution is the regime in which the TaskAgent converts post-deployment experience into its own durable content assets for later use.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §7.1 原文全文 · Expand the full original text

7. 元演化智能体:谁来控制该演化什么 7. Meta-Evolving Agents: Who Controls What to Evolve

先前各章研究了经验如何通过更新其资源与策略来改变 TaskAgent(任务智能体)——即部署系统中面向任务的那一部分。本章提出一个更高层次的问题:当改进本身成为优化对象时,谁控制更新过程,该过程的哪些部分被允许改变?沿着这两个轴,部署后的 Agentic AI 演化被组织为三种范式(regime):TaskAgent self-evolution(任务智能体自我演化)、TaskAgent meta-learning(任务智能体元学习)与元演化智能体,如图 8 所总结。第 7.1 节定义这三种范式及其边界。第 7.2 节与第 7.3 节分别综述任务智能体层面的元学习与元演化智能体。本章最后讨论当前局部元演化与通用元演化理想之间的差距。

The preceding chapters studied how experience changes the TaskAgent, the task-facing part of the deployed system, by updating its resources and policies. This chapter asks a higher-level question: when improvement itself becomes an object of optimization, who controls the update process and what parts of that process are allowed to change? Along these two axes, post-deployment Agentic AI evolution is organized into three regimes: TaskAgent self-evolution, TaskAgent meta-learning, and meta-evolving agents, as summarized in Figure 8. Section 7.1 defines these three regimes and their boundaries. Sections 7.2 and 7.3 review TaskAgent-level meta-learning and meta-evolving agents, respectively. The chapter closes by discussing the gap between current local meta-evolution and the ideal of general meta-evolution.

Figure 8: Two-axis map of post-deployment agentic AI evolution regimes
Two-axis map of post-deployment agentic AI evolution regimes. Columns indicate what
图释:两轴体制地图:横轴“演化什么”(内容资产/机制结构/改进策略/元层自身),纵轴“谁控制”(TaskAgent 内控/持久元层控制)——左上自我演化、上中 TaskAgent 元学习、下排元演化的机制/策略/元层三列(MetaClaw、Autogenesis、Hyperagents 等)。

7.1. 部署后智能体演化的三种范式 7.1. Three Regimes of Post-Deployment Agent Evolution

任务智能体自我演化。任务智能体自我演化是这样一种范式:任务智能体把部署后的经验转化为自身持久的内容资产,以供日后使用。演化的实质对象是任务智能体的可复用资产,包括技能内容、记忆资产、用户偏好与经验摘要、结构化的领域或任务知识,以及子智能体工件。这一范式是前述各界面特定章节的主要关注点。任务智能体元学习。任务智能体自我演化通过积累内容资产来增强智能体,而任务智能体元学习则通过改变其执行机制或改进策略来增强它。从这个意义上说,它在部署的智能体环境中实例化了经典的“学会如何学习”(learning how to learn)元学习思想。演化的实质对象从任务智能体知道什么,转向它如何行动或如何改进。一种形式改进执行机制或结构,包括记忆检索、技能使用、上下文构建、工作流或路由以及策略参数。另一种形式修改改进策略:如何抽象失败、如何触发与验证更新,以及如何保留有用的改动。在这两种形式中,控制闭环都保持在任务智能体或其面向任务的 harness 内部。元演化智能体。与任务智能体元学习相比,元演化智能体有两处不同。第一,演化过程被组织为一个持续的、专门的优化任务,置于功能上独立的 meta-layer(元层)控制之下。该元层的主要职责不是解决当前面向用户的任务。第二,元演化智能体扩展了可演化对象的范围。它保留任务智能体的执行机制或结构及其改进策略作为演化对象,同时使元层自身也可演化,包括其状态、规则、评估协议、选择策略或控制机制。

TaskAgent self-evolution. TaskAgent self-evolution is the regime in which the TaskAgent converts post-deployment experience into its own durable content assets for later use. The substantive object of evolution is the TaskAgent's reusable assets, including skill contents, memory assets, user preferences and experience summaries, structured domain or task knowledge, and subagent artifacts. This regime has been the primary focus of the preceding surface-specific chapters. TaskAgent meta-learning. While TaskAgent self-evolution strengthens the agent by accumulating content assets, TaskAgent meta-learning strengthens it by changing its execution mechanisms or improvement strategies. In this sense, it instantiates the classical meta-learning idea of "learning how to learn" in a deployed agent setting. The substantive object of evolution shifts from what the TaskAgent knows to how it acts or how it improves. One form improves execution mechanisms or structures, including memory retrieval, skill use, context construction, workflow or routing, and policy parameters. The other modifies the improvement strategy: how failures are abstracted, updates are triggered and validated, and useful changes are retained. In both forms, the control loop remains inside the TaskAgent or its task-facing harness. Meta-evolving agent. Compared with TaskAgent meta-learning, a meta-evolving agent differs in two ways. First, the evolution process is organized as an ongoing, dedicated optimization task under the control of a functionally distinct meta-layer. This meta-layer is not primarily responsible for solving the current user-facing task. Second, a meta-evolving agent extends the scope of what can evolve. It retains the TaskAgent's execution mechanisms or structures and its improvement strategies as evolution objects, while also making the meta-layer itself evolvable, including its state, rules, evaluation protocols, selection policies, or control mechanisms.

7.2. 任务智能体元学习7.2. TaskAgent Meta-Learning

本节要点Section at a glance

任务智能体元学习介于内容层面的任务智能体自我演化与由元层治理的元演化智能体之间。

TaskAgent meta-learning sits between content-level TaskAgent self-evolution and meta-layer-governed meta-evolving agents.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §7.2 原文全文 · Expand the full original text

7.2. 任务智能体元学习 7.2. TaskAgent Meta-Learning

任务智能体元学习介于内容层面的任务智能体自我演化与由元层治理的元演化智能体之间。

TaskAgent meta-learning sits between content-level TaskAgent self-evolution and meta-layer-governed meta-evolving agents.

7.2.1. 任务智能体内部对执行机制的控制 7.2.1. TaskAgent-Internal Control over Execution Mechanisms

一组方法改进智能体的执行机制,包括求助、经验调用、技能选择以及策略层面的技能使用。MetaAgent 从一个极简的“推理-求助-回答”(reason–help–answer)循环出发,通过自我反思、答案验证与工具使用轨迹对其加以改进。它习得的规则塑造了后续的判断:何时寻求外部帮助、如何路由求助请求,以及如何把失败的轨迹转化为可复用的推理指导。ExpWeaver 针对的是另一种执行机制:推理过程中应在何时调用积累的经验。通过习得在不确定决策点上的选择性调用,它改进的是经验的利用率而非经验内容本身。ARISE 通过一个共享的 Skills-Manager/Worker 策略,联合演化技能库以及选择、生成与使用技能的机制。SAGE-SkillLib 把这种执行机制视角表述得更加明确:Sequential Rollout 让后续任务接触到早期任务中生成、更新或保存的技能,而整合了技能信号的奖励与 GRPO 则训练策略更可靠地生成、调用、更新与保留技能。D2Skill 给出了同一思想的双粒度版本。它维护任务级与步骤级技能,从成对的基线 rollout 与注入技能的 rollout 中估计事后效用(hindsight utility),并用这些信号更新技能效用、指导检索与剪枝、优化技能增强的策略。Skill1 进一步把技能选择、利用与蒸馏统一在任务结果反馈之下。在这些系统中,技能库仍然是一个不断演化的工件,但机制层面的实质性变化在于:任务智能体在任务执行过程中如何选择、使用、维护与参数化技能。

One group of methods improves the agent's execution mechanisms, including help-seeking, experience invocation, skill selection, and policy-level skill use. MetaAgent starts from a minimal reason–help–answer loop and improves it through self-reflection, answer verification, and tool-use traces. Its learned rules shape later judgments about when to ask for external assistance, how to route help requests, and how to turn failed trajectories into reusable reasoning guidance. ExpWeaver targets a different execution mechanism: when accumulated experience should be invoked during reasoning. By learning selective invocation at uncertain decision points, it improves experience utilization rather than experience content. ARISE jointly evolves the skill library and the mechanisms for selecting, generating, and using skills through a shared Skills-Manager/Worker policy. SAGE-SkillLib makes this execution-mechanism view more explicit: Sequential Rollout exposes later tasks to skills generated, updated, or saved in earlier tasks, while skill-integrated rewards and GRPO train the policy to generate, call, update, and preserve skills more reliably. D2Skill adds a dual-granularity version of the same idea. It maintains task-level and step-level skills, estimates hindsight utility from paired baseline and skill-injected rollouts, and uses those signals to update skill utilities, guide retrieval and pruning, and optimize a skill-augmented policy. Skill1 further unifies skill selection, utilization, and distillation under task-outcome feedback. In these systems, the skill bank is still an evolving artifact, but the substantive mechanism-level change is how the TaskAgent selects, uses, maintains, and parameterizes skills during task execution.

7.2.2. 任务智能体内部对改进策略的控制 7.2.2. TaskAgent-Internal Control over Improvement Strategies

第二组方法针对的则是任务智能体如何学会改进。Multi-Agent SAGE 训练一个共享骨干的系统,使其依条件扮演挑战者、规划者、求解者与批评者四种角色。挑战者生成更困难的任务,规划者把任务转化为中间推理计划,批评者在问题与计划成为训练信号之前加以过滤,求解者则在可验证奖励下进行更新。其改进对象是用于构建未来学习压力的内部改进策略,包括课程构建、训练数据选择以及对自生成学习信号的验证。Ace-Skill 把这一思想转移到多模态工具使用引导(bootstrapping)上:优先采样与聚类组织分配自我演化的投入并减少干扰。其改进对象是选择学习样本与组织可复用知识的内部策略。SkillRL 把轨迹抽象与参数更新连接起来:它把成功和失败的回合蒸馏进一个层级式 SkillBank,使用自适应检索与冷启动 SFT 教会模型如何解释和应用技能,然后在验证失败后递归地新增或精化技能的同时应用 GRPO。其核心元学习信号是这样一种改进策略:把验证失败转化为递归的技能修订与技能增强的策略更新。两组方法都超越了内容积累:一组改变任务智能体如何行动,另一组改变任务智能体如何学会改进。然而,控制闭环仍归属于任务智能体的执行或训练过程。

A second group instead targets how the TaskAgent learns to improve. Multi-Agent SAGE trains a shared-backbone system conditioned as challenger, planner, solver, and critic. The challenger generates harder tasks, the planner turns them into intermediate reasoning plans, the critic filters questions and plans before they become training signals, and the solver updates under verifiable rewards. Its improved object is the internal improvement strategy for constructing future learning pressure, including curriculum construction, training-data selection, and validation of self-generated learning signals. Ace-Skill shifts this idea to multimodal tool-use bootstrapping: prioritized sampling and clustered organization allocate self-evolution effort and reduce interference. The improved object is the internal strategy for choosing learning samples and organizing reusable knowledge. SkillRL connects trajectory abstraction to parameter updates: it distills successful and failed episodes into a hierarchical SkillBank, uses adaptive retrieval and cold-start SFT to teach the model how to interpret and apply skills, and then applies GRPO while recursively adding or refining skills after validation failures. Its central meta-learning signal is the improvement strategy that converts validation failures into recursive skill revision and skill-augmented policy updates. Both groups go beyond content accumulation: one changes how the TaskAgent acts, and the other changes how the TaskAgent learns to improve. However, the control loop still belongs to the TaskAgent's execution or training process.

7.3. 元演化智能体7.3. Meta-Evolving Agents

本节要点Section at a glance

在元演化智能体中,改进任务智能体不再仅仅是行动或训练的内部副产品,而成为由功能上独立的元层控制的持续优化任务。该元层利用从执行、评估、反馈与先前改进尝试中积累的证据,持续改进任务智能体或改进其自身。

In a meta-evolving agent, improving the TaskAgent is no longer only an internal side effect of acting or training; it becomes an ongoing optimization task controlled by a functionally distinct meta-layer. This meta-layer continually improves the TaskAgent or itself using evidence accumulated from execution, evaluation, feedback, and prior improvement attempts.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §7.3 原文全文 · Expand the full original text

7.3. 元演化智能体 7.3. Meta-Evolving Agents

在元演化智能体中,改进任务智能体不再仅仅是行动或训练的内部副产品,而成为由功能上独立的元层控制的持续优化任务。该元层利用从执行、评估、反馈与先前改进尝试中积累的证据,持续改进任务智能体或改进其自身。在综述核心的元演化智能体系统之前,我们先将它们与智能体系统中两种相邻的优化用法区分开来。关键问题是:优化闭环在部署之后是否仍作为一个改进任务智能体的独立元层保持活跃。设计期或基准期搜索方法在部署之前或一次有界的行动(bounded campaign)内优化一个智能体工件。有些工作搜索记忆设计或记忆程序;另一些则搜索 harness 代码、工作流图或智能体架构。RoboPhD 把这种设计期视角扩展到固定评估预算下开放式的智能体/代码工件演化。这些工作表明智能体的各个界面可以被搜索,但搜索闭环通常在产出工件之后就停止。可学习的任务期编排器优化用于解决当前请求的控制策略。FlowReasoner、MetaGen 与 GraphPlanner 生成针对具体查询的工作流、角色、拓扑或路由计划。ROMA 强调递归分解与聚合,而 SkillOrchestra 与 AOrchestra 学习技能感知的路由或子智能体委派。Puppeteer 学习多智能体协作的调度、终止与协调策略。只有当独立的元层把编排器本身当作长期、跨任务改进的对象时,这类编排器才进入元演化智能体范式。接下来,我们按照元层使什么可演化来组织元演化智能体方面的工作。

In a meta-evolving agent, improving the TaskAgent is no longer only an internal side effect of acting or training; it becomes an ongoing optimization task controlled by a functionally distinct meta-layer. This meta-layer continually improves the TaskAgent or itself using evidence accumulated from execution, evaluation, feedback, and prior improvement attempts. Before reviewing core meta-evolving-agent systems, we separate them from two adjacent uses of optimization in agent systems. The key question is whether the optimization loop remains active after deployment as a distinct meta-layer for improving the TaskAgent. Design-time or benchmark-time search methods optimize an agent artifact before deployment or within a bounded campaign. Some search memory designs or memory programs; others search harness code, workflow graphs, or agent architectures. RoboPhD broadens this design-time view to open-ended agent/code artifact evolution under a fixed evaluation budget. These works show that agent surfaces can be searched, but the search loop usually stops after producing the artifact. Learnable task-time orchestrators optimize the control policy used to solve the current request. FlowReasoner, MetaGen, and GraphPlanner generate query-specific workflows, roles, topologies, or routing plans. ROMA emphasizes recursive decomposition and aggregation, while SkillOrchestra and AOrchestra learn skill-aware routing or sub-agent delegation. Puppeteer learns scheduling, termination, and coordination policies for multi-agent collaboration. Such orchestrators enter the meta-evolving-agent regime only when a distinct meta-layer treats the orchestrator itself as an object of long-term, cross-task improvement. We next organize meta-evolving-agent works by what the meta-layer makes evolvable.

7.3.1. 元层对执行机制的控制 7.3.1. Meta-Layer Control over Execution Mechanisms

第一条路线探讨元层如何接管任务智能体行动所依据的机制。机制层面的演化关乎支配 harness 组件如何被使用的规则、生命周期、状态与更新路径。我们按照元层所干预的任务智能体执行机制的范围与持久性来组织这一文献。可演化的局部控制策略。机制演化最局部化的形式是把某一 harness 界面上的一条控制规则变成可优化对象。MetaMem 使用自反思的元记忆优化,把事实记忆与元记忆分开:事实记忆存储任务事实,而元记忆存储“在后续任务中使用记忆”的规则。反思与评判者反馈修订这些元记忆规则,而非仅仅追加更多记录。MemSkill 把记忆技能设计暴露给外层的 Designer,将提取、整合、保留与遗忘组织为一个由选择器控制的可演化记忆技能库。CluE 把同一思想收窄为围绕记忆提取的提示演化循环:在异构任务反馈下维护聚类池、候选提示与最优提示。Meta Context Engineering 把同样的模式应用到上下文构建上:外层演化器根据 rollout 反馈重写基础智能体的上下文学习技能,因此演化对象是表示、更新与组织上下文的机制。在这一粒度上,元层控制首先表现为用于提取、选择、构建与调用信息的可编辑策略。受治理的能力资源生命周期。Mem2Evolve 结合 Asset Memory 与 Experience Memory,使工具代码、专家智能体规格说明以及工具或智能体经验可以在前向推理期间被创建,随后由反向演化层进行验证、自我修正、蒸馏并写回。因此,演化对象是工具与专家智能体的“创建-复用”机制,而不仅仅是累积的资产清单。MetaClaw 通过一个基于代理的演化层把生命周期控制延伸到真实部署中,该层有两条路径:快速的技能演化路径把失败轨迹转化为立即可用的外部技能,较慢的策略整合路径把适配后的轨迹送入基座策略的 LoRA 或 GRPO 更新。Continual Harness 把同样的生命周期视角带给具身智能体。在单个连续回合中,Refiner 读取近期的轨迹窗口,对系统提示、子智能体、技能与记忆施加 CRUD(增删改查)编辑;其协同学习变体还会从重新标注的 rollout 中更新模型权重。Agentic Harness Engineering 把这种生命周期视角推广到编码智能体的 harness 组件。它把 harness 分解为可编辑的文件级资源,如工具、中间件、技能、子智能体配置与长期记忆;Agent Debugger 把长轨迹蒸馏为证据,Evolve Agent 则用与后续任务结果核对过的预测来编辑 harness。在这些工作之中,元层治理能力资源的生命周期,从创建与复用一直到修订与整合。持久化的组织与认知状态。HERA 使用一个 Orchestrator 与一个 Experience Library,作为多智能体 RAG 系统之上的持久控制层。Orchestrator 依据查询、智能体池与经验库生成针对具体查询的拓扑;Experience Library 按效用维护轨迹反思得到的洞见;Execution Agents 的提示在反馈下演化。AutoAgent 同样在显式的、可更新的认知状态周围放置一个 Evolution Cycle。其 Execution Cycle 推进当前任务,而其 Evolution Cycle 摘要化轨迹、对齐预期行动与实际结果,并把修订写入工具前置条件、同伴画像、技能模板、复合动作或记忆编排策略。这些系统把元层控制从局部规则与资源,推进到跨未来任务持续存在的智能体组织、认知状态与跨智能体经验。证据驱动的领域与参数整合。一个分支把执行证据整合进领域特定状态。Milkyway 把这一模式应用于未来预测:一个持久化的 harness 追踪不断演化的证据,并通过时间对比与回顾性反馈修订尚未解决的预测。KernelBlaster 把同一思想应用于 CUDA 内核优化,维护一个以剖析器为条件的记忆,存储优化策略与已观测到的收益,供后续内核使用。第二个分支把执行证据与工作流记忆以及参数或策略更新连接起来。Memory Intelligence Agent 使用 Memory Manager、Judger 与 TTRL 更新通道,把轨迹压缩为工作流记忆与对比式计划,同时更新 Planner 参数。OpenClaw-RL 把这条整合路径推进到策略学习:动作之后的下一状态信号被转化为过程奖励或 token 级监督,用于异步策略更新。综合起来,这些系统展示了元层如何把执行证据转化为持久化的领域状态、工作流记忆、奖励信号或策略 checkpoint。

The first line asks how a meta-layer can take control of the mechanisms by which a TaskAgent acts. Mechanism-level evolution concerns the rules, lifecycles, states, and update paths that govern how harness components are used. We group this literature by scope and persistence of the mechanisms that the meta-layer intervenes in the TaskAgent's execution mechanisms. Evolvable local control policies. The most localized form of mechanism evolution turns a control rule on one harness surface into an optimizable object. MetaMem uses self-reflective meta-memory optimization to separate factual memory from meta-memory: factual memory stores task facts, whereas meta-memory stores rules for using memory in later tasks. Reflection and judge feedback revise these meta-memory rules rather than merely adding more records. MemSkill exposes memory-skill design to an outer Designer, organizing extraction, integration, retention, and forgetting as an evolvable memory skill bank controlled by a selector. CluE narrows the same idea to a prompt-evolution loop around memory extraction, maintaining cluster pools, candidate prompts, and a best prompt under heterogeneous task feedback. Meta Context Engineering applies the same pattern to context construction: an outer evolver rewrites a base agent's context-learning skill from rollout feedback, so the object of evolution is the mechanism for representing, updating, and organizing context. At this granularity, meta-layer control first appears as editable policies for extracting, selecting, constructing, and invoking information. Governed capability-resource lifecycles. Mem2Evolve combines Asset Memory and Experience Memory so that tool code, expert-agent specifications, and tool or agent experience can be created during forward inference, then verified, self-corrected, distilled, and written back by a backward evolution layer. The evolving object is therefore the creation-and-reuse mechanism for tools and expert agents, not merely the accumulated asset list. MetaClaw extends lifecycle control into real deployment through a proxy-based evolution layer with two paths: a fast skill-evolution path that turns failure trajectories into immediately usable external skills, and a slower policy-consolidation path that feeds post-adaptation trajectories into LoRA or GRPO updates of the base policy. Continual Harness brings the same lifecycle view to embodied agents. During a single continuous episode, a Refiner reads recent trajectory windows and applies CRUD edits to the system prompt, sub-agents, skills, and memory; its co-learning variant also updates model weights from relabeled rollouts. Agentic Harness Engineering generalizes this lifecycle view to coding-agent harness components. It decomposes the harness into editable file-level resources such as tools, middleware, skills, sub-agent configurations, and long-term memory; an Agent Debugger distills long trajectories into evidence, and an Evolve Agent edits the harness with predictions that are checked against later task outcomes. Across these works, the meta-layer governs the lifecycle of capability resources, from creation and reuse to revision and consolidation. Persistent organizational and cognitive state. HERA uses an Orchestrator and an Experience Library as a persistent control layer over a multi-agent RAG system. The Orchestrator generates query-specific topologies from the query, agent pool, and experience library; the Experience Library maintains trajectory-reflection insights by utility; and Execution Agents' prompts evolve under feedback. AutoAgent similarly places an Evolution Cycle around explicit, updateable cognition state. Its Execution Cycle advances the current task, while its Evolution Cycle summarizes trajectories, aligns intended actions with actual outcomes, and writes revisions into tool prerequisites, peer profiles, skill templates, composite actions, or memory-orchestration strategies. These systems move meta-layer control from local rules and resources to agent organization, cognition state, and cross-agent experience that persist across future tasks. Evidence-driven domain and parameter consolidation. One branch consolidates execution evidence into domain-specific state. Milkyway applies this pattern to future prediction, where a persistent harness tracks evolving evidence and revises unresolved predictions through temporal contrast and retrospective feedback. KernelBlaster applies the same idea to CUDA kernel optimization, maintaining a profiler-conditioned memory of optimization strategies and observed gains for later kernels. A second branch connects execution evidence to workflow memory and parametric or policy updates. Memory Intelligence Agent uses a Memory Manager, Judger, and TTRL update channel to compress trajectories into workflow memory and contrastive plans while updating Planner parameters. OpenClaw-RL pushes this consolidation path into policy learning: next-state signals after actions are converted into process rewards or token-level supervision for asynchronous policy updates. Together, these systems show how a meta-layer can turn execution evidence into persistent domain state, workflow memory, reward signals, or policy checkpoints.

7.3.2. 元层对改进策略的控制 7.3.2. Meta-Layer Control over Improvement Strategies

第二条路线把元层控制从执行机制转移到任务智能体的改进策略上。在这里,元层治理来自先前改进尝试的证据如何转化为候选改动:如何抽象失败、如何选择干预界面、如何生成修复,以及如何验证、保留或回滚所提议的编辑。MetaEvo 在基于原则的自我修正周围放置一个元优化循环。该循环比较较强与较弱的修正原则,提升模型从失败轨迹中抽象出高质量原则的能力,并把所得原则存储起来供日后检索。演化对象是任务智能体的改进策略:它如何从失败中学习、抽象出可复用的修正原则,并把它们应用于未来的修复。SkillOS 给出了这一范式的一个具体技能策展(skill curation)实例。它把 Agent Executor 冻结为任务求解一侧,并在持久化的 SkillRepo 之上训练一个单独的 Skill Curator 作为元层。在分组任务流中,执行器使用仓库求解任务,而以执行器为基的复合奖励把下游任务结果、操作有效性、压缩与内容质量归因到策展者的插入、更新与删除决策上。演化的策略是技能策展本身:策展者如何从执行器反馈中学习,以决定哪些技能应被插入、修订、移除或为未来任务保留。Autogenesis 把任务智能体改进表述为一个受协议治理的演化循环。RSPL 把提示、智能体、工具、环境与记忆表示为带版本的资源,而 SEPL 定义更新这些资源的“反思-选择-改进-评估-提交”(reflect-select-improve-evaluate-commit)循环。因此,元层就是由 SEPL 在 RSPL 资源之上治理的 AGS 循环。演化对象是作用于任务智能体资源的改进流程:异构状态如何被暴露以供编辑、候选修改如何经由评估被路由,以及被接受的改动如何成为下一版任务智能体。

The second line shifts meta-layer control from execution mechanisms to the TaskAgent's improvement strategies. Here, the meta-layer governs how evidence from prior improvement attempts is turned into candidate changes: how failures are abstracted, intervention surfaces are chosen, repairs are generated, and proposed edits are validated, retained, or rolled back. MetaEvo places a meta-optimization loop around principle-based self-correction. The loop compares stronger and weaker correction principles, improves the model's ability to abstract high-quality principles from failure trajectories, and stores the resulting principles for later retrieval. The evolving object is the TaskAgent's improvement strategy: how it learns from failures, abstracts reusable correction principles, and applies them to future repairs. SkillOS provides a concrete skill-curation instance of this regime. It keeps an Agent Executor frozen as the task-solving side and trains a separate Skill Curator as the meta-layer above a persistent SkillRepo. Across grouped task streams, the executor uses the repository to solve tasks, while executor-grounded composite rewards assign downstream task outcomes, operation validity, compression, and content quality to the curator's insert, update, and delete decisions. The evolving strategy is skill curation itself: how the curator learns from executor feedback to decide which skills should be inserted, revised, removed, or preserved for future tasks. Autogenesis formulates TaskAgent improvement as a protocol-governed evolution loop. RSPL represents prompts, agents, tools, environments, and memory as versioned resources, while SEPL defines the reflect-select-improve-evaluate-commit loop by which they are updated. Thus, the meta-layer is the AGS loop governed by SEPL over RSPL resources. The evolving object is the improvement procedure over TaskAgent resources: how heterogeneous states are exposed for editing, how candidate modifications are routed through evaluation, and how accepted changes become the next TaskAgent version.

7.3.3. 改进元层自身 7.3.3. Improving the Meta-Layer Itself

最后一条路线把元层本身变成演化对象。元层的状态、策略或控制规则被更新,使改进过程本身能够随时间变得更加有效。Agent0 与 Tool-R0 通过课程与任务合成实例化元层自我改进。在 Agent0 中,一个 Curriculum Agent 充当 Executor Agent 之上的元层,生成接近执行器能力边界的训练任务。Tool-R0 给出工具使用侧的对应方案:任务生成器、验证器与过滤规则构成围绕工具使用 Solver 的元层。在这两个系统中,演化的元层对象是课程或任务合成策略:不确定性估计、工具使用频率、重复惩罚、交叉验证与难度过滤器决定哪些边界任务被保留用于后续训练。因此,来自先前学习轮次的证据会改变元层为任务智能体制造未来改进机会的方式。Group-Evolving Agents 把这种自指涉从任务合成转移到群体层面的改进状态。TaskAgents 是不断演化的智能体群组,接受工作流、工具使用、提示或代码层面的编辑。在其之上,元层是由归档库、父代选择过程、共享经验池、反思模块与评估-保留逻辑构成的群体层面改进循环。随着代码补丁、任务成功向量、归档谱系与共享父代经验的累积,它们重塑了元层状态,而该状态决定哪些父代与经验为日后的自我改进提供种子。尽管直接编辑仍然落在任务智能体组件上,未来改进尝试的分布本身也在被更新。Hyperagents 把这一思想推进得更远,是当前自指涉元演化的核心例子之一。其前提是:如果任务智能体可编辑但改进流程由手工固定,系统就仍然是有界的。因此,Hyperagents 把任务求解智能体与自我改进智能体置于同一个可编辑的程序空间中。在 DGM-Hyperagents 中,基于归档的外层循环选择父代、生成子代、评估子代并将其放回归档,而内部 hyperagent 可以通过 bash 与编辑器工具修改自身代码库。Hyperagents 把可编辑程序空间扩展到 task_agent.py 之外:meta_agent.py、提示模板、记忆、性能追踪、评估分析、偏差检测与父代选择逻辑也可以被搜索和重写。其 improvement-at-k 指标同样把评估从当前任务智能体本身,转移到元层在固定修改预算下产生更好后代的能力。综合起来,这些系统把可演化边界从任务智能体扩展到产生未来改进的元层,但当前系统仍倾向于在单一主导通道内优化。理想的元演化智能体会把跨任务智能体内容资产、执行机制或结构、改进策略与元层机制的演化视为一个统一的可学习控制问题。其元层将决定何时何地干预,然后评估并治理由此产生的改进。更重要的是,先前改进尝试的历史会精化这些决策,使改进过程本身能够随时间变得更加有效。这一理想仍然困难,因为异构的智能体状态、干预动作、证据信号、权限边界与更新时间尺度必须首先在单一系统中变得可学习、可治理。更难的问题是自指涉:一旦元层本身可以改变,系统获得了适应性,却失去了固定优化器通常提供的稳定参照。因此,核心的开放问题是构建一个自主的元演化循环,使改进智能体的过程通过演化变得越来越有效、越来越高效。

The final line turns the meta-layer itself into the object of evolution. Its state, policies, or control rules are updated so that the improvement process itself can become more effective over time. Agent0 and Tool-R0 instantiate meta-layer self-improvement through curriculum and task synthesis. In Agent0, a Curriculum Agent serves as the meta-layer above an Executor Agent and generates training tasks near the executor's capability frontier. Tool-R0 gives the tool-use counterpart, where a task generator, verifier, and filtering rules form the meta-layer around a tool-use Solver. In both systems, the evolving meta-layer object is the curriculum or task-synthesis policy: uncertainty estimates, tool-use frequency, repetition penalties, cross-verification, and difficulty filters determine which frontier tasks are retained for later training. Evidence from previous learning rounds therefore changes how the meta-layer produces future improvement opportunities for the TaskAgent. Group-Evolving Agents shift this self-reference from task synthesis to population-level improvement state. The TaskAgents are evolving agent groups that receive workflow, tool-use, prompt, or code-level edits. Above them, the meta-layer is the population-level improvement loop formed by the archive, parent-selection procedure, shared experience pool, reflection modules, and evaluation-retention logic. As code patches, task-success vectors, archive lineages, and shared parent experiences accumulate, they reshape the meta-layer state that governs which parents and experiences seed later self-improvement. Although the direct edits still land on TaskAgent components, the distribution of future improvement attempts is itself being updated. Hyperagents pushes the idea further and is one of the central current examples of self-referential meta-evolution. Its premise is that a system remains bounded if the TaskAgent is editable but the improvement procedure is fixed by hand. Hyperagents therefore places the task-solving agent and the self-improving agent inside a single editable program space. In DGM-Hyperagents, an archive-based outer loop selects parents, generates children, evaluates them, and returns them to the archive, while the inner hyperagent can modify its own codebase through bash and editor tools. Hyperagents expands the editable program space beyond task_agent.py: meta_agent.py, prompt templates, memory, performance tracking, evaluation analysis, bias detection, and parent-selection logic can also be searched and rewritten. Its improvement-at-k metric likewise shifts evaluation from the current TaskAgent alone to the meta-layer's ability to produce better descendants under a fixed modification budget. Taken together, these systems extend the evolvable boundary from the TaskAgent to the metalayer that produces future improvements, yet current systems still tend to optimize within one dominant channel. An ideal meta-evolving agent would treat evolution across TaskAgent content assets, execution mechanisms or structures, improvement strategies, and meta-layer mechanisms as a unified learnable control problem. Its meta-layer would decide when and where to intervene, then evaluate and govern the resulting improvement. More importantly, the history of prior improvement attempts would refine these decisions, allowing the improvement process itself to become more effective over time. This ideal remains difficult because heterogeneous agent states, intervention actions, evidence signals, authority boundaries, and update timescales must first be made learnable and governable within one system. The harder issue is self-reference: once the meta-layer itself can change, the system gains adaptivity but loses the stable reference normally provided by a fixed optimizer. The central open problem is therefore to build an autonomous meta-evolution loop in which the process of improving agents becomes progressively more effective and more efficient through evolution.

Part IV. Measurement, Safety, and Open Problems第四部分 · 评测 · 安全 · 开放问题
第 8 章 · 度量自我改进:现有基准仍然缺失什么8. Measuring Self-Improvement: What Current Benchmarks Still Miss

8.1. 自我改进评估必须度量什么8.1. What Self-Improvement Evaluation Must Measure

📚 第 8 章总览 · 手写精读(本章主旨与各小节导读)

本章主旨:自改进评测必须测"同一演化智能体的前后故事",而非一次快照。六个最低目标:后向保持、留出集增益、纵向稳定性、改进效率、路径归因、安全不回退。三代基准(静态单任务 → 任务序列 → 显式自改进属性)仍缺纵向协议;SIP-Bench 以 T0→T1→T2 三检查点 + 五指标(FG/BR/IE/PDS/NIS)把它协议化。

  • 8.1 六个最低目标(表 4);
  • 8.2 基准全景(经典对照族/任务序列/纵向 + 证据层);
  • 8.3 SIP-Bench 协议层(分区、检查点、成本记录)。

The point of this chapter: self-improvement evaluation must measure the before/after story of one evolving agent, not a one-shot snapshot. Six minimum targets: backward retention, held-out gain, longitudinal stability, improvement efficiency, path attribution, and safety non-regression. Three generations of benchmarks (static single-task → task sequences → explicit SI properties) still lack longitudinal protocols; SIP-Bench protocolizes them with T0→T1→T2 checkpoints and five metrics (FG/BR/IE/PDS/NIS).

  • 8.1 The six minimum targets (Table 4);
  • 8.2 The benchmark landscape (classic contrast families / task sequences / longitudinal, plus the evidence layer);
  • 8.3 SIP-Bench as a protocol layer (partitions, checkpoints, cost records).

本节要点Section at a glance

第一个评估错误是把自我改进当作普通的适应后性能。智能体在适应之后能够改进的证据已经相当充分。

The first evaluation mistake is to treat self-improvement as ordinary post-adaptation performance. Evidence that agents can improve after adaptation is already strong.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §8.1 原文全文 · Expand the full original text

8. 度量自我改进:现有基准仍然缺失什么 8. Measuring Self-Improvement: What Current Benchmarks Still Miss

适应后得分更高,并不一定意味着部署系统在更新其技能、记忆、工具或权重之后整体变得更好。当前大多数基准仍然更擅长度量一次性任务的成功,而非持久的自我改进。在这里,自我改进指的是累积经验对同一个部署智能体系统产生的可度量的纵向效应。因此,本章定义了自我改进(SI)评估的最低目标,审视了当前基准仍然不足的地方,并提出了一套紧凑的报告标准。

A higher post-adaptation score does not necessarily mean that a deployed system is better overall after updating its skills, memory, tools, or weights. Most current benchmarks are still better at measuring one-off task success than durable self-improvement. Here, self-improvement refers to the measurable longitudinal effect of accumulated experience on the same deployed agent system. The chapter therefore defines the minimum targets of self-improvement evaluation, reviews where current benchmarks still fall short, and proposes a compact reporting standard.

8.1. 自我改进评估必须度量什么 8.1. What Self-Improvement Evaluation Must Measure

8.1.1. 为什么必须评估自我改进本身 8.1.1. Why Self-improvement Itself Must Be Evaluated

第一个评估错误是把自我改进当作普通的适应后性能。智能体在适应之后能够改进的证据已经相当充分。SkillsBench 报告称,经过精心整理(curated)的技能在 11 个领域的 86 个任务上平均带来 +16.2 个百分点的提升;CoEvoSkills 和 SkillNet 在系统规模上延续了这一规律。以记忆为中心的系统(如 SimpleMem、AWM 和 CER)也在不采用同一适应路径的情况下提升了长上下文或网页智能体的性能。参数路径方法同样重要:SkillRL、MetaClaw 和 Absolute Zero 在具身、编码和推理任务上报告了显著提升。这些结果证明局部能力可以改变,但它们本身并不能证明部署后的智能体作为一个系统变得更好。SI 是一种时间属性和分布属性:同一个智能体更新其技能、记忆、工具或权重,然后继续面对旧任务、新任务、漂移、成本约束和安全约束。因此,适应后得分更高可能掩盖了其他方面的退化。例如,SkillsBench 还报告了技能注入后在 84 个可直接比较任务中的 16 个上出现负迁移。这就是为什么必须评估 SI 本身:不仅仅要看智能体是否在某处有所改进,还要看同一个不断演化的智能体是否在新任务上改进、是否保留旧能力,以及是否在可接受的成本和风险下做到这些。

The first evaluation mistake is to treat self-improvement as ordinary post-adaptation performance. Evidence that agents can improve after adaptation is already strong. SkillsBench reports an average gain of +16.2 percentage points from curated skills across 86 tasks and 11 domains; CoEvoSkills and SkillNet extend that pattern at system scale. Memory-centered systems such as SimpleMem, AWM, and CER also improve long-context or web-agent performance without using the same adaptation path. Parameter-path methods matter as well: SkillRL, MetaClaw, and Absolute Zero report substantial gains on embodied, coding, and reasoning tasks. Those results establish that local capability can change. They do not by themselves establish that the deployed agent became better as a system. SI is a temporal and distributional property: the same agent updates its skills, memory, tools, or weights, and then continues to face old tasks, new tasks, drift, cost constraints, and safety constraints. A higher post-adaptation score can therefore hide regression elsewhere. SkillsBench, for example, also reports negative transfer on 16 of 84 directly comparable tasks after skill injection. That is why SI itself has to be evaluated: not just did the agent improve somewhere, but did the same evolving agent improve on new tasks, retain old capability, and do so at acceptable cost and risk?

8.1.2. 从持续学习指标到自我改进目标 8.1.2. From Continual-Learning Metrics to SI Targets

持续学习为这一问题提供了最接近的现有度量语汇。其核心关切是稳定性–可塑性权衡:自适应系统应当在不破坏旧能力的情况下学习新任务,并且先前的学习最好能帮助后续学习。对于部署后的智能体更新——例如 OpenClaw-RL、MetaClaw 或 Composer 式实时强化学习——这套语汇可以自然地映射到智能体评估上。持续学习(CL)的视角对 SI 而言是必要的,但并不充分。智能体的改进可以来自外部路径变化,如技能、记忆、工具和上下文管理,也可以来自参数路径变化,如 SFT、RL 和 LoRA。它还具有面向部署的成本和安全后果,而经典 CL 指标通常不报告这些。因此,我们以持续学习为起点,进而将其扩展为表 4 中的最低 SI 目标。就本章而言,只有当某个基准能够度量同一个演化智能体的“之前/之后”全过程,而不仅仅是某个冻结智能体的最终得分时,它才算与 SI 相关。上面的清单有意保持精简:它只标出论文在能够可信地声称智能体随时间改进之前所需的最低证据。没有旧任务回放,保持能力在构造上就是不可见的;没有留出(held-out)任务,泛化能力就是不可见的;没有成本记录,增益就难以比较;没有刷新和去污染,随着静态测试集趋于饱和,基准分数将持续衰减。

Continual learning provides the closest existing measurement vocabulary for this question. Its core concern is the stability–plasticity tradeoff: an adaptive system should learn new tasks without destroying old capability, and earlier learning should ideally help later learning. For post-deployment agent updates—for example OpenClaw-RL, MetaClaw, or Composer-style real-time RL—that vocabulary maps naturally onto agent evaluation. The CL lens is necessary but not sufficient for SI. Agent improvement can come from external-path changes such as skills, memory, tools, and context management, or from parameter-path changes such as SFT, RL, and LoRA. It also has deployment-facing costs and safety consequences that classical CL metrics usually do not report. We therefore use continual learning as the starting point, then extend it into the minimum SI targets in Table 4. For this chapter, a benchmark counts as SI-relevant only when it can measure the before/after story of one evolving agent rather than merely the final score of one frozen agent. The list above is intentionally narrow. It marks only the minimum evidence needed before a paper can plausibly claim that an agent improved over time. Without old-task replay, retention is invisible by construction. Without held-out tasks, generalization is invisible. Without cost logging, gains are hard to compare. Without refresh and decontamination, benchmark scores will keep decaying as static test sets saturate.

持续学习概念来源 / 智能体扩展
CL concept / agent-specific extension
目标
Target
核心问题
Question
要求(检查内容)
Requires / what it checks
BWT / 遗忘
BWT / forgetting
后向保持
Backward retention
适应后旧任务表现是否保持稳定?需要同一演化智能体的旧任务重放。
BWT / forgettingBackward retentionDid old-task performance stay stable after adaptation?Requires old-task replay for the same evolving agent.
FWT / 迁移
FWT / transfer
留出集增益
Held-out gain
适应后智能体在新任务上是否更好?检验适应流之外的跨任务泛化。
FWT / transferHeld-out gainIs the agent better on new tasks after adaptation?Tests cross-task generalization beyond the adaptation stream.
可塑性与不妥协性
Plasticity and intransigence
纵向稳定性
Longitudinal stability
增益能否在重放与后续重测中存活(如 T0 → T1 → T2)?检查智能体在反复更新后是否仍可适应。
Plasticity and intransigenceLongitudinal stabilityDoes the gain survive replay and later re-testing, for example T0 → T1 → T2?Checks whether the agent remains adaptable after repeated updates.
成本感知的 CL 变体
Cost-aware CL variants
改进效率
Improvement efficiency
每单位增益花了多少计算、交互与监督?区分务实的自改进与暴力优化。
Cost-aware CL variantsImprovement efficiencyHow much compute, interaction, and supervision was spent per unit of gain?Distinguishes practical SI from brute-force optimization.
经典 CL 中没有
Not in classical CL
路径归因
Path attribution
增益来自技能、记忆、工具、参数更新还是组合?使外部路径与参数路径的主张可比较。
Not in classical CLPath attributionDid the gain come from skills, memory, tools, parameter updates, or a combination?Makes external-path and parameter-path claims comparable.
可靠性 / 安全性评测
Reliability / safety evaluation
安全不回退
Safety non-regression
能力是否提升而没有让安全画像变差?若能力增益掩盖了新漏洞,则自改进不完整。
Reliability / safety evaluationSafety non-regressionDid capability improve without creating a worse safety profile?Treats SI as incomplete if capability gains hide new vulnerabilities.

表注(Table 4):自改进评测的最低目标——源自持续学习概念(BWT、FWT、可塑性/不妥协性、成本感知变体)并扩展到部署智能体系统;部署额外引入成本、路径归因与安全要求。Minimum targets for self-improvement evaluation, derived from continual-learning concepts and extended to deployed agent systems; deployment adds cost, path attribution, and safety requirements.

8.2. 当前基准格局8.2. The Current Benchmark Landscape

本节要点Section at a glance

评估范式随着智能体架构一起演进。在第一代(2023 年),基准在静态数据集上度量单任务完成情况,如 SWE-bench、WebArena 和 ALFWorld。

The evaluation paradigm has evolved alongside agent architectures. In the first generation (2023), benchmarks measured single-task completion on static datasets, such as SWE-bench, WebArena, and ALFWorld.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §8.2 原文全文 · Expand the full original text

8.2. 当前基准格局 8.2. The Current Benchmark Landscape

8.2.1. 从静态评估到面向自我改进的基准测试 8.2.1. From Static Evaluation to SI-Oriented Benchmarking

评估范式随着智能体架构一起演进。在第一代(2023 年),基准在静态数据集上度量单任务完成情况,如 SWE-bench、WebArena 和 ALFWorld。问题很简单:智能体能解决这个任务吗?到第二代(2025 年),基准开始纳入任务序列和演化结构,如 LifelongAgentBench 和 StuLife。关注点随之转向:智能体能否在一系列任务中累积能力?这是真正的进步,但评估仍然大多发生在固定检查点,并且很少直接报告保持能力。第三代(2025–2026 年)开始更明确地瞄准 SI 属性:EvoAgentBench 中的前向迁移、ClawArena 中漂移下的信念修正、SE-Bench 中的知识内化,以及 AgentMemoryBench 和 DomusMind 中的记忆保持模式。基准已变得更加动态,但它们仍然更擅长回答“智能体在这个基准上有多强?”,而不是“这个智能体是否正随时间变得更好?”

The evaluation paradigm has evolved alongside agent architectures. In the first generation (2023), benchmarks measured single-task completion on static datasets, such as SWE-bench, WebArena, and ALFWorld. The question was straightforward: Can the agent solve this task? By the second generation (2025), benchmarks had started to include task sequences and evolutionary structure, as in LifelongAgentBench and StuLife. The focus then shifted to: Can the agent accumulate capability across a sequence of tasks? That was real progress, but evaluation still mostly happened at fixed checkpoints and rarely reported retention directly. The third generation (2025–2026) starts to target SI properties more explicitly: forward transfer in EvoAgentBench, belief revision under drift in ClawArena, knowledge internalization in SE-Bench, and memory-retention modes in AgentMemoryBench and DomusMind. Benchmarks have become more dynamic, yet they are still better at answering "How strong is the agent on this benchmark?" than "Is this agent getting better over time?"

8.2.2. 基准分类体系与覆盖范围 8.2.2. Benchmark Taxonomy and Coverage

当前格局可以归为四个家族,按与 SI 度量的直接相关程度递减排序。此处目的不在于穷尽,而在于说明即使最强的基准也仍然只捕捉到 SI 故事的一部分。直接面向 SI 的基准:SkillsBench 仍然是一次性外部路径增益最清晰的基准。它在无技能、精心整理(curated)技能和自生成技能三种条件下,测试 11 个领域、由验证器评分的 86 个任务。它度量注入的技能是否有帮助、帮助多大以及何时有害;其负迁移结果尤其有价值。不过,它仍然是一次性协议而非纵向协议,且对效率或跨组件组合着墨甚少。EvoAgentBench 是当前最强的 SI 感知评估原型。聚类划分的训练/测试集、方法匹配的比较以及逐结果成本报告,使其适用于前向迁移和粗粒度效率分析。它在信息检索、数学推理、软件问题修复、竞技编程和基于文档的知识工作等方面测试智能体。正式的后向迁移(BWT)报告、组件归因以及对同一个演化智能体跨检查点的纵向追踪仍然缺失。SkillLearnBench 评估的是技能生成而非技能存在,在 20 个真实世界任务和四种生成方法上诊断完整的“生成–存储–复用”循环。其任务覆盖 15 个依赖技能的子领域,因此被评估的对象不仅是最终任务成功,还包括能否归纳出并复用有用的技能。其核心发现是:最好的自动方法只能弥合无技能与人工编写技能性能之间约 ∼45% 的差距,这指向一个不同于技能质量的、尚未解决的技能采纳问题。与 SkillsBench 一样,它在每一轮生成内部仍然是横截面的;其主要贡献在于诊断深度而非纵向追踪。SE-Bench 在围绕一个被混淆的 NumPy API(被重命名成一个伪新颖的包)构建的编程任务上测试知识内化。这隔离出一个问题:智能体能否存储并在之后使用新获得的知识,而不仅仅是检索熟悉的文档。它仍然只度量自我演化的一种机制,而非全局的部署后改进。LifelongAgentBench 在数据库、操作系统和知识图谱环境中测试基于技能、相互依赖的任务序列。它将评估推向任务序列累积,但保持能力、效率和跨论文标准化报告仍然只是部分可见。StuLife 测试一条模拟的大学生活轨迹,涵盖入学、学业发展和个人成长子场景。其价值在于记忆、技能抽象和内化被作为同一个经验驱动循环来评估;其局限在于所得的指标尚未成为共享的报告标准。动态与面向部署的基准:这一家族将部署真实性作为其明确焦点。ClawArena 突出不断演化的信息环境中的信息漂移和信念修正。它在证据、用户偏好或世界事实随时间变化的任务上测试智能体,因此成功取决于更新信念,而非仅仅执行固定计划。AgentMemoryBench 在改编自智能体和长上下文记忆设置的六个交互式任务上测试持续智能体记忆,具有离线、在线、回放、迁移和修复模式。它使遗忘和记忆修复变得可度量,但尚未形成完整的 SI 报告卡。DomusMind 测试偏好漂移、工具漂移和混合漂移下的持久智能家居控制。它的用处在于把长期存在的个性化与恢复变成明确的评估目标。tau-bench 表明,重复运行的可靠性远弱于单次运行的成功,凸显了静态基准所遗漏的部署差距。它在航空和零售领域测试多轮客户服务交互,智能体必须调用 API 同时遵守领域策略。综合来看,这些基准超越了静态任务完成。它们仍然达不到 SI 原生度量:漂移、持久性或可靠性是可见的,而保持能力、成本归一化增益和组件归因通常不可见。Claw-Eval 通过使可信评估明确化而进一步推进了这一方向。它使用执行轨迹、审计日志和环境快照,在 300 个人工验证的任务上,对完整轨迹而非仅对最终输出进行完成度、安全性和鲁棒性评分。这些任务涵盖通用服务编排、多模态感知与生成以及多轮专业对话。这种更广阔的视角对面向部署的评估很有用,尤其是因为它使轨迹质量可见。但从严格意义上说,它仍然不是 SI 基准:它不追踪留出集增益(held-out gain)、后向保持(backward retention),也不追踪同一个演化智能体跨检查点的表现。WildClawBench 瞄准真实工具条件下的自然场景(in-the-wild)评估。它横跨六个类别的 60 个任务——生产力、代码智能、社交互动、搜索与检索、创意综合和安全对齐——并报告所有前沿模型的每任务时间和成本。与 Claw-Eval 一样,它突出部署真实性;与 Claw-Eval 不同的是,它明确包含一个安全对齐类别,其中 10 个任务探测提示注入、凭据泄露和不安全输出。不过,它仍然是一次性的,没有纵向回放或留出集迁移度量。SWE-bench 及其变体 SWE-bench-Live、SWE-MERA 和 SWE-rebench 对动态性采取了不同的角度:不是改变智能体场景,而是通过持续收集和去污染来改变基准本身。SWE-bench 依据仓库测试来测试真实 GitHub issue 的解决;SWE-bench-Live 和 SWE-MERA 随时间刷新基于 issue 的软件任务;SWE-rebench 通过自动化收集流水线扩展同一思路。这证明了基准更新在大规模上是可行的,即使它本身并不构成 SI 原生评估。智能体化基准平台与互操作性:2025–2026 年的另一项独立发展是作为基础设施层的智能体化评估的兴起。在 AAA(Agentified Agent Assessment,智能体化智能体评估)范式下,基准本身被打包成一个“绿色智能体”,负责定义任务、环境和评分,而被评估系统是一个“紫色智能体”,通过标准化的 A2A 接口通信。Berkeley RDI AgentBeats 生态系统在大规模上体现了这一方法,其基准赛道涵盖编码、研究、计算机使用和多智能体评估。因此,其被评估任务由打包好的基准智能体提供,而非由某个固定数据集提供。这主要解决互操作性和可复现性;它本身并不能解决保持能力度量、成本核算或纵向回放问题。Agent World Model(AWM)合成 1,000 个可执行的、由 SQL 数据库支持的工具使用环境,通过统一的 MCP(Model Context Protocol,模型上下文协议)接口暴露,每个环境都带有自动生成的任务、模式和验证代码。这些任务是多轮工具使用问题,其奖励可以对照可执行的数据库状态进行校验。它使大规模智能体强化学习无需人工环境工程即可实现,但它解决的是环境可扩展性,而非 SI 原生度量。作为控制基线的经典基准:静态的单次基准作为对照组仍然有用,但不应被误认为 SI 原生评估。AgentBench 和 LoCoMo 分别测试多领域智能体能力和长上下文记忆。AgentBench 覆盖操作系统、数据库、知识图谱、游戏、谜题、家居、购物和浏览任务;LoCoMo 在长期多会话对话上测试长程记忆。WebArena 和 WorkArena 将网页智能体评估扩展到真实站点。WebArena 使用自托管的网页任务,如购物、论坛、代码仓库、地图和内容管理工作流,而 WorkArena 测试 ServiceNow 风格的企业知识工作任务。ALFWorld 将文本指令落实到一个具身环境中,要求智能体通过与 ALFRED 风格具身任务对齐的文字游戏状态执行家居目标。OSWorld、ToolBench、LiveCodeBench、MLE-bench 和 TheAgentCompany 同样扩展了任务真实性或领域广度。OSWorld 测试真实桌面应用工作流;ToolBench 在数千个真实 API 上测试 API 使用指令;LiveCodeBench 测试新采集的编程竞赛题目;MLE-bench 测试端到端 Kaggle 风格的机器学习工程;TheAgentCompany 测试长程办公风格工作。它们的共同点在于:它们拓宽的是“评估什么”,而不是“如何评估自我改进”。需求覆盖总结:表 5 总结了当前基准如何覆盖表 4 中定义的六个目标。AAA / AgentBeats 等智能体化平台被单独讨论,因为它们是评估协议或生态系统,而非单一基准。新的证据与可靠性层:近期若干基准和元评估论文补充了一条正交的教训:SI 评估还需要说明分数本身有多可信。AgentProp-Bench 在四个领域的 2,000 个任务和 2,300 条轨迹上测试工具使用智能体,并带有一个包含 100 条标签的人工验证子集,用于评判器可靠性审计、错误传播分析和运行时缓解。其结果不是一个新的 SI 分数;它表明简单的自动评判可能错误刻画交互式失败。有证据支持的分数边界为 AndroidWorld、AgentDojo、AppWorld、tau3-bench retail 和 MiniWoB 增加了一个结果证据层,在报告分数边界之前将每次运行强制归入证据通过、证据失败或未知三类。轨迹级一致性检验进而将可靠性视为一种统计属性,在三个智能体基准上使用语义保持的扰动,采用输出级和轨迹级指标。同样的观点也出现在组件层面。反事实轨迹审计在 49 个 SWE-Skills-Bench 软件工程任务上,用 Claude 比较带技能与不带技能的轨迹,对轨迹进行分段与对齐,并输出技能影响模式(Skill Influence Pattern)标注。通过率差值仅为 +0.3 个百分点,但审计发现了 522 个行为影响实例,说明最终得分可能遗漏巨大的轨迹变化。LongMemEval-V2 测试长期记忆是否让网页智能体表现得像一位经验丰富的同事,在长达 500 条轨迹、115M token 的历史记录上使用 451 个精心设计的问题,探测静态状态回忆、动态状态追踪、工作流知识、环境陷阱和前提感知。STALE 使用 400 个经专家验证的冲突场景和覆盖 100 多个日常主题的 1,200 个查询,测试智能体在存储的记忆失效时能否解决过期状态、抵制过时前提并调整下游行为。

The current landscape can be grouped into four families, ordered by decreasing direct relevance to SI measurement. The aim here is not exhaustiveness, but to show that even the strongest benchmarks still capture only part of the SI story. Direct SI-Oriented Benchmarks SkillsBench remains the clearest benchmark for one-shot external-path gains. It tests 86 verifier-graded tasks across 11 domains under no-skill, curated-skill, and self-generated-skill conditions. It measures whether injected skills help, how much they help, and when they hurt; its negative-transfer results are especially valuable. It remains a one-shot protocol, though, rather than a longitudinal one, and says little about efficiency or cross-component composition. EvoAgentBench is the strongest current prototype for SI-aware evaluation. Clustered train/test splits, method-matched comparison, and per-result cost reporting make it useful for forward transfer and coarse efficiency analysis. It tests agents across information retrieval, mathematical reasoning, software issue repair, competitive programming, and document-grounded knowledge work. Formal BWT reporting, component attribution, and longitudinal tracking of one evolving agent across checkpoints are still missing. SkillLearnBench evaluates skill generation rather than skill presence, diagnosing the full generate–store–reuse cycle across 20 real-world tasks and four generation methods. Its tasks cover 15 skill-dependent subdomains, so the evaluated object is not only final task success but whether useful skills can be induced and reused. Its central finding is that the best automatic method closes only ∼45% of the gap between no-skill and human-authored-skill performance, which points to an unsolved skill adoption problem distinct from skill quality. Like SkillsBench, it remains cross-sectional within each generation round; the main contribution is diagnostic depth rather than longitudinal tracking. SE-Bench tests knowledge internalization on programming tasks built around an obfuscated NumPy API renamed into a pseudo-novel package. This isolates whether an agent can store and later use newly acquired knowledge rather than merely retrieve familiar documentation. It still measures one mechanism of self-evolution rather than global post-deployment improvement. LifelongAgentBench tests skill-grounded, interdependent task sequences in database, operating system, and knowledge-graph environments. It pushes evaluation toward task-sequence accumulation, but retention, efficiency, and standardized cross-paper reporting remain only partially visible. StuLife tests a simulated college-life trajectory across enrollment, academic development, and personal-growth subscenarios. Its value is that memory, skill abstraction, and internalization are evaluated as one experience-driven loop; its limitation is that the resulting metrics are not yet a shared reporting standard. Dynamic and Deployment-Facing Benchmarks This family makes deployment realism its explicit focus. ClawArena foregrounds information drift and belief revision across evolving information environments. It tests agents on tasks where evidence, user preferences, or world facts change over time, so success depends on updating beliefs rather than only executing a fixed plan. AgentMemoryBench tests continual agent memory across six interactive tasks adapted from agent and long-context-memory settings, with offline, online, replay, transfer, and repair modes. It makes forgetting and memory repair measurable, but not yet under a full SI report card. DomusMind tests persistent smart-home control under preference drift, tool drift, and mixed drift. It is useful because it turns long-lived personalization and recovery into explicit evaluation targets. tau-bench shows that repeated-run reliability is much weaker than single-run success, highlighting a deployment gap that static benchmarks miss. It tests multi-turn customer-service interactions in airline and retail domains, where agents must call APIs while obeying domain policies. Taken together, these benchmarks move beyond static task completion. They still fall short of SI-native measurement: drift, persistence, or reliability are visible, while retention, cost-normalized gain, and component attribution are usually not. Claw-Eval pushes this line further by making trustworthy evaluation explicit. It scores completion, safety, and robustness over full trajectories rather than only final outputs, using execution traces, audit logs, and environment snapshots across 300 human-verified tasks. Those tasks span general service orchestration, multimodal perception and generation, and multi-turn professional dialogue. That broader view is useful for deployment-facing assessment, especially because it makes trajectory quality visible. But it is still not an SI benchmark in the strict sense: it does not track held-out gain, backward retention, or one evolving agent across checkpoints. WildClawBench targets in-the-wild evaluation under realistic tool conditions. It spans 60 tasks across six categories—productivity, code intelligence, social interaction, search and retrieval, creative synthesis, and safety alignment—and reports time and cost per task for all frontier models. Like Claw-Eval, it foregrounds deployment realism; unlike Claw-Eval, it explicitly includes a safety-alignment category with 10 tasks probing prompt injection, credential leakage, and unsafe outputs. It remains one-shot, though, without longitudinal replay or held-out transfer measurement. SWE-bench and its variants SWE-bench-Live, SWE-MERA, and SWE-rebench take a different angle on dynamism: rather than varying the agent scenario, they vary the benchmark itself through continuous collection and decontamination. SWE-bench tests real GitHub issue resolution against repository tests; SWE-bench-Live and SWE-MERA refresh issue-based software tasks over time; SWE-rebench scales the same idea through an automated collection pipeline. This proves that benchmark renewal is feasible at scale, even if it does not by itself constitute SI-native evaluation. Agentified Benchmark Platforms and Interoperability A separate 2025–2026 development is the rise of agentified assessment as an infrastructure layer. Under the AAA (Agentified Agent Assessment) paradigm, the benchmark itself is packaged as a green agent that defines tasks, environment, and scoring, while the evaluated system is a purple agent that communicates through a standardized A2A interface. The Berkeley RDI AgentBeats ecosystem exemplifies this approach at scale, with benchmark tracks spanning coding, research, computer use, and multi-agent evaluation. Its evaluated tasks are therefore supplied by packaged benchmark agents rather than by one fixed dataset. This primarily addresses interoperability and reproducibility; it does not by itself solve retention measurement, cost accounting, or longitudinal replay. Agent World Model synthesizes 1,000 executable, SQL database backed tool-use environments exposed via a unified MCP interface, each with auto-generated tasks, schemas, and verification code. The tasks are multi-turn tool-use problems whose rewards can be checked against executable database state. It makes large-scale agentic RL feasible without manual environment engineering, but addresses environment scalability rather than SI-native measurement. Classical Benchmarks as Control Baselines Static single-shot benchmarks remain useful as controls, but they should not be mistaken for SI-native evaluation. AgentBench and LoCoMo test multi-domain agent capability and long-context memory respectively. AgentBench covers operating-system, database, knowledge-graph, game, puzzle, household, shopping, and browsing tasks; LoCoMo tests long-range memory over long multi-session conversations. WebArena and WorkArena extend web-agent evaluation to realistic sites. WebArena uses self-hosted web tasks such as shopping, forum, repository, map, and content-management workflows, while WorkArena tests ServiceNow-style enterprise knowledge-work tasks. ALFWorld grounds text instructions in an embodied environment by asking agents to execute household goals through text-game states aligned with ALFRED-style embodied tasks. OSWorld, ToolBench, LiveCodeBench, MLE-bench, and TheAgentCompany similarly extend task realism or domain breadth. OSWorld tests real desktop application workflows; ToolBench tests API-use instructions over thousands of real APIs; LiveCodeBench tests freshly collected programming-contest problems; MLE-bench tests end-to-end Kaggle-style machine-learning engineering; and TheAgentCompany tests long-horizon office-style work. What they share is that they broaden what is evaluated more than how self-improvement is evaluated. Summary of Requirement Coverage Table 5 summarizes how current benchmarks cover the six targets defined in Table 4. Agentified platforms such as AAA / AgentBeats are discussed separately because they are evaluation protocols or ecosystems rather than single benchmarks. A New Evidence and Reliability Layer Several recent benchmarks and meta-evaluation papers add an orthogonal lesson: SI evaluation also needs to say how trustworthy the score itself is. AgentProp-Bench tests tool-using agents on 2,000 tasks and 2,300 traces across four domains, with a 100-label human-validated subset for judge-reliability audits, error-propagation analysis, and runtime mitigation. Its result is not a new SI score; it shows that simple automatic judging can mischaracterize interactive failures. Evidence-supported score bounds add an outcome-evidence layer to AndroidWorld, AgentDojo, AppWorld, tau3-bench retail, and MiniWoB, forcing each run into evidence pass, evidence fail, or unknown before reporting score bounds. Trajectory-level consistency tests then treat reliability as a statistical property, using output-level and trajectory-level metrics under semantically preserving perturbations on three agentic benchmarks. The same point appears at the component level. Counterfactual trace auditing compares with-skill and without-skill trajectories on 49 SWE-Skills-Bench software-engineering tasks with Claude, segments and aligns the traces, and emits Skill Influence Pattern annotations. The pass-rate delta is only +0.3 percentage points, but the audit finds 522 behavioral influence instances, showing that final score can miss large trajectory changes. LongMemEval-V2 tests whether long-term memory makes a web agent behave like an experienced colleague, using 451 curated questions over histories of up to 500 trajectories and 115M tokens to probe static state recall, dynamic state tracking, workflow knowledge, environment gotchas, and premise awareness. STALE uses 400 expert-validated conflict scenarios and 1,200 queries across more than 100 everyday topics to test whether agents can resolve outdated states, resist stale premises, and adapt downstream behavior when stored memories become invalid.

基准
Benchmark
年份
Year
留出集增益
Held-out gain
后向保持
Backward retention
改进效率
Improvement efficiency
路径归因
Path attribution
纵向稳定性
Longitudinal stability
安全不回退
Safety non-regression
直接 SI 导向 Direct SI-oriented (§8.2.2)
LifelongAgentBench2025◦◦××◦×
StuLife2025◦◦×◦◦×
SkillsBench2026◦◦××××
SE-Bench2026×◦××××
SkillLearnBench2026◦×◦◦××
EvoAgentBench2026◦◦◦×××
动态与部署面向 Dynamic and deployment-facing
tau-bench2024××××◦×
SWE-bench2024××××××
SWE-bench-Live2025××××◦×
SWE-MERA2025××××◦×
SWE-rebench2025××××◦×
ClawArena2026××××◦×
Claw-Eval2026××××◦◦
AgentMemoryBench2026◦◦××◦×
DomusMind2026×◦××◦×
WildClawBench2026×××××◦
Agent World Model2026××××××
证据、可靠性与过程诊断 Evidence, reliability, process-aware
Frontier-Eng2026××◦×◦×
AgentProp-Bench2026×××××◦
Evidence bounds2026××××××
Consistency tests2026××××◦×
CTA2026××◦◦××
LongMemEval-V22026×◦××◦×
STALE2026×◦××◦×
RobustBench-TC2026◦×××◦◦
CTFusion2026××××◦×

表注(Table 5):现有基准对六个自改进评测目标的覆盖(◦=部分/显式支持,×=基本缺席)。经典对照基准(AgentBench、LoCoMo、WebArena、WorkArena、ALFWorld、OSWorld、ToolBench、LiveCodeBench、MLE-bench、TheAgentCompany)未列入:它们拓展的是“评什么”,而非“如何评自改进”。Coverage against the six SI targets (◦ partial/explicit, × largely absent). Classical control baselines are omitted — they broaden what is evaluated, not how self-improvement is evaluated.

最后,评估环境正变得更加过程感知。Frontier-Eng 在五个类别的 47 个人工验证的工程优化任务上评估自演化智能体,其中智能体反复提出工件、执行工件、持续收到验证器奖励,并在固定交互预算内进行修订。RobustBench-TC 用 22 种扰动类型探测工具使用智能体的仿真到真实(sim-to-real)差距,这些扰动类型基于经核实的 GitHub issue 或已记录的工具调用失败,并按照观测、动作空间、与奖励相关的元数据和转移动态进行组织。CTFusion 通过实时 CTF 直播流评估网络安全智能体:其实验使用三个 LLM、两个智能体和五场 Live CTF,同时保持各智能体相互独立,并且每个题目只转发第一个正确 flag。综合起来,这些工作表明,未来的 SI 基准不仅应当报告增益和保持能力,还应当报告每个分数周围的证据边界。

Finally, evaluation environments are becoming more process-aware. Frontier-Eng evaluates self-evolving agents on 47 human-verified engineering optimization tasks across five categories, where agents repeatedly propose artifacts, execute them, receive continuous verifier reward, and revise under a fixed interaction budget. RobustBench-TC probes the sim-to-real gap for tool-use agents with 22 perturbation types grounded in verified GitHub issues or documented tool-calling failures, organized across observation, action-space, reward-relevant metadata, and transition dynamics. CTFusion evaluates cybersecurity agents through live CTF streaming: its experiments use three LLMs, two agents, and five Live CTFs while preserving per-agent independence and forwarding only the first correct flag per challenge. Together, these works suggest that a future SI benchmark should report not only gain and retention, but also the evidence boundary around each score.

8.3. 作为协议层的 SIP-Bench8.3. SIP-Bench as a Protocol Layer

本节要点Section at a glance

朝该方向的一项努力是 SIP-Bench,一个开源协议层,旨在把偶发性的(episodic)基准运行转变为纵向、可复现的 SI 评估。它并不意在取代 SkillsBench、EvoAgentBench 或 tau-bench 等任务基准,而是将现有基准任务加工成一个针对单个演化智能体的检查点式评估协议。

One effort in that direction is SIP-Bench, an open-source protocol layer designed to turn episodic benchmark runs into longitudinal, reproducible SI evaluation. It is not meant to replace task benchmarks such as SkillsBench, EvoAgentBench, or tau-bench.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §8.3 原文全文 · Expand the full original text

8.3. 作为协议层的 SIP-Bench 8.3. SIP-Bench as a Protocol Layer

朝该方向的一项努力是 SIP-Bench,一个开源协议层,旨在把偶发性的(episodic)基准运行转变为纵向、可复现的 SI 评估。它并不意在取代 SkillsBench、EvoAgentBench 或 tau-bench 等任务基准,而是将现有基准任务加工成一个针对单个演化智能体的检查点式评估协议。

One effort in that direction is SIP-Bench, an open-source protocol layer designed to turn episodic benchmark runs into longitudinal, reproducible SI evaluation. It is not meant to replace task benchmarks such as SkillsBench, EvoAgentBench, or tau-bench. Instead, it processes existing benchmark tasks into a checkpointed evaluation protocol for one evolving agent.

Figure 9: SIP-Bench protocol. The key idea is to evaluate one evolving
SIP-Bench protocol. The key idea is to evaluate one evolving agent across T0/T1/T2
图释:SIP-Bench 协议层:A 栏包装现有基准(不造新任务世界),B 栏纵向评测(T0 初始 → T1 适应后 → 可选漂移 → T2 漂移后,含 retain/adapt/held-out 分区),C 栏输出(归一化运行记录、可审计证据、五指标 FG/BR/IE/PDS/NIS 与三类成本)——目标:增益真实、保持、稳定、且值其成本。

它与标准持续学习基准的区别在于评估目标。持续学习主要关心学习者在遍历任务序列时是否保持稳定。SIP-Bench 保留了这一保持性问题,但把留出集泛化作为核心的 SI 检验:在适应之后,同一个演化智能体是否在那些不属于适应流的任务上有所改进?因此,该协议施加了一个 T0/T1/T2 结构,包含显式的回放/适应/留出集划分。回放度量后向保持(backward retention),适应划分记录智能体实际使用了哪些经验,留出集划分度量自我改进后的跨任务泛化。对增益、保持、稳定性、成本、路径类型和安全增量的第一类记录,使得结果可以在其他方面异构的基准环境之间进行比较。图 9 压缩展示了这一 SIP-Bench 协议。在这个意义上,SIP-Bench 与其说是现有基准的竞争者,不如说是一个候选的度量层,可以使这些基准的 SI 声明更容易比较、审计和复现。

Its difference from a standard continual-learning benchmark is the evaluation target. Continual learning mainly asks whether a learner remains stable while moving through a task sequence. SIP-Bench keeps that retention question, but makes held-out generalization the central SI test: after adaptation, does the same evolving agent improve on tasks that were not part of the adaptation stream? The protocol therefore imposes a T0/T1/T2 structure with explicit replay/adapt/held-out partitions. Replay measures backward retention, the adapt partition records what experience the agent actually used, and the held-out partition measures cross-task generalization after self-improvement. First-class records for gain, retention, stability, cost, path type, and safety delta then make the result comparable across otherwise heterogeneous benchmark environments. Figure 9 compresses this SIP-Bench protocol. In that sense, SIP-Bench is less a competitor to existing benchmarks than a candidate measurement layer that could make their SI claims easier to compare, audit, and reproduce.

第 9 章 · 安全性:自我改进作为一个移动的攻击面9. Safety: Self-Improvement as a Moving Attack Surface

9.1. 为什么自我改进改变了安全考量9.1. Why Self-Improvement Changes the Safety Calculus

📚 第 9 章总览 · 手写精读(本章主旨与各小节导读)

本章主旨:自改进把安全从"对齐一个快照"变成"治理一个过程"。五类威胁按可变表面组织:技能供应链、记忆投毒/引导、工具/协议利用、反馈操纵、对齐漂移。现有防御是强局部缓解而非系统级不变量;运行时控制(权限、注入隔离、控制平面中介)+ 持续审计与再认证 + AI-45° 律(能力与安全同步)。

  • 9.1 为什么自改进改变安全计算(部署后可变=攻击面);
  • 9.2 五类威胁模型(SafeWork-F1 的 E-T-C 框架);
  • 9.3 运行时控制与持续保证。

The point of this chapter: self-improvement turns safety from aligning a snapshot into governing a process. Five threat classes organized by mutable surface: skill supply chain, memory poisoning/steering, tool/protocol exploits, feedback manipulation, and alignment drift. Existing defenses are strong local mitigations rather than system-level invariants; runtime control (permissions, injection isolation, control-plane mediation) plus continuous auditing and re-certification plus the AI-45° law (capability and safety advance together).

  • 9.1 Why self-improvement changes the safety calculus (post-deployment mutability = attack surface);
  • 9.2 Five threat models (the E-T-C frame of SafeWork-F1);
  • 9.3 Runtime control and continuous assurance.

本节要点Section at a glance

大多数针对大语言模型的安全方法至少隐含地假定:被约束的对象在部署后大体上是固定的。例如,RLHF 和 Constitutional AI 在发布前把基座模型塑造为更可接受的行为分布。

Most safety methods for large language models assume, at least implicitly, that the object being constrained is mostly fixed after deployment. RLHF and Constitutional AI, for example, shape a base model toward a more acceptable behavioral distribution before release.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §9.1 原文全文 · Expand the full original text

9. 安全性:自我改进作为一个移动的攻击面 9. Safety: Self-Improvement as a Moving Attack Surface

9.1. 为什么自我改进改变了安全考量 9.1. Why Self-Improvement Changes the Safety Calculus

大多数针对大语言模型的安全方法至少隐含地假定:被约束的对象在部署后大体上是固定的。例如,RLHF 和 Constitutional AI 在发布前把基座模型塑造为更可接受的行为分布。它们仍然是智能体安全必要的起点,但自我改进的智能体改变了分析单元。部署之后,有效系统不再仅仅是一个对齐后的模型;它是模型行为、技能、记忆、工具、协议接口、反馈信号和轻量级适应机制的组合体,这些组成部分在常规运行中都可以变化。因此,自我改进智能体的安全不能化约为人们熟悉的那句“能力越强的智能体越危险”。能力确实重要,但独特的问题在于部署后的可变性(mutability)。在某一时刻对系统做出的安全声明,在安装了一个技能、重写了记忆、更改了工具策略或接受了一个适应更新之后,可能就不再适用于该系统。在这个意义上,安全从对齐一个快照扩展为治理一个过程。相关的问题是:一个部署系统能否在多轮执行、更新和跨任务迁移中保持先前审计过的边界,而不是当前模型能否孤立地避免一次不安全输出。这就是一次性审计在此情境下结构性薄弱的原因。对于许多常规部署,基准结果、红队发现和安全批准在发布后仍然具有参考价值,因为部署对象只发生轻微变化。自我改进智能体削弱了这一假设:下一个演化版本可能不再是经过测试的那个系统。因此,有用的安全目标必须包含过程级属性:更新不应悄悄扩大不安全行为,新行为的来源应当可以通过可变状态追溯,并且受到攻击或发生退化的智能体应当能够恢复到先前认证过的状态。ClawHavoc 为这一观点提供了一个具体的切入点:一旦技能获取成为改进循环的一部分,通往能力增长的同一路径也可能成为通往攻击得手的路径。AI-45° 定律提供了一个兼容的诊断视角,主张能力与安全应当沿着一条平衡的参考线共同推进,而不是放任能力加速而安全滞后。对于自我改进的智能体,警示信号不是某一次不安全输出,而是一个更新过程——其中新技能、记忆、工具或适应步骤提升能力的速度快于相应的控制与保障机制。因此,高风险状态应当定义硬停止条件,而可度量的预警阈值应当在系统越过不可接受的风险之前触发更深入的评估。

Most safety methods for large language models assume, at least implicitly, that the object being constrained is mostly fixed after deployment. RLHF and Constitutional AI, for example, shape a base model toward a more acceptable behavioral distribution before release. They remain necessary starting points for agent safety, but self-improving agents change the unit of analysis. After deployment, the effective system is no longer just an aligned model; it is a composite of model behavior, skills, memory, tools, protocol interfaces, feedback signals, and lightweight adaptation mechanisms that can change during ordinary operation. Safety for self-improving agents therefore cannot be reduced to the familiar claim that "more capable agents are more dangerous." Capability matters, but the distinctive problem is post-deployment mutability. A safety claim made about the system at one moment may no longer describe the system after a skill is installed, memory is rewritten, a tool policy changes, or an adaptation update is accepted. In this sense, safety expands from aligning a snapshot to governing a process. The relevant question is whether a deployed system can preserve previously audited boundaries across multi-turn execution, updates, and cross-task transfer, rather than whether the current model avoids one unsafe output in isolation. This is why one-time audits are structurally weak in this setting. For many conventional deployments, benchmark results, red-team findings, and safety approvals remain informative after launch because the deployed object changes only modestly. Self-improving agents weaken that assumption: the next evolved version may no longer be the system that was tested. A useful safety target must therefore include process-level properties: updates should not silently expand unsafe behavior, the sources of new behavior should remain traceable through mutable state, and a compromised or degraded agent should be recoverable to a previously certified state. ClawHavoc gives a concrete entry point into this view: once skill acquisition becomes part of the improvement loop, the same route to capability growth can also become a route to compromise. The AI-45◦ Law offers a compatible diagnostic lens, arguing that capability and safety should advance together along a balanced reference line rather than letting capability accelerate while safety lags behind. For self-improving agents, the warning sign is not a single unsafe output but an update process in which new skills, memories, tools, or adaptation steps raise capability faster than the corresponding control and assurance mechanisms. High-risk states should therefore define hard stop conditions, while measurable early-warning thresholds should trigger deeper assessment before the system crosses into unacceptable risk.

9.2. 横跨可变 Harness 表面的威胁模型9.2. Threat Models Across Mutable Harness Surfaces

本节要点Section at a glance

因此,威胁模型最好围绕可变的 harness(智能体外壳)组件来组织,而不是围绕越狱、隐私泄露或提示注入等彼此孤立的通用类别。任何在部署后可以被写入、扩展或重组的接口都会成为攻击面的一部分。

The threat model is therefore best organized around mutable harness components rather than around generic categories such as jailbreaks, privacy leakage, or prompt injection in isolation. Any interface that can be written to, extended, or recomposed after deployment becomes part of the attack surface.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §9.2 原文全文 · Expand the full original text

9.2. 横跨可变 Harness 表面的威胁模型 9.2. Threat Models Across Mutable Harness Surfaces

因此,威胁模型最好围绕可变的 harness(智能体外壳)组件来组织,而不是围绕越狱、隐私泄露或提示注入等彼此孤立的通用类别。任何在部署后可以被写入、扩展或重组的接口都会成为攻击面的一部分。四类直接威胁尤为突出:技能供应链攻击、记忆投毒(memory poisoning)与记忆引导(memory steering)、奖励或反馈操纵,以及工作流或协议层面的漏洞利用。第五个跨领域关切是适应循环中的对齐漂移。关于 LLM 对话安全的攻防文献已经将攻击、防御和评估视为耦合对象;对于自我改进的智能体,这种耦合从对话输出转移到了可变的 harness 本身。SafeWork-F1 框架提供了一套兼容的操作语汇。其 E-T-C 分析将前沿风险分解为部署环境、威胁来源和使能能力,其风险分类法区分了滥用、失控、事故和系统性风险。与仅基于提示的威胁模型相比,这更适合自我改进的智能体,因为同样的模型行为可能是有益的还是危险的,取决于工具权限、环境可供性、攻击者访问权限以及当前工作流所激活的能力组合。因此,表 6 将本章的表面级威胁图谱与相应的防御和保障含义合并在一起。最近一批安全研究进一步锐化了这一可变 harness 威胁模型。技能工件不再仅仅因为可能包含恶意代码而有风险:SKILL.md 文本可以引导发现与选择,声明的能力在注册表规模上可能与实际行为发生偏差,最小权限违规可以是任务条件化的,自适应红队可以迭代地变异技能,直到它们通过静态审计。在记忆和执行层面,图记忆投毒、记忆错误演化、过期状态故障、操作系统层面的行为越狱和递归工作流放大表明:即使局部的文本级检查看起来健康,安全故障仍然可以持续存在、相互组合并实际执行。

The threat model is therefore best organized around mutable harness components rather than around generic categories such as jailbreaks, privacy leakage, or prompt injection in isolation. Any interface that can be written to, extended, or recomposed after deployment becomes part of the attack surface. Four direct threat classes are especially salient: skill supply-chain attacks, memory poisoning and memory steering, reward or feedback manipulation, and workflow or protocol-level exploits. A fifth, cross-cutting concern is alignment drift across the adaptation loop. The attack–defense literature on LLM conversation safety already treats attacks, defenses, and evaluations as coupled objects; for self-improving agents, this coupling moves from conversation outputs to the mutable harness itself. The SafeWork-F1 framework gives a compatible operational vocabulary. Its E-T-C analysis decomposes frontier risk into deployment environment, threat source, and enabling capability, and its risk taxonomy distinguishes misuse, loss of control, accident, and systemic risk. This is a better fit for self-improving agents than a prompt-only threat model because the same model behavior can be benign or dangerous depending on tool privileges, environmental affordances, attacker access, and the capability combinations activated by the current workflow. Table 6 therefore merges the chapter's surface-level threat map with the corresponding defense and assurance implications. A recent cluster of safety studies further sharpens this mutable-harness threat model. Skill artifacts are no longer risky only because they may contain malicious code: SKILL.md text can steer discovery and selection, declared capabilities can diverge from actual behavior at registry scale, least-privilege violations can be task-conditioned, and adaptive red-teamers can iteratively mutate skills until they pass static audits. At the memory and execution layers, graph-memory poisoning, memory misevolution, stale-state failures, OS-level behavioral jailbreaks, and recursive workflow amplification show that safety failures can persist, compose, and execute even when local text-level checks appear healthy.

可变表面
Mutable surface
攻击机制
Attack mechanism
防御与保证含义
Defense and assurance implication
残余缺口
Residual gap
技能库
Skill library
恶意或虚假声明的技能在复用中持续存在。准入测试、最小权限、注册表审计、版本化与隔离。自适应导入仍可绕过静态审查。
Skill libraryMalicious or misdeclared skills persist across reuse.Admission tests, least privilege, registry audits, versioning, and isolation.Adaptive import can still bypass static vetting.
记忆存储
Memory store
被投毒、过时或私密的状态重新进入后续推理。写入治理、生命周期控制、失效化、自检记忆与重放。持久化使攻击跨任务存活。
Memory storePoisoned, stale, or private state re-enters later reasoning.Write governance, lifecycle control, invalidation, self-checking memory, and replay.Persistence keeps attacks alive across tasks.
工具与协议层
Tool and protocol layer
连接器与工作流组合成非预期的执行链。授权、模式校验、注入隔离、工作流监控与状态验证。组合级失败仍难以认证。
Tool and protocol layerConnectors and workflows compose into unintended execution chains.Authorization, schema validation, injection isolation, workflow monitoring, and state verification.Composition-level failures remain hard to certify.
反馈与适应循环
Feedback and adaptation loop
被破坏的反馈使不安全的更新看似改进。评估器隔离、受限更新、风险感知奖励、修复监督与早期预警。反馈受损时几乎无保证。
Feedback and adaptation loopCorrupted feedback makes unsafe updates look like improvements.Evaluator isolation, constrained updates, risk-aware rewards, repair supervision, and early warnings.Few guarantees under compromised feedback.
整个演化中的 harness
Whole evolving harness
连续更新把系统移出其已审计的边界。持续红队、基准刷新、轨迹评估、硬停止与再认证。尚无被维护的端到端不变量。
Whole evolving harnessSuccessive updates move the system outside its audited boundary.Continuous red-teaming, benchmark refresh, trajectory evaluation, hard stops, and re-certification.No maintained end-to-end invariant yet.

表注(Table 6):可变自改进智能体的合并攻防地图——把改进表面、代表性攻击机制与当前控制/保证含义合并在一张表里。A merged attack–defense map for mutable self-improving agents: the improvement surface, representative attack mechanism, and current control or assurance implication.

9.2.1. 技能供应链攻击 9.2.1. Skill Supply-Chain Attacks

ClawHavoc 是最清晰的技能层面案例研究。SoK: Agentic Skills 论文将其描述为一起供应链事件:近 1,200 个恶意技能渗透进一个主流智能体市场,导致 API 密钥、加密货币钱包和浏览器凭据的大规模窃取。这次攻击并不需要先攻破模型,而是通过技能获取接口进入——自我改进的智能体正是依赖该接口随时间安装、选择和复用新能力。一旦能力扩展依赖于第三方技能,市场就不再只是生态系统的便利设施,而成为智能体安全边界的一部分。这也是为什么技能测试和市场审计对安全而不仅仅对实用性重要:SkillTester 将智能体技能视为既需要实用性评估又需要安全评估的对象,而 SkillProbe 则将新兴技能市场本身视为审计目标。该案例还展示了一条复合攻击链:恶意技能首先越过市场分发边界,然后滥用技能载荷和技能内提示(prompt-in-skill)表面来塑造下游执行,最终触及智能体已然可见的敏感资产。这使得攻击比单条恶意提示更具持久性。提示攻击往往随当前上下文窗口结束而终止,而恶意技能可以伪装成看似合法的能力包被安装、缓存、再次调用,并在未来任务中复用。自我改进使这一威胁格外严重,因为改进的通道与遭受攻击的通道部分重合。更新的技能安全工作将这一边界分解为更精确的失效模式。Under the Hood of SKILL.md 表明,自然语言技能元数据本身就在发挥作用:即使底层可执行载荷未变,仅修改描述也可以影响发现、选择和治理结果。Behavioral Integrity Verification 形式化了声明能力与实际能力之间的错配,报告了近 50,000 个注册表技能中普遍存在的偏差,并表明能力对比可以支持恶意技能检测。SkillScope 补充了一个最小权限视角:同一个技能动作对一个任务可能是合法的,对另一个任务则可能权限过大,因此安全准入需要任务条件化的权限分析,而非仅依赖全局技能标签。最后,Proteus 说明了为什么静态审查不够:反馈驱动的攻击者可以反复变异一个技能,直到它既绕过审计又产生运行时危害。综合起来,这些结果将技能安全从载荷扫描推向覆盖文档、声明行为、权限范围和自适应对手的全生命周期治理。

ClawHavoc is the clearest skill-level case study. The SoK: Agentic Skills paper describes it as a supply-chain event in which nearly 1,200 malicious skills infiltrated a major agent marketplace, leading to the large-scale exfiltration of API keys, cryptocurrency wallets, and browser credentials. The attack did not first require breaking the model. It entered through the skill acquisition interface that self-improving agents rely on to install, select, and reuse new capabilities over time. Once capability expansion depends on third-party skills, the marketplace is no longer just an ecosystem convenience; it becomes part of the agent's security boundary. This is also why skill testing and marketplace auditing matter for safety, not only utility: SkillTester frames agent skills as objects that need both utility and security evaluation, while SkillProbe treats emerging skill marketplaces as audit targets in their own right. The case also illustrates a compound attack chain: malicious skills first crossed the marketplace distribution boundary, then abused skill payloads and prompt-in-skill surfaces to shape downstream execution, and finally reached sensitive assets already visible to the agent. This makes the attack more persistent than a single malicious prompt. A prompt attack often ends with the current context window, whereas a malicious skill can be installed as a seemingly legitimate capability package, cached, invoked again, and reused across future tasks. Self-improvement makes this threat especially serious because the channel for improvement and the channel for compromise become partially identical. Newer skill-safety work decomposes this boundary into more precise failure modes. Under the Hood of SKILL.md shows that natural-language skill metadata is itself operational: description-only changes can affect discovery, selection, and governance outcomes even when the underlying executable payload is unchanged. Behavioral Integrity Verification formalizes the mismatch between declared and actual skill capabilities, reporting widespread deviations across nearly 50,000 registry skills and showing that capability comparison can support malicious-skill detection. SkillScope adds a complementary least-privilege view: the same skill action may be legitimate for one task and over-privileged for another, so safe admission requires task-conditioned privilege analysis rather than only global skill labels. Finally, Proteus shows why static vetting is insufficient: a feedback-driven attacker can repeatedly mutate a skill until it both bypasses audit and produces runtime harm. Together, these results move skill safety from payload scanning toward lifecycle governance over documentation, declared behavior, privilege scope, and adaptive adversaries.

9.2.2. 记忆投毒(memory poisoning)与记忆引导(memory steering) 9.2.2. Memory Poisoning and Memory Steering

第二个风险表面是记忆。对自我改进的智能体而言,记忆不仅是过往交互的日志;它是未来行为的条件变量。From Storage to Steering 直接提出这一点:它表明记忆检索可以主导下游控制流,并报告即使在严格的安全约束下,超过 90% 的试验仍易受此类攻击。这一结果将记忆安全重新界定为控制流问题,而不仅仅是信息卫生问题。一旦观测、计划和用户偏好被写入可复用的记忆,它们就可以重新进入后续任务的推理路径。InjecMEM 将这一威胁模型推向更贴近现实部署的情形:攻击者不一定需要对记忆存储的直接读或编辑访问权限,单次交互可能就足以植入内容,这些内容之后会重新出现在对相关下游查询的响应中。在网页智能体场景中,Context Manipulation Attacks 进一步表明,计划注入可以绕过现有的提示注入防御,并达到比同类基于提示的攻击高出至多三倍的攻击成功率。这些研究指向同一个权衡:持久性提升长程能力,但也延长了攻击效果的存续期。这种双重角色使记忆在自我改进智能体中格外重要。同一个使跨任务改进、经验保持和行为一致性成为可能的持久化机制,也使智能体在长程上更难约束、更易被操纵。MemoryGraft 从被投毒经验检索的角度得出相同结论:受损的记忆可以作为运行先例持续存在,而不是随触发提示一同消失。一旦记忆进入自我改进循环,它就既成为能力原语,也成为控制原语。近期工作进一步表明,记忆风险并不限于扁平的文本投毒。ShadowMerge 通过关系通道冲突攻击基于图的智能体记忆,使被投毒的关系可以被合并到良性锚点附近,并在之后被检索出来用于受害查询。MemEvoBench 将安全退化界定为记忆错误演化(misevolution):即使单次交互看似合理,反复暴露于误导性更新也会逐渐改变行为。Spore 增加了一个隐私维度,将目标对准推理时的智能体记忆而非训练数据,表明情境记忆可以成为数据提取表面。STALE 不是一篇攻击论文,但它对安全很重要,因为过期记忆在其编码的世界状态改变之后仍可能在行为上保持活跃;一个无法使隐式旧状态失效的系统,可能安全地检索到证据,却仍基于错误的前提采取行动。防御上的含义是:记忆治理必须包括状态失效、来源追踪、冲突修复和隐私边界,而不仅仅是更好的检索过滤器。

The second risk surface is memory. For a self-improving agent, memory is not merely a log of past interactions; it is a conditioning variable for future behavior. From Storage to Steering makes this point directly by showing that memory retrieval can dominate downstream control flow, and reports that more than 90% of trials remain vulnerable to such attacks even under strict safety constraints. The result reframes memory security as a control-flow problem, not only an information hygiene problem. Once observations, plans, and user preferences are written into reusable memory, they can re-enter the reasoning path of later tasks. InjecMEM moves this threat model closer to realistic deployment. Attackers do not necessarily need direct read or edit access to the memory store; a single interaction may be enough to implant content that later reappears in responses to related downstream queries. In web-agent settings, Context Manipulation Attacks further shows that plan injection can bypass existing prompt-injection defenses and achieve up to three times higher attack success rates than comparable prompt-based attacks. These studies point to the same trade-off: persistence increases long-horizon competence, but it also extends the lifespan of attack effects. This dual role makes memory especially consequential in self-improving agents. The same persistence mechanism that enables cross-task improvement, experience retention, and behavioral coherence also makes agents harder to constrain and easier to manipulate over long horizons. MemoryGraft reaches the same conclusion from the angle of poisoned experience retrieval: a compromised memory can persist as an operational precedent rather than disappear with the triggering prompt. Once memory enters the self-improvement loop, it becomes both a capability primitive and a control primitive. Recent work further shows that memory risk is not limited to flat textual poisoning. ShadowMerge attacks graph-based agent memory through relation-channel conflicts, so a poisoned relation can be merged near a benign anchor and later retrieved for the victim query. MemEvoBench frames safety degradation as memory misevolution: repeated exposure to misleading updates can gradually shift behavior even when individual interactions look plausible. Spore adds a privacy dimension by targeting inference-time agent memory rather than training data, showing that contextual memory can become an extraction surface. STALE is not an attack paper, but it matters for safety because stale memories can remain behaviorally active after the world state they encode has changed; a system that cannot invalidate implicit old states may safely retrieve evidence and still act on the wrong premise. The defensive implication is that memory governance must include state invalidation, provenance, conflict repair, and privacy boundaries, not only better retrieval filters.

9.2.3. 工作流、工具与协议漏洞利用 9.2.3. Workflow, Tool, and Protocol Exploits

第三个主要风险表面位于工作流、工具和协议层。From Prompt Injections to Protocol Exploits 将威胁模型从简单的输入操纵扩展到主机到工具以及智能体到智能体的通信,并系统化梳理了三十余种攻击技术,涵盖输入操纵、模型攻破、系统与隐私攻击以及协议层漏洞。它对本章的价值与其说是某个具体数字,不如说是分析单元的改变:从提示到执行链。这种扩展与自我改进尤其相关。随着智能体采用新的连接器、工具模式、类 MCP 接口和多阶段工作流,它们的能力边界与信任边界、故障表面一起扩张。针对 MCP 的安全工作使这一点更加鲜明:一旦第三方服务被引入智能体循环,系统同时继承了位于模型开发者直接控制之外的服务提供方激励、实现缺陷和策略缺口。许多故障并非始于模型产生了一条明显危险的指令,而是当各个单独看似合理的组件被组合成一条非预期的执行路径时涌现出来的。因此,自我改进的系统性风险部分在于重组:部署智能体重组其工具和交互模式越自由,这些组件之间边界处出现的机会就越多。执行层还暴露出语义安全检查可能遗漏的故障。LITMUS 在真实操作系统环境中评估行为越狱,并突出“执行幻觉”:智能体口头拒绝了有害请求,而危险操作在操作系统层面已经发生。Mobius Injection 将关切从单个有害动作推进到基础设施层面的破坏:一条消息就可以在智能体各组件之间触发递归执行和大幅调用放大。在多模态场景中,视觉注入工作描述了信任边界混淆:智能体必须判断某个环境信号是合法线索还是对抗性的类指令构件。这些案例使推理与执行之间的边界成为安全的核心。如果一个自我改进的智能体还能修改文件、调用服务、传播工作流或依据视觉状态行动,那么仅靠检查文本就无法对它进行认证。

The third major risk surface lies at the workflow, tool, and protocol layer. From Prompt Injections to Protocol Exploits broadens the threat model from simple input manipulation to host-to-tool and agent-to-agent communication, and systematizes more than thirty attack techniques spanning input manipulation, model compromise, system and privacy attacks, and protocol-level vulnerabilities. Its value for this chapter is less any single number than the change in unit of analysis: from prompt to execution chain. This expansion is especially relevant to self-improvement. As agents adopt new connectors, tool schemas, Model Context Protocol -like interfaces, and multi-stage workflows, they expand their capability boundary together with their trust boundary and failure surface. MCP-specific safety work sharpens this point: once third-party services are brought into the agent loop, the system also inherits service-provider incentives, implementation bugs, and policy gaps that sit outside the model developer's direct control. Many failures do not begin with the model producing a clearly dangerous instruction. They emerge when individually reasonable components are composed into an unintended execution path. The systemic risk of self-improvement therefore lies partly in recomposition: the more freely a deployed agent reorganizes its tools and interaction patterns, the more opportunities arise at the boundaries between those components. The execution layer also exposes failures that semantic safety checks can miss. LITMUS evaluates behavioral jailbreaks in real operating-system environments and highlights "execution hallucination," where an agent verbally refuses a harmful request while the dangerous operation has already occurred at the OS layer. Mobius Injection pushes the concern from single harmful actions to infrastructure-level disruption: one message can trigger recursive execution and large call amplification across agent components. In multimodal settings, visual injection work describes trust-boundary confusion: the agent must decide whether an environmental signal is a legitimate cue or an adversarial command-like artifact. These cases make the boundary between reasoning and execution central to safety. A self-improving agent cannot be certified by checking text alone if it can also mutate files, call services, propagate workflows, or act on visual state.

9.2.4. 奖励与反馈操纵 9.2.4. Reward and Feedback Manipulation

第四个风险表面是决定哪些变化算作改进的反馈通道。一旦部署的智能体使用评估反馈来决定什么应当被保留,攻击者就不再需要直接控制即时动作。破坏改进信号可以让系统保留一段误导性记忆、高估一个有风险的技能,或把一个脆弱的工作流当作成功。在这种形式下,奖励黑客(reward hacking)成为一种 harness 层面的攻击:智能体不仅被诱骗走出一步错棋,而且被引导为未来任务保留错误的教训。当前的综述将奖励黑客和涌现性失对齐识别为自主性引发的风险,但针对受损反馈循环的智能体专用防御栈,仍然不如针对记忆和工具使用攻击的防御成熟。

A fourth risk surface is the feedback channel that decides which changes count as improvements. Once a deployed agent uses evaluation feedback to decide what should persist, an attacker no longer has to control the immediate action directly. Corrupting the improvement signal can make the system preserve a misleading memory, overvalue a risky skill, or treat a fragile workflow as successful. In this form, reward hacking becomes a harness-level attack: the agent is not merely tricked into one bad step, but steered into retaining the wrong lesson for future tasks. Current surveys identify reward hacking and emergent misalignment as autonomy-induced risks, but the agent-specific defense stack for compromised feedback loops remains less mature than defenses for memory and tool-use attacks.

9.2.5. 作为组织性视角的对齐漂移 9.2.5. Alignment Drift as an Organizing Lens

这些攻击表面共同支撑起一个更宏观的组织性概念:对齐漂移。现有文献提供了威胁模型、漏洞和失效模式,但尚未给出关于长程漂移的统一形式化理论。然而,近期关于智能体安全的综述将记忆投毒、工具滥用、奖励黑客和涌现性失对齐识别为智能体自主性所引发的质上全新的风险。关于受治理的演化记忆的工作在记忆层面提出了同样的观点:随着智能体存储状态的改变,稳定性和安全性必须持续得到维护,而不能只在部署时刻检查。多智能体场景为把漂移当作过程级而非局部问题提供了另一个理由:Agent Smith 表明,插入一个多模态智能体的单张对抗性图像可以通过智能体之间的交互传播有害行为,使单个攻击得手演变为群体层面的动态。在本章中,对齐漂移最好被视为一个综合既有失效表面的视角,而非一个已经完整确立的定理。

Together, these attack surfaces motivate a broader organizing concept: alignment drift. The current literature provides threat models, vulnerabilities, and failure modes, but not yet a unified formal theory of long-horizon drift. Recent surveys of agent security nevertheless identify memory poisoning, tool misuse, reward hacking, and emergent misalignment as qualitatively novel risks induced by agent autonomy. Work on governed evolving memory makes the same point at the memory layer: stability and safety have to be maintained as the agent's stored state changes, not only checked at the moment of deployment. Multi-agent settings add another reason to treat drift as process-level rather than local: Agent Smith shows that a single adversarial image inserted into one multimodal agent can propagate harmful behavior through agent-agent interaction, turning compromise into a population-level dynamic. In this chapter, alignment drift is best treated as a synthesis lens over observed failure surfaces rather than as a fully established theorem.

9.3. 自改进智能体的运行时控制9.3. Runtime Control for Self-Improving Agents

本节要点Section at a glance

在威胁面被识别之后,下一个问题是:已部署的自改进智能体在执行期间如何受到约束。当前方法可以解读为一个两层控制栈:部署前对齐塑造初始模型,而运行时治理在部署后约束可变的 harness(外壳)。

After the threat surfaces are identified, the next question is how a deployed self-improving agent can be constrained during execution. Current methods can be read as a two-layer control stack: pre-deployment alignment shapes the initial model, while runtime governance constrains the mutable harness after deployment.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §9.3 原文全文 · Expand the full original text

9.3. 自改进智能体的运行时控制 9.3. Runtime Control for Self-Improving Agents

在威胁面被识别之后,下一个问题是:已部署的自改进智能体在执行期间如何受到约束。当前方法可以解读为一个两层控制栈:部署前对齐塑造初始模型,而运行时治理在部署后约束可变的 harness(外壳)。这一区分映照了自改进所引入的结构性错配。该领域越来越能够在发布前对齐模型,但在约束一个发布后仍持续变化的智能体系统方面还远不够成熟。

After the threat surfaces are identified, the next question is how a deployed self-improving agent can be constrained during execution. Current methods can be read as a two-layer control stack: pre-deployment alignment shapes the initial model, while runtime governance constrains the mutable harness after deployment. This distinction mirrors the structural mismatch introduced by self-improvement. The field is increasingly capable of aligning models before release, but it is less mature at constraining an agentic system that continues to change after release.

9.3.1. 部署前对齐仍是必要的 9.3.1. Pre-Deployment Alignment Remains Necessary

第一层是部署前对齐,以 RLHF 和宪法式 AI(Constitutional AI)为代表。这些方法仍然重要,因为它们提供了对齐后的起点,后续的安全措施正是从这个起点出发运作的。在当前设定下,它们的作用是在智能体进入部署之前建立一个最低限度可信的基座模型。其局限同样重要。这些方法在部署前约束模型行为,但并不直接管理部署后技能集、记忆存储、工具策略或轻量适配模块的演化。换言之,它们能够降低起点处的风险,但并不能自动保证后续的技能安装、记忆积累或在线适配始终停留在最初审计过的边界之内。

The first layer is pre-deployment alignment, exemplified by RLHF and Constitutional AI. These methods still matter because they provide the aligned starting point from which later safeguards operate. In the present setting, their role is to establish a minimally trustworthy base model before the agent enters deployment. The limitation is equally important. These methods constrain model behavior before deployment, but they do not directly govern the post-deployment evolution of skill sets, memory stores, tool policies, or lightweight adaptation modules. In other words, they can reduce risk at the starting point, but they do not automatically guarantee that subsequent skill installation, memory accumulation, or online adaptation remains inside the originally audited boundary.

9.3.2. 运行时治理作为实际防御层 9.3.2. Runtime Governance as the Practical Defense Layer

第二层是运行时治理。与其把这些方法视为新的对齐范式,不如把它们看作面向已部署智能体的治理原语(governance primitives):即约束什么可以被存储、什么可以被执行、以及执行循环中哪些偏离可以被拦截的机制。IsolateGPT 表明执行隔离在工程上已经可行。其摘要报告称,该架构缓解了多种安全、隐私与安全问题,同时在四分之三的被测查询上把性能开销保持在 30% 以下。因此,隔离是一种用于限制爆炸半径(blast radius)的合理系统设计,而不仅仅是一条概念性建议。一个互补的工业设计模式是关注点分离(separation of concerns)。在 Pachaar 所报告的 Anthropic/Claude Code 框架表述中,“模型决定尝试什么,工具系统决定允许什么”。相应的权限模式有三个检查点:项目加载时的信任建立、工具执行前的逐次调用授权、以及高风险操作的显式人工确认。这一点很重要,因为它把安全从事后的输出过滤器移入了 harness 本身:模型可以提议一个动作,但工具与校验层掌握执行它的权力。其他防御手段则针对不同的可变表面。AgentSys 把分层记忆管理变成一种显式控制机制,报告在 AgentDojo 和 ASB 上的攻击成功率分别为 0.78% 和 4.25%,同时略微改善了良性效用。DRIFT 体现了动态规则校验与注入隔离:它不依赖固定的静态策略,而是从用户查询推导出一条最小函数轨迹,并在执行期间监控偏离与记忆流污染。A-MemGuard 同样把记忆安全视为一个运行时问题。其核心思想是记忆应当变得自我检查和自我纠正,其摘要报告称在几乎不损失效用的情况下攻击成功率降低了 95% 以上。AgentWatcher 增加了一种长上下文监控模式:在应用显式的提示注入规则之前,先把智能体动作归因于有影响的上下文片段。SafeAgent、SARC 和 Sovereign Agentic Loops 把同样的思想推进到运行时架构层面:控制平面应围绕智能体循环来中介动作,把约束编译到动作前、动作时、动作后和升级(escalation)等点位,或在执行前依据真实系统状态校验结构化意图。表 6 总结了这些防御如何对应到主要攻击向量。综合来看,这些工作把实际的安全问题从“如何孤立地训练出更安全的模型”转变为“如何让每个执行步骤更难被破坏”。AI-45◦ 线也提示了一个积极的控制目标:安全应当成为改进过程的一部分,而不是在能力增长之后从外部征收的税负。SafeWork-R1 是这一思想在参数侧的一个有用例子。它以 SafeLadder 框架构建,采用渐进式安全导向强化学习、神经验证器与规则验证器以及推理时干预,使安全推理和自我反思成为模型能力的一部分;报告声称在安全相关基准上相对 Qwen2.5-VL-72B 平均提升 46.54%,且不牺牲通用能力。FATE 给出了同一原则的智能体轨迹版本:把经验证器评分的失败轨迹转化为用于安全对齐的修复监督信号。对自改进智能体而言,重要的教训并非模型侧的协同演化能凭自身解决 harness 安全,而是:适配循环若要保持接近 45◦ 能力–安全轨迹,就需要显式的安全验证器、修复信号与步骤级干预点。

The second layer is runtime governance. Rather than treating these methods as new alignment paradigms, it is more useful to view them as governance primitives for deployed agents: mechanisms that constrain what can be stored, what can be executed, and which deviations can be intercepted during the execution loop. IsolateGPT shows that execution isolation is already engineering-feasible. Its abstract reports that the architecture mitigates multiple security, privacy, and safety issues while keeping the performance overhead below 30% for three-quarters of tested queries. Isolation is therefore a plausible systems design for limiting blast radius, not just a conceptual recommendation. A complementary industrial design pattern is separation of concerns. In the Anthropic/Claude Code framing reported by Pachaar, "the model decides what to attempt, the tool system decides what to permit". The accompanying permission pattern has three checkpoints: trust establishment when a project is loaded, per-call authorization before tool execution, and explicit human confirmation for high-risk operations. This matters because it moves safety from an after-the-fact output filter into the harness itself: the model may propose an action, but the tool and validation layer owns the authority to execute it. Other defenses target different mutable surfaces. AgentSys turns hierarchical memory management into an explicit control mechanism and reports attack success rates of 0.78% and 4.25% on AgentDojo and ASB, respectively, while slightly improving benign utility. DRIFT represents dynamic rule validation and injection isolation: rather than relying on a fixed static policy, it derives a minimal function trajectory from the user query and monitors deviations and memory-stream contamination during execution. A-MemGuard similarly treats memory security as a runtime problem. Its central idea is that memory should become self-checking and self-correcting, and its abstract reports more than 95% reduction in attack success rates at minimal utility cost. AgentWatcher adds a long-context monitoring pattern by attributing an agent action to influential context segments before applying explicit prompt-injection rules. SafeAgent, SARC, and Sovereign Agentic Loops push the same idea into runtime architecture: the control plane should mediate actions around the agent loop, compile constraints into pre-action, action-time, post-action, and escalation sites, or validate structured intents against true system state before execution. Table 6 summarizes how these defenses map onto the main attack vectors. Taken together, these works shift the practical safety question from how to train a safer model in isolation to how to make each execution step harder to corrupt. The AI-45◦ line also suggests a positive control objective: safety should become part of the improvement process rather than an external tax imposed after capability gains. SafeWork-R1 is a useful parameter-side example of this idea. Built with the SafeLadder framework, it uses progressive safety-oriented reinforcement learning, neural and rule-based verifiers, and inference-time interventions to make safety reasoning and self-reflection part of the model's competence; the report claims a 46.54% average improvement over Qwen2.5-VL-72B on safety-related benchmarks without sacrificing general capability. FATE gives an agent-trajectory version of the same principle by turning verifier-scored failure trajectories into repair supervision for safety alignment. For self-improving agents, the important lesson is not that model-side coevolution solves harness safety by itself, but that adaptation loops need explicit safety verifiers, repair signals, and step-level intervention points if they are to stay near the 45◦ capability–safety trajectory.

9.3.3. 持续保障与再认证(Continuous Assurance and Re-Certification) 9.3.3. Continuous Assurance and Re-Certification

运行时控制并不是安全问题的终点。即使第 9.3 节的控制栈在执行期间降低了风险,一个独立的保障问题依然存在:一旦系统持续变化,任何安全声明如何还能保持有效?问题不再仅仅是如何约束单次执行,而是如何对一个技能、记忆、评估器和工具使用模式随时间演化的系统维持信心。因此,安全评估不再只是发布前的一道关卡,而是成为一条与改进循环本身并行运行的治理轨道。基准测试(benchmarking)在这一点上变得重要,因为它暴露了局部控制与系统级保障之间的差距。Agent Security Bench(ASB)在 10 个场景、400 多种工具、23 种攻击与防御方法和 8 项评估指标上量化智能体的脆弱性,并报告最高平均攻击成功率达 84.30%。Agent-SafetyBench 以 349 个交互环境和 2,000 个测试用例扩展了证据,覆盖 8 个风险类别和 10 种常见失败模式;所有被评估智能体的安全得分均未超过 60%。ATBench 把评估单元移到完整轨迹上,使用 1,000 条经审计的、带有异构工具池与延迟触发的轨迹,来诊断长时程(long-horizon)安全失败,而非孤立的危险响应。综合来看,这些结果表明:即便防御文献不断增长,系统级脆弱性仍然很高。组件级缓解措施尚未累积成可靠的系统级安全保证。AutoRedTeamer 与 RedDebate 进一步表明,安全评估本身正在变得智能体化(agentic)。前者强调通过带记忆引导攻击选择的多智能体架构进行持续攻击发现,在 HarmBench 上攻击成功率提高 20%,同时相对先前方法将计算成本降低 46%。后者把多智能体辩论与长期记忆结合起来,报告称仅凭辩论就使危险输出减少 17.7%,加入记忆后减少超过 23.5%。就本章而言,它们的意义不在于已经提供了认证,而在于把安全评估从一次性测试推向一个能够随时间吸收新攻击模式的适应性过程。综合起来,这些基准与红队系统支持一个更广泛的结论:自改进智能体需要持续的审计与再认证(re-certification),而不仅仅是部署时的审批。没有这样一条轨道,自改进可能会带来持续的能力增长,却缺乏持续的可控性。

Runtime controls are not the end of the safety problem. Even if the control stack in Section 9.3 reduces risk during execution, a separate assurance question remains: how can any safety claim stay valid once the system keeps changing? The issue is no longer only how to constrain a single execution, but how to maintain confidence in a system whose skills, memories, evaluators, and tool-use patterns evolve over time. Safety evaluation is therefore not just a gate before release. It becomes a governance track that runs alongside the improvement loop itself. Benchmarking becomes important at this point because it exposes the gap between local controls and system-level assurance. Agent Security Bench quantifies agent vulnerability across 10 scenarios, more than 400 tools, 23 attack and defense methods, and 8 evaluation metrics, and reports a highest average attack success rate of 84.30%. Agent-SafetyBench broadens the evidence with 349 interaction environments and 2,000 test cases across 8 risk categories and 10 common failure modes; none of the evaluated agents achieves a safety score above 60%. ATBench moves the unit of evaluation to full trajectories, using 1,000 audited trajectories with heterogeneous tool pools and delayed triggers to diagnose long-horizon safety failures rather than isolated unsafe responses. Together, these results suggest that system-level vulnerability remains high even as the defense literature grows. Component-level mitigations have not yet accumulated into a reliable system-level safety guarantee. AutoRedTeamer and RedDebate further suggest that safety evaluation itself is becoming agentic. The former emphasizes continuous attack discovery through a multi-agent architecture with memory-guided attack selection, achieving 20% higher attack success rates on HarmBench while reducing computational cost by 46% relative to prior approaches. The latter combines multi-agent debate with long-term memory and reports reductions in unsafe outputs of 17.7% from debate alone and more than 23.5% when memory is added. For this chapter, their significance is not that they already provide certification, but that they move safety evaluation from one-off testing toward an adaptive process that can absorb new attack patterns over time. Taken together, these benchmarks and red-teaming systems support a broader conclusion: self-improving agents require continuous auditing and re-certification, not deployment-time approval alone. Without such a track, self-improvement may produce continuous capability growth without continuous controllability.

9.3.4. 当前控制栈的局限 9.3.4. Limits of the Current Control Stack

这些方法也有一个共同的局限。大多数只针对单一表面或一个定义狭窄的失败类别。与其把它们理解为已被证实的系统级不变量,不如把它们理解为强有力的局部缓解措施。当前最强的成果仍然是局部的运行时防御,而非针对自改进智能体的端到端安全成果:A-MemGuard 与 AgentSys 大幅降低了记忆攻击的成功率,而 ASB、Agent-SafetyBench 与 ATBench 上的系统级基准结果依然令人警醒。该领域如今能够降低特定组件的风险,但尚不能表明自改进循环能够在长期运行中保持全局安全边界。一个理想的部署后控制栈会把治理视为一种全生命周期义务:在发布前认证初始模型与 harness,在智能体行动时监控已部署行为,管理每一次被接受的更新,在不安全变更后支持回滚与恢复,并在实质性漂移(material drift)之后要求再认证(re-certification)。其范围必须覆盖所有可变表面:技能准入与版本管理、记忆写入与失效、工具与协议权限、反馈完整性以及轻量适配。目标并不仅仅是某一快照通过了基准测试,而是每一次被接受的转变都保持着一个持续维护的安全边界。核心瓶颈是架构性的,而非仅仅与数据相关。当前的安全方法大多约束的是部署前的快照,而自改进改变的是部署后的过程。一旦技能安装、记忆更新、工具与协议扩展、反馈选择以及轻量适配发生在训练之后,对齐栈并不会自动延伸到这些变化之上。因此,悬而未决的安全问题是:我们能否为自改进智能体在其技能、记忆、工具、反馈与参数更新的完整序列上定义并维持一个形式化的安全不变量,而不是只在部署前对模型认证一次。

These methods also share a limitation. Most address a single surface or a narrowly defined class of failure. They are better understood as strong local mitigations than as demonstrated system-level invariants. The strongest current results are still local runtime defenses rather than end-to-end safety results for self-improving agents: A-MemGuard and AgentSys reduce memory-attack success substantially, while system-level benchmarking remains sobering across ASB, Agent-SafetyBench, and ATBench. The field can now reduce risk for particular components, but it does not yet show that a self-improvement loop can preserve a global safety boundary over long periods of operation. An ideal post-deployment control stack would treat governance as a full-lifecycle obligation. It would certify the initial model and harness before release, monitor deployed behavior as the agent acts, govern every accepted update, support rollback and recovery after unsafe changes, and require re-certification after material drift. The scope would have to cover all mutable surfaces: skill admission and versioning, memory writing and invalidation, tool and protocol privileges, feedback integrity, and lightweight adaptation. The objective is not simply that one snapshot passed a benchmark, but that every accepted transition preserves a maintained safety boundary. The core bottleneck is architectural rather than merely data-related. Current safety methods mostly constrain a pre-deployment snapshot, whereas self-improvement changes the post-deployment process. Once skill installation, memory updates, tool and protocol expansion, feedback selection, and lightweight adaptation occur after training, the alignment stack does not automatically extend to those changes. The open safety question is therefore whether we can define and maintain a formal safety invariant for a self-improving agent across its full sequence of skill, memory, tool, feedback, and parameter updates, rather than certifying the model only once before deployment.

第 10 章 · 开放问题10. Open Problems

10.1. 引出(Elicitation)与习得(Acquisition)10.1. Elicitation versus Acquisition

📚 第 10 章总览 · 手写精读(本章主旨与各小节导读)

本章主旨:九个开放问题,环环相扣。从机制(激发 vs 习得、外部经验固化、弱反馈信用分配、自产经验稳定性)到评测(纵向评测、跨模型版本迁移、多智能体涌现、多模态经验编译)再到安全(部署后修改下的安全)。收尾判断:验证潜藏于每个问题之下,且能力与安全必须沿 45° 线同步推进。

  • 10.1 激发 vs 习得(外部路径的天花板问题);
  • 10.2 外部经验固化的时机与晋升标准;
  • 10.3 弱反馈下的信用分配;
  • 10.4 自产经验的递归训练与分布收窄;
  • 10.5 纵向评测与经验-能力标度律;
  • 10.6 跨模型版本迁移;
  • 10.7 多智能体协调与涌现;
  • 10.8 多模态经验编译;
  • 10.9 部署后修改下的安全。

The point of this chapter: nine open problems, tightly entangled. From mechanisms (elicitation vs acquisition, consolidating external experience, credit assignment under weak feedback, the stability of self-generated experience) to evaluation (longitudinal evaluation, transfer across model versions, multi-agent emergence, multimodal experience compilation) to safety (under post-deployment modification). The closing judgment: verification lies beneath every problem, and capability and safety must advance together along the 45° line.

  • 10.1 Elicitation versus acquisition (the ceiling question for external paths);
  • 10.2 When to consolidate external experience and the promotion criteria;
  • 10.3 Credit assignment under weak feedback;
  • 10.4 Recursive training on self-generated experience and distribution narrowing;
  • 10.5 Longitudinal evaluation and an experience-capability scaling law;
  • 10.6 Transfer across model versions;
  • 10.7 Coordination and emergence in multi-agent systems;
  • 10.8 Multimodal experience compilation;
  • 10.9 Safety under post-deployment modification.

本节要点Section at a glance

外部适配修改 harness 而保持模型权重不变;因此它产生的行为受基座模型中既有能力的约束。一个测量到的提升究竟反映的是新习得的能力,还是通过更好的技能、记忆或上下文把潜在能力引出(elicitation)出来,这一点很少被检验。

External adaptation modifies the harness while leaving the model weights unchanged; the behavior it produces is therefore bounded by the capabilities already present in the base model. Whether a measured gain reflects newly acquired competence or the elicitation of latent competence through a better skill, memory, or context is rarely tested.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §10.1 原文全文 · Expand the full original text

10. 开放问题 10. Open Problems

10.1. 引出(Elicitation)与习得(Acquisition) 10.1. Elicitation versus Acquisition

外部适配修改 harness 而保持模型权重不变;因此它产生的行为受基座模型中既有能力的约束。一个测量到的提升究竟反映的是新习得的能力,还是通过更好的技能、记忆或上下文把潜在能力引出(elicitation)出来,这一点很少被检验。这两种解读对外部路径具有相反的含义:在纯引出(pure elicitation)的情形下,已部署智能体会遇到一个只有参数更新才能抬升的上限;而真正的习得(acquisition)则能让权重冻结的系统持续改进。当前协议将适配后的智能体与其自身未适配的基线进行比较,无法区分这两种情况,因此 harness 层学习的实际可达范围也相应不明确。

External adaptation modifies the harness while leaving the model weights unchanged; the behavior it produces is therefore bounded by the capabilities already present in the base model. Whether a measured gain reflects newly acquired competence or the elicitation of latent competence through a better skill, memory, or context is rarely tested. The two readings have opposite implications for the external path: under pure elicitation, deployed agents meet a ceiling that only parameter updates can lift, whereas genuine acquisition would let weight-frozen systems keep improving. Current protocols, which compare an adapted agent against its own unadapted baseline, do not separate the two, and the effective reach of harness-level learning is correspondingly unclear.

10.2. 将外部经验固化到参数中10.2. Consolidating External Experience into Parameters

本节要点Section at a glance

harness 层的产物修改成本低,但始终与检索它们的上下文绑定;而参数更新的泛化范围更广,代价更高,且几乎不可逆。没有任何一种论述指明:一个反复出现的外部模式何时已经变得足够稳定和通用,可以内化到参数中。

Harness-level artifacts are cheap to revise but stay tied to the contexts that retrieve them, whereas parameter updates generalize more broadly at higher cost and with little reversibility. No account specifies when a recurrent external pattern has become stable and general enough to internalize.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §10.2 原文全文 · Expand the full original text

10.2. 将外部经验固化到参数中 10.2. Consolidating External Experience into Parameters

harness 层的产物修改成本低,但始终与检索它们的上下文绑定;而参数更新的泛化范围更广,代价更高,且几乎不可逆。没有任何一种论述指明:一个反复出现的外部模式何时已经变得足够稳定和通用,可以内化到参数中。持续学习(continual learning)界定了这一风险:内化可能覆盖早先的能力,其价值更应该从后向迁移与前向迁移来解读,而非只看目标任务精度。一个前置的问题是:什么才构成对累积经验的充分概括——因为在任何更新提交之前,harness 已经将原始交互编译成一个压缩的存储库(reservoir)。由于没有晋升(promotion)标准,把什么写入权重只能依赖人工判断。

Harness-level artifacts are cheap to revise but stay tied to the contexts that retrieve them, whereas parameter updates generalize more broadly at higher cost and with little reversibility. No account specifies when a recurrent external pattern has become stable and general enough to internalize. Continual learning frames the risk: internalization can overwrite earlier competence, and its value is better read from backward and forward transfer than from target-task accuracy. A prior question is what constitutes a sufficient summary of accumulated experience, since the harness already compiles raw interaction into a compressed reservoir before any update is committed. With no promotion criterion, the decision of what to write to the weights rests on manual judgment.

10.3. 弱反馈下的信用分配(credit assignment)10.3. Credit Assignment under Weak Feedback

本节要点Section at a glance

自改进在成功可以获得廉价且可靠检验的领域进展最快,例如程序执行或形式化验证。部署环境通常提供更弱的信号:目标规定不足、奖励稀疏、结果只在长轨迹的末尾才出现。

Self-improvement has advanced fastest where success admits a cheap and reliable check, as in program execution or formal verification. Deployment usually offers weaker signal: objectives are underspecified, rewards are sparse, and outcomes appear only at the end of long trajectories.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §10.3 原文全文 · Expand the full original text

10.3. 弱反馈下的信用分配(credit assignment) 10.3. Credit Assignment under Weak Feedback

自改进在成功可以获得廉价且可靠检验的领域进展最快,例如程序执行或形式化验证。部署环境通常提供更弱的信号:目标规定不足、奖励稀疏、结果只在长轨迹的末尾才出现。由此产生的失败是众所周知的。结果层面的信号并不指明是哪个步骤、技能或记忆起了作用,因此长时程上的信用分配(credit assignment)仍未解决;而针对近似验证器的优化,会随着施加在其上的压力增大而奖励对其缺陷的利用。感知类任务使这一问题雪上加霜,因为经验以观测流的形式到来,而当前系统既不能精确索引、也不能精确归因这些观测。对于没有现成判定(verdict)的任务,稠密且可信的反馈是自改进向已有判定领域之外拓展的前提条件。

Self-improvement has advanced fastest where success admits a cheap and reliable check, as in program execution or formal verification. Deployment usually offers weaker signal: objectives are underspecified, rewards are sparse, and outcomes appear only at the end of long trajectories. The resulting failures are familiar. An outcome-level signal does not indicate which step, skill, or memory was responsible, so credit assignment over long horizons remains unsolved; and optimizing against an approximate verifier rewards exploitation of its flaws as pressure on it grows. Perceptual tasks compound this, since experience arrives as observation streams that current systems neither index nor attribute with precision. Dense and trustworthy feedback for tasks without a ready verdict is a precondition for self-improvement beyond the domains where such a verdict already exists.

10.4. 自生成经验的稳定性10.4. Stability of Self-Generated Experience

本节要点Section at a glance

从自身的交互流中学习,在很大程度上意味着从自生成数据中学习:技能取自智能体自身的成功,记忆由它自己的判断写成,奖励由它自己的评估器给定。众所周知,在自产数据上递归训练会收窄并扭曲所学到的分布,而一个自行策展(curate)自身经验的智能体也承受着同样的压力。

Learning from one's own interaction stream means learning largely from self-generated data: skills taken from the agent's own successes, memory written from its own judgments, rewards assigned by its own evaluators. Recursively training on self-produced data is known to narrow and distort the learned distribution, and an agent that curates its own experience is subject to the same pressure.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §10.4 原文全文 · Expand the full original text

10.4. 自生成经验的稳定性 10.4. Stability of Self-Generated Experience

从自身的交互流中学习,在很大程度上意味着从自生成数据中学习:技能取自智能体自身的成功,记忆由它自己的判断写成,奖励由它自己的评估器给定。众所周知,在自产数据上递归训练会收窄并扭曲所学到的分布,而一个自行策展(curate)自身经验的智能体也承受着同样的压力。若缺乏外部信号的周期性锚定(grounding),一个长期运行的智能体可能固着在自身的先验上,并失去它曾经拥有的能力——这种退化正是它自身的更新所造成的。究竟多少外部锚定才能使累积经验保持信息量、以及如何在这种漂移复合放大之前检测到它,只有跨越现有评估很少覆盖的部署时间尺度才会显现。

Learning from one's own interaction stream means learning largely from self-generated data: skills taken from the agent's own successes, memory written from its own judgments, rewards assigned by its own evaluators. Recursively training on self-produced data is known to narrow and distort the learned distribution, and an agent that curates its own experience is subject to the same pressure. With no periodic grounding in an external signal, a long-running agent can settle onto its own priors and lose competence it once held, a degradation that its own updates produce. How much external grounding keeps accumulated experience informative, and how to detect this drift before it compounds, become visible only over deployment horizons that present evaluations seldom span.

10.5. 纵向评估10.5. Longitudinal Evaluation

本节要点Section at a glance

标准基准只报告单一时间点上的性能,可以显示智能体在目标任务上表现更好,却无法显示它作为一个系统得到了改进。没有任何已确立的关系能把累积经验与能力联系起来,如同缩放律(scaling relations)把数据、参数与推理计算联系起来那样。

Standard benchmarks report performance at a single time and can show that an agent does better on a target task without showing that it has improved as a system. No established relation links accumulated experience to capability in the way that scaling relations link data, parameters, and inference compute.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §10.5 原文全文 · Expand the full original text

10.5. 纵向评估 10.5. Longitudinal Evaluation

标准基准只报告单一时间点上的性能,可以显示智能体在目标任务上表现更好,却无法显示它作为一个系统得到了改进。没有任何已确立的关系能把累积经验与能力联系起来,如同缩放律(scaling relations)把数据、参数与推理计算联系起来那样。纵向协议会对同一个持续演化的智能体进行反复评估,并在目标结果之外报告早期能力的保持情况、每单位增益的成本以及安全性的任何变化;持续学习的后向迁移与前向迁移指标可直接适用,但很少被用于已部署的智能体。缺乏这样的测量,更高的得分也只是持久改进的弱证据。

Standard benchmarks report performance at a single time and can show that an agent does better on a target task without showing that it has improved as a system. No established relation links accumulated experience to capability in the way that scaling relations link data, parameters, and inference compute. A longitudinal protocol would re-evaluate the same evolving agent and report retention of earlier capabilities, cost per unit of gain, and any change in safety beside the target result; the backward and forward transfer metrics of continual learning apply directly but are rarely instrumented for deployed agents. Absent such measurement, a higher score is weak evidence of durable improvement.

10.6. 跨模型版本的迁移10.6. Transfer across Model Versions

本节要点Section at a glance

技能、记忆与 harness 配置都是针对产生它们的模型调校的,且往往编码了针对该模型特定失败模式的变通方案。基座模型的升级可能使这些调校失效或反转,因此长期部署中累积的经验无法跨越这一转变延续下去。

Skills, memory, and harness configuration are tuned to the model that produced them and often encode workarounds for that model's particular failure modes. A base-model upgrade can strand or invert this tuning, so experience accumulated over a long deployment does not carry across the transition.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §10.6 原文全文 · Expand the full original text

10.6. 跨模型版本的迁移 10.6. Transfer across Model Versions

技能、记忆与 harness 配置都是针对产生它们的模型调校的,且往往编码了针对该模型特定失败模式的变通方案。基座模型的升级可能使这些调校失效或反转,因此长期部署中累积的经验无法跨越这一转变延续下去。累积经验中哪些部分与模型无关、哪些部分绑定于特定模型与提示格式,尚未得到确立。一种跨版本保持有用、并允许汇集多次部署经验的表示,将使持久的经验教训比已部署系统频繁经历的模型更替存活得更久。

Skills, memory, and harness configuration are tuned to the model that produced them and often encode workarounds for that model's particular failure modes. A base-model upgrade can strand or invert this tuning, so experience accumulated over a long deployment does not carry across the transition. Which parts of accumulated experience are model-independent, and which are bound to a specific model and prompt format, has not been established. A representation that stays useful across versions, and that lets experience from many deployments be pooled, would allow durable lessons to outlast the frequent model changes that deployed systems undergo.

10.7. 多智能体系统中的协调与涌现10.7. Coordination and Emergence in Multi-Agent Systems

本节要点Section at a glance

多智能体系统通常是预先连线设定好的:设计者固定角色、通信渠道与协议,而加入的智能体只执行预先确定的子任务。这种组织结构能否反过来通过与改进单个智能体相同的适配来习得,相关研究还很少。

Multi-agent systems are usually wired in advance, with designers fixing the roles, the communication channels, and the protocols while added agents carry out predetermined subtasks. Whether this organization can instead be acquired through the same adaptation that improves a single agent has had little study.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §10.7 原文全文 · Expand the full original text

10.7. 多智能体系统中的协调与涌现 10.7. Coordination and Emergence in Multi-Agent Systems

多智能体系统通常是预先连线设定好的:设计者固定角色、通信渠道与协议,而加入的智能体只执行预先确定的子任务。这种组织结构能否反过来通过与改进单个智能体相同的适配来习得,相关研究还很少。另一个问题关乎涌现:一个群体能否出于组织的原因、而非聚合计算的原因,达到任何成员都不具备的能力。所报告的增益常常归结为增加的计算量,支持组织效应的证据则十分薄弱。习得协调结构、以及分离出真正集体性的能力,两者都尚未解决。

Multi-agent systems are usually wired in advance, with designers fixing the roles, the communication channels, and the protocols while added agents carry out predetermined subtasks. Whether this organization can instead be acquired through the same adaptation that improves a single agent has had little study. A further question concerns emergence: whether a population can reach capability that no member holds for reasons of organization rather than of aggregate computation. Reported gains frequently reduce to added compute, and evidence for organizational effects is thin. Learning the coordination structure and isolating genuinely collective capability are both unresolved.

10.8. 多模态经验编译10.8. Multimodal Experience Compilation

本节要点Section at a glance

文本可分解为离散单元,其对结果的相关性可以被单独分离并打分。视觉经验没有这样的规范结构。

Text decomposes into discrete units whose relevance to an outcome can be isolated and scored. Visual experience has no such canonical structure.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §10.8 原文全文 · Expand the full original text

10.8. 多模态经验编译 10.8. Multimodal Experience Compilation

文本可分解为离散单元,其对结果的相关性可以被单独分离并打分。视觉经验没有这样的规范结构。这种不对称意味着技能提取、记忆写入与环境反馈无法以与文本痕迹相同的保真度作用于视觉痕迹。经验复用最持久的系统全都依赖结构化文本接口,这一事实印证了上述差距。从外部强加结构——例如把帧分解成语义、空间与像素层,并与无障碍树(accessibility trees)等环境元数据对齐——或许能补足所缺失的粒度,但这类表示能否跨任务迁移,仍是一个悬而未决的实证问题。

Text decomposes into discrete units whose relevance to an outcome can be isolated and scored. Visual experience has no such canonical structure. This asymmetry means that skill extraction, memory writing, and environment feedback cannot operate on visual traces with the same fidelity as on textual ones. That the systems with the most sustained experience reuse both rely on structured text interfaces confirms the gap. Imposing structure externally, for instance decomposing frames into semantic, spatial, and pixel layers aligned with environment metadata such as accessibility trees, could supply the missing granularity, but whether such representations transfer across tasks remains an open empirical question.

10.9. 部署后修改下的安全10.9. Safety under Post-Deployment Modification

本节要点Section at a glance

对齐通常在发布前就已固定,然而自改进智能体此后仍在持续变化:安装技能、写入记忆、扩展工具,并在已认证配置之外更新参数。每一个使适配成为可能的表面,也可能通过渐进漂移或蓄意操纵侵蚀控制。

Alignment is normally fixed before release, yet a self-improving agent keeps changing afterward, installing skills, writing memory, extending tools, and updating parameters outside the certified configuration. Every surface that enables adaptation can also erode control, through gradual drift or deliberate manipulation.

↑ 本节开头两句要点;完整原文见下方展开框。

📖 展开 §10.9 原文全文 · Expand the full original text

10.9. 部署后修改下的安全 10.9. Safety under Post-Deployment Modification

对齐通常在发布前就已固定,然而自改进智能体此后仍在持续变化:安装技能、写入记忆、扩展工具,并在已认证配置之外更新参数。每一个使适配成为可能的表面,也可能通过渐进漂移或蓄意操纵侵蚀控制。元层面是最尖锐的情形:一个重写自身更新规则或评估器的过程,可能使本应维持的保证失效;而要在那里安全运行,预设了对智能体自身能力的校准估计,但一个不断变化的系统并不可靠地持有这种估计。对固定模型认证一次,并不能在部署后的一连串变化之上确立安全性质,而目前没有任何方法能够提供这种性质。改进与控制朝着相反的方向用力,而二者在持续演化系统中的权衡尚未得到处理。这些问题是相互耦合的。内化经验的判据预设了一种方式来验证所内化的经验确实起了帮助作用;纵向评估预设改进能够归因于某个原因;安全的自我修改预设智能体能够估计自身的能力。验证(verification)是它们共同的底层,而恰恰是这一能力随着智能体能力增强而扩展得最差。它们之下的经验对象仍然缺失:在长时间尺度上,反复适配之下的改进轨迹究竟会复合增长、饱和还是振荡,目前尚不得而知。进展更可能来自对“经验如何转化为能力”、以及“部署后适配何时可以被测量、内化与信任”的阐述,而非来自单个更强的智能体。

Alignment is normally fixed before release, yet a self-improving agent keeps changing afterward, installing skills, writing memory, extending tools, and updating parameters outside the certified configuration. Every surface that enables adaptation can also erode control, through gradual drift or deliberate manipulation. The meta-level is the sharpest case: a process that rewrites its own update rules or evaluators can void the guarantees it was meant to keep, and safe operation there presumes a calibrated estimate of the agent's own competence that a changing system does not reliably hold. Certifying a fixed model once does not establish a safety property over a sequence of post-deployment changes, and no current method supplies one. Improvement and control press in opposite directions, and their trade-off in continually evolving systems is untreated. These problems are coupled. A criterion for internalizing experience presumes a way to verify that the internalized experience helped; longitudinal evaluation presumes that improvement can be attributed to a cause; safe self-modification presumes that the agent can estimate its own competence. Verification underlies each, and it is the capacity that scales least well as agents become more capable. The empirical object beneath all of them is still missing: over long horizons, the trajectory of improvement under repeated adaptation is not known to compound, saturate, or oscillate. Progress will likely come less from individually stronger agents than from an account of how experience becomes capability, and of when post-deployment adaptation can be measured, internalized, and trusted.

结论Conclusion