From 95403983e00f20d3562ad1d77adf8aaa9ed2ee43 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Fri, 18 Sep 2026 20:43:45 +0100 Subject: [PATCH] maintenance: drift-check the manifest against disk in both directions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit repos_sync.py could not see either kind of drift: declared but not on disk — skipped at three checks (CLAUDE pointers, origins, codex hooks). After any regroup they would pass while checking nothing. A successful check that means reduced coverage is the failure to remove. on disk but not declared — structurally invisible: the walk starts from the manifest and asks whether each entry is present, so an unlisted checkout is silence, not a failure. A new `workspace checkouts (manifest <-> disk)` leg closes both. It needs NO opt-out key for the first direction: with admin_jammy gone the manifest is 38 declared to 38 on disk, so absence is simply an error. The second direction needs one entry — `unmapped_checkouts:` listing `.github`, a real checkout with a real remote that is deliberately not a body-map repo. Only directories holding .git are considered, so tmp/, scrap.md and the dotfiles need no declaration. admin_jammy removed: it is not part of the PyAutoLabs ecosystem, and PyAutoBrain/bin/README.md already recorded that it was slated to leave. Its now-empty `admin:` category goes with it. This retires draft/maintenance/pyautomind/autolens_jax_joss_manifest_gap.md, whose defect was the second direction above and which outlived its example. The leg enforces only under a root carrying a .pyauto-root marker, and otherwise prints its denominator and fails nothing — CI lays repos out side by side with no marker, so nothing asserts one exists. The denominator goes on its own line because Heart's manifest_drift parser anchors the status to end-of-line; a suffix would make the leg invisible to Heart. (That parser is too brittle and already drops one existing leg — filed separately as a bug.) repos_sync.py and spawn.py now take the root from the shared resolver, with --root still winning. Both refuse a resolved root that does not contain their own checkout: the resolver is Brain-anchored, and in a bundle whose PyAutoBrain is a symlink it resolves to CANONICAL, which would have had --write regenerate another tree. --write now also writes the marker beside the routing table, so it is generated rather than placed by hand; the bootstrap is additive and pinned by a test. Suite 501 passed (was 482; +19). --check green on the real workspace, all 18 legs, and both new directions proven red-before/green-after on real repos. Part of PyAutoBrain#391 (phase 1a). No directory layout changes. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_0161NLKVzbBMzhaBfjpGogor --- REFERENCE.md | 7 +- dashboard.html | 23 +- dashboard.md | 26 +- .../autolens_jax_joss_manifest_gap.md | 84 ------- repos.yaml | 21 +- scripts/repos_sync.py | 238 +++++++++++++++++- scripts/session_bootstrap.sh | 43 +++- scripts/spawn.py | 23 +- tests/test_repos_sync_checkouts.py | 202 +++++++++++++++ tests/test_repos_sync_root_default.py | 111 ++++++++ 10 files changed, 642 insertions(+), 136 deletions(-) delete mode 100644 draft/maintenance/pyautomind/autolens_jax_joss_manifest_gap.md create mode 100644 tests/test_repos_sync_checkouts.py create mode 100644 tests/test_repos_sync_root_default.py diff --git a/REFERENCE.md b/REFERENCE.md index 6c3a644a6..f7e3b45e3 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -191,7 +191,8 @@ own them — **PyAutoBrain** (`start_dev`, `start_dev_for_user`, `plan_branches` **autolens_profiling** (`profile_likelihood`). The `handoff` skill was retired (PyAutoBrain runs uniformly across execution environments — see `OWNERSHIP.md`). General PyAuto tooling (release prep, -dependency audits, smoke tests, lint sweeps) lives in `admin_jammy/skills/`. +dependency audits, smoke tests, lint sweeps) lives in the organ that owns it — +`PyAutoBrain/skills/`, `PyAutoHeart/skills/`, `PyAutoHands/`. `scripts/prompt_sync.sh` is sourced by skills that mutate registry files (`active.md`, `planned.md`, etc.) to commit and push back to origin. It @@ -877,12 +878,11 @@ it found — and writes nothing. `--apply` does it. ## How this repo integrates with the rest -The PyAuto workflow has three repos with distinct roles: +The PyAuto workflow has these repos with distinct roles: | Repo | Purpose | |------|---------| | **PyAutoMind** (this repo) | The Mind: ideas, intent, goals, priorities, the prompt registry and prompt-coupled skills. The starting point. | -| **admin_jammy** | Personal admin notes only (`euclid.md`, `grants.md`, `week.md`, `travel.md`, …). Formerly also held PyAuto tooling under `software/`; that has moved out (worktree/label scripts → `PyAutoBrain/bin/`, generic skills → Brain/Heart). | | **PyAutoMemory** | The Memory organ: topical LLM wikis (`wiki/lensing/`, `wiki/smbh/`, `wiki/cti/`, `wiki/methods/`, `wiki/galaxies/`) and a reading queue (`reading-queue.md`, moved from `admin_jammy/papers.md`). | | **`PyAuto*` libraries and `*_workspace*` repos** | Where the actual code work happens. Each task gets a feature branch + worktree under `~/Code/PyAutoLabs-wt//`. | @@ -902,7 +902,6 @@ cd ~/Code/PyAutoLabs git clone git@github.com:PyAutoLabs/PyAutoMind.git # the Mind (this repo) git clone git@github.com:PyAutoLabs/PyAutoBrain.git # dev-workflow skills git clone git@github.com:PyAutoLabs/PyAutoHeart.git # status / readiness skills -git clone git@github.com:Jammy2211/admin_jammy.git # general tooling (optional) bash PyAutoBrain/bin/install.sh # symlinks skills + commands ``` diff --git a/dashboard.html b/dashboard.html index 4349e1833..0bf01b8be 100644 --- a/dashboard.html +++ b/dashboard.html @@ -231,7 +231,7 @@

PyAutoMindDashboard

Intent. Priority. Flow.

Every task the Mind is holding. Tap a task's 📋 and its /start_dev command is on your clipboard — paste it into a Claude Code chat to route Claude straight to that task. Recent is the same work by date — what has been happening rather than what to do next.

-
  • 9In flight
  • 2Human review
  • 3Parked
  • 6Planned
  • 223Backlog
+
  • 9In flight
  • 2Human review
  • 3Parked
  • 6Planned
  • 222Backlog

Last updated 2026-09-18. This page is generated from active/, draft/ and the registry files, so it is only as current as they are. dashboard_refresh.yml re-renders it on every push to main — that heals a stale page, but not a stale prompt: a task that shipped without its prompt advancing to complete/ keeps rendering here as pickable backlog. Reconciling those is the refresh below.

Benchmark card: positions-initialised imaging inference of a simulated lens✨ featureautolens_assistantmediumsupervisedhigh

Remove remaining provider assumptions from agent metadata and docs🧹 maintenanceorgansmediumsupervisedhigh

Reduce the organism's per-session and per-task token load by half🧹 maintenanceorgansmediumsupervisedhigh

-

Fits a slot (ready to run unattended, cheapest to review first) — showing 12 of 112

+

Fits a slot (ready to run unattended, cheapest to review first) — showing 12 of 111

Guard every workspace script against untimed network downloads🧪 testautolens_workspacesmallsafemedium

@@ -365,7 +365,7 @@

Planned

latent-nan-guard-honest-run — planned 2026-07-22

Backlog markdown version

-

223 filed prompts, not started — sorted most-pickable first (priority, then size). 41 of them belong to an epic and are listed only under Epics below.

+

222 filed prompts, not started — sorted most-pickable first (priority, then size). 41 of them belong to an epic and are listed only under Epics below.

bug — 64 @@ -475,7 +475,7 @@

Backlog

Deferred: make the *Power adapt classes the defaults (breaking)✨ featureautoarraylargehuman-requiredlow

-maintenance — 25 +maintenance — 24

Migrate the six user-filed feature threads to the Discussions hub (Ideas)🧹 maintenancecommunitysmallhuman-requiredhigh

Remove remaining provider assumptions from agent metadata and docs🧹 maintenanceorgansmediumsupervisedhigh

Reduce the organism's per-session and per-task token load by half🧹 maintenanceorgansmediumsupervisedhigh

@@ -485,7 +485,6 @@

Backlog

Sync remaining workspace config/priors copies🧹 maintenanceworkspacessmallsafemedium

The workspace staleness warning keys off a value documented never to move🧹 maintenancehowtofitsmallsupervisednormal

Unregistered worktrees are invisible to the conflict guard🧹 maintenancepyautobrainsmallsupervisednormal

-

Mirror drifted library config keys into the workspace configs🧹 maintenanceworkspacessmallsafenormal

jax_compile/probe.py lost its cell builder with the searches tier — give profiling…🧹 maintenanceautolens_profilingmediumsupervisednormal

autolens_workspace_developer: broad stale-API rot (56 symbols, no CI)🧹 maintenanceautolens_workspace_developermediumsupervisednormal

@@ -949,12 +948,6 @@

Bundles 2026-09-18 filed -autolens_jax_joss is missing from the body map, and repos_sync.py… - - - -2026-09-18 -filed arxiv_refs.py swallows every API error, so an arXiv outage resolves… @@ -982,7 +975,7 @@

Bundles vmap(jit) likelihood recompiles once per distinct Nautilus batch… - + 2026-09-17 filed rectangular.py parity contract: absolute-nats bound, and import… @@ -1222,6 +1215,12 @@

Bundles Sparse (w-tilde) inversion fits the unsubtracted image when a regular… + +2026-09-12 +issued +Per-variant comparison of the four Sersic scrapes… + +

Epics markdown version

diff --git a/dashboard.md b/dashboard.md index 5bb25e014..66ea02fdc 100644 --- a/dashboard.md +++ b/dashboard.md @@ -46,7 +46,7 @@ anything you could not verify. | [Human review](#human-review) (`draft/human_review/`) | 2 | | [Parked](#parked) (`parked.md`) | 3 | | [Planned](#planned) (`planned.md`) | 6 | -| [Backlog](#backlog) (`draft/`) | 223 | +| [Backlog](#backlog) (`draft/`) | 222 | > **No batch in flight.** @@ -150,7 +150,7 @@ anything you could not verify.
-**Fits a slot** (ready to run unattended, cheapest to review first) — showing 12 of 112 +**Fits a slot** (ready to run unattended, cheapest to review first) — showing 12 of 111
📋 Guard every workspace script against untimed network downloads — autolens_workspace · small · safe · medium @@ -577,7 +577,7 @@ Scoped but not started; some are not yet prompt files. Full detail in [`planned. ## Backlog -**223** filed prompts, not started. Each section is sorted most-pickable first (priority, then size). **41** of them belong to an epic and are listed only under [Epics](#epics) below. +**222** filed prompts, not started. Each section is sorted most-pickable first (priority, then size). **41** of them belong to an epic and are listed only under [Epics](#epics) below.
bug — 64 @@ -1406,7 +1406,7 @@ Scoped but not started; some are not yet prompt files. Full detail in [`planned.
-maintenance — 25 +maintenance — 24
📋 Migrate the six user-filed feature threads to the Discussions hub (Ideas) — community · small · human-required · high @@ -1480,14 +1480,6 @@ Scoped but not started; some are not yet prompt files. Full detail in [`planned.
-
📋 autolens_jax_joss is missing from the body map, and repos_sync.py structurally cannot see… — pyautomind · small · safe · normal - -``` -/start_dev draft/maintenance/pyautomind/autolens_jax_joss_manifest_gap.md -``` - -
-
📋 Mirror drifted library config keys into the workspace configs — workspaces · small · safe · normal ``` @@ -2356,18 +2348,17 @@ The 50 newest things to happen to the work in hand, newest first — issued, par | 2026-09-18 | filed | autolens_workspace: __Model__ bullets whose profiles or parameter… | | 2026-09-18 | issued | autolens_workspace + autolens_workspace_test: adopt the flat (bare)… | | 2026-09-18 | filed | arXiv's Fastly edge refuses urllib.request outright — retrying a… | -| 2026-09-18 | filed | autolens_jax_joss is missing from the body map, and repos_sync.py… | | 2026-09-18 | filed | arxiv_refs.py swallows every API error, so an arXiv outage resolves… | | 2026-09-18 | issued | Workspace location contracts: one resolver for root, repo, main and… | | 2026-09-18 | filed | The latent smoke's empty-block assertion names one cause… | | 2026-09-18 | filed | Profile multi_galaxy/start_here.py's release cost and retire its… | | 2026-09-17 | filed | vmap(jit) likelihood recompiles once per distinct Nautilus batch… | +| 2026-09-17 | filed | rectangular.py parity contract: absolute-nats bound, and import… |
… 10 more (40 left) | Date | Event | Task | |------|-------|------| -| 2026-09-17 | filed | rectangular.py parity contract: absolute-nats bound, and import… | | 2026-09-17 | filed | codex-skill-discovery | | 2026-09-17 | issued | autolens_workspace + autolens_workspace_test: every external field… | | 2026-09-17 | filed | Sizing faculty: a none rule, keyword hits on prose that only… | @@ -2377,12 +2368,12 @@ The 50 newest things to happen to the work in hand, newest first — issued, par | 2026-09-17 | filed | Point-source image-plane chi-squared on the A100: likelihood… | | 2026-09-17 | filed | Point every user-facing "Community & Support" section and issue… | | 2026-09-17 | issued | One-shot benchmark harness and computed-score contract for the… | +| 2026-09-17 | filed | Nautilus as an EP default_optimiser crashes on PriorFactors (reads… |
… 10 more (30 left) | Date | Event | Task | |------|-------|------| -| 2026-09-17 | filed | Nautilus as an EP default_optimiser crashes on PriorFactors (reads… | | 2026-09-17 | filed | Move the Witt–Wynne SIEP solver/projection into PyAutoLens once the… | | 2026-09-17 | filed | Migrate the six user-filed feature threads to the Discussions hub… | | 2026-09-17 | filed | MeshGeometryRectangular.areas_transformed raises IndexError for… | @@ -2392,12 +2383,12 @@ The 50 newest things to happen to the work in hand, newest first — issued, par | 2026-09-17 | filed | Front door: a Community link to the Discussions hub | | 2026-09-17 | filed | EP: cache the compiled JAX likelihood on the Analysis across factor… | | 2026-09-17 | issued | DatasetModel grid_offset prior ±0.2" clips real multi-band offsets… | +| 2026-09-17 | filed | Bundle stages 1/5/6 read OUTPUT_DIR, but the SED chain writes… |
… 10 more (20 left) | Date | Event | Task | |------|-------|------| -| 2026-09-17 | filed | Bundle stages 1/5/6 read OUTPUT_DIR, but the SED chain writes… | | 2026-09-17 | filed | Benchmark card: positions-initialised imaging inference of a… | | 2026-09-17 | filed | Benchmark card: forward-model consistency across imaging… | | 2026-09-16 | filed | euclid pipeline: skip_fit_output docs say it gates the whole of… | @@ -2407,12 +2398,12 @@ The 50 newest things to happen to the work in hand, newest first — issued, par | 2026-09-16 | filed | COOLEST: export MGE lens light and pixelized sources as pixel grids | | 2026-09-16 | filed | Adaptive Delaunay mesh places two mesh pixels 0.001" apart — a… | | 2026-09-15 | filed | The workspace staleness warning keys off a value documented never to… | +| 2026-09-15 | filed | Nightly run of one HowTo tutorial per chapter at real settings |
… 10 more (10 left) | Date | Event | Task | |------|-------|------| -| 2026-09-15 | filed | Nightly run of one HowTo tutorial per chapter at real settings | | 2026-09-15 | filed | HowToFit tutorial 4 promises "under a minute" and takes six | | 2026-09-14 | filed | imaging/start_here: 26-minute XLA compile of the 48-start Prodigy… | | 2026-09-14 | filed | curvature_reg_matrix rebuilds F + H on every access — and the… | @@ -2422,6 +2413,7 @@ The 50 newest things to happen to the work in hand, newest first — issued, par | 2026-09-13 | filed | SimulatorImaging draws Poisson noise before checking… | | 2026-09-13 | filed | HowToFit tutorial 5 (EP) never shares the centre it says it shares | | 2026-09-12 | filed | Sparse (w-tilde) inversion fits the unsubtracted image when a regular… | +| 2026-09-12 | issued | Per-variant comparison of the four Sersic scrapes… |
diff --git a/draft/maintenance/pyautomind/autolens_jax_joss_manifest_gap.md b/draft/maintenance/pyautomind/autolens_jax_joss_manifest_gap.md deleted file mode 100644 index a3a625385..000000000 --- a/draft/maintenance/pyautomind/autolens_jax_joss_manifest_gap.md +++ /dev/null @@ -1,84 +0,0 @@ -# `autolens_jax_joss` is missing from the body map, and `repos_sync.py` structurally cannot see it - -Type: maintenance -Target: PyAutoMind -Repos: -- PyAutoMind -Themes: -- mind-workflow -- hygiene -Difficulty: small -Autonomy: safe -Priority: normal -Status: draft -Consequence: glance -Witness: `repos.yaml` lists `autolens_jax_joss`; the regenerated routing table in the workspace-root `AGENTS.md` carries its row; and `python3 PyAutoMind/scripts/repos_sync.py --check` reports a checkout that is on disk but absent from the manifest as DRIFT — demonstrated by temporarily removing one manifest entry and seeing the check go red, where today it stays silent. -Review-minutes: 3 -Unattended: ready -Filed: 2026-09-18 - -## The omission - -`autolens_jax_joss` exists **on disk** in this workspace **and on GitHub** -(`PyAutoLabs/autolens_jax_joss`, public — confirmed 2026-09-18 via `gh repo view`), but -is **absent from `PyAutoMind/repos.yaml`**. It holds 7 live benchmark files under -`benchmarks/`, and a Mind draft already refers to it -(`draft/feature/autolens_jax_joss/autolens_jax_joss_benchmark_repo.md`). - -## The blind spot that hid it - -`python3 PyAutoMind/scripts/repos_sync.py --check` reports -**"37 of 37 checked out, 2 excluded"** — a clean bill of health — because it -drift-checks **manifest → disk only**. It walks the entries in `repos.yaml` and asks -whether each is present and whether its `git remote` agrees. It **structurally cannot -see a checkout that is not in the manifest**, so an unlisted repo is not a failure, it -is silence. - -The consequence is not cosmetic: the repo is invisible to **every manifest-driven -sweep**, including the audit whose whole job was to answer *"did we miss a repo?"*. -It was found only because a separate AST sweep walked the filesystem. - -## Two deliverables - -1. **Add the repo to `repos.yaml`.** Category `project` alongside `autolens_profiling` - / `autolens_inference`, with a one-line role, then - `python3 PyAutoMind/scripts/repos_sync.py --write` to regenerate the routing table - in the workspace-root `AGENTS.md` and the owner map in - `PyAutoBrain/skills/WORKFLOW.md`. Check whether it also needs adding to the - `PAT_PYAUTOLABS` repo list (memory `PAT403`: a newborn repo missing from that list - propagates 403s). - -2. **Add a disk → manifest check.** A checkout present in the workspace and absent from - `repos.yaml` should register as **DRIFT**, not silence. Decide how deliberate - exclusions are declared (there are already 2 excluded entries) so the new check has - a legitimate way to stay quiet, rather than growing a hard-coded skip list. - -## Not this prompt - -The **2 pre-existing YELLOW remote-session-block mismatches for PyAutoHeart / -PyAutoHands** are unrelated to this and are already acknowledged. Do not fold them in. - -Related and worth reading before starting, but separable: -`draft/refactor/pyautomind/repos_sync_check_dedup.md` collapses the eleven `check_*` -functions into one declaration per generated surface — if that refactor is done first, -the new check is one more declaration. - -Filed 2026-09-18 from the flat-`fields=` adoption sweep's follow-up audit -(issue autolens_workspace#561), which found the repo while sweeping for remaining -`fields=` consumers. - -## Update 2026-09-18 — the example is gone, the defect is not - -The `autolens_jax_joss` **local checkout was removed** (PyAutoBrain#389); the repo -lives on GitHub only. That removes this prompt's motivating example but **not its -defect**: `repos_sync.py --check` still drift-checks **manifest → disk only**, so any -future checkout that is absent from `repos.yaml` is still silence rather than a -failure. Re-verify with any other unlisted checkout, or by cloning one. - -Note also that being absent from disk is *not* itself grounds for being absent from -the manifest — `admin_jammy` is a genuine `repos.yaml` entry that is not cloned -locally. Presence on disk and presence in the manifest are independent. - -This is the **mirror** of an item in `draft/maintenance/pyautobrain/workspace_location_contracts.md`, -which makes *declared-but-missing* an error (`repos_sync.py:882,1318,1607` currently -skip it). The check is blind in both directions; the two are worth fixing together. diff --git a/repos.yaml b/repos.yaml index 5a173dcc3..70f2ea10c 100644 --- a/repos.yaml +++ b/repos.yaml @@ -44,7 +44,15 @@ categories: role: "Science-assistant workspaces (see lensing pointer below)." pipeline: {} project: {} - admin: {} + +# `unmapped_checkouts:` names directories at the workspace root that ARE git +# checkouts but are deliberately NOT body-map repos. Identity, like everything +# else here: it says "this one is not ours", which is the only way the +# disk -> manifest half of `repos_sync.py --check` can tell a deliberate +# neighbour from a checkout someone forgot to declare. Keep it short — a repo +# that belongs to the organism belongs under `repos:`, not here. +unmapped_checkouts: + - .github # PyAutoLabs/.github — the org profile repo, not an organism repo repos: # --- organs ----------------------------------------------------------- @@ -69,8 +77,8 @@ repos: # # `session_hook: false` opts a repo OUT of the generated SessionStart hook # (`policy/session_start_hook.sh`, installed by `--write` into every other - # checked-out repo). It is a manifest exclusion, not drift: the two repos - # that carry it live in the personal `Jammy2211/` namespace, are excluded + # checked-out repo). It is a manifest exclusion, not drift: the repo that + # carries it lives in the personal `Jammy2211/` namespace, is excluded # from the org-wide dev sweeps by category, and never had a `.claude/`. Every # in-scope repo keeps the hook — a library or workspace opened alone in a web # session needs Python 3.12 exactly like an organ (PyAutoMind#369). @@ -251,10 +259,3 @@ repos: github: PyAutoLabs/pyautolabs.github.io category: project role: "Public front door \u2014 static docs hub served at pyautolabs.github.io (GitHub Pages)." - - # --- admin --------------------------------------------------------------- - admin_jammy: - github: Jammy2211/admin_jammy - category: admin - role: "Local tooling, worktree helpers, some skills." - session_hook: false diff --git a/scripts/repos_sync.py b/scripts/repos_sync.py index 87aee867c..02198af69 100644 --- a/scripts/repos_sync.py +++ b/scripts/repos_sync.py @@ -11,9 +11,15 @@ python3 repos_sync.py --write --only "generated Codex hooks" # bounded Codex-hook regeneration python3 repos_sync.py --root # override the workspace root + # (default: PyAutoBrain's shared + # resolver — see workspace_root) python3 repos_sync.py --only