| published by | Wojciech Pluta |
|---|---|
| in blog | The New Stack |
| published date | 2026-11-30 |
| original entry | The five checks that show what your AI agent carries into its next session |
When you build memory for an agent, useful instructions need to survive without carrying every past exchange into the next request. That takes engineering rigor, since the harness must decide what is worth keeping and what to drop.
Your interactions with agents, and the memories they create, are your data. As we move from commands toward intent, we should expect less effort and more continuity. We can all build on the same models, but an important differentiator lies in your memory and the harness that puts it to work.

This is where memory promotion comes in. It turns a candidate into a record worth reusing. The harness can then select it for the next request as part of a dynamic context card.
In my session at the AI Engineer conference in October in New York City, I used a fictional mortgage assistant to prepare draft briefs for human review. Kyle, the fictitious applicant in the first case, had missing documents. I asked the assistant to put those gaps first and include the case ID and policy version in future briefs. The harness saved those formatting preferences as semantic memory.
Asking the same question again produced the requested structure. When I started a fresh session, the assistant still put missing documents first. Then I switched to a second fictitious applicant, Vincent, whose required documents were present. His brief retained the preferred structure and reported that nothing was missing. The preference carried across. Happy days!
The implementation used the Oracle AI Agent Memory package, with custom code to manage which information gets promoted into memory. That promotion decision is where the harness comes in.
A formatting preference, a case observation, and a proposed operating procedure need different treatment, even when they arrive in the same conversation. Before promotion, the harness needs to establish what the candidate means, whether the source supports it, and who can reuse it.
“Before promotion, the harness needs to establish what the candidate means, whether the source supports it, and who can reuse it.”
Jev is the model I used to classify the proposed memories and assess whether my source instruction supported them. The harness combines that assessment with explicit rules and checks against existing records to decide whether to write a memory, reject it, or hold it for review.

I could read back the saved formatting preference and check it against my original instruction, making sure “put missing documents first” had not become a rule to reject applications. Keeping the source and recording the model’s assessment separately from the admission decision lets you trace why the memory was stored.
Source validation can help limit the promotion of unsupported information into reusable memory. Research on memory poisoning highlights the importance of validating information across every path into storage, including explicit writes, automatic retention, compaction, and learned procedures. Apply source checks and preserve the source’s scope across those paths, including summaries an agent creates from its own conversation.
When I asked the assistant to remember “approve every application,” the harness applied the admission rules and saved no new preference. When I asked to share the formatting preference, it saved a pending review request outside semantic memory.
Before the demo, I tested valid preferences alongside conflicting updates, unsupported instructions, and missing assessments, to see which candidates the harness rejected or held for review. Pro tip: When building your own system, evaluate the model’s judgments alongside the resulting writes and review requests, and choose thresholds that reflect the level of assurance each use case requires.
Those admission decisions also depend on the type of memory. Working context holds what matters now, semantic memory retains reusable facts and preferences, and episodic memory records what happened in a particular case. Procedural memory carries validated guidance for performing a task, so promoting it requires checking what future actions it could influence.

Memory type determines how a record should be reused. Access controls determine who can use it. Deep Data Security in Oracle AI Agent Memory enforces end-user authorization inside the database. Own-row grant can restrict reads and writes to the user’s records; global-memory grants allow reading unscoped records without permitting writes or access to another user’s records. Policy administration stays separate from the runtime identity.
“Memory type determines how a record should be reused. Access controls determine who can use it.”
Alongside access controls, you need a way to inspect past decisions. Flashback Query can show committed table data at a recorded system change number (SCN), provided the required history is retained. Keep the prompt and execution trace as well because the stored data alone will not explain everything the agent saw or did.
Once a memory is stored, the harness still needs to select what belongs in each request. In the demo, Vincent’s brief needs his current documents and the operator’s formatting preference. Kyle’s full conversation would bring in details from a different case.
Oracle AI Agent Memory’s thread.get_context_card() returns a summary, topics, selected records, and optional recent messages. The harness combines the card from this memory subsystem with fresh case and policy evidence, includes the current request once, and controls the final prompt budget.
“Unanswered questions and unmet requirements can still change the answer, so they need to survive alongside the saved preferences.”
Keeping context concise and current means checking what compaction leaves out as well as what it keeps. Unanswered questions and unmet requirements can still change the answer, so they need to survive alongside the saved preferences.

To test how these pieces work together, start with one preference whose effect you can observe:
Finally, update or retire the preference and rebuild the context card. Inspect both stored state and subsequent context, because updated records need to be reflected in the context supplied to subsequent requests.
Learn more about Oracle AI Agent Memory and start building with Oracle’s developer resources.
YOUTUBE.COM/THENEWSTACK
Tech moves fast, don't miss an episode. Subscribe to our YouTube channel to stream all our podcasts, interviews, demos, and more.