Organizing Agents’ memory at scale: Namespace design patterns in AgentCore Memory
AWS•How-to••by Akarsha Sehwag, Sukruth G L, Noor Randhawa and Piradeep Kandasamy•AWS Artificial Intelligence Blog
In this post, you will learn how to design namespace hierarchies, choose the right retrieval patterns, and implement AWS Identity and Access Management (IAM)-based access control for AgentCore Memory.
AgentCore Memory namespaces can now be extended with custom variables such as tenant and team, and IAM condition keys can restrict reads and writes by namespace.
Who it is for
Teams building multi-tenant agents on Amazon Bedrock AgentCore that must keep one customer's memories away from another's.
Key points
namespaceKeys allow up to 5 custom variables per memory resource, validated by allowedValues or regexPattern.
Use namespace for exact path matches and namespacePath for subtree matches; include leading and trailing slashes.
A missing custom variable skips long-term extraction for that strategy; monitor the NamespaceResolutionFailure metric.
UpdateMemory replaces the namespaceKeys list, so read the current list first with GetMemory.
AI:AgentCore is shown orchestrating natural-language questions across several data sources via pre-built and custom MCP servers, with per-user policy enforcement and memory, all configured rather than coded.
AI:Managed Knowledge Base can now use AgentCore memory in one AgenticRetrieveStream call, restoring conversations, searching long-term memory, and saving turns, with per-user document ACLs.
AI:A reference architecture shows a LangChain orchestrator on ECS calling a Strands agent on Bedrock AgentCore over A2A, with OAuth in both directions and no shared SDK or secrets.