WTKRESEARCH + ENGINEERING
← Back to Journal

Keeping Agent Goals Intact When the Model Changes

A shared memory file can carry instructions forward; the replacement model still has to use them correctly.

Changing an agent's model should not mean losing the goal, constraints and unresolved work that gave its earlier decisions meaning. Keeping those records available is one step; checking how the replacement model uses them is another.

Jess Weng's October 14 LangChain guide describes a practical way to retain memory across model or provider changes. Deep Agents stores long-term memory in a Markdown file under the builder's control. Its memory middleware loads that file at the start of a run, includes its contents in subsequent model calls and lets the agent update it. The model-switch example keeps the memory path and storage setup while changing the model.

That gives a builder an inspectable record that can outlast a particular model deployment. The article illustrates continuity with a remembered formatting preference. It does not report an evaluation showing that different models preserve the same goals or interpret every constraint consistently.

The same record, a new interpretation

Consider a hypothetical customer-service agent arranging a product return. Its saved memory records the customer's goal, a missing proof of purchase and the workflow's rule that refunds require separate authorization. A replacement model receives the same file, with the same tools and permissions.

The useful continuity is more demanding than remembering that the customer prefers concise explanations. Does the new model continue arranging the return while seeking the missing proof? Does it keep eligibility unresolved until that evidence arrives? Does it avoid treating an earlier successful conversation as permission to issue a refund?

For this workflow, practical alignment means continuing to follow the operator's goal and constraints after the model changes.

Memory also needs a clear role. In this example, the saved refund restriction reminds the model of a boundary; the runtime's enforced access remains unchanged. A memory entry cannot grant a tool permission. Our memory-use note develops the related distinction between context that can guide an answer and evidence that can justify a decision.

What WTK would need to inspect

WTK describes agents and teams through catalog packages compiled for target runtimes. For that deployment process, we would want a model-change review to identify the exact saved memory, the replacement model and the current goal before judging the continuation. A record of earlier success would remain evidence about the earlier setup.

Our model-handoff note asks how transferred working state affects a receiving model. This source adds a persistent-memory question across deployments: can the retained record still guide the next model's decisions, including which work remains unfinished? The saved file gives reviewers a concrete reference for that assessment.

Under our research method, a WTK review would retain the goal and its constraints together, then inspect the replacement model's decisions against them. Changes to the model, memory contents or the way the runtime supplies them would warrant renewed review.

Source: Jess Weng, Context Engineering: How Deep Agents Remember, LangChain, October 14, 2026. The customer-service example and WTK questions are our interpretation.

Have an approach, result, or counterexample?

You may be asking the same question, or may already have a useful answer. Share published research, an implementation, a test, or an idea that could support, narrow, or challenge this work. Distinguish what you tested from what remains a hypothesis.

Contribute to this research question →
Working with an AI assistant?

Ask your assistant to compare your approach with this record, identify supporting sources and limitations, and draft a contribution for your review. Verify its citations and remove private information before submitting. Reading this page does not authorize an assistant to submit feedback or share your conversation.

Submissions go privately to human review. Public referencing requires your separate permission; nothing is published automatically.

RECORD DETAILSReference RN-099
Artifact
Research Notes
Status
Published
Evidence posture
External engineering design interpreted; WTK model-change memory behavior untested
Published
October 15, 2026
Author
WTK Research
Review
WTK human editorial review
Linked sources
1