Share proj across Serena agents - #47
Merged
Merged
Conversation
xormania
marked this pull request as ready for review
August 3, 2026 05:08
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.
What changed
proj/planning tree on Serena's shared writable/workspacebindproj/is not a real directory or contains sensitive path names, hardlinked files, symlinks, FIFOs, Unix sockets, or other special objectsWhy
Serena's generated mount override treated
proj/as runtime state and replaced it with an empty read-only directory. Agents using the same checkout therefore could not see or update the user's shared planning and audit documents.Impact
New Serena sessions see the same
proj/files as host-side agents and can write through to the checkout. Existing Serena sessions must reload or restart; activation alone cannot recreate container mounts.The practical direct-bind design trusts cooperating concurrent host-side writers to preserve the ordinary-file contract. A hostile concurrent host writer remains outside the container-containment guarantee and would require brokered storage.
Validation
proj/mask and missing activation guidanceproj/rootbash tests/serena/config-cases.shbash tests/docker/serena-runtime.sh(Codex, Claude Code, and Grok; live host-visible write-through)./scripts/dev/lint-scriptsbash tests/agent/policy-verify.sh./tools/validate.sh./tools/containment-lint.sh./scripts/dev/check default quick