Memory Scopes and Persistence
atomic-noteD1 · 14.7%Section: D1 Agents & WorkflowsUpdated 2026-11-15
The context window is temporary working memory; durable knowledge belongs in external storage selected by scope and retention policy.
Blueprint area: D1 - Agents and Workflows MOC (official domain weight 14.7%).
Engineering principles
- Use per-turn context for immediate instructions, per-session summaries for in-flight decisions, and explicit durable stores for facts needed across sessions.
- Persist structured state (task IDs, checkpoints, outcomes) separately from narrative memories; support TTL and deletion.
- Store the minimal facts needed for future steps and a provenance link, not unbounded transcripts.
- Always enforce tenant/user boundaries during reads and writes, including retrieval from vector or relational memory systems.
Failure modes
- A summarization can silently drop an invariant; preserve key constraints as structured fields.
- Shared memory can leak one user’s data into another user’s execution context.
Check your understanding
- ☐ Restart the run and verify it can resume from saved state.
- ☐ Audit what personal or confidential data each memory record contains.
Related knowledge
Context Compaction and Tool Output Pruning · Security Boundaries and Least Privilege · Exam Blueprint and Coverage
Evidence and verification
- Provenance: author-written engineering synthesis aligned to exam guide objectives; this is not a transcript or hidden Skilljar lesson.
- Primary references:
- Check currency: model options, pricing, API flags, release-specific behavior and runtime permissions can change after the source was read. See Source Register.