Add runtime branch isolation to SessionMemoryAdvisor - #33
Open
AdepuSriCharan wants to merge 4 commits into
Open
Conversation
…moryAdvisor - Allow the event filter to be overridden per request. - Load and store conversation history using the resolved branch. - Preserve the configured filter as the default when no override is provided. - Add integration tests for runtime branch isolation and fallback behavior. Signed-off-by: Adepu Sri Charan <sricharan.adepu36@gmail.com>
Contributor
|
@AdepuSriCharan can you please limit the changes to the actual fix only and revert the unrelated changes. |
Resolves conflicts by integrating upstream's new ID generation feature with branch isolation logic. Both SessionEvent.id and SessionEvent.branch are now set correctly on all persisted events.
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.
Fixes #15
SessionMemoryAdvisor only supported branch targeting at bean creation via the builder, making per-request branch isolation impossible for multi-agent/multi-tenant use cases.
This PR resolves the EventFilter dynamically per request via EVENT_FILTER_CONTEXT_KEY, falling back to the advisor's configured default when no override is given.
Changes:
Note: Compaction (TurnCountTrigger, SessionService.compact()) is untouched here — will be tracked separately if confirmed branch-unaware.