Repository navigation
Description
Overview
The Hands repo was renamed PyAutoBuild → PyAutoHands, but its payload package and CLI kept the old autobuild name. This task closes that seam: autobuild/ → autohands/ and bin/autobuild → bin/autohands, plus every live reference across the organism (~283 lines / ~110 files in 17 repos).
Landing is atomic, no back-compat shim (human decision): the directory move breaks PyAutoHeart's workspace-validation.yml and every workspace's run_smoke.py the moment it merges, so all PRs must merge in one pass — Hands → Heart → Brain → workspaces — while CI is quiet.
Plan
- Move the package and CLI in PyAutoHands via
git mvso history follows the files. - Update PyAutoHands' own consumers: dotted test imports,
pre_build.sh, docs, workflows. - Update PyAutoHeart's
workspace-validation.yml(five hard-codedPyAutoHands/autobuild/*.pyinvocations) and its check comments. - Update PyAutoBrain's binary resolver, policy config, repo maps and organ docs.
- Update the 13 workspace / HowTo / assistant repos —
AGENTS.mdgenerate commands,run_smoke.pysys.path.insert, config and workflow comments. - Update the two live PyAutoMind files (
scripts/repos_sync.py,ROUTING.md) while leaving ~150 historical records alone. - Verify by grep: zero lowercase
autobuildoutside the explicit preserve-list.
Detailed implementation plan
Affected Repositories
- PyAutoHands (primary) — 173 lines / 35 files
- PyAutoHeart — 27 / 14
- PyAutoBrain — 37 / 21
- autolens_workspace (5/5), autogalaxy_workspace (6/6), autofit_workspace (5/5)
- autolens_workspace_test (5/3), autogalaxy_workspace_test (5/3), autofit_workspace_test (4/2), autocti_workspace_test (3/1)
- HowToLens (3/3), HowToGalaxy (3/3), HowToFit (3/3)
- autolens_assistant (3/2), autofit_assistant (3/2), autocti_assistant (2/1)
- PyAutoMind — 2 live files only
- admin_jammy — 1 line (drive-by)
Branch Survey
| Repository | Current Branch | Dirty? |
|---|---|---|
| ./PyAutoHands | main | clean |
| ./PyAutoHeart | main | clean |
| ./PyAutoBrain | main | clean |
| ./autolens_workspace | main | clean |
| ./autogalaxy_workspace | main | clean |
| ./autofit_workspace | main | clean |
| ./autolens_workspace_test | main | clean |
| ./autogalaxy_workspace_test | main | clean |
| ./autofit_workspace_test | main | clean |
| ./autocti_workspace_test | main | clean |
| ./HowToLens | main | clean |
| ./HowToGalaxy | main | clean |
| ./HowToFit | main | clean |
| ./autolens_assistant | main | clean |
| ./autofit_assistant | main | clean |
| ./autocti_assistant | main | clean |
| ./admin_jammy | main | 3 modified (unrelated) |
No worktree conflicts: the four active tasks claim PyAutoCTI, PyAutoFit, autolens_profiling, autolens_jax_joss and autolens_workspace_developer — none of them targets here.
Suggested branch: feature/rename-autobuild-to-autohands
Worktree root: ~/Code/PyAutoLabs-wt/rename-autobuild-to-autohands/
Work Classification: Library (Hands is the primary), with a broad workspace follow-on in the same branch.
Implementation Steps
- PyAutoHands —
git mv autobuild autohands;git mv bin/autobuild bin/autohands. In the CLI:AUTOBUILD_DIR→AUTOHANDS_DIR, header comment,autobuild helpusage strings, the~/.bashrcalias suggestion. Thentests/dotted imports (from autobuild.build_util import …→autohands.build_util),pre_build.sh,docs/{internals,nightly_release_design,env_profile_redesign,pre_build_failure_audit}.md,README.md,AGENTS.md,CONTRIBUTING.md,MIGRATION.md,.github/workflows/{release,navigator_check}.yml,autohands/config/workspaces.yaml. - PyAutoHeart —
.github/workflows/workspace-validation.ymllines ~135/179/295/322/411/445 (script_matrix.py,generate.py,run_python.py×2,run.py,aggregate_results.py);scripts/health_release.sh:42; comments inheart/checks/{script_timing,test_run,url_check_live}.py. - PyAutoBrain —
agents/_common.sh(resolve_autobuild→resolve_autohands, both the function and the_resolve_binfallback path);config/policy.yamlextra_organism_targets+ the intake keyword list;agents/conductors/build/{build.sh,BUILD_CAPABILITIES.md,AGENTS.md};agents/conductors/{release,intake,bug,clone};agents/faculties/vitals/HEART_CAPABILITIES.md;docs/organs/build.md;docs/adoption/config_surfaces.md;ORGANISM.md;skills/ship_library/reference.md;tests/test_policy_seams.py. - Workspaces / HowTos / assistants —
AGENTS.mdPYTHONPATH=../PyAutoHands/autobuild python3 ../PyAutoHands/autobuild/generate.py <project>;.github/scripts/run_smoke.py(sys.path.insert(… "PyAutoHands" / "autobuild")and the docstring);.claude/skills/{generate_and_merge,run_all_script_fix_failures}/SKILL.md;config/build/visualise_notebooks.yamlheader comment;.github/workflows/navigator_check.ymlcomment;.navigator_check_ignorecomment;autoassistant/to_notebook.pydocstrings. - PyAutoMind (live only) —
scripts/repos_sync.py:558-570dict keys;ROUTING.md:38. - admin_jammy —
README.md:25PyAutoBuild/skills/→PyAutoHands/skills/. - Verify —
pytestin PyAutoHands,PyAutoBrain/tests/test_policy_seams.py,bash -n bin/autohands+autohands help,python3 PyAutoMind/scripts/repos_sync.py --check, and a final grep asserting zero lowercaseautobuildoutside the preserve-list.
Explicitly preserved (do not rewrite)
48 historical references: PyAutoBuild#118/#120/#121/#126/#127/#155/#156 issue citations; rhayes777/PyAutoBuild patterns in PyAutoHeart/config/url_fixups.yaml and heart/checks/url_check.sh; the pyautobuild: pyautohands back-compat alias in PyAutoBrain/config/policy.yaml; ~150 PyAutoMind historical records; PyAutoMind/planned.md:121 and dashboard.md:92 (registry pointers to real prompt-file paths); and the two gitignored .claude/settings.local.json allowlists.
Key Files
PyAutoHands/bin/autobuild— the dispatcher;AUTOBUILD_DIRand all help text.PyAutoHands/autobuild/— 27 modules +config/workspaces.yaml; has__init__.py, so it is a real package.PyAutoHeart/.github/workflows/workspace-validation.yml— five path-invocations; the highest-blast-radius file.PyAutoBrain/agents/_common.sh—resolve_autobuild, the PATH/sibling fallback.PyAutoMind/scripts/repos_sync.py— hard-codedPyAutoHands/autobuild/*.pydict keys; breaks silently if missed.
Notes on risk
- Two import styles must both keep working: dotted (
from autobuild.build_util import …, Hands' own tests) and flat-on-PYTHONPATH(from build_util import …, workspaces — only thesys.pathstring changes). - No
setup.py/pyproject.toml, so no PyPI package name is at stake. autobuildis not onPATHand has no shell alias, so no user shell config is affected.- Accepted risk: workspace CI is broken between the Hands merge and the last workspace merge. That window is the cost of no shim.
Run conditions
- Phasing override. The Brain Feature Agent scored this
too-large (37)and recommendedsplit-into-phases. Not taken, with human approval: the score is driven by repo count (16), not conceptual complexity; there is no design phase in a mechanical rename; and sequential phases would violate the atomic-landing guardrail. Still ~18 PRs sharing one branch. - Heart was RED (score 0) at launch — 13 test failures, 33 stale parked scripts, release validation
integrate:fail. None caused by this task, and the corrective-PR exception does not apply (this rename repairs no RED reason). PerAUTONOMY.md, RED forbids commit/push/PR-open at every autonomy level, so this run is expected to park at the ship gate. Effective autonomy = min(supervisedheader,saferefactor cap) = supervised.
Original Prompt
Click to expand starting prompt
# Rename `PyAutoHands/autobuild` to `PyAutoHands/autohands`
Type: refactor
Target: PyAutoHands
Repos:
- PyAutoHands
- PyAutoBrain
- PyAutoHeart
- autolens_workspace
- autogalaxy_workspace
- autofit_workspace
- autolens_workspace_test
- autogalaxy_workspace_test
- autofit_workspace_test
- autocti_workspace_test
- HowToLens
- HowToGalaxy
- HowToFit
- autolens_assistant
- autofit_assistant
- autocti_assistant
- admin_jammy
- PyAutoMind
Difficulty: medium
Autonomy: supervised
Priority: normal
Status: formalised
## Original request (verbatim)
> rename - PyAutoHands/autobuild to - PyAutoHands/autohands and make sure this
> new word is used throughout
## Why
The Hands repo was renamed `PyAutoBuild` → `PyAutoHands`, but its payload
package and CLI kept the old `autobuild` name. The organ and its package now
disagree, which is the one naming seam the rename left behind.
## Scope
Rename the package directory, the CLI, and every **live** reference to the new
word across the organism.
- **PyAutoHands** (primary): `autobuild/` → `autohands/` (27 modules +
`config/workspaces.yaml`), `bin/autobuild` → `bin/autohands` (and its internal
`AUTOBUILD_DIR` / help text / alias suggestion), `pre_build.sh`, `tests/`
(including the dotted imports `from autobuild.build_util import …`), `docs/`,
`README.md`, `AGENTS.md`, `CONTRIBUTING.md`, `.github/workflows/`.
- **PyAutoHeart**: `.github/workflows/workspace-validation.yml` invokes
`PyAutoHands/autobuild/*.py` by path in five places; also
`heart/checks/*.py` comments and `scripts/health_release.sh`.
- **PyAutoBrain**: `config/policy.yaml` (`extra_organism_targets`, alias map),
`agents/_common.sh` (`resolve_autobuild`), the intake/bug repo maps, the
build-conductor docs and `build.sh` dispatch.
- **Workspaces / HowTos / assistants**: `AGENTS.md` generate commands
(`PYTHONPATH=../PyAutoHands/autobuild …`), `.github/scripts/run_smoke.py`
(`sys.path.insert(… "autobuild")`), `.github/workflows/navigator_check.yml`
comments, `config/build/visualise_notebooks.yaml` header comments,
`.claude/skills/*/SKILL.md`.
## Guardrails
- **No back-compat shim.** Land atomically, library-first: the directory move
breaks PyAutoHeart's `workspace-validation.yml` and every workspace's
`run_smoke.py` the moment it merges, so all PRs must be merged in one pass
before the next nightly.
- **Preserve historical old-name references.** Do *not* rewrite `PyAutoBuild#NNN`
issue citations, `rhayes777/PyAutoBuild` URL-fixup patterns in
`PyAutoHeart/config/url_fixups.yaml` / `url_check.sh`, or the back-compat
alias `pyautobuild: pyautohands` in `PyAutoBrain/config/policy.yaml`. These
point at real historical artifacts; rewriting them makes them wrong.
- **Leave PyAutoMind historical records untouched** (~150 files under
`complete/`, `active/`, `draft/`, `issued/`, records) — dated records of past
work. Two further exclusions of the same kind: `planned.md:121` and
`dashboard.md:92` reference Mind *prompt paths* (`feature/pyautobuild/…`,
`research/autobuild/git_docs.md`); those are registry pointers to real files
on disk, so rewriting the string without moving the files breaks the link.
- **But PyAutoMind has two LIVE exceptions that must change** (found on the
deep sweep; they are code and routing, not records):
- `scripts/repos_sync.py:558-570` — a hard-coded dict keyed by
`PyAutoHands/autobuild/<module>.py` paths. `repos_sync.py --write`
regenerates the AGENTS.md repo tables and breaks silently without this.
- `ROUTING.md:38` — lists `autobuild` as a routing target.
- Confirmed absent, do not go hunting again: no root-level `PyAutoLabs/*.md`
references, and no `auto_build` / `autoBuild` / `Autobuild` spelling variants
anywhere in the workspace.
- Two import styles must both keep working: dotted (`from autobuild.build_util
import …`, PyAutoHands' own tests) and flat-on-`PYTHONPATH`
(`from build_util import …`, workspaces — only the `sys.path` string changes).
- Use `git mv` so history follows the files.
- No `setup.py`/`pyproject.toml` exists, so no PyPI package name is at stake.
## Run conditions (recorded at launch, 2026-07-23)
- **Phasing override.** The Brain Feature Agent scored this `too-large (37)` and
recommended `split-into-phases` (design / core-api / workspace-examples /
docs). Not taken, with the human's approval: the score is driven by repo count
(16), not conceptual complexity; there is no design phase in a mechanical
rename; and sequential phases would violate the atomic-landing guardrail above
by leaving a window where Hands has moved and Heart's CI still points at the
old path. The work is still ~18 PRs (one per repo) sharing one branch name.
- **Heart was RED (score 0) at launch** — 13 test failures, 33 stale parked
scripts, release validation `integrate:fail`. None caused by this task, and
the corrective-PR exception does not apply (this rename repairs no RED
reason). Per `AUTONOMY.md`, RED forbids commit/push/PR-open at every autonomy
level, so this run is expected to park at the ship gate. Effective autonomy
= min(`supervised` header, `safe` refactor cap) = **supervised**.
<!-- authored by start_dev from a direct user request on 2026-07-23; scope
decisions (all live code + docs / preserve historical refs / no shim)
confirmed with the user before planning -->
Activity
Jammy2211 commentedon Jul 23, 2026
Parked at the ship gate — Heart RED (autonomous run,
--auto, effective autonomysupervised)The rename is complete and verified in the worktree, but nothing has been committed, pushed, or opened as a PR. Per
AUTONOMY.md, Heart RED forbids commit/push/PR-open at every autonomy level, and the corrective-PR exception explicitly never fires under--auto. This rename repairs none of the RED reasons, so the exception would not apply even if a human invoked it.Heart verdict re-read at ship time (not the launch reading) —
RELEASE READINESS ✗ RED score 0:What is done (in
~/Code/PyAutoLabs-wt/rename-autobuild-to-autohands/, uncommitted)git mv autobuild autohands,git mv bin/autobuild bin/autohands)*_workspace_testreposVerification performed
from autohands.build_util import …imports.test_skill_install.py::test_every_public_agent_has_a_skill_wrapper(missingsizingwrapper). Confirmed pre-existing onmain, not caused by this change.repos_sync.py --check— output identical tomain(same 2 pre-existing tenant-firewall mismatches, no new ones). This is a meaningful check, not a vacuous pass:FIREWALL_ALLOWLISTis keyed by real file path, so had thePyAutoHands/autobuild/*.pykeys been missed, all 13 moved modules would have surfaced as "unlisted file" violations.bash -nclean onbin/autohands,pre_build.sh,_common.sh,build.sh,health_release.sh;autohands helprenders correctly.PyAutoHands/autohands/<module>path referenced anywhere in the workspace resolves to a file that exists.Two findings worth recording
PyAutoMind/scripts/repos_sync.py:558-570held a hard-coded dict keyed byPyAutoHands/autobuild/<module>.py. It was missed by the first repo-level pass (PyAutoMind had been excluded wholesale as "historical") and caught on the deep sweep. Missing it would have brokenrepos_sync.py --writesilently.ROUTING.md:38was the only other live Mind file.PyAutoHeart/heart/checks/url_check_live.sh:16carried a usage comment pointing at a Hands path that did not exist onmaineither — the script had been migrated into PyAutoHeart. Since the rename touched that line, it was corrected to the file's real home (heart/checks/url_check_live.sh) rather than left knowingly wrong.Deliberately preserved
PyAutoBuild#NNNissue citations;rhayes777/PyAutoBuildpatterns inurl_fixups.yaml/url_check.sh; thepyautobuild: pyautohandspolicy alias;pyautobuild_boundary_audit.md(a real filename); ~150 Mind historical records;planned.md:121+dashboard.md:92prompt-path pointers; the two gitignoredsettings.local.jsonallowlists; and thePYAUTOBUILD_DIRdocstring inregenerate_navigator.py, which describes a shim that no longer exists.autobuildwas additionally kept as a back-compat router keyword inpolicy.yaml,_intake.pyand_bug.py— those are typed keywords, not paths, so retaining the old word keeps existing prompts routing to Hands at no cost.To resume
Heart must clear RED first. Then
/ship_library, merging in one pass while CI is quiet: PyAutoHands → PyAutoHeart → PyAutoBrain → workspaces. The directory move breaksworkspace-validation.ymland every workspacerun_smoke.pythe moment Hands merges — that window is the accepted cost of landing without a shim.Jammy2211 commentedon Jul 23, 2026
RED investigation (human-authorized) — the blocker is largely stale evidence
Heart moved score 0 → 40 after refreshing stale local checkouts. Findings on what remains:
1.
release validation FAILED (stage integrate)— STALE, already fixed on mainThe only hard
✗reason. Traced to run 29912642195, which had exactly 3 script failures:scripts/cluster/start_here.pyinterferometer/features/potential_correction/start_here.pyValueError: The dpsi grid is too sparseinterferometer/features/potential_correction/likelihood_function.pyValueErrorBoth
potential_correctionfailures share one root cause:PYAUTO_SMALL_DATASETS=1caps masks to 15×15, starving the dpsi mesh inmesh.py:132 get_itp_box_ctr. The profile's existinginterferometer/start_hereoverride does not reach them, because that pattern is a substring match and their paths areinterferometer/features/potential_correction/....That fix is already merged.
autolens_workspacecommitf582fb7f5— "fix: unblock release validation — potential_correction env override + 2 SLOW-skips" — adds precisely that override (and SLOW-skips covering the cluster timeout). Timeline:The
workspace validation not passing (13 failed)reason is dated 2026-07-21T19-05-22Z, also before the fix. So both reasons judge evidence generated before their own repair. No source fix is needed for either — they need fresh evidence.2.
manifest drift: tenant firewall — 4 mismatch(es)— LIVE, and it grew 2→4 todayTwo are long-standing (
test_mind_commit_guard.py,test_workspace_config_precedence.py). Two are new, introduced by PR #178 (clone-skill-prefix-corruption), merged after this task's worktree was created:PyAutoHands/tests/test_clone_seed_substitute.py— new file, not inFIREWALL_ALLOWLISTPyAutoBrain/agents/conductors/clone/_clone.py:417— newautocti_assistantfactCorrect fix is allowlisting in
PyAutoMind/scripts/repos_sync.py: the test must name instances because it tests clone-name substitution, exactly like its already-allowlisted siblingtest_clone_conductor.py. This is a one-file change, but landing it needs the corrective-PR exception (human, quoting the reason string — the quote is above).3. Consequence for this task
PR #178 also touched
clone_seed.py, which this branch renamed toautohands/clone_seed.py. 11 of the 18 branches are now behindorigin/main(PyAutoMind by 8). They needmainmerged in before shipping, which cannot happen while the work stays uncommitted under RED.Jammy2211 commentedon Jul 23, 2026
Shipped — 18 PRs open, ready to merge
All 18 branches are pushed and every PR is open. Merge is a human act; nothing here merges itself.
Merge order (matters — no back-compat shim)
workspace-validation.ymlcalls the moved pathsSteps 1–3 are strictly ordered; everything in step 4 is order-independent among itself. Between the PyAutoHands merge and the last step-4 merge, workspace CI is broken — that window is the accepted cost of landing without a shim, so merge in one pass while CI is quiet.
Expect red CI on the step-4 PRs before Hands merges
Every workspace PR's own CI runs against PyAutoHeart's
mainworkflow, which still points atautobuild/until PR #99 lands. Red checks on the step-4 PRs before step 1 merges are expected and are not a defect in those PRs.Two late catches worth recording
clone-skill-prefix-corruption) landedtests/test_clone_seed_substitute.pyon main after this branch was cut, importingfrom autobuild.clone_seed import substitute. Git resolved the rename/modify overlap onclone_seed.pyitself correctly, but a new file written against the old name is invisible to rename detection. Caught by mergingmainin early rather than at ship time; retargeted in21fe2d4.PyAutoHands/autobuild/build_util.pycomment references (autolens_workspace,HowToLens,HowToGalaxy). Caught by re-running the sweep after that merge.Both are the same lesson: on a rename this wide, re-sweep after every merge from
main, because new references keep arriving.Not included, deliberately
The
manifest drift: tenant firewall (organ code) — 4 mismatch(es)RED reason is not addressed here. Two of those four are PR #178 fallout (test_clone_seed_substitute.pyabsent fromFIREWALL_ALLOWLIST,_clone.py:417). The fix is a one-line allowlist addition inPyAutoMind/scripts/repos_sync.py, but it is a separate concern from this rename and mixing it in would muddy the diff. Filed as a follow-up rather than bundled.Release validation was not re-run: the two largest RED reasons are stale evidence already repaired by
autolens_workspace f582fb7f5, and nothing in this task depends on regenerating them.Jammy2211 commentedon Jul 23, 2026
Complete — all 18 PRs merged, verified on
mainThe rename landed in the intended order: PyAutoHands #179 → PyAutoHeart #99 → PyAutoBrain #152 → the other 15. All 18 confirmed
merged: truevia the API.Post-merge verification (against real merged
main, not the branch)PyAutoHands/autohands/present,bin/autohandspresent,autobuild/gone.autobuildis not importable;autohandsis. This mattered — a staleautobuild/__pycache__/survived the merge as untracked local cruft, and in Python 3 a directory without__init__.pyis still importable as a namespace package, so it could have masked a missed import instead of failing loudly. Removed.test_skill_install::test_every_public_agent_has_a_skill_wrapper(missingsizingwrapper), confirmed pre-existing onmainbefore this work and unrelated to the rename.autohands helprenders;repos_sync.py --checkclean on all generated-block and pointer checks.autobuildreferences remain outside the explicit preserve-list.Preserved as intended
PyAutoBuild#NNNissue citations,rhayes777/PyAutoBuildurl_fixups patterns, thepyautobuild: pyautohandspolicy alias,pyautobuild_boundary_audit.md, ~150 PyAutoMind historical records, theplanned.md/dashboard.mdprompt-path pointers, and thePYAUTOBUILD_DIRdocstring.autobuildalso survives as a back-compat router keyword inpolicy.yaml/_intake.py/_bug.py, so existing prompts still route to Hands.Follow-up left open (deliberately unbundled)
manifest drift: tenant firewall (organ code) — 4 mismatch(es). Two are PR #178 fallout:PyAutoHands/tests/test_clone_seed_substitute.pyabsent fromFIREWALL_ALLOWLIST, and_clone.py:417. Fix is a one-line allowlist addition inPyAutoMind/scripts/repos_sync.py, mirroring the already-allowlisted siblingtest_clone_conductor.py. Kept out of this diff on purpose.Lesson recorded
On a rename this wide, re-sweep after every merge from
main— new references keep arriving. It happened twice mid-flight: PR #178 added a test importingfrom autobuild.clone_seed(git's rename detection fixedclone_seed.pyitself but is blind to a new file written against the old name), and the no_run config cleanup then added three morebuild_util.pycomment references. Both were caught only becausemainwas merged in early and the sweep re-run, rather than deferring to ship time.