Skip to content
Free since 2015. Built for the engineers who keep things running.

cat /articles/the-five-checks-that-show-what-your-ai-agent-carries-into-its-next-session.md

Security

The five checks that show what your AI agent carries into its next session

A walkthrough of how an AI agent's memory is admitted, scoped, recalled into later requests, and tested, using a fictional mortgage assistant as the running example.

The New Stack30 Nov 2026 · 6 min read · summary

article --summary

The summary

The article argues that an agent's useful instructions should persist across sessions without hauling along every past exchange, which makes the harness responsible for deciding what gets kept. The author demonstrates this with a fictional mortgage assistant that saved a formatting preference and applied it to a different applicant in a fresh session. The piece walks through the promotion step, where a candidate memory is checked for meaning, source support, and reuse scope before being written, rejected, or held for review. It also covers memory types, access controls such as per-user and global grants, inspection through Flashback Query and retained traces, and how a context card assembles what gets supplied to each request. Finally, it offers a practical test sequence: inspect the stored record, confirm carryover in a new session, check that case changes do not leak, attempt prohibited writes, verify access with a second user, and update or retire memories while rebuilding context.

Editorial note: This is a summary of an article first published by The New Stack. The full piece is on their site.

Reading now

Topic
Security
Source
The New Stack
Published
30 Nov 2026
Format
Curated summary

Have a take on this?

Write it up and submit it. It goes on the list once an editor approves it.

Submit an article

articles --latest

Latest articles

New from the blogs we follow and the community.

All articles

newsletter --weekly

DevOps Weekly, minus the noise.

The best reads, new jobs and upcoming events, in one email a week.