Repository navigation
Python: fix(core): prevent path collisions between files and directories in InMemoryAgentFileStore #9608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Manohar Paturi (ManoharPaturi)
wants to merge
11
commits into
microsoft:main
Choose a base branch
from
ManoharPaturi:fix/in-memory-file-store-path-collision-reopen
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+413
−8
Open
Python: fix(core): prevent path collisions between files and directories in InMemoryAgentFileStore #9608
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
05f1554
Python: fix(core): prevent path collisions between files and director…
ManoharPaturi 9b05a0f
Index directory prefixes and persist explicit directories in InMemory…
ManoharPaturi 7c47fc8
Merge branch 'main' into fix/in-memory-file-store-path-collision
ManoharPaturi 2b6c5cb
Merge branch 'main' into fix/in-memory-file-store-path-collision
ManoharPaturi 92785b5
test(harness): account for session dir in nested-path rejection test
ManoharPaturi 2002bfe
Merge branch 'main' into fix/in-memory-file-store-path-collision
ManoharPaturi b4bf58e
Python: let the in-memory store delete empty explicit directories
ManoharPaturi a0fdd60
Python: keep delete file-only and add delete_directory to AgentFileStore
ManoharPaturi 4f2d38c
Merge branch 'main' into fix/in-memory-file-store-path-collision-reopen
ManoharPaturi dacf006
Python: bound store path complexity before materializing ancestor pre…
ManoharPaturi 4c6ce3b
Merge branch 'main' into fix/in-memory-file-store-path-collision-reopen
ManoharPaturi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this introduces a new public API, I would like to see a issue for that, since we want this to be consistent with dotnet. CC westey (@westey-m)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filed as #9666, covering the motivation (session scoped cleanup of explicit directories), the chosen shape (base default returning False so third party stores are unaffected until they opt in), the alternative rejected in the earlier review (overloading delete(), which makes backend substitution observable), and the open .NET consistency question for the store contract. westey (@westey-m) looped in there for that decision. The PR body now references it under Related Issue as the tracking issue for the new surface.