feat(agentcore): add hindsight-agentcore integration for Bedrock AgentCore Runtime#822
Open
benfrank241 wants to merge 3 commits intomainfrom
Open
feat(agentcore): add hindsight-agentcore integration for Bedrock AgentCore Runtime#822benfrank241 wants to merge 3 commits intomainfrom
benfrank241 wants to merge 3 commits intomainfrom
Conversation
Adds durable cross-session memory for Amazon Bedrock AgentCore Runtime agents. Runtime sessions are ephemeral; this adapter persists memory across session churn keyed to stable user identity. - HindsightRuntimeAdapter with before_turn() / after_turn() / run_turn() - TurnContext: maps AgentCore invocation identity to Hindsight banks - default_bank_resolver: tenant:user:agent format (session ID never used) - RecallPolicy: recall (default) or reflect mode with configurable budget - RetentionPolicy: context label, tags, metadata, user message inclusion - Async-by-default retention — never delays the turn response - Graceful degradation throughout — memory failures never surface to user - 41 unit tests covering adapter, bank resolution, and config
30f2501 to
54e1826
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
hindsight-agentcore— a Python package providing durable cross-session memory for Amazon Bedrock AgentCore Runtime agents.AgentCore Runtime sessions are explicitly ephemeral (terminate on inactivity, reprovision fresh). This adapter makes Hindsight the durable memory layer that survives session churn.
Key design decisions from the integration spec:
runtimeSessionId— sessions expire, banks don'ttenant:{tenant_id}:user:{user_id}:agent:{agent_name}Package structure
API surface
Test plan
uv run pytest— 41 tests passruff check— clean