The Fault Line in Recursive Self-Improvement: How to Inherit Agent Experience Across Models
Recursive Self-Improvement (RSI) usually means tuning the execution harness around an LLM, not retraining the model itself. This article explains why a harness that performs well on one model can score lower than a fresh default harness after being migrated to a new model: the migration keeps the results but drops the decision context. It breaks down the resulting failure modes, introduces a three-layer self-improvement memory structure (change log, causal rationale, and evidence with failure boundaries), and shows how capability profiles help decide whether to inherit, rewrite, or discard past experience. It closes with practical engineering recommendations for version control, review cycles, shadow-traffic rollout, retrieval limits, and end-to-end logging.
1. Where the Problem Starts: Why the Mecha Fails After a Brain Swap
With the rapid adoption of AI agents, Recursive Self-Improvement (RSI) is becoming a major engineering focus. One clarification is needed: in most engineering practice, “improvement” does not mean modifying the hundreds of billions of low-level weights inside a large model. It means refining the execution framework wrapped around the model, commonly called the harness. Prompt templates, tool-call descriptions, result interception rules, and retry and fallback policies all live in this “mecha.”
The traditional approach is to let the model repeatedly fail and recover on a large number of real tasks, gradually tuning the harness to fit its own characteristics. But a fatal structural problem appears: the harness is tightly coupled to the brain. Once the underlying model is replaced, a carefully tuned framework not only stops helping but becomes a liability.
A research team observed a counterintuitive result in an experiment: an execution framework that had been deeply evolved on a previous-generation strong reasoning model, with excellent metrics, scored lower overall than the new model’s own initial framework when migrated unchanged. This result deserves close attention from developers, because it means experience is not naturally transferable.
2. Root Cause: What Gets Lost Is Not Code but Decision Context
Why does performance regress? The core reason is that migration preserves only the “results” and discards the “reasons.”
When a new model takes over, it sees a screen full of complex rules, interceptors of unknown origin, and layers of nested prompt constraints. It cannot answer three key questions: which failure case did this rule originally fix? How many experiments were used to calibrate this interception threshold? Which approaches have already been disproven and should not be tried again?
Without this information, the optimizer can only act on local signals. Typical failure modes include:
- Judging defensive code that guards against critical defects as redundant and deleting it.
- Re-proposing approaches already rejected by experiments, wasting a large amount of iteration budget.
- Rewriting prompts to look “cleaner” while breaking the original format constraints.
- Allowing threshold parameters to drift randomly, causing interceptors to misfire on normal input.
Illustrative pseudocode makes this fragility more concrete:
# Before migration: the rule is bound to its "why"rule = {"pattern": "tool_output_empty","action": "retry_with_stricter_schema","reason": "case_1842: empty output crashed downstream parsing","evidence": {"pass_rate_before": 0.61, "after": 0.88}}# After migration, if only pattern/action are kept and reason/evidence are zeroed out,# the optimizer treats this branch as prunable logic
3. The Solution: A Three-Layer Structure for Self-Improvement Memory
To make experience heritable, tacit knowledge must be made explicit and structured. The self-improvement memory mechanism being explored in the industry is essentially an iteration log with an evidence chain, which can be abstracted into three layers.
The first layer is the change log. Every modification to the framework is written as an immutable entry containing the location of the change, the form of the change, and the IDs of the failure samples that triggered it. It answers “what changed.”
The second layer is the causal explanation. Each change is annotated with both natural-language and structured descriptions: what the hypothesis was, what the expected benefit was, and which model capability characteristics it depended on. It answers “why it changed,” and it is the most valuable part for cross-model migration.
The third layer is evidence and failure boundaries. It records quantifiable metrics before and after the change, confidence intervals, and the conditions under which the change fails. It answers “how strong the evidence is and when it should not be used.”
With all three layers in place, the onboarding process for a new model shifts from “blind editing” to “read the archive before acting”: first retrieve historical entries relevant to the current task, determine which experiences depend on capability gaps in the replacement model, and then decide whether to inherit, rewrite, or discard them.
4. The Key to Cross-Model-Family Inheritance: Capability Profile Alignment
The prerequisite for experience to be inherited across model families is not memory itself, but the match between memory and capability profiles. In practice, you can maintain a capability profile for each model, noting its performance on dimensions such as structured-output adherence, long-context stability, tool-call accuracy, and code-editing granularity preferences.
During migration, run a matching step: if a historical experience depends on “strong format adherence” but the new model is weak on that dimension, the experience should not be inherited directly but converted into stricter external validation; if the new model is stronger at long context, trimming rules originally introduced to compress context can be relaxed. This turns the memory store from a list of dogmas into a set of negotiable design constraints.
5. Engineering Recommendations
- Manage memory entries and code changes in the same repository, and review the diff and the reason together to avoid memory rot.
- Set a review cycle and failure conditions for each experience; automatically flag it for revalidation when metrics drift beyond a threshold.
- Use a gradual rollout for migration: first run the new framework on shadow traffic, compare it against the native framework, then increase traffic step by step.
- Control retrieval size by injecting the Top-K entries by task similarity, preventing context from being flooded by historical noise.
- Keep end-to-end logs, metrics, and alerts. You can build a traceable experiment archive using general-purpose cloud capabilities such as logging services, monitoring and alerting, and object storage; general capabilities from Baidu AI Cloud can serve as a reference when selecting infrastructure.
6. Conclusion
The bottleneck of RSI is shifting from “stacking compute” to “the reuse efficiency of experience assets.” Persisting decision reasons along with evidence, so a new model can continue iterating with explainable context, is the viable path to avoid starting from zero every time you switch models. For developers, the time to start building structured iteration memory for your execution framework is now.
