Repository navigation
fix: worktree_create never writes through a symlinked activate.sh - #473
Merged
Merged
Conversation
The sibling-symlink loop linked the workspace root's activate.sh into each new bundle, and the bundle's activate.sh was then written through that link, clobbering the unversioned root file and retargeting every earlier bundle. - worktree_create skips the names it writes itself (activate.sh, the .pyauto-root marker) in both sibling-symlink loops, and rm -f's activate.sh before writing it so the write never follows a link. - New opt-in worktree_repair_activate [task...]: regenerates symlinked bundle activate.sh files as regular files; bundle paths only, never resolves or writes the link target, never called automatically. - tests/test_worktree_activate.py: hermetic fabricated PYAUTO_MAIN / PYAUTO_WT_ROOT; root bytes unchanged, bundles own regular activate.sh, second bundle does not retarget the first, repair converts links. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…irewall) Assert the bundle's activate.sh carries its own PYAUTO_ROOT and opens PYTHONPATH with the bundle's PyAutoNerves path (an organ name) instead of naming a satellite library, which tripped the organ-code tenant firewall. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Closes #469
worktree_createno longer symlinks the names it writes itself (activate.sh, the root marker) into a bundle, and removes any pre-existing link before writingactivate.sh— so a new bundle can no longer clobber the unversioned workspace-root file or retarget other bundles. Adds opt-inworktree_repair_activate(bundle paths only, never the root).Tests: new tests/test_worktree_activate.py (4, hermetic fake PYAUTO_MAIN); full Brain suite 1199 passed. Each new test was red on the unfixed code first.
Heart: readiness STALE (release validation stale: source moved since rehearsal — PyAutoNerves); human-acknowledged 2026-10-05. Tier
notify— auto-merge on green per the approved plan; PyAutoBrain has no PR test CI, so the gate is the local full suite above.Part of bundle
pyautobrain-worktree-guards(one issue + one PR per member). No workspace impact (Brain tooling only).🤖 Generated with Claude Code