Continual agent evolution without self-corruption
Last reviewed: 2026-07-25 — see the freshness policy. “Self-improving agent” is not a standard assurance category; treat every update as a governed software, data or model release.
Learning objectives
After this chapter you will be able to:
- convert production trajectories into candidate improvements without online self-modification;
- separate updates to knowledge, instructions, programs and model parameters;
- design diagnosis, validation, promotion, rollback and forgetting controls;
- prevent feedback poisoning, metric gaming and capability regression;
- define an operating model for continual improvement.
Decision in one sentence
Let agents propose improvements, but let independent evidence and accountable release controls decide what changes production.
Four different update planes
| Plane | Example | Release mechanism | Dominant risk |
|---|---|---|---|
| Knowledge | corrected policy fact or new procedure | reviewed index/graph version | poisoned or stale truth |
| Instructions | prompt, rubric or skill guidance | prompt/skill registry | hidden conflicts and context growth |
| Program | tool adapter, validator or workflow edge | normal SDLC and CI/CD | code and supply-chain defects |
| Parameters | adapter or model weights | model registry and staged serving | broad behavioral regression |
Do not collapse all four into “memory.” A conversation correction can affect the current run immediately, but promotion into durable organizational knowledge requires provenance, review and expiry.
Closed-loop architecture
flowchart TB
accTitle: Continual agent improvement control loop
accDescr: Production evidence enters a governed diagnosis and proposal process. Candidate changes are isolated, evaluated and approved before staged release, with monitoring and rollback.
OBS["Traces, outcomes, incidents and review"] --> TRIAGE["Triage and failure taxonomy"]
TRIAGE --> ROOT["Root-cause analysis"]
ROOT --> PROPOSE["Candidate knowledge, instruction, code or weight change"]
PROPOSE --> SANDBOX["Isolated build and replay"]
SANDBOX --> EVAL["Regression, safety and outcome evaluation"]
EVAL --> REVIEW{"Independent release decision"}
REVIEW -->|"Approve"| CANARY["Shadow or canary"]
REVIEW -->|"Reject"| BACKLOG["Evidence-linked backlog"]
CANARY --> MON["Drift and outcome monitoring"]
MON -->|"Healthy"| PROMOTE["Promote version"]
MON -->|"Harm"| ROLLBACK["Rollback and incident"]
PROMOTE --> OBS
| Step | Required evidence |
|---|---|
| 1 | Versioned traces linked to real outcomes and use profiles. |
| 2 | Failure label, severity, slice and confidence—not a free-form agent opinion. |
| 3 | Root cause at the correct plane: data, context, tool, workflow, model, human or environment. |
| 4 | Minimal proposed change with provenance and expected mechanism. |
| 5 | Replay against historical failures plus untouched controls. |
| 6 | Predeclared regression, safety, cost and latency gates. |
| 7 | Human accountability for consequential changes. |
| 8 | Staged exposure, automatic stop conditions and tested rollback. |
Evidence intake
Production traces are selected observations, not objective truth. A successful-looking outcome may have been repaired manually; a user thumbs-up may reward pleasing language; a reviewer correction may be wrong. Record outcome receipts, reviewer identity/role, rubric, timestamps, source versions and whether the case was sampled or user-reported.
Protect the intake path against:
- users planting instructions that later become durable prompts;
- compromised tools manufacturing “successful” receipts;
- repeated users dominating optimization;
- sensitive data entering reusable examples;
- selection bias toward easy or visible cases;
- evaluation cases leaking into training.
Diagnosis before optimization
Require a causal hypothesis. “The model failed” is rarely sufficient. Ask whether the failure came from missing authority, unavailable data, poor retrieval, ambiguous tool descriptions, a stale workflow, overload, inaccessible UX or model capability. Replaying the case with controlled substitutions helps locate the responsible component.
An update proposal should state:
failure_cluster: carrier-unknown-outcome
evidence_count: 37
affected_slice: international-delivery
root_cause: missing reconciliation branch
change_plane: program
proposal: add carrier-status reconciliation state
expected_effect: reduce duplicate inquiry and false resolution
non_goals: improve carrier API availability
rollback: workflow-v18
Validation and rollback
Every candidate is tested against:
- the failure cluster it should fix;
- matched cases it must not change;
- critical security, privacy and safety suites;
- long-horizon and repeated-run cases;
- cost, latency and reviewer burden;
- slice-level regressions and capability retention.
Version the compatible bundle and retain the evidence needed to reproduce it. Database, memory and context migrations need backward-read or explicit cutover strategies. A rollback that restores code but leaves rewritten memory or an incompatible index is incomplete.
Forgetting and maintenance
Continual systems also need removal. Expire temporary instructions, delete superseded knowledge, propagate privacy deletion, retire unused skills and test that new specialization did not erase important general capability. Schedule periodic clean-room rebuilds and re-baselining; never assume an endlessly accumulated prompt or memory store improves monotonically.
Northstar decision
Northstar clusters false “delivered” conclusions. Replay shows the model is reading ambiguous carrier codes correctly, but the workflow treats an unknown response as success. The approved improvement is a program update adding reconciliation and escalation—not fine-tuning. An agent proposes the patch and tests, while engineering owns the change and the release board approves its canary.
Practical artifact: continual-improvement control plan
Include evidence sources, taxonomy, data minimization, root-cause method, update planes, proposal schema, independence rules, test suites, release tuple, canary policy, rollback, deletion/forgetting, roles and audit retention.
Lab
Take ten Northstar failure traces. Cluster them, identify the responsible plane, propose one minimal change per cluster and build a promotion matrix. Include one poisoned feedback item and show where the pipeline rejects it.
Check yourself
- Why keep knowledge, instruction, program, and parameter updates separate, and what releases each?
- A thumbs-up rate rises after a prompt change but repeat contacts also rise. What does 'production traces are observations, not truth' warn about?
- What must an update proposal state before optimization starts?
- A rollback restores the code, but the agent still misbehaves. What was probably missed?
What a strong answer covers
- Each has a different release mechanism and dominant risk: knowledge via a reviewed index or graph version (poisoned or stale truth), instructions via a prompt and skill registry (hidden conflicts), programs via normal CI/CD (code and supply-chain defects), and parameters via a model registry with staged serving (broad regression). Treating all as 'memory' hides that.
- Feedback can reward pleasing language, a success may have been repaired manually, and a reviewer correction may be wrong. Record outcome receipts, reviewer role, rubric, and sampling bias, and guard against metric gaming and repeated users dominating optimization.
- The failure cluster and evidence count, the affected slice, a causal root-cause hypothesis, the change plane, the proposal and expected effect, explicit non-goals, and the rollback target.
- Rewritten memory or an incompatible index. Version the compatible bundle, and give database, memory, and context migrations backward-read or explicit cutover strategies; a rollback that restores only code is incomplete.