AI Agent Self-Improvement Bottlenecks: Why Harness Transfer Fails Across Environments
This article examines the practical limits of recursive self-improvement (RSI) in AI agents, showing that a harness tuned on one model or task distribution can become a negative asset after migration. It formalizes an experiment into three objects (model, task set, harness), explains why scores lose their guidance once the environment drifts, and outlines three handover strategies based on what needs to be shared. A sample YAML handover manifest and key engineering constraints—evaluation contamination, sparse rewards, context bloat, regression risk, and compute cost—are included.
1. The Handover Problem: Patch the Old Rules or Start Over?
Imagine taking over an AI agent project. The previous engineer left behind a full set of agent working rules: the setup scored 68.41 on coding tool A, and when the same set of office tasks was run on tool B, it also opened at 68.41—while the original, untuned version of the rules actually scored 73.89. In other words, ten rounds of the previous engineer’s tuning had turned into a negative asset in the new environment.
The person taking over faces two options: keep patching the old rules, or clear everything and start again. A published controlled experiment in the industry ran both paths to completion. After ten rounds, tuning from scratch reached 82.98. Carrying over the old rules together with the reasons for each change and the measured results reached 84.75—1.77 points higher than tuning from scratch. The third group, which received only the old rules and had to guess the motivation behind each change, ended at 73.42—lower than starting from zero.
The value of these numbers is not the 1.77 points themselves, but the fact that they quantify an engineering problem: the value of rules lies not in the rule text, but in the binding relationship between the rules and the environment that validates them. Once the environment drifts, rules stripped of context degrade into noise; rules that carry their context remain assets.
2. What a Harness Is: What Actually Gets Modified Is the “Shell”
In the paper’s framing, a harness is a layer of execution rules wrapped around the model weights. It determines which context the model can read, how many times a failed tool call is retried, how retrieval results are truncated, and under what conditions the model is allowed to declare a task “complete” to the user.
The key point is that the model weights can stay completely frozen while only this shell changes: generate several candidate versions, score them on a fixed task set, keep the ones that perform well, and move into the next round. This is what recursive self-improvement (RSI) looks like in engineering practice—not a model rewriting its own parameters, but the system of “model + shell” rewriting its editable parts round by round, driven by an external evaluation signal. What people call a model’s built-in memory usually lands as this ever-growing log of modifications and the library of reasons behind them.
3. Why Transfer Degrades: Breaking the Experiment into Three Objects
To understand the degradation, first formalize a single experiment into three objects:
- M: the model that performs the execution;
- X: the task set used for evaluation;
- H: the modifiable rule set (the harness).
The goal of iteration is to search for a better H under fixed M and X. The score is H’s performance on X, so the score inherently carries two implicit assumptions: M has not changed and X has not changed. During cross-environment transfer, at least one of these assumptions breaks, and the score’s guidance decays accordingly—it can only answer “which version was better at the time,” not “which version is better now.”
Degradation is not exclusive to office tasks. Under cross-model transfer, the inherited starting point in all four domains fell below the respective initial version, with gaps ranging from 0.60 to 5.48 points. Cleaner evidence comes from a change in data distribution: in the few-shot full-set configuration for text classification, the holdout set on the old data rose from 76.60 to 83.01, showing the optimization was genuinely effective; but directly inheriting onto new data scored only 72.92, below the initial version’s 75.72. The progress in the old environment was real, and the regression in the new environment was real too.
The most common trigger in the field is the implicit assumptions hard-coded for the old model. A typical symptom is logs starting to fill with invalid tool call: the tool orchestration logic itself has not changed, but the call formats, argument-completion habits, and self-correction behavior after failures that the old model tolerated no longer hold on the new model. As a result, retry logic designed specifically for the old model becomes an amplifier, turning occasional errors into persistent ones.
4. What to Share to Keep Going: The Boundaries of Three Handover Strategies
For a tuning effort to keep running on the other end, the two sides must share not just H, but “H’s change history + the reasons for changes + validation evidence.” This yields a rule for choosing a strategy:
- Same model, same task distribution: inherit H directly—maximum benefit, lowest risk.
- Same model, drifted task distribution: inherit H and the reason library, but rebuild the holdout set with new data before re-evaluating.
- Switching models: treat H as a “prior to be validated,” not a conclusion; prioritize inheriting the reasons and the list of failure modes, and rewrite the rule text according to the new model’s tool-calling characteristics.
A schematic handover manifest structure:
harness:version: 12rules:- id: retry_policyvalue: max_retry=2reason: "The old model showed a significant improvement in second-retry success rate under timeout scenarios"evidence: {metric: pass_rate, delta: +3.1, env: "modelA/taskset_v3"}assumptions: ["Tool error messages can be correctly parsed by the model"]inherited_from: null # set to untrusted_prior after switching environments
The two fields assumptions and evidence.env are the minimum cost of preventing a “negative asset handover.”
5. Implementation Bottlenecks and Engineering Constraints
- Evaluation set contamination and overfitting: ten rounds of iteration are enough for H to memorize the holdout set, so evaluation sets need to be rotated and a sealed set that never participates in the search must be kept.
- Sparse and noisy reward signals: office-type tasks lack a single correct answer, so a hybrid score combining rule-based checks + process metrics + manual spot checks is recommended.
- Context and memory bloat: a linearly growing modification log crowds out effective context, requiring summarization and retrieval sharded by task domain.
- Regression risk: every round of changes should be rollback-able, keeping the baseline version and one-click switching.
- Cost and compute constraints: parallel evaluation of candidate versions can leverage elastic scaling on container platforms, with evaluation data and logs landing in object storage, and tracing and metrics handled by logging and monitoring/alerting services, forming an auditable closed loop.
6. Conclusion
Recursive self-improvement is more accurately positioned today as “automated search at the shell layer,” not autonomous model evolution. Its benefits are real within a stable environment, while the risk concentrates at the moment of environment switching. The most cost-effective engineering approach is neither blind inheritance nor thoughtless re-tuning, but depositing the reason and validation evidence alongside every change, so the next person taking over receives a traceable decision chain rather than a configuration of unknown origin.
