Repository navigation
#146 fix: worktrees get their own venv, not the main checkout's - #148
Open
gregoryfoster wants to merge 5 commits into
Open
gregoryfoster wants to merge 5 commits into
gregoryfoster wants to merge 5 commits into
Conversation
worktree-create.sh symlinked the main checkout's .venv into every worktree (.skills/worktree_venv defaulted to link), so a worktree's uv sync re-pointed the main checkout's editable install at the worktree; once removed, the operator scripts lost src. Set the knob to none, pinned by tests/ci/test_worktree_venv_knob.py (the file, and the vendored script run against it), and say so in AGENTS.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
using-git-worktrees tells an agent to ln -s the main .venv into a worktree the harness made; the knob never reaches that path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 #146.
Cause [reproduced 2026-11-27T19:31Z]:
worktree-create.shsymlinked the main checkout's.venvinto every worktree, because.skills/worktree_venvwas absent and so defaulted tolink. A worktree'suv syncthen reinstalled the editable project into that shared venv (+ co-status==0.1.0 (from file:///…/.worktrees/146-repro-link)), which re-pointed the main checkout's_editable_impl_co_status.pthat the worktree.Fix:
.skills/worktree_venv=none, committed.tests/ci/test_worktree_venv_knob.pypins the file, read with the script's grammar, and runs the vendoredworktree-create.shagainst a scratch repo carrying the knob: no.venv. Alinkcontrol has to produce the symlink. The vendored tests skip in CI. The knob test fails withlink.using-git-worktreestells the agent toln -sthe main checkout's.venvby hand and the knob never applies.Proof [measured 2026-11-27T19:32Z]: with the knob in the main checkout,
worktree-create.sh --new 146-worktree-venv-noneprintedNOTE: .skills/worktree_venv=none — no .venv linked.uv sync --lockedthere built the worktree's own.venv, whose.pthreads the worktree path. The main checkout's.pthread/home/exedev/statusboth before and after.No deploy: this touches only
.skills/,tests/and*.md.CR (
--fix): 4 findings, one commit each (debe6e0,ef5e99e,ed9c2b1,da4b09e). The gate passed onda4b09e: 2006 passed, 13 skipped.🤖 Generated with Claude Code