The Codex memory bug was reported as a product defect. A fix was shipped. Most enterprise security teams filed it under "vendor patch applied" and moved on. That response misses the structural point. What the incident actually exposed is a failure mode that sits beneath the product layer: an agentic tool's internal subsystems routing conversation data across provider boundaries without user awareness or consent. That category of risk does not get resolved by a patch. It gets resolved by understanding the architecture, auditing your current stack against it, and setting procurement standards that require providers to answer for it before deployment, not after.
The Architectural Failure Mode Nobody Named
The Codex memory bug involved conversation data being surfaced to users other than the originating session. The mechanism behind that kind of leak is not a simple access control error. Agentic tools maintain state across sessions through memory subsystems, vector stores, and retrieval layers. Those subsystems are often built on third-party infrastructure that sits outside the primary provider's trust boundary.
When a tool like Codex stores a conversation in a memory layer, the data may transit through an embedding model, a vector database, and a retrieval service before it is ever returned to a user. Each of those hops is a potential boundary crossing. The primary provider controls the interface. It does not necessarily control every component in the chain.
This is the architectural gap that most enterprise AI procurement processes do not yet evaluate. Security teams assess the primary vendor's SOC 2 status and data processing agreements. They rarely map the full graph of subprocessors that handle data inside an agentic tool's memory and retrieval pipeline.
What a Trust Boundary Actually Means in an Agentic Context
A trust boundary is the perimeter within which data is handled under a consistent set of access controls, retention policies, and contractual obligations. In a traditional SaaS tool, that boundary is relatively easy to define. The vendor's application handles the data. The vendor's infrastructure stores it.
Agentic tools break this model. A coding assistant with persistent memory may embed conversation turns using a model from one provider, store the resulting vectors in a database operated by a second provider, and retrieve them through an orchestration layer built by a third. The user's data governance agreement is with the primary vendor. The actual data handling is distributed across a chain that the user has not reviewed and in many cases cannot see.
The commercial implication is direct. If your engineers are using an agentic coding tool to discuss architecture decisions, review proprietary code, or plan system migrations, that conversation data may be stored and retrievable in infrastructure your DPA does not cover. The Codex incident made that risk visible. It did not create it.
What to Audit Before Your Next Agentic Tool Deployment
When we assess agentic tools for enterprise clients, we treat the memory and retrieval architecture as a first-class security surface. The questions below are not exhaustive, but they are the ones that most commonly reveal undisclosed boundary crossings.
Memory and Storage Architecture
Ask the vendor to document where conversation data is stored between sessions, which infrastructure provider operates that storage, and what the retention policy is at the storage layer rather than the application layer. Many vendors will answer the application-layer question and leave the storage-layer question unanswered.
Embedding and Retrieval Subprocessors
Ask specifically whether conversation data is passed to an external model for embedding before storage. If it is, ask which model, which provider operates it, and whether that provider appears in the vendor's subprocessor list. Embedding is a data processing step. It is not always treated as one in DPAs.
Cross-Tenant Isolation
Ask how the vendor ensures that retrieved memory is scoped to the originating user or organisation. The Codex bug was a cross-tenant retrieval failure. The control that prevents it is isolation at the retrieval layer, not just at the storage layer. Ask for the architectural description of that control, not just an assurance that it exists.
Procurement Standards That Reflect This Risk Category
Most enterprise AI vendor assessments use questionnaires designed for SaaS applications. Those questionnaires ask about encryption at rest, SOC 2 compliance, and breach notification timelines. They do not ask about subprocessor data flows inside agentic memory pipelines because that category of risk was not well understood when the questionnaires were written.
Updating procurement standards does not require rebuilding your entire vendor assessment process. It requires adding a specific section that treats agentic memory as a distinct architectural component and requires vendors to answer for it explicitly.
The minimum additions worth making are: a requirement for a complete subprocessor list that includes embedding and retrieval infrastructure, a contractual requirement for cross-tenant isolation controls at the retrieval layer, and a right to audit or receive attestation for those controls on a defined schedule. Without those requirements in the contract, you are accepting the vendor's architectural decisions as a given rather than as a managed risk.
Setting the Baseline for Provider Trust Before Deployment
The practical lesson from the Codex incident is not that memory-enabled agentic tools are unsafe. It is that they introduce a class of data handling complexity that requires explicit governance before deployment, not remediation after an incident.
Where Vector Labs Fits
We help engineering and security teams map the full data flow architecture of agentic tools before deployment, identifying subprocessor boundary risks that standard vendor assessments miss. Our work on AI data governance is documented in our published analysis of credential and sensitive data exposure in AI pipelines at AI Training Data: Hidden Credential Vault Risk, which covers the structural controls engineering leaders need before incidents occur. If you are assessing an agentic tool deployment and want an independent architectural review, contact us at vector-labs.ai/contacts.
FAQs
A provider trust boundary is the perimeter within which data is handled under a consistent set of access controls, retention policies, and contractual obligations. In agentic tools with persistent memory, that boundary frequently extends beyond the primary vendor to include embedding model providers, vector database operators, and retrieval orchestration services. Each of those components may handle your conversation data under different contractual terms than the ones you agreed to with the primary vendor.
Not automatically. SOC 2 certification covers the controls within the certified entity's own environment. If a vendor uses third-party infrastructure for embedding or vector storage, those components are only covered if the vendor's SOC 2 scope explicitly includes them or if those subprocessors hold their own certifications and the vendor can demonstrate contractual and technical controls over them. You should ask vendors to confirm the scope of their SOC 2 attestation relative to their full subprocessor list.
The immediate priority is to understand what data is currently in scope. Review what categories of conversation your engineers are having with the tool, and assess whether any of that data would be sensitive if retrieved by another user or organisation. If the answer is yes, request the vendor's subprocessor documentation now and ask specifically about cross-tenant isolation controls at the retrieval layer. You do not need a complete audit framework to ask those two questions. They will tell you whether you have an active exposure that needs immediate remediation.
At minimum, require a complete and maintained subprocessor list that covers embedding and retrieval infrastructure, not just application-layer components. Require explicit contractual language on cross-tenant data isolation at the retrieval layer, with a description of the technical control that enforces it. Include a right to receive updated subprocessor notifications within a defined window, typically 30 days, before any new subprocessor is added to the memory pipeline. These provisions give you visibility and recourse. Without them, you are accepting architectural changes as a given.
Disabling persistent memory removes the most obvious vector for cross-session data leakage, but it does not eliminate all boundary risks. Many agentic tools still pass conversation context to external services for real-time processing, such as code analysis, context retrieval, or tool calling, even when session memory is disabled. You need to understand the full data flow for each tool capability you enable, not just the memory feature in isolation.
Ask for the architectural documentation as part of the evaluation process, before any commercial commitment. Specifically request a data flow diagram that covers the memory and retrieval pipeline end to end, including all subprocessors. Ask the vendor to describe the technical mechanism for cross-tenant isolation at the retrieval layer and to confirm whether that mechanism has been independently tested. Vendors who cannot answer those questions at the evaluation stage are signalling that the architecture has not been designed with enterprise data governance requirements in mind.

