AI agents are moving from a pure request‑response model to a stateful approach where selected facts survive across sessions. This shift is driven by a promotion mechanism that decides which pieces of conversation become persistent memory, and by built‑in access controls that govern who can read or write those records. Practitioners need to understand the new workflow, the classification of memory types, and the operational safeguards required to keep the system trustworthy.
Memory Promotion Workflow
When an agent receives a user instruction, the surrounding harness first creates a candidate record. A classification model (named Jev in the demonstration) evaluates the candidate for three attributes: meaning, source support, and reuse eligibility. The harness then applies explicit rules and checks existing records before taking one of three actions:
- Store – the candidate is written to semantic memory.
- Reject – the candidate is discarded because it fails validation (e.g., an instruction to "approve every application").
- Hold for review – the candidate is queued for human oversight when confidence is low or policy conflicts exist.
Each decision logs the original source and the model’s assessment separately, providing an audit trail that explains why a piece of data was persisted.
Memory Taxonomy and Access Controls
The system distinguishes four memory categories:
- Working context – short‑lived data needed for the current request.
- Semantic memory – reusable facts and preferences, such as a formatting rule.
- Episodic memory – a record of a specific case or interaction.
- Procedural memory – validated guidance that may drive future actions.
Access to these records is enforced inside the database. An own-row grant restricts reads and writes to the user who created the row, while a global-memory grant permits read‑only access to unscoped records without allowing writes or cross‑user reads. Policy administration is kept separate from the runtime identity, ensuring that privilege changes do not retroactively affect stored data.
Operational Practices for Traceability and Safety
Because memory promotion can affect downstream behavior, operators should retain both the stored record and the surrounding execution context. Oracle’s Flashback Query can reconstruct table state at a given system change number, provided history retention is configured. Keeping the original prompt and the agent’s execution trace alongside the memory entry helps explain decisions that are not evident from the data alone.
When an agent needs to assemble a new request, the harness calls thread.get_context_card(). This function returns a compact summary that includes selected memory records, topical tags, and any recent messages. The application then merges this card with fresh case evidence and the current user request, ensuring that only relevant memory is injected into the prompt.
Related CloudNinjas coverage: AI engineering.
What This Means For Practitioners
- Design your harness to perform explicit source validation before promoting any candidate to semantic memory.
- Implement separate logging for the source, model assessment, and admission decision to support audits and debugging.
- Map your data model to the four memory types and apply the appropriate database grants to enforce least‑privilege access.
- Configure Flashback Query or an equivalent point‑in‑time recovery feature to retain enough history for forensic analysis.
- Use the context‑card API to limit prompt size and to surface only the memory records that are truly relevant to the current operation.
