AI Cloud Architect

Designing lifecycle policies for AgentCore memory

AWSHow-to by Akarsha Sehwag, Himanshu Sah and Nicolo Cosimo AlbaneseAWS Artificial Intelligence Blog

Long-running AI agents accumulate outdated memories that degrade quality and create compliance risk. Learn how to design memory lifecycle policies for Amazon Bedrock AgentCore: scoring, consolidating, and pruning agent memories on a nightly AWS Step Functions workflow, with a deployable AWS CDK stack.

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

AI: Summary

What it is

A nightly Step Functions workflow prunes, scores and consolidates AgentCore agent memories, with a deployable AWS CDK stack and regression testing.

Who it is for

Teams running long-lived agents on AgentCore memory that need to control stale context and GDPR deletion duties.

Key points

  • Scoring uses CloudTrail GetMemoryRecord logs because AgentCore does not expose a last-access field.
  • Default TTL is 90 days; the post suggests 30-60 days for summaries and 6-12 months for semantic memories.
  • Main cost driver is Bedrock consolidation calls; the post estimates about $50-$100 per month at 100,000 memories.
  • Uses Claude Sonnet 4.5 for consolidation and recommends Bedrock Guardrails and grounding checks in production.

The same at other vendors

Timeline

Posts about Amazon Bedrock AgentCore Memory, oldest first.

  1. How-toStructured memory filtering with metadata in AgentCore Memory · AWS · How-to
  2. New featureAmazon Bedrock AgentCore Memory now supports extracting memories from non-conversational JSON payloads · AWS · Announcement
  3. New featureAmazon Bedrock AgentCore Memory now supports fine-grained access control · AWS · Announcement
  4. New featureAmazon Bedrock AgentCore Memory now supports flexible namespace variables · AWS · Announcement
  5. This postDesigning lifecycle policies for AgentCore memory
  6. New featureAmazon Bedrock AgentCore Memory now supports direct ingestion to long-term memory · AWS · Announcement
  7. How-toBuilding a context-aware AI assistant on AgentCore and OpenClaw · AWS · How-to
  8. Price changeAnnouncing consumption-based pricing for short-term memory in Amazon Bedrock AgentCore · AWS · Announcement
  9. New featureAmazon Bedrock AgentCore Memory now supports configurable time-to-live for long-term memory · 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. How-toOrganizing Agents’ memory at scale: Namespace design patterns in AgentCore Memory · AWS · How-to
  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. This postDesigning lifecycle policies for AgentCore memory
  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