Why Agent Rule Memory Stalls in Production

    Public tests suggest that carrying tuned agent rules to a new model helps only when the change reasons and measured results travel with them. This article explains why scores drop on migration, what a useful memory record contains, when to keep editing versus rewrite, and the evaluation, drift, cost, permission, and audit limits that erase small gains.

    Whether an agent can carry already tuned working rules to a new model and new tasks, then keep improving through its own memory, is a practical question in enterprise automation. One public comparison makes the gap concrete. The same rule set, moved to another model for office tasks, started at about 68. That model’s own initial rules scored about 74. After ten rounds, tuning from scratch reached about 83. Reusing the old rules while keeping the reason for every change and the measured results reached about 85. The margin is small, but the direction is clear: memory is not pasting an old prompt unchanged. It turns “why we changed it, and what the test showed” into experience that can be retrieved. In production, that edge is easily consumed by how you evaluate, what it costs, and what governance requires.

    Why rule migration loses points

    Working rules usually mix three things: the task goal, the operating steps, and wording habits that only work on the original model. The first two can transfer. The third often cannot. After a model change, the same instruction to “plan first, then act” makes one model over-plan and another skip steps. Tool-call formats, refusal thresholds, and how attention is spent on long context also differ. “Tuned on model A” only shows that the rules match A’s inductive bias. It does not show that the rules have converged on the best policy for the task.

    A lower starting score than the native rules does not mean the old rules are useless. They often already encode business constraints: which fields must be checked, when a case must go to a person, and what layout the output must follow. Retuning from scratch can raise surface scores in the first few rounds while dropping those constraints. The value of continued editing is to record constraints and scores separately, not to keep or discard a rule set based on one total score.

    What memory is actually optimizing

    If you store only the “current best rules,” the optimizer fights its own amnesia every round. It repeats the same class of format error, or deletes a check that the previous round just added. If you also store the reason for the change and the measured results, iteration stops being a lucky prompt edit and becomes a case-backed policy search.

    A useful record should contain at least four items:

    • Trigger: which kind of input, and which step failed.
    • Intent: which error the change is meant to suppress, not merely a new paragraph pasted in.
    • Comparison: metric-level scores on the same sample set before and after, not only the total.
    • Rollback condition: which regression forces the change to be undone.

    The structure can stay plain. What matters is that it can be retrieved and compared, not that it becomes another long system prompt:

    1. rule_version: 12
    2. change: add a check that amounts and units must be read back from the source
    3. reason: three cases in a row read “10,000” as “100,000,000”
    4. eval_set: office-qa-v3, n=40
    5. delta: accuracy +2.1, format -0.4, human_override +0
    6. rollback_if: format_fail_rate > 8%

    In the study, “reasons plus measurements” scored slightly above “tune from scratch.” That is best read as search taking fewer wrong turns: negative cases block changes already shown to fail, and positive cases preserve constraints that still work. The model has not suddenly gained general intelligence. It has an auditable lab notebook attached to it.

    When to keep editing, and when to rewrite

    A handoff does not have to be a binary choice. A short probe can pick the path.

    Keep the rules and continue editing when failures cluster into a few nameable error types; business prohibitions in the old rules are still valid; the new model is mainly mismatched on wording or tool format; and the evaluation set is close to the real ticket distribution. Freeze the business constraints, open a narrow change budget, change one thing per round, and require a comparison with the previous version.

    Rewrite the skeleton when the task definition has changed; the old rules are longer than the context that is actually followed, so the later half is barely obeyed; error types contradict each other, which means the rules are compensating for model weaknesses rather than describing the task; or, after the model change, a simple native rule set is clearly better and the old rules’ extra value is mostly overfitting. Even then, keep the old failure cases and prohibitions as a test oracle. Do not wipe the memory.

    In practice, run a no-edit baseline on a small batch of real tickets first, then decide. If the score gap is mainly format compliance, continued editing is the better spend. If it is mainly task understanding, a rewrite is the better spend.

    Bottlenecks that show up in production

    A slight advantage on a scoreboard gets amplified by several production bottlenecks.

    Evaluation is unreliable. “Correct” on office work often depends on business context, and automatic scoring tends to reward fluent answers that cannot be verified. Rules then iterate toward holes in the scorer: longer, more confident, better at filling a template, not more correct. A point or two after ten rounds is not a capability gain without human sampling and metric-level scores. Split the total into factual consistency, format compliance, unauthorized actions, and whether handoff to a person was appropriate, and hold out a set that is never used for tuning.

    The distribution drifts. Tickets used for tuning are from the last two months. After launch, new templates, new system fields, and new compliance language appear. A “successful change” in memory becomes a bias. Tag each experience with where it applies and when it expires. Do not pin it forever.

    Context and cost. Stuffing the full change history into the prompt crowds out the task and dilutes attention. Retrieval is more stable: pull only a few records close to the current failure type, and keep the rule text short. Every self-iteration round costs inference and evaluation. Ten full regressions are not cheap for a large team. Set a stop: halt automatic rewriting if two consecutive rounds show no meaningful gain on the component metrics, or if the regression set shows a safety failure.

    Safety and permissions. Letting the system rewrite its own rules means the model is changing its own behavior spec. If the rules say which tools may be called, whether data may leave the system, and when a person must confirm, automatic iteration must stay at the level of wording and checklists. It must not move permission boundaries. Reasons and measured records can themselves contain ticket privacy. The memory store needs redaction and access control by data class. Do not keep source text in prompt logs indefinitely just so the model can “remember.”

    Results do not reproduce. Temperature, tool responses, and evaluation sample order can move the score of the same rules by more than the gain attributed to memory. Without a fixed seed, fixed tool stubs, and versioned rules, self-iteration is a walk through noise. Ship rules, evaluation set, model version, and memory snapshot together as a replayable release unit.

    The organization does not keep up. The business cares about error rate and accountability, not a leaderboard. If nobody reviews an automatic rewrite, there is no answer to “who approved this version?” Memory should serve audit: keep the diff, the reason, the samples, and the rollback point for every release. Do not aim for unattended iteration with no limit.

    A minimal loop you can actually run

    These principles do not require a complex platform.

    1. Freeze the task statement, tool permissions, and red lines that automation may not change.
    2. Build a small, stable evaluation set, and hold out a sample set that tuning cannot see.
    3. Record the intent, diff, and component results of every change, and store failure cases separately.
    4. Change one hypothesis per round, and use a controlled comparison to keep or roll back.
    5. Retrieve related memory for the next round instead of concatenating the full history.
    6. After the stop condition, have a person sign the release, watch production for one cycle, and only then allow the next automatic edit.

    The benefit is not a guarantee that scores rise every round. It makes “keep editing or start over” a testable decision: whether failures are still explained by the old memory, whether the holdout set moves in the same direction, and whether any red line was rewritten. Iteration memory, whether built into the model or attached beside it, is valuable because it shortens trial and error and preserves constraints. If it cannot pass evaluation, drift, cost, permissions, and audit, it should not be treated as a self-improving system that nobody has to watch.