Repository navigation
tooling: bugfix_kit scope runs in the worktree's own venv - #4417
Merged
Merged
Conversation
scope_check imports golden_diff -> gitgalaxy in its own process; the kit launched it with the kit's interpreter (the live checkout's stale editable .venv), which lacks gitgalaxy.core.source_text. Run it under the worktree's .crucible_venvs python (built via crucible_check.ensure_venv if missing, clear KitError otherwise) with PYTHONPATH/VIRTUAL_ENV/PYTHONHOME scrubbed. Other kit steps already use scoped venvs. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
squid-protocol
marked this pull request as ready for review
October 5, 2026 05:37
squid-protocol
added a commit
that referenced
this pull request
Oct 5, 2026
genapp-lgapvs01's record and page: main's taken whole; re-proven and re-rendered by the tools below, never hand-merged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
The kit's
scopestep launchedscope_check.pywith the kit's own interpreter. Started from the live checkout's.venv(stale editable install lackinggitgalaxy.core.source_text),golden_difffailed to import.Fix:
scopenow runs under the worktree's.crucible_venvs/{full_precision,zero_dependency}python (built throughcrucible_check.ensure_venvwhen missing, clearKitErrorif it cannot be), with PYTHONPATH/VIRTUAL_ENV/PYTHONHOME scrubbed. Audited the other steps: ledger/estate/audit already use kit venvs with PYTHONPATH=worktree, bless/crucible_check is stdlib-only and builds its own venv, so no change needed there.Tests: pure venv-selection tests added to
test_bugfix_kit.py(18 pass). Real run:bugfix_kit.py scope <clean worktree> --expect cobolunder the live.venvgives 0 differences. mypy/ruff/dead_key audits clean.🤖 Generated with Claude Code
https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo