Self-Evolving Agent HarnessSelf-Evolving Agent Harness
Formalizes self-evolution of a fixed-weight harness, gives conditional generalization and admission bounds, and discusses the propagation risk of persistent revisions.
- Tasks and environments change after deployment. The authors address: with model weights fixed, how to revise the harness (prompts, memory, workflows, and executable components) using execution feedback, so that accepted revisions persist across runs, and to give conditions for generalization and retention.
- Update goals are separated from proposals and admission. Interpretive states change instructions, memory, and coordination; executable revisions change components, repository-level control, or plugin composition. Search corresponds to evolutionary structure; under independent sampling assumptions, stability is used to write expected generalization and conditional retention bounds, and high-probability rules on fresh validation data are used for admission.
- No own experiments reported. In Table 2, GPT-5.4-nano with HarnessOpt+skill is 77.58%, which the authors claim is higher than GPT-5.5's SkillOpt, but does not constitute an advantage under matched cost. EIP first-task tool calls drop from 13 to 3, and the two cost reports are inconsistent.
- Continuous validation under admission and evaluator drift, plugin cost recovery, validation budget allocation, and combined behavior validation with authorization revocation are listed by the authors as open problems (Section 6). Quantitative material in the main text comes from cited cases; the authors do not report their own replication counts or numerical tests of the theoretical bounds.
- Benchmarks
- SpreadsheetBenchLiveBrowseComp
- Metrics
- accuracy (%)LiveBrowseComp score
A paper proposes a Self-Evolving Agent Harness framework that, with fixed model weights, updates the agent's software scaffolding through feedback-driven revision and evolution, including prompts, memory, workflows, and executable components. The paper separates update objectives from proposals and admission mechanisms, distinguishes modifications to declarative state from revisions to tools and code, repository-level control logic, and plugin composition, and characterizes the reliability of the search using continual PAC learning. Under explicit assumptions, the analysis gives expected generalization bounds, retention bounds constrained by a history regression budget, and a high-probability admission rule using independent fresh validation data. The paper also discusses the impact of persistent framework revision on knowledge sharing and organizational workflows, covering scientific reliability, physical safety, and institutional accountability, and notes that reliable deployment requires continuous validation as task distributions and evaluators change, with independent safeguards for learning, runtime permissions, and high-impact operations. The full paper is 66 pages, with code and supplementary materials continuously updated on GitHub.
Paper analysis
What problem does this paper attempt to solve?
Formalizes and persistently retains harness revisions under fixed weights, and gives generalization and admission conditions.
How, when model weights are fixed, to formalize harness self-evolution that persists across runs, and to state the conditions under which generalization, retention, and admission hold.
- Post-deployment adaptation: Tasks and environments change after deployment. The authors define harness self-evolution as revising instructions, memory, and control logic using execution feedback, with weights kept fixed; subsequent runs load accepted revisions, and the update mechanism can still learn from new experience (Section 2). The background is recursive self-improvement and self-referential problem solving (Good, 1965; Schmidhuber, 2003).
- Why modify the harness: The authors give three reasons. The harness directly shapes the behavior of the fixed model; reusable programs preserve constraints and lessons from previous failures; revising the harness reuses existing deployments, avoiding retraining and extra checkpoints, and can also be updated through proprietary APIs without weight access; instructions, memory, and code are easy to inspect, compare versions, and track changes, whereas behavioral differences between checkpoints may require additional controlled experiments. Joint model–harness evolution is deferred to Section 6.1.
- Gap in existing approaches: The authors state that existing methods differ in what is modified, how candidates are generated, and how revisions are admitted (Shinn et al., 2023; Zhao et al., 2024; Wang et al., 2024; Zhang et al., 2025b; Robeyns et al., 2025, cited in the introduction). Empirical selection alone does not establish generalization or capability retention.
- Taxonomy and what this paper provides: Update targets are separated from proposals and admission. Interpretive-state updates modify instructions, stored experience, or task-level coordination over predefined capabilities; executable revisions modify capability implementations, runtime control logic, or plugin-style service composition (Section 3; Figure 1). The contributions are a persistent feedback-driven lifecycle and taxonomy, conditional bounds from stability and concentration results, and discussion of propagation, repair, and safety controls in five scenarios (Sections 2–6).
What related research exists?
Related work is grouped by self-improvement precursors, experience revision, evolutionary search, and learning theory.
The authors organize the discussion by self-improvement precursors, empirical revision on fixed models, evolutionary search, and learning theory, and separate update targets from proposals and admission.
Recursive self-improvement precursors
- Good and the Gödel Machine: The introduction traces recursive self-improvement and self-referential problem solving in contemporary agents to Good (1965) and Schmidhuber (2003). EURISKO's heuristic revision (Lenat, 1983) and the Gödel Machine's proof-constrained self-rewriting are called by the authors different precursors of harness self-evolution (Section 3).
- Out-of-scope adaptations: Changing only weights, and scaffolding without an update mechanism, are placed outside the scope of this paper. If a system also trains weights, the authors examine its harness updates only while the task model is fixed (Section 2).
Empirical revision on fixed models
- Prompts, memory, and workflows: Reflexion (Shinn et al., 2023), ExpeL (Zhao et al., 2024), Voyager (Wang et al., 2024), AFlow (Zhang et al., 2025b), Promptbreeder (Fernando et al., 2024), GEPA (Agrawal et al., 2026), and Agent Workflow Memory (Wang et al., 2025b) revise prompts, consolidate memory, or search workflows using empirical feedback. The authors state that these methods differ in what is modified, candidate generation, and admission, and separately note that empirical selection itself does not establish generalization or retention.
- Executable revisions and plugins: Skill libraries retain executable functions for retrieval and composition (Wang et al., 2024; Yu et al., 2025); Self-Harness, HarnessCompass, and Agentic Harness Engineering constrain trajectory-guided mutation to selected components. Repository-level work searches control programs or retains implementation lineages, with named examples including SICA, DGM, HGM, Meta-Harness, DarwinX, and others. On the plugin side, examples include the DeepSeek harness (DeepSeek-AI, 2026) and EIP, which generates and mounts capabilities at runtime (Shen, 2026; Pan, 2026). The authors state: classifying update targets does not determine whether a method satisfies feedback, continuity, and persistence; interface contracts also do not establish behavioral isolation or safety admission.
Search structure and learning theory
- Evolutionary correspondences: Figure 2 maps harness and skill optimization to elitist (1+1), (1+λ), archive search, recombination, quality diversity, cooperative coevolution, Pareto selection, and bandit-guided budget allocation. The authors state the correspondences are limited; for example, merging differs from the single-survivor rule of canonical (1+λ)-ES, the program-search analogy does not imply tree-based genetic programming operators, Trace2Skill's consolidation itself does not constitute an evolutionary loop, HarnessCompass does not explicitly maintain independently evolving subpopulations, and the Pareto correspondence does not constitute a full multi-objective evolutionary algorithm like NSGA-II.
- Stability and continual learning: Continual PAC learning discusses retention under memory constraints (Chen et al., 2022); stability is cited from Shalev-Shwartz et al. (2010), concentration inequalities from Hoeffding (1963), and the validity of adaptive reuse from Dwork et al. (2015). Gan et al. (2026) and Cai et al. (2026b) are used to distinguish optimization from generalization and to connect reliable adoption to verification cost. Specification gaming, algorithmic monoculture, and emergent risks of self-evolving agents appear in the application discussion, not as experimental baselines.
Comparisons in cited cases
- This paper has no experimental baselines of its own. Table 2 cites Shen et al. (2026a) for Initial, SkillOpt, SkillOpt-Lite, and HarnessOpt on SpreadsheetBench. Tables 3–4 cite Pan (2026) for baseline and LiveBrowseComp entries.
The authors distinguish this paper from these works by: separating update targets from proposals and admission, distinguishing interpretive states from executable revisions, and giving conditional bounds under explicit assumptions, rather than treating every revision as an improvement. Harness RSI is the domain name. The authors state that broader literature, evaluation, and impact discussion are in the companion report, and Appendix A only lists its table of contents.
How does the paper address this problem?
Feedback revision and persistent harness, with admission constrained by stability and freshness validation.
The framework treats all software and configuration outside model M as harness H, revises H with execution feedback and retains it across runs; search is described with evolutionary structure, and admission uses only a high-probability rule on fresh verification. Execution and scoring are written as τ ∼ Run(M, H, E), y = J(τ): trajectories are generated by the model, harness, and environment, and J gives the final evaluation.
Problem setup and lifecycle
- Objects: H governs M's execution in environment E. Model adapters belong to H; learned parameters belong to M. Table 1 summarizes seven runtime functions: execution loop and termination, tool and skill orchestration, context construction, memory and state, context compression, scheduling and coordination, and execution infrastructure. Implementations may place multiple functions in the same module.
- Evaluation boundary: Candidates may modify criticism or temporary checks inside H, but cannot modify J. J includes scoring, result verification, and the records that determine the result.
- One update round: Round k consists of the incumbent Hk−1 producing a batch b of rollouts, each containing a trajectory, result, and available feedback, then Update produces Hk. Update combines diagnosis, proposal, evaluation, and admission, and may use historical feedback, archived candidates, and additional verification rollouts. If no revision is accepted, the incumbent is retained.
- Two requirements: Algorithmically construct or select revisions using feedback from one's own execution, and retain the mechanism for continued updating; environments, automated evaluators, and humans can all give feedback, and admission may require human approval. Accepted revisions are stored and loaded in subsequent runs. The authors state that when both hold, a single observed update suffices to demonstrate the capability. Appending logs or compressing context under fixed rules does not count as revising the harness; learning reusable programs or changing memory strategy can. Revising the update mechanism is a deeper level of recursion. Self-evolution refers to the update process; self-improvement refers to gains established through comparison. The domain name does not assume every revision is helpful.
Update targets
- Interpretive state and executable: The distinction lies in the role of the edited artifact, not the programming language. Changing task-level order or routing only through fixed coordination interfaces over predefined operators still counts as interpretive state, including code that only composes these operators. Changing operator implementations or the runtime mechanisms that implement coordination is an executable revision. Figure 1 draws the path from instructions and prompts, to context, memory, and reusable programs, then to workflows and topology, then to executable components and runtime.
- Components and code patches: Mutation is limited to callable procedures or specified modules; surrounding orchestration is not on the editable surface. When entry points and input–output contracts are fixed, candidates replace implementations; tool synthesis can also extend callable interfaces. The authors state that stable interfaces facilitate replacement and local inspection, but output or shared-state changes can propagate regressions beyond the module.
- Repositories and runtime: Editable context construction, orchestration loops, execution hooks, recovery, and termination. The boundary is control over interactions between components, not how many files are changed. Archiving only retains candidates for continued search; adoption additionally promotes the selected program to the runtime for subsequent tasks. An exported program satisfies the persistent lifecycle only if the update mechanism remains in deployment. If mutation extends to the optimizer's prompts, hooks, and tools, the update mechanism itself can evolve.
- Plugins: Mutation is organized with declared interfaces, dependency constraints, and lifecycle operations. Editable objects can be component implementations, or decisions about which implementation provides memory storage, tool distribution, or the agent loop. EIP extends this to capabilities generated, verified, and mounted at runtime. The authors state: interface contracts support compatibility checks and replacement, but do not establish behavioral isolation or safety admission; adoption still requires verifying combined behavior. A single revision type can belong to multiple categories.
Evolutionary search
- Four aspects: the representation of mutable state, the mutation that produces edits, fitness evaluation, and which states are retained. Trajectories and critiques can guide mutation; admission depends on subsequent evaluation.
- Structure and limits: Local elitism concentrates search near the incumbent; archives retain other lineages; Pareto selection balances competing objectives. Figure 2 summarizes eight correspondences, limits, and representative methods. Categories can overlap; a correspondence is not a full canonical algorithm. The authors state that all three mechanisms select by empirical fitness, and accepted revisions may overfit or forget.
Generalization, retention, and admission
- Sampling assumptions: Xk records the harness, skills, archive, and feedback memory after round k, and Hk = Deploy(Xk). The stability analysis assumes Dk contains nk tasks drawn from an exogenous distribution, independent within and across rounds; auxiliary randomness in Uk and external evaluation samples are independent of these draws, and feedback derived from tasks still belongs to the update process. The model and evaluator are fixed. The loss is in 0 to 1 and averaged over execution randomness.
- Stability and retention: After replacing one task and rerunning all downstream updates, βs,k is the mean absolute expected loss difference, and the expected generalization gap is no larger than βs,k. This bound does not control a single run, and a small code edit by itself does not imply the whole update process is stable. Fs,k = Rs(Hk) − Rs(Hs), with positive values indicating forgetting and negative values indicating backward transfer. If each subsequent step's risk increase is no more than budget εs,u, forgetting is no more than the sum of these budgets; combined with round s's stability, expected risk is no more than the expectation of that round's empirical risk, βs,s, and the sum of budgets. These budgets are separate assumptions, not consequences of stability, and they accumulate. Checking them requires groupwise uncertainty control over the deployed combination, including merged edits and shared routers.
- Admission on fresh verification: Historical risk uses a uniform mixture. In each of T rounds, first fix at most K candidates, then draw m independent tasks to form Vk, independent of candidate construction given prior history. Paired differences are in −1 to 1. After a conditional Hoeffding bound and a union bound over at most KT comparisons, with probability at least 1−δ, simultaneously Δk(H′) ≤ Δ̂k(H′) + √(2ln(KT/δ)/m). Only candidates with a negative upper bound are accepted. Edits or merges that used Vk require re-verification. Gains on the mixture do not guarantee groupwise retention. Sample size is determined by independent tasks; extra rollouts only reduce execution noise. If evaluator risk differs from target risk by at most η, a sufficient condition for target-risk improvement is that this upper bound plus 2η is still negative. η requires executable checks or independent human evaluation; without that bound, the certificate concerns only the evaluator-defined loss and is against the historical mixture, not arbitrary future distributions.
- Difference from existing checks: The authors state that HarnessBank uses training tasks for screening and then a separate final test, and Self-Harness reuses a held-out regression split; these search-phase checks lack the above independence. Secrecy and multiple-comparison corrections cannot remove adaptive dependence.
What experiments did the paper conduct?
No own experiments; numbers in the table are transcribed from SpreadsheetBench and EIP cases.
The main text contains no experiments run by the authors themselves; the quantitative material consists of cited cases, which the authors use to discuss model–harness pairing and reuse costs, and they state that these do not establish matching costs or causal benefits.
Experimental Setup
- Authors' experiments: The paper does not report models, repetition counts, query budgets, or judge models run by the authors themselves. The bounds in Section 4 are not numerically tested.
- SpreadsheetBench: The accuracy (%) in Table 2 is converted from the proportions in Shen et al. (2026a) Table 3. The models are GPT-5.4-nano, GPT-5.4-mini, GPT-5.4, GPT-5.5. The conditions are Initial, SkillOpt, SkillOpt-Lite, HO only, HO + skill; HO is HarnessOpt. The paper does not state the sample size of this benchmark.
- EIP and LiveBrowseComp: Tables 3–4 come from Pan (2026). Table 3 compares the tool calls, tokens, and wall-clock of baseline and EIP. Table 4 retains the source's model grouping, and the authors state that the score units are unspecified.
- Latency figure: Figure 3 is adapted from the fixed-deployment study of Shen et al. (2023), not a harness evolution experiment. It compares a Jetson Nano client, an RTX 4090 edge server, and Azure; the load is 10% classification, 40% captioning, 50% visual question answering. The horizontal axis Rate (KB/s) goes to 100–500, and the vertical axis is System latency (Sec).
- Theoretical loss: ℓ(H, z) takes values from 0 to 1, averaged over execution randomness. The main text does not connect this loss to the scoring protocols of the above tables.
- How the authors use the cases: To illustrate pairing and potential reuse savings, and they state that this does not establish an advantage under matching costs, nor causal plugin benefits.
Main Results
According to Table 2 (adapted from Shen et al., 2026a; SpreadsheetBench accuracy, %).
Swipe horizontally to read the table
Model Initial SkillOpt SkillOpt-Lite HO only HO+skill GPT-5.4-nano 29.89 51.60 66.19 76.51 77.58 GPT-5.4-mini 28.21 47.50 73.31 81.14 82.56 GPT-5.4 39.86 61.50 79.36 83.63 85.05 GPT-5.5 37.37 76.20 79.72 83.63 85.77 - The authors state that nano's HO+skill exceeds GPT-5.5's SkillOpt, to illustrate model–harness pairing, and they state that this does not establish an advantage under matching costs.
- The authors state that across the four models, HO+skill improves over SkillOpt-Lite by 5.69–11.39 percentage points.
- These numbers are not results run in this paper. GPT-5.4 and GPT-5.5 have the same HO only value of 83.63 in the table, and the authors offer no separate explanation.
EIP Costs and the Discrepancy Between the Two Reports
- What was measured: Pan (2026)'s simulated office spreadsheet task. Spreadsheet language and content differ across regions, and the computation is similar. Codex generates tools during execution and leaves them for subsequent tasks.
- First task: Tool calls dropped from 13 to 3, tokens from 41,119 to 47,572, and wall-clock from 15.49 s to 24.00 s (Table 3(a)). The authors state that wall-clock rose 54.9% and tokens rose 15.7%, and that the first-task total implies an increase of 6,453 tokens and 8.51 s.
- Cumulative and inconsistency: The cumulative difference is negative from the second item onward, and after five items is −110,351 tokens and −22.97 s (Table 3(b)). The cumulative row 1 is +4,895 tokens and +6.74 s. The authors state that this unresolved discrepancy means the two reports cannot be treated as a single cost trajectory; a negative cumulative difference indicates savings. Establishing causal plugin benefits and general reuse benefits still requires repeated runs, matched budgets, and matched task quality.
LiveBrowseComp Scores
- What was measured: LiveBrowseComp as reported by the same source. Table 4 is divided into <40B、<400B、>1T or closed-source three groups, eleven entries in total, with units unspecified.
- Results: XYZ + dsh-everything is 51.39, and XYZ-Aquila-mini is 48.7. The authors state that among the six listed <40B 条目中排第一,在全部十一条中排第二。表中更高的是 <400B 组的 XYZ-Aquila-pro,53.7。>1T or closed-source groups it lists DeepSeek V4-Pro 38.3 and Kimi-K2.6 31.7.
- Authors' interpretation: These reports illustrate potential reuse savings and model–harness pairing, and do not by themselves establish causal plugin benefits.
Fixed-Deployment Latency
- What was measured: Shen et al. (2023)'s client–edge partitioning and feature compression, with the comparisons being lossless transmission of input images at the edge side and cloud-side inference. The authors use it to illustrate communication trade-offs, not an evolved harness.
- Results: The authors state that at the study's 100–500 KB/s, client–edge collaborative inference has the lowest latency (Figure 3). The text conversion cannot see the endpoint values of each curve, so specific seconds cannot be written.
- Authors' interpretation: Runtime revisions change execution costs and where components are placed. Subsequent comparisons of deployment choices should account for harness synthesis, verification, and distribution costs.
Other Ablations and Analyses
- The paper does not report its own ablation or parameter-sweep numbers.
- Figure 2 only gives the correspondences of eight search structures and the correspondence limits stated by the authors, with no performance numbers.
- Section 4.2 states that the search-period checks of HarnessBank and Self-Harness lack the independence required by fresh independent validation, and the main text gives no values measured from this.
What are some points that can be further explored?
Continuous validation, plugin lifecycle, and authorization revocation are listed as open problems.
The authors write continual verification, model–harness division of labor, plugin lifecycle, and safety boundaries as future directions, not as completed experimental conclusions.
Limitations and future directions noted by the authors
- Errors can persist: The conclusion states that persistent revisions can preserve knowledge but may also propagate errors and cause irreversible consequences; deployment requires continual verification under distribution and evaluator drift, with independent controls over learning, runtime permissions, and consequential actions (Section 7).
- How models and harnesses divide labor: Future work should compare model selection, skill optimization, runtime revision, and weight updates under matched budgets, accounting for adaptation cost and subsequent execution cost; and test frozen, migrated, and re-evolved harnesses between checkpoints, and which update order preserves prior capabilities (Section 6.1).
- Distributed placement: When comparing deployment choices, the costs of harness synthesis, verification, and distribution should be included, across network conditions and update frequencies, under matched quality and privacy constraints (Section 6.2).
- When to retain plugins: One should measure how many related tasks are needed to recoup generation and verification costs at matched quality, including repair and dependency maintenance; and examine, as task similarity, reuse frequency, and interface changes vary, when a retained tool remains useful and when regeneration is more appropriate. Admission should test combined behavior (Section 6.3).
- Verification budget: How to allocate budget among calibration, admission, and regression checks remains open. After evaluator changes, η needs independent calibration; protecting J does not prevent specification gaming. Reused calibration tasks cannot replace fresh admission evidence (Section 6.4).
- Safety boundaries: Verifying combined behavior, and revoking authorization when dependencies change, remain open problems. The authors suggest defenses be evaluated by attack success rate, isolation time, and legitimate-work overhead; creating capabilities must not thereby grant permissions (Section 6.5).
Experimental coverage
- Quantitative numbers in the main text come from cited cases: four models on SpreadsheetBench (Table 2, from Shen et al., 2026a), EIP table costs (Table 3, Pan, 2026), eleven LiveBrowseComp entries (Table 4, Pan, 2026), and a fixed-deployment latency adapted from Shen et al. (2023) (Figure 3).
- The paper does not report the number of repetitions, queries, or evaluation models run by the authors themselves, nor does it state the sample sizes for SpreadsheetBench and LiveBrowseComp.
- For Table 4's score units, the paper states they are not specified. The two cost reports in Table 3 are written by the authors as not combinable into a single trajectory.
- Section 4 gives symbolic bounds for expected generalization, conditional retention, and high-probability admission; the main text does not report experimental values testing these bounds.
- Appendix A lists that the companion report contains evaluation practices, longitudinal evaluation, and benchmark discussion; that part is not in the main text of this preprint. The authors state the companion material is continuously updated, and the main text does not give new numbers from that material.
Summarize the main content of the paper
Harness evolution framework under fixed weights: conditional bounds, and errors can propagate through revisions.
This is a harness self-evolution framework with fixed model weights: it defines persistent updates, classifies them by mutation boundary, and writes out generalization, retention, and admission conditions under explicit assumptions. Harness RSI is a domain name, not an assumption that every revision is helpful.
- Problem: Tasks and environments change after deployment. The authors argue that modifying the harness can shape the behavior of a fixed model, reuse existing deployments, and facilitate version inspection; relying only on empirical selection does not provide generalization or capability retention. Only changing weights, and scaffolds without an update mechanism, are out of scope.
- Approach: H governs M's execution in environment E, and candidates cannot modify the final evaluation J. One update round merges diagnosis, proposal, evaluation, and admission; if not accepted, the incumbent is retained. Interpretive states change instructions, memory, and task-level coordination; executable revisions change component implementations, repository-level control logic, or plugin composition, and categories can overlap. Search corresponds to evolutionary structure, but correspondence is not a complete canonical algorithm. Under assumptions such as task independence, stability controls the magnitude of the expected generalization gap, a historical regression budget controls cumulative forgetting, and Hoeffding and union bounds on a fresh validation set admit only candidates with a negative upper bound.
- Transferred numbers: On SpreadsheetBench, GPT-5.4-nano with HarnessOpt+skill is 77.58%; the authors claim it exceeds GPT-5.5's SkillOpt (76.20%), and is 5.69–11.39 percentage points higher than SkillOpt-Lite across four models, but does not establish an advantage under matched cost (Table 2). EIP first-task tool calls dropped from 13 to 3, and the five-task cumulative token difference is −110,351, but the two cost reports are inconsistent (Table 3). On LiveBrowseComp, XYZ + dsh-everything is 51.39, units unspecified; the authors claim it ranks first among six <40B entries and second among eleven entries (Table 4).
- Authors' conclusion: Persistent revisions can carry programs to subsequent tasks, but also carry errors to scenarios with different permissions, data, or physical consequences; software rollback cannot cover deformation, damage, missed treatment windows, or already-denied eligibility. The authors argue that deployment requires continuous validation under distribution and evaluator changes, and place control of learning, runtime permissions, and consequential actions outside the editable surface. How models and harnesses allocate adaptation budgets, when plugins are regenerated, how validation budgets are divided, and how compositional behavior is validated are listed as future questions.