Repository navigation
session: regenerate the stale hook copy, and say where the door is - #185
Merged
Merged
Conversation
This repo's copy of the SessionStart hook was two revisions behind and the gap
was not cosmetic: it carried the pre-fix point_system_default, which points
/usr/local/bin/python{,3} at the BASE interpreter through a symlink — CPython
resolves a symlinked executable before reading pyvenv.cfg, so the session venv
(with pytest and PyYAML in it) is lost twice over. Its BASE_DEPS also had no
pytest-xdist, so a session scoped to this organ ran its suite on one of four
cores. Regenerated from PyAutoMind's canonical source with all four organs
attached.
AGENTS.md gains the remote-session block PyAutoMind and PyAutoBrain already
carry. A session holding several organs registers no SessionStart hook at all,
and the workspace-root fan-out that mitigates that is written into a container —
so a first session in a fresh container has only this documented door. A session
scoped to this repo and PyAutoHands had no way to learn it exists.
Measured here: 641 tests, 7.6s on one core and 2.7s on four.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0119qhncdBDsM6wrheBNoPk9
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 stale copy was not cosmetic
This repo's copy of the SessionStart hook was two revisions behind, and the gap carried a live bug. It holds the pre-fix
point_system_default:Both halves lose the session venv.
readlink -fresolves the venv's python straight through to the base interpreter, and CPython resolves a symlinked executable before it looks forpyvenv.cfg, so even a link to the venv lands on the base prefix. That is the bug PyAutoLabs/PyAutoMind#342 fixed — still shipping here. This copy'sBASE_DEPSalso has nopytest-xdist, so a session scoped to this organ ran its suite on one of four cores.It did not bite in the session that found it, and the reason is luck: the hooks fan out alphabetically, PyAutoMind's current copy ran last, and this copy's
is_py312guard skipped a write against a destination that was already 3.12. A session holding PyAutoHeart and PyAutoHands without PyAutoMind gets the pre-fix behaviour end to end.Regenerated from PyAutoMind's canonical source with all four organs attached (
repos_sync.py --write). The drift existed because a check over N repos is only as strong as the number of them the session can see — the previous two passes each logged that lesson with only two organs attached.AGENTS.md: the remote-session block
PyAutoMind and PyAutoBrain carry it; this repo did not. A session holding several organs registers no SessionStart hook at all (Claude Code reads project hooks from the project directory, which in that layout is the repos' parent), and the workspace-root fan-out that mitigates it is written into a container — so a first session in a fresh container has only the documented door:
A session scoped to this repo and PyAutoHands had no way to learn that door exists.
Measured here for the block: 641 tests, 7.6s on one core, 2.7s on four.
Validation
641 tests green.
repos_sync.py --checkclean with all four organs attached. Depends on PyAutoLabs/PyAutoMind#343 (the canonical source). Full record inPyAutoMind/complete/2026/08/mobile-performance-review-3.md.🤖 Generated with Claude Code
https://claude.ai/code/session_0119qhncdBDsM6wrheBNoPk9
Generated by Claude Code