Skip to content

maintenance: clear workspace dead weight, worktree trees and the jax_joss checkout - #390

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/workspace-dead-weight-cleanup
Sep 18, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/workspace-dead-weight-cleanup

Conversation

@Jammy2211

@Jammy2211 Jammy2211 commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Closes #389. Phase 1b of the workspace regroup. Changes no directory layout.

What landed in this PR

One comment: bin/clean_slate.sh no longer implies a local autolens_jax_joss checkout, while keeping the record of why it was excluded from DATASET_REPOS. No behaviour change — it was never in that array.

Companion PR: PyAutoLabs/PyAutoMind#413 (repos.yaml role text + the three re-pointed prompts).

What landed outside version control

Most of this task was unversioned: the workspace root is not a git repo, so git holds none of it and there is no rollback. Everything below was archived first to ~/Code/PyAutoLabs-backups/root-unversioned-2026-09-18.tar.gz (29 entries), which was then used in anger — see "Course corrections".

  • .worktrees/ removed (74M → 0). 8 real worktrees via git worktree remove + prune, then ~81 symlinks. All 8 task branches verified 0 commits not on a remote. Only genuine loss: autofit_workspace/test-results/ (24K smoke artefact).
  • autolens_jax_joss local checkout removed (4.5M), after re-confirming ls-remote parity at 6bce65e immediately before deletion. The GitHub remote is untouched — it is the citable artefact behind the JOSS paper's benchmark claims.
  • Root dead weight deleted: .agents/ (10 symlinks, every one already dangling), .codex/ (empty), scrap.py (contained only the non-parsing line import numpy as), root.log (0 bytes), 4 spent .pr-body-*.md, .pytest_cache/, .ruff_cache/.
  • Stale references pruned: 44 dead .idea/PyAutoLabs.iml entries, the .idea/vcs.xml jax_joss mapping, 2 dead .claude/settings.json additionalDirectories.

Root entry count: 45 → 42 visible, and 59 → 47 counting dotfiles (12 removed). The navigation win from this task is modest by design — it clears dead weight only. The regroup itself (phase 3) is what takes the root to ~16.

Course corrections during execution

Three things in the approved plan turned out to be wrong, and were not done as written:

  1. The root .git/ stub was kept. The plan said to delete it because it made git and codex exec fail at the root. It doesn't — those fail because there is no repo, and removing the stub changes only the error text. It also turned out to hold a live claude-code-runtime exclude file. Deleting a harness-managed directory for a benefit that doesn't exist is pure risk.
  2. The .iml prune was nearly destructive. Dropping every entry whose path is absent would have removed 9 excludeFolder rules for output/, .venv/ and notebooks/ dirs that simply don't exist right now and are recreated by runs — letting the IDE index large output trees later. The archive was restored and the correct rule applied: drop an entry only when its repo is gone (44 entries, 7 repos: z_projects, z_projects_complete, PyAutoConf, PyAutoBuild, PyAutoPulse, PyAutoPrompt, autolens_base_project).
  3. Neither jax_joss draft was retired. Both were called "now-moot"; neither is. Details in the Mind PR.

Also: the issue called the admin_jammy AGENTS.md row stale. It isn't — Jammy2211/admin_jammy is a genuine body-map repo that is simply not cloned locally.

Witness

Check Result
ls -a at root shows none of the deleted items ✅ 12/12 gone
git worktree list per repo reports no .worktrees/ entry ✅ 0 repos
ls-remote still returns 6bce65e with the checkout gone ✅
import autolens, autofit, autoarray, autogalaxy, autonerves resolves from the flat checkouts ✅ all 5
repos_sync.py --check ✅ exit 0, all 8 checks
intake dashboard --check ✅ "are current"
bash -n clean_slate.sh, XML/JSON validity of the 3 edited config files ✅

Not touched

The 11 live PyAutoLabs-wt task worktrees; scrap.md, tmp/, .git-salvage/; the three canonical untracked files Heart reports as drift (two assistant scripts + the autolens_inference A100 results) — those appeared inside .worktrees/ only through symlinks and were never at risk. Five stale PyAutoMind worktrees remain in other sessions' /tmp scratchpads; they survived prune, so those dirs still exist and belong to other sessions.

🤖 Generated with Claude Code

https://claude.ai/code/session_0161NLKVzbBMzhaBfjpGogor

…_joss checkout

The autolens_jax_joss local checkout was removed as workspace dead weight
(#389); the repo lives on GitHub only. Rewrite the DATASET_REPOS exclusion
comment so it no longer implies a local checkout, while keeping the record of
why it was excluded (JWST cosmos_web_ring real instrument data).

Part of workspace-regroup phase 1b. No behaviour change: autolens_jax_joss was
never in DATASET_REPOS.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0161NLKVzbBMzhaBfjpGogor
@Jammy2211
Jammy2211 merged commit 16ecfca into main Sep 18, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/workspace-dead-weight-cleanup branch September 18, 2026 18:04
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.

maintenance: clear workspace dead weight, worktree trees and the autolens_jax_joss checkout

1 participant