agents: take the remote-session block from Mind's generated source - #190
Merged
Merged
Conversation
The "Remote sessions" section was hand-written here and was a pass behind: it named `No module named pytest` as the symptom of skipping the bootstrap, which the canonical text records as a symptom that stopped appearing when the container image moved to Python 3.12. Three review passes in a row found a copy that had not learned what the previous pass measured. PyAutoMind now generates that block from policy/remote_sessions.md into any repo carrying the markers, with a drift check. Mind and Brain opted in on 2026-08-27; this repo and its sibling were left out because the session that did it could attach only two organs. Adding the markers here makes it four. The per-repo halves go, deliberately — the canonical text carries no test counts, timings or declared deps, because those are what rot, and a wrong number in every repo's always-loaded context is worse than no number. This repo's own dependencies stay in .claude/session-python.txt, which the hook reads at run time. Also regenerates the hook copy, which changed with Mind's leg 3b.
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.
Summary
Two generated surfaces, both from PyAutoMind.
1. The remote-session block. The "Remote sessions" section in
AGENTS.mdwas hand-written here, and was a pass behind: it namedNo module named pytestas the symptom of skipping the bootstrap, which the canonical text explicitly records as a symptom that stopped appearing when the container image moved to Python 3.12. Three mobile-review passes in a row found a copy that had not learned what the previous pass measured.PyAutoMind now generates that block from
policy/remote_sessions.mdinto any repo carrying the<!-- repos_sync:remote:begin/end -->markers, with a drift check. Mind and Brain opted in on 2026-08-27; this repo and its sibling were left out because the session doing it could attach only two organs. Adding the markers here makes it four.2. The SessionStart hook, regenerated — the canonical gained leg 3b (the uv tool-env repair) in PyAutoLabs/PyAutoMind#363.
What this deliberately drops
The canonical text carries no per-repo halves — no test counts, no timings, no declared deps. Those are exactly what rots, and a wrong number in every repo's always-loaded context is worse than no number;
test_the_canonical_text_carries_no_per_repo_numberspins it. So this repo's own numbers go, and for PyAutoHands the.claude/session-python.txtbullet goes too. Nothing is lost operationally: that file carries the same explanation in its own header, and the hook reads it at run time.API Changes
None. Documentation block and one generated file; no source changes.
Test Plan
PyAutoMind/policy/session_start_hook.shrepos_sync.py --check --root <four-organ scope>— remote-session blocks and session-start hooks legs both OK, now covering four repos rather than twoMerge after PyAutoLabs/PyAutoMind#363, so the canonical is never behind its copies.
Part of #360 (PyAutoMind).
Generated by the PyAutoLabs agent workflow.