Repository navigation
Description
Overview
Phase 1b of the PyAutoLabs workspace regroup. The workspace root carries 45 entries, several of which are provably dead: a symlink directory whose every target was deleted, an empty .codex/, a .git/ stub that makes git and codex exec fail at the root, a non-parsing scratch file, and two 74M worktree trees whose work is fully pushed. This task clears them and removes the autolens_jax_joss local checkout.
It changes no directory layout and touches no organ logic. Its sibling, workspace-location-contracts, does the resolver work; the physical regroup is phase 3 and waits for the in-flight tasks to clear the release gate.
The defining constraint: the workspace root is not a git repo, so almost every target here is unversioned and git cannot roll it back. Step 0 exists to make the rest reversible.
Plan
- Archive first — tar the unversioned root material to a dated backup, because git holds none of it.
- Remove the two
.worktrees/trees (74M); each is ~40 symlinks plus 4 real worktrees, with no unpushed commits in any member. - Remove the
autolens_jax_josslocal checkout only; the GitHub remote stays (it backs the JOSS paper's benchmark claims). - Delete root dead weight that is already provably dead.
- Prune references to repos that no longer exist from the IDE and Claude settings.
- Land the two tracked changes (PyAutoBrain comment, PyAutoMind body-map role text + draft retirements) as the PR.
Detailed implementation plan
Affected Repositories
- PyAutoBrain (primary) — one comment line
- PyAutoMind — body-map role text, draft retirements, dashboard
- Everything else in scope is unversioned local material, not a repo change
Branch Survey
| Repository | Current Branch | Dirty? |
|---|---|---|
| ./PyAutoBrain | main | clean |
| ./PyAutoMind | main | clean |
worktree_check_conflict workspace-dead-weight-cleanup PyAutoBrain PyAutoMind → exit 0 (no conflict).
Suggested branch: feature/workspace-dead-weight-cleanup
Implementation Steps
Step 0 — archive (precondition for every destructive step)
Create ~/Code/PyAutoLabs-backups/root-unversioned-2026-09-18.tar.gz holding .agents/, .codex/, the .git/ stub, scrap.py, root.log, the four .pr-body-*.md, and pre-edit copies of .idea/PyAutoLabs.iml, .claude/settings.json, .claude/settings.local.json. ~200 KB.
PyAutoGut is deliberately not used: pyauto-gut archive takes a git ref and stores refs/heads/archive/condemned/<name>; none of this material is a git ref.
Step 1 — worktree trees
Remove with git worktree remove (not rm -rf, so each repo's admin metadata updates):
.worktrees/howtofit-mode: HowToFit, PyAutoFit, autofit_workspace, autofit_assistant.worktrees/scientific-workflow-language: HowToFit, PyAutoFit, autofit_workspace, PyAutoHands
Then git worktree prune in each, then delete the residual ~81 symlinks and the two tree roots.
Evidence: both trees verified to have no unpushed commits in any member (git log --all --not --remotes empty). The only untracked content genuinely deleted is autofit_workspace/test-results/ in the scientific-workflow-language tree — a smoke artefact.
Correction to an earlier reading: autolens_assistant/scripts/cluster_model_composition.py, autofit_assistant/scripts/compose_model_gaussians_exponentials.py and the autolens_inference/results/slam/imaging/hst/{delaunay_1250,slam_base/hpc_a100_jax_gpu_dense_fp64__rate_probe_342695}/ directories appear inside the trees only through symlinks to the canonical checkouts. They live in the canonical repos and are untouched. They remain as pre-existing Heart worktree-drift and are out of scope.
Step 2 — autolens_jax_joss
Re-confirm git ls-remote origin returns 6bce65e47a9e2a789b7ee83ee805abd755e1b945 for refs/heads/main and that local HEAD equals it, then delete the checkout (4.5M). Lost: gitignored dataset/ (re-fetchable from autolens_workspace), results/quick/ (throwaway), three __pycache__ trees. Committed results/*.json and RESULTS.md are pushed. Then drop the .idea/vcs.xml:34 mapping.
Step 3 — root dead weight
Delete .agents/ (10 symlinks, all already dangling — targets PyAutoPrompt/ and admin_jammy/, neither on disk), .codex/ (empty since 2026-05-13), the root .git/ stub (only an empty info/; it is why git fails at the root and why codex exec refuses to start without --skip-git-repo-check), scrap.py (contains only the truncated non-parsing line import numpy as), root.log (0 bytes), the four .pr-body-*.md from 2026-09-14, .pytest_cache/, .ruff_cache/.
scrap.md is deliberately kept.
Step 4 — stale references
.idea/PyAutoLabs.iml: delete the ~45 entries whose paths are absent from disk (z_projects/*,z_projects_complete/*, PyAutoConf, PyAutoBuild, PyAutoPulse, PyAutoPrompt, autolens_base_project). Leave the ~31 live entries..idea/vcs.xmlis otherwise current — all 39 mappings resolve..claude/settings.json: drop the 2 deadadditionalDirectoriesentries./PyAutoConfand./autolens_base_project.
Step 5 — tracked changes (the PR)
PyAutoBrain/bin/clean_slate.sh:72— update the exclusion comment naming autolens_jax_joss.PyAutoMind/repos.yaml— theeuclid_strong_lens_modeling_pipelinerole:says "not z_projects/euclid"; z_projects no longer exists. Fix the role text and runrepos_sync.py --writeto regenerate the routing table between therepos_syncmarkers in the rootAGENTS.md. Do not hand-edit AGENTS.md.- Retire the two now-moot drafts
draft/maintenance/pyautomind/autolens_jax_joss_manifest_gap.mdanddraft/feature/autolens_jax_joss/autolens_jax_joss_benchmark_repo.md; drop the autolens_jax_joss row fromdraft/maintenance/autolens_profiling/mass_field_flat_adoption_science_repos.md. Regenerate the dashboard in the same commit.
Correction to the filed prompt: it called the admin_jammy AGENTS.md row stale. It is not — Jammy2211/admin_jammy is a genuine body-map repo that simply is not cloned locally. Leave it.
Testing / Witness
ls -aat the workspace root lists none of.agents,.codex,.git,scrap.py,root.log,.pr-body-*.mdgit -C <repo> worktree listreports no.worktrees/entry for any repo- autolens_jax_joss absent from disk while
git ls-remote https://github.com/PyAutoLabs/autolens_jax_jossstill returns6bce65e python3 -c "import autolens, autofit, autoarray, autogalaxy"still resolves from the flat checkoutspyauto-brain intake dashboard --checkprints "are current"python3 PyAutoMind/scripts/repos_sync.py --checkpasses
Key Files
PyAutoBrain/bin/clean_slate.sh— exclusion commentPyAutoMind/repos.yaml— euclid role text (regenerates root AGENTS.md).idea/PyAutoLabs.iml,.idea/vcs.xml,.claude/settings.json— unversioned, archived in step 0
Context
Phase 1b of the workspace regroup, approved 2026-09-18: group the science families into lens/ galaxy/ fit/ cti/ reduce/, organs stay flat, move deferred until the in-flight tasks clear the release gate. Sibling task: workspace-location-contracts.
Heart at start: RELEASE VALIDATION red (integrate stage) and INSTALL VERIFY warnings (Colab bootstrap) — both pre-existing, unrelated to this task, and this is not an --auto run.
Original Prompt
Click to expand starting prompt
# Workspace dead-weight cleanup and autolens_jax_joss local removal
Type: maintenance
Target: PyAutoBrain
Repos:
- PyAutoBrain
- PyAutoMind
- autolens_assistant
- autofit_assistant
- autolens_inference
Difficulty: small
Autonomy: supervised
Priority: normal
Status: formalised
Consequence: glance
Witness: `ls -a` at the workspace root lists none of .agents, .codex, .git, scrap.py, root.log or .pr-body-*.md; `git -C <repo> worktree list` reports no .worktrees/ entry for any repo; autolens_jax_joss is absent from disk while `git ls-remote https://github.com/PyAutoLabs/autolens_jax_joss` still returns 6bce65e; and `python3 -c "import autolens, autofit, autoarray, autogalaxy"` still resolves from the flat checkouts.
Review-minutes: 5
Unattended: safe
Phase 1b of the PyAutoLabs workspace regroup. Changes NO directory layout and touches no organ
logic - pure deletion of material already proven dead. Sibling task: workspace-location-contracts.
## Scope
1. Delete root dead weight: .agents/ (10 symlinks, ALL already dangling — targets PyAutoPrompt/ and
admin_jammy/, neither of which exists); .codex/ (empty since 2026-05-13); the root .git/ stub
(contains only an empty info/ dir — it is why git commands at the root fail "not a git repository"
and why `codex exec` refuses to start without --skip-git-repo-check); scrap.py (contains the
truncated non-parsing line "import numpy as"); root.log (0 bytes); the 4 .pr-body-*.md drafts from
2026-09-14; .pytest_cache/; .ruff_cache/.
2. Prune stale references to repos that no longer exist: ~45 .idea/PyAutoLabs.iml entries (z_projects/*,
z_projects_complete/*, PyAutoConf, PyAutoBuild, PyAutoPulse, PyAutoPrompt, autolens_base_project —
all confirmed absent from disk; note vcs.xml by contrast is current, all 39 mappings resolve); the
admin_jammy and z_projects/euclid rows in the root AGENTS.md; and the 2 stale
.claude/settings.json additionalDirectories (./PyAutoConf, ./autolens_base_project).
3. Remove the two .worktrees/ trees (74M: howtofit-mode, scientific-workflow-language). Verified: NO
unpushed commits in any member of either tree. Judge three untracked items first —
autolens_assistant/scripts/cluster_model_composition.py,
autofit_assistant/scripts/compose_model_gaussians_exponentials.py, and
autolens_inference/results/slam/imaging/hst/delaunay_1250/ plus
.../slam_base/hpc_a100_jax_gpu_dense_fp64__rate_probe_342695/ (these look like real A100 run output —
preserve them before removing the tree). Use `git worktree remove` / prune, not rm -rf, so each
repo's admin metadata is updated. This also removes ~80 worktree paths from the phase-3 migration.
4. Remove the autolens_jax_joss LOCAL checkout. Verified safe 2026-09-18: clean tracked and untracked
status, no stashes, only local branch main, no commit on any branch absent from a remote-tracking
ref, and local HEAD == origin/main == refs/heads/main == 6bce65e47a9e2a789b7ee83ee805abd755e1b945
(remote reached directly). 4.5M. Lost: gitignored dataset/ (re-fetchable from autolens_workspace),
results/quick/ (throwaway quick-mode runs) and three __pycache__ trees. The committed results/*.json
and RESULTS.md are pushed. It is the only checkout absent from PyAutoMind/repos.yaml.
Clean up alongside: the .idea/vcs.xml:34 mapping; the exclusion comment at
PyAutoBrain/bin/clean_slate.sh:72; the two .worktrees/*/autolens_jax_joss copies (removed by item 3);
the now-moot open drafts draft/maintenance/pyautomind/autolens_jax_joss_manifest_gap.md and
draft/feature/autolens_jax_joss/autolens_jax_joss_benchmark_repo.md; and the autolens_jax_joss row in
draft/maintenance/autolens_profiling/mass_field_flat_adoption_science_repos.md.
## Explicitly out of scope
Deleting or archiving the autolens_jax_joss GitHub repo. The remote stays. It is the citable artefact
behind the JOSS paper's benchmark claims, is linked from autolens_workspace/scripts/weak/start_here.py:309,
and mgl-slam-batch-home.md:19 flags its benchmarks as possibly pinned to published JOSS numbers.
Deleting it would break a published paper's reproducibility path. Leave complete/** history and the
autolens_workspace source comments as they are — they reference the GitHub repo, which survives.
Activity
Jammy2211 commentedon Sep 18, 2026
Shipped
All legs green before merge: Brain
pytest (3.12)+pytest (3.13); Mindrefresh,firewall,privacy. Mind'sdriftleg is skipped by construction on pull requests (if: github.event_name != 'pull_request'— it clonesmain, not the PR head). Heart freeze: not frozen; both repos arecategory: organso the library freeze gate does not apply.What shipped
Versioned (the two PRs): the
clean_slate.shexclusion comment;repos.yaml's euclid role text with the workspace-rootAGENTS.mdrouting table regenerated; and three re-pointed prompts.Unversioned (the bulk — the workspace root is not a git repo, so git holds none of it):
.worktrees/removed (74M → 0, 8 worktrees viagit worktree remove+ ~81 symlinks), theautolens_jax_josslocal checkout removed (4.5M, remote untouched at6bce65e), root dead weight deleted, and 44 dead.ideaentries + 2 deadsettings.jsondirectories pruned. Archived first to~/Code/PyAutoLabs-backups/root-unversioned-2026-09-18.tar.gz.Root entry count: 45 → 42 visible, 59 → 47 with dotfiles.
Three deviations from the approved plan
.git/stub was kept. The stated rationale for deleting it was wrong — git andcodex execfail at the root because there is no repo, not because of the stub; removing it changes only the error text. It also holds a liveclaude-code-runtimeexclude file..ideaprune was corrected mid-flight. Dropping every entry with an absent path would have destroyed 9excludeFolderrules foroutput/,.venv/andnotebooks/dirs that are recreated by runs. Restored from the step-0 archive; re-pruned on the rule "drop only when the repo is gone" (44 entries, 7 repos).manifest_gap's defect is general and still live (repos_sync --checkdrift-checks manifest → disk only, so an unlisted checkout is silence) and is the mirror of aworkspace_location_contractsitem.benchmark_repolooks shipped, not moot, so it is flagged forintake reconcilerather than archived.Also corrected: the issue called the
admin_jammyAGENTS.md row stale. It is not —Jammy2211/admin_jammyis a genuine body-map repo that is simply not cloned locally.Follow-on
Phase 1a is
draft/maintenance/pyautobrain/workspace_location_contracts.md. The physical regroup (phase 3) still waits on the in-flight tasks clearing the release gate.