AI Cloud Architect

Organizing Agents’ memory at scale: Namespace design patterns in AgentCore Memory

AWSHow-to by Akarsha Sehwag, Sukruth G L, Noor Randhawa and Piradeep KandasamyAWS 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.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

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.

Timeline

Posts about Amazon Bedrock AgentCore Memory, oldest first.

  1. Blog postBuilding smarter AI agents: AgentCore long-term memory deep dive · AWS · Blog post
  2. Blog postBuild agents to learn from experiences using Amazon Bedrock AgentCore episodic memory · AWS · Blog post
  3. New featureAmazon Bedrock AgentCore Memory announces streaming notifications for long-term memory · AWS · Announcement
  4. This postOrganizing Agents’ memory at scale: Namespace design patterns in AgentCore Memory
  5. New featureAmazon Bedrock AgentCore Memory announces metadata for long-term memory · AWS · Announcement
  6. New featureAmazon Bedrock AgentCore Memory now supports strictly consistent metadata for long-term memory · AWS · Announcement
  7. Update to an existing featureAmazon Bedrock AgentCore Memory now supports cross-account access · AWS · Announcement
  8. How-toStructured memory filtering with metadata in AgentCore Memory · AWS · How-to
  9. New featureAmazon Bedrock AgentCore Memory now supports extracting memories from non-conversational JSON payloads · AWS · Announcement
Show all 18 posts
  1. Blog postBuilding smarter AI agents: AgentCore long-term memory deep dive · AWS · Blog post
  2. Blog postBuild agents to learn from experiences using Amazon Bedrock AgentCore episodic memory · AWS · Blog post
  3. New featureAmazon Bedrock AgentCore Memory announces streaming notifications for long-term memory · AWS · Announcement
  4. This postOrganizing Agents’ memory at scale: Namespace design patterns in AgentCore Memory
  5. New featureAmazon Bedrock AgentCore Memory announces metadata for long-term memory · AWS · Announcement
  6. New featureAmazon Bedrock AgentCore Memory now supports strictly consistent metadata for long-term memory · AWS · Announcement
  7. Update to an existing featureAmazon Bedrock AgentCore Memory now supports cross-account access · AWS · Announcement
  8. How-toStructured memory filtering with metadata in AgentCore Memory · AWS · How-to
  9. New featureAmazon Bedrock AgentCore Memory now supports extracting memories from non-conversational JSON payloads · AWS · Announcement
  10. New featureAmazon Bedrock AgentCore Memory now supports fine-grained access control · AWS · Announcement
  11. New featureAmazon Bedrock AgentCore Memory now supports flexible namespace variables · AWS · Announcement
  12. How-toDesigning lifecycle policies for AgentCore memory · AWS · How-to
  13. New featureAmazon Bedrock AgentCore Memory now supports direct ingestion to long-term memory · AWS · Announcement
  14. How-toBuilding a context-aware AI assistant on AgentCore and OpenClaw · AWS · How-to
  15. Price changeAnnouncing consumption-based pricing for short-term memory in Amazon Bedrock AgentCore · AWS · Announcement
  16. New featureAmazon Bedrock AgentCore Memory now supports configurable time-to-live for long-term memory · AWS · Announcement
  17. New featureAmazon Bedrock AgentCore Memory now provides full session summaries · AWS · Announcement
  18. Update to an existing featureAmazon Bedrock AgentCore Memory now supports short-term memory retention of up to 10 years · AWS · Announcement

Go deeper