Skip to content

session: regenerate the stale hook copy, and say where the door is - #185

Merged
Jammy2211 merged 1 commit into
mainfrom
claude/mobile-performance-check-wdoabf
Aug 26, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
claude/mobile-performance-check-wdoabf

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

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:

point_system_default "$(readlink -f "$VENV/bin/python")"   # → /usr/bin/python3.12
ln -sfn "$base_python" "$link"                             # → a symlink

Both halves lose the session venv. readlink -f resolves the venv's python straight through to the base interpreter, and CPython resolves a symlinked executable before it looks for pyvenv.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's BASE_DEPS also has no pytest-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_py312 guard 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:

bash PyAutoMind/scripts/session_bootstrap.sh

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 --check clean with all four organs attached. Depends on PyAutoLabs/PyAutoMind#343 (the canonical source). Full record in PyAutoMind/complete/2026/08/mobile-performance-review-3.md.

🤖 Generated with Claude Code

https://claude.ai/code/session_0119qhncdBDsM6wrheBNoPk9


Generated by Claude Code

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
@Jammy2211
Jammy2211 merged commit d576003 into main Aug 26, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the claude/mobile-performance-check-wdoabf branch August 26, 2026 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants