diff --git a/complete/2026/11/brain-size-reduction.md b/complete/2026/11/brain-size-reduction.md new file mode 100644 index 000000000..6e15f183f --- /dev/null +++ b/complete/2026/11/brain-size-reduction.md @@ -0,0 +1,62 @@ +# PyAutoBrain size reduction: retired batch paths, dead code, test consolidation + +Shipped as PyAutoBrain#701 (issue PyAutoBrain#700), merged 2026-11-22. + +- Removed the August `batch collect` flow (collect code in `_batch.py`, `_integration.py`, `packet.js`, three test files), superseded by the shift orchestrator. +- Removed the per-worker @mention path; the retry for needs-you event comments stays. +- Removed `batch questions --backfill`, and with it the `questions` verb. +- Removed the caller-less board overnight functions. +- Swept dead code and unused imports across Python and shell. +- Moved dated incident history out of comments and docstrings (comment-only, AST-checked). +- Consolidated test setup into `tests/_helpers.py` and `tests/_shift_fixtures.py`; parametrized same-body tests; removed redundant ones. + +Python source 46,657 → 42,971 lines; tests 40,294 → 37,314; test functions 2,106 → 1,899; collected cases 2,560 → 2,451. + +Witness: full suite 2,448 passed, 3 skipped; CI green on 3.12 and 3.13; the surviving batch verbs print byte-identical output before and after against a real Mind. A live watcher tick was not run. + +Left for follow-up: the dashboard batch status box still keys its review button on `collected:`; `plan` still reads a "carried" outcomes block only collect wrote; PyAutoMind (`batches/AGENTS.md`, `REFERENCE.md`, packet template) and PyAutoHeart (`bin/pyauto-heart` help) still mention `batch collect`; about 18 `--help` docstrings still carry history; the nine pure launcher scripts and the `repos.yaml` parser unification from the review were not done. + +## Original prompt + +# PyAutoBrain size reduction: retire superseded batch paths, dead code, test consolidation + +Type: refactor +Target: PyAutoBrain +Repos: +- PyAutoBrain +Difficulty: medium +Autonomy: supervised +Consequence: judge +Priority: medium +Status: active +Filed: 2026-11-22 +Issued: 2026-11-22 +Lane: any + +A refactor review of @PyAutoBrain (2026-11-22) found the code is not bloated by +copy-paste; the size that can go is superseded features plus scattered dead +code, and the test suite can shrink by consolidation. The human approved, in +chat on 2026-11-22: + +1. Remove the August `batch collect` flow (the hand-dispatched batch record, + `collect` scoring, the review packet and `--integration`), superseded by the + shift orchestrator: the collect code in `_batch.py`, `_integration.py`, + `packet.js`, their tests and docs. +2. Remove the per-worker @mention path, unreachable since M3.5 + (`_mention_triggers` returned `[]`); keep the event-comment retry. +3. Remove the one-off `batch questions --backfill`. +4. Remove the caller-less board overnight functions and their tests. +5. Sweep confirmed dead code and unused imports. +6. Move dated incident history out of code comments and docstrings. +7. Consolidate duplicated test setup, parametrize same-body tests, and drop + tests that are strictly redundant. + +Not approved, so untouched: doctrine and prompt-wording pin tests, and the +"tombstone" absence tests. + +Items 1 to 4 remove CLI surface (`batch collect`, `batch questions`), so this +is not a pure refactor; nothing else changes CLI behaviour. + +Witness: the full suite passes; `bin/pyauto-brain batch collect` and `batch +questions` exit 2 (unknown verb); for the comment-only pass, every touched +file's AST with docstrings stripped equals its AST before the pass. diff --git a/complete/index.md b/complete/index.md index b24f10442..e28290d21 100644 --- a/complete/index.md +++ b/complete/index.md @@ -6,7 +6,7 @@ Token-light navigation over the finished-work records (schema: only then grep a dated bucket. Curators: edit the band between the CURATED markers; everything below GENERATED is rebuilt. -2353 records across 11 buckets. +2354 records across 11 buckets. ## Highlights @@ -145,6 +145,7 @@ markers; everything below GENERATED is rebuilt. - [board-without-gh-phase2-legs](2026/11/board-without-gh-phase2-legs.md) — already shipped, closed as a stale draft. PyAutoBrain 15317af (merged via #564, 2026-11-03) "phase 2 — the rem… - [bootstrap-test-root-skip](2026/11/bootstrap-test-root-skip.md) — fixed in commit 748f8c0bb (this PR). `test_the_hook_survives_an_unwritable_tools_dir` probes `os.access(bin, W… - [brain-hygiene-cleanup-bugs](2026/11/brain-hygiene-cleanup-bugs.md) +- [brain-size-reduction](2026/11/brain-size-reduction.md) - [brain-tests-hermetic-worktree-env](2026/11/brain-tests-hermetic-worktree-env.md) - [canonical-key-todo-sweep](2026/11/canonical-key-todo-sweep.md) - [chapter2-continuation](2026/11/chapter2-continuation.md) — All continuation scope merged: Tutorials 5 and 6, optional speed and runnable model_centred prior passing, sum… diff --git a/dashboard.html b/dashboard.html index 032fa2486..da31e40fe 100644 --- a/dashboard.html +++ b/dashboard.html @@ -333,8 +333,8 @@ Keep track of decisions and outstanding questions throughout this conversation. After changes, report what was recorded, where it lives and what remains to do. Work on GitHub: -- Open Mind repository: https://github.com/PyAutoLabs/PyAutoMind
Last updated 2026-11-22 14:57:39 UTC
↻ Update

- +- Open Mind repository: https://github.com/PyAutoLabs/PyAutoMind
Last updated 2026-11-22 16:20:39 UTC
↻ Update

+

Looks shipped — confirm

2 draft(s) with strong evidence the work already shipped. Held out of the pick lists and the batch planner until closed or dismissed in looks_shipped_dismissed.md.

@@ -403,19 +403,19 @@

Highest priority (filed as high) — showing 12 of 18

Eyes cluster visualization group: render every cluster/point-source figure for PyAutoEyes✨ featureautolens_visualizationlargesupervisedhigh

euclid_dr1: run the positions gate over DR1 and submit the remodel set🔬 researcheuclidlargehuman-requiredhigh

Deep research: Can we speed up Delaunay in PyAutoArray?🔬 researchautoarraytoo-largesupervisedhigh

-

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

+

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

session_hook_propagate.yml bot-pushes the end-at-deliverable AGENTS.md block✨ featurepyautomindmediumsupervisedhigh

Update the multi_plane guide's Richardson-step warning once the adaptive Hessian ships📖 docsautolens_workspacesmallsafenormal

+

Docstrings printed as --help still carry incident history📖 docspyautobrainsmallsafenormal

Use readthedocs or migrate to GitHub docs🔬 researchpyautohandssmallsupervisednormal

+

Docs in PyAutoMind and PyAutoHeart still describe the retired batch collect📖 docspyautomindsmallsafenormal

Verify jax.jit / jax.grad parity on the critical-curve and caustic calculations🧪 testautolens_workspace_testmediumsafenormal

HowToLens tutorial 4 (point sources): make image-plane vs source-plane clear📖 docshowtolensmediumsupervisednormal

+

Agent --help text is rotted in feature, build and bug🐛 bugpyautobrainmediumsupervisednormal

Cockpit footer: Broca belongs between Cortex and Memory🐛 bugpyautobrainmediumsafenormal

+

One reader for repos.yaml instead of about ten♻️ refactorpyautobrainmediumsupervisednormal

+

Remove what batch collect left behind in the planner and the status…♻️ refactorpyautobrainmediumsupervisednormal

Remove the dead EDEN packaging tooling from PyAutoFit♻️ refactorpyautofitmediumsupervisednormal

-

Demo subplot_ellipse_errors from a real ellipse model-fit📖 docsworkspaceslargesupervisednormal

-

cluster/mass_parameterizations*.py promise model.info prints (and figures) they never make📖 docsautolens_workspacesmallsupervisedlow

-

Release board: local run_logs enrichment✨ featurepyautohandssmallsupervisedlow

-

Colab gate: delete the hmf accepted-miss once autolens without hmf…🐛 bugpyautoheartsmallsupervisedlow

-

repos_sync tenant-firewall leg scans nested .worktrees/ folders🐛 bugpyautomindsmallsafelow

Epics

25

Long-running multi-phase programmes — 📋 copies a prompt that works out where the epic stands from its ledger and continues it from the next logical point. Members are worked in order through the epic's ledger — continue the epic rather than starting one standalone.

Nautilus for fast likelihoods — CPU overhead and worker utilisation, asynchronous experiments, combined CPU/GPU execution and selective JAX acceleration — ledger: draft/feature/autofit/nautilus_fast_likelihood_development_epic.md — PHASE 0a MERGED 2026-11-10 — autofit_profiling#9: controlled harness and exploratory local pilot; record…

@@ -630,8 +630,8 @@

Fits a slot (ready to run unattended, cheapest to revie

point-plots-yaml-keys-assistant — filed 2026-10-22 — unblocked 2026-10-23 — cosmos-web-ring-notebook merged (autolens_assistant#161, complete/2026/10/cosmos-web-ring-notebook.md)…

delaunay-nn-numba-remeasure — issue #528 — issued 2026-11-12 — PAUSED 2026-11-12 (HUMAN: release every autolens_profiling claim for the autonomy focus; worktree removed, branch commits already…

-

Backlog

298
-

Lanes: any 244 · ral 30 · local-dev 12 · wsl-data 9 · gpu 1

+

Backlog

304
+

Lanes: any 250 · ral 30 · local-dev 12 · wsl-data 9 · gpu 1

Human review — 2

Simplify reading-queue token management✨ featurepyautomemory

-bug — 58 +bug — 59

Hilbert image mesh: make it depend only on the mask, not…🐛 bugautoarraymediumsupervisedhigh

jax.grad through zero-contour critical curves fails on jax 0.12🐛 bugautogalaxymediumsupervisedhigh

@@ -742,6 +742,7 @@

Fits a slot (ready to run unattended, cheapest to revie

CI timing must compare equivalent executed job coverage🐛 bughealth_fixesmediumsupervisednormal

Heart Health rerun cannot publish after main advances🐛 bughealth_fixesmediumsupervisednormal

+

Agent --help text is rotted in feature, build and bug🐛 bugpyautobrainmediumsupervisednormal

Cockpit footer: Broca belongs between Cortex and Memory🐛 bugpyautobrainmediumsafenormal

Resolve release-profile timeout scripts deliberately🐛 bughealth_fixestoo-largesupervisednormal

@@ -795,13 +796,15 @@

Fits a slot (ready to run unattended, cheapest to revie

-docs — 26 +docs — 28

Split lensing regimes: multi_galaxy / group / cluster (epic plan)📖 docsautolenstoo-largesupervisedhigh

Advanced workspace guide: Preloads (PyAutoArray)📖 docsworkspacestoo-largesupervisedhigh

Interferometer primary beam: workspace example and docs📖 docsautolens_workspacesmallsafemedium

Adapt image is the S/N map: fix the prose and assess…📖 docsautogalaxylargesupervisedmedium

+

Docstrings printed as --help still carry incident history📖 docspyautobrainsmallsafenormal

+ @@ -847,14 +850,17 @@

Fits a slot (ready to run unattended, cheapest to revie

-refactor — 12 +refactor — 15

Example Analysis should reduce with xp.sum not builtin sum♻️ refactorautofitsmallsafenormal

Split Fitness.batch_size into lh_batch_size and latent_batch_size♻️ refactorautofitsmallsupervisednormal

One construction path for plane-bound lensing quantities♻️ refactorautolensmediumsupervisednormal

+

One reader for repos.yaml instead of about ten♻️ refactorpyautobrainmediumsupervisednormal

+

Remove what batch collect left behind in the planner and the status…♻️ refactorpyautobrainmediumsupervisednormal

Remove the dead EDEN packaging tooling from PyAutoFit♻️ refactorpyautofitmediumsupervisednormal

+

Replace the nine pure launcher scripts with a registry entry♻️ refactorpyautobrainlargesupervisednormal

Repo cleanup: retire the Abell 1201 worktree and local raw data♻️ refactorworkspacessmallhuman-requiredlow

Trim autogalaxy_assistant skills toward their autolens size♻️ refactorautogalaxy_assistantmediumsupervisedlow

diff --git a/dashboard.md b/dashboard.md index e484496e0..2ad718509 100644 --- a/dashboard.md +++ b/dashboard.md @@ -13,7 +13,7 @@ | [Epics](#epics) | 25 | | [In flight](#in-flight) | 6 | | [Planned](#planned) | 10 | -| [Backlog](#backlog) | 298 | +| [Backlog](#backlog) | 304 | | [Recent](#recent) | 50 | | [Pending release](#pending-release) | 0 | @@ -197,7 +197,7 @@ Use the start-dev skill. draft/research/autoarray/delaunay_research.md
-**Fits a slot** (ready to run unattended, cheapest to review first) — showing 12 of 79 +**Fits a slot** (ready to run unattended, cheapest to review first) — showing 12 of 85
📋 session_hook_propagate.yml bot-pushes the end-at-deliverable AGENTS.md block — pyautomind · medium · supervised · high @@ -215,82 +215,82 @@ Use the start-dev skill. draft/docs/autolens_workspace/multi_plane_guide_richard
-
📋 Use readthedocs or migrate to GitHub docs — pyautohands · small · supervised · normal +
📋 Docstrings printed as --help still carry incident history — pyautobrain · small · safe · normal ``` -Use the start-dev skill. draft/research/pyautohands/git_docs.md +Use the start-dev skill. draft/docs/pyautobrain/docstrings_printed_as_help_still_carry_incident.md ```
-
📋 Verify jax.jit / jax.grad parity on the critical-curve and caustic calculations — autolens_workspace_test · medium · safe · normal +
📋 Use readthedocs or migrate to GitHub docs — pyautohands · small · supervised · normal ``` -Use the start-dev skill. draft/test/autolens_workspace_test/jax_zero_contour.md +Use the start-dev skill. draft/research/pyautohands/git_docs.md ```
-
📋 HowToLens tutorial 4 (point sources): make image-plane vs source-plane clear — howtolens · medium · supervised · normal +
📋 Docs in PyAutoMind and PyAutoHeart still describe the retired batch collect — pyautomind · small · safe · normal ``` -Use the start-dev skill. draft/docs/howtolens/howtolens_tutorial_4_point_sources_make_image.md +Use the start-dev skill. draft/docs/pyautomind/docs_in_pyautomind_and_pyautoheart_still_describ.md ```
-
📋 Cockpit footer: Broca belongs between Cortex and Memory — pyautobrain · medium · safe · normal +
📋 Verify jax.jit / jax.grad parity on the critical-curve and caustic calculations — autolens_workspace_test · medium · safe · normal ``` -Use the start-dev skill. draft/bug/pyautobrain/cockpit_footer_broca_belongs_between_cortex_and.md +Use the start-dev skill. draft/test/autolens_workspace_test/jax_zero_contour.md ```
-
📋 Remove the dead EDEN packaging tooling from PyAutoFit — pyautofit · medium · supervised · normal +
📋 HowToLens tutorial 4 (point sources): make image-plane vs source-plane clear — howtolens · medium · supervised · normal ``` -Use the start-dev skill. draft/refactor/pyautofit/remove_eden_packaging_tooling.md +Use the start-dev skill. draft/docs/howtolens/howtolens_tutorial_4_point_sources_make_image.md ```
-
📋 Demo subplot_ellipse_errors from a real ellipse model-fit — workspaces · large · supervised · normal +
📋 Agent --help text is rotted in feature, build and bug — pyautobrain · medium · supervised · normal ``` -Use the start-dev skill. draft/docs/workspaces/demo_subplot_ellipse_errors.md +Use the start-dev skill. draft/bug/pyautobrain/agent_help_text_is_rotted_in_feature.md ```
-
📋 cluster/mass_parameterizations*.py promise model.info prints (and figures) they never make — autolens_workspace · small · supervised · low +
📋 Cockpit footer: Broca belongs between Cortex and Memory — pyautobrain · medium · safe · normal ``` -Use the start-dev skill. draft/docs/autolens_workspace/cluster_mass_parameterizations_print_and_draw_every_model.md +Use the start-dev skill. draft/bug/pyautobrain/cockpit_footer_broca_belongs_between_cortex_and.md ```
-
📋 Release board: local run_logs enrichment — pyautohands · small · supervised · low +
📋 One reader for repos.yaml instead of about ten — pyautobrain · medium · supervised · normal ``` -Use the start-dev skill. draft/feature/pyautohands/release_board_run_logs_enrichment.md +Use the start-dev skill. draft/refactor/pyautobrain/one_reader_for_repos_yaml_instead_of.md ```
-
📋 Colab gate: delete the hmf accepted-miss once autolens without hmf… — pyautoheart · small · supervised · low +
📋 Remove what batch collect left behind in the planner and the status… — pyautobrain · medium · supervised · normal ``` -Use the start-dev skill. draft/bug/pyautoheart/colab_gate_delete_hmf_after_next_release.md +Use the start-dev skill. draft/refactor/pyautobrain/remove_what_batch_collect_left_behind_in.md ```
-
📋 repos_sync tenant-firewall leg scans nested .worktrees/ folders — pyautomind · small · safe · low +
📋 Remove the dead EDEN packaging tooling from PyAutoFit — pyautofit · medium · supervised · normal ``` -Use the start-dev skill. draft/bug/pyautomind/repos_sync_tenant_firewall_leg_scans_nested.md +Use the start-dev skill. draft/refactor/pyautofit/remove_eden_packaging_tooling.md ```
@@ -1550,7 +1550,7 @@ Use the start-dev skill. draft/feature/autolens_profiling/delaunay_nn_numba_opti ## Backlog -Lanes: any 244 · ral 30 · local-dev 12 · wsl-data 9 · gpu 1 +Lanes: any 250 · ral 30 · local-dev 12 · wsl-data 9 · gpu 1
@@ -1910,7 +1910,7 @@ Use the start-dev skill. draft/feature/pyautomemory/reading-queue-token-manageme
-bug — 58 +bug — 59
📋 Hilbert image mesh: make it depend only on the mask, not… — autoarray · medium · supervised · high @@ -2200,6 +2200,14 @@ Use the start-dev skill. draft/bug/priors/15_transformed_message_logpdf_jacobian
+
📋 Agent --help text is rotted in feature, build and bug — pyautobrain · medium · supervised · normal + +``` +Use the start-dev skill. draft/bug/pyautobrain/agent_help_text_is_rotted_in_feature.md +``` + +
+
📋 Cockpit footer: Broca belongs between Cortex and Memory — pyautobrain · medium · safe · normal ``` @@ -2592,7 +2600,7 @@ Use the start-dev skill. draft/research/autoarray/delaunay_interpolator_pure_cal
-docs — 26 +docs — 28
📋 autolens_assistant leg of the PyAutoLabs AI-options page (deferred from #87) — autolens_assistant · small · supervised · high @@ -2642,6 +2650,22 @@ Use the start-dev skill. draft/docs/autolens_workspace/multi_plane_guide_richard
+
📋 Docstrings printed as --help still carry incident history — pyautobrain · small · safe · normal + +``` +Use the start-dev skill. draft/docs/pyautobrain/docstrings_printed_as_help_still_carry_incident.md +``` + +
+ +
📋 Docs in PyAutoMind and PyAutoHeart still describe the retired batch collect — pyautomind · small · safe · normal + +``` +Use the start-dev skill. draft/docs/pyautomind/docs_in_pyautomind_and_pyautoheart_still_describ.md +``` + +
+
📋 Regenerate autolens_workspace markdown/ so the MGE pages show sigma_min — autolens_workspace · medium · safe · normal ``` @@ -2970,7 +2994,7 @@ Use the start-dev skill. draft/maintenance/autocti/legacy_root_notes_followup.md
-refactor — 12 +refactor — 15
📋 Zero-contour critical curves: compile once per run by passing the mass model… — autogalaxy · medium · supervised · medium @@ -3020,6 +3044,22 @@ Use the start-dev skill. draft/refactor/autolens/one_construction_path_for_plane
+
📋 One reader for repos.yaml instead of about ten — pyautobrain · medium · supervised · normal + +``` +Use the start-dev skill. draft/refactor/pyautobrain/one_reader_for_repos_yaml_instead_of.md +``` + +
+ +
📋 Remove what batch collect left behind in the planner and the status… — pyautobrain · medium · supervised · normal + +``` +Use the start-dev skill. draft/refactor/pyautobrain/remove_what_batch_collect_left_behind_in.md +``` + +
+
📋 Remove the dead EDEN packaging tooling from PyAutoFit — pyautofit · medium · supervised · normal ``` @@ -3028,6 +3068,14 @@ Use the start-dev skill. draft/refactor/pyautofit/remove_eden_packaging_tooling.
+
📋 Replace the nine pure launcher scripts with a registry entry — pyautobrain · large · supervised · normal + +``` +Use the start-dev skill. draft/refactor/pyautobrain/replace_the_nine_pure_launcher_scripts_with.md +``` + +
+
📋 Post-completion cache readers should read the preserved zip member instead of recomputing — autolens · small · supervised · low ``` diff --git a/draft/bug/pyautobrain/agent_help_text_is_rotted_in_feature.md b/draft/bug/pyautobrain/agent_help_text_is_rotted_in_feature.md new file mode 100644 index 000000000..4c35a79b9 --- /dev/null +++ b/draft/bug/pyautobrain/agent_help_text_is_rotted_in_feature.md @@ -0,0 +1,27 @@ +# Agent --help text is rotted in feature, build and bug + +Type: bug +Target: PyAutoBrain +Repos: +- PyAutoBrain +Difficulty: medium +Autonomy: supervised +Priority: normal +Status: formalised +Consequence: notify +Witness: a test runs each of the three with `--help` and asserts no line starts with `set ` and that build's output names `--rehearsal-run-id` and the exit codes. +Review-minutes: 0 +Unattended: ready +Lane: any + +Agent --help text is rotted in feature, build and bug + +Type: bug +Target: PyAutoBrain +Lane: any + +Three shell agents print rotted `--help` text because they slice their own header with hardcoded `sed` line ranges. In @PyAutoBrain: `agents/conductors/feature/feature.sh:49` leaks `set -uo pipefail` into `--help`; `agents/conductors/build/build.sh:97` truncates the help before `--rehearsal-run-id`, `--dry-run`, `--json` and the exit codes; `agents/conductors/bug/bug.sh:50` leaks an internal comment. `health.sh`, `rehearse.sh`, `validate.sh` and `nightly.sh` already use a header-help `awk` that stops at the first non-comment line; use the same in these three. Found in the 2026-11-22 refactor review (PyAutoBrain#700). + +Witness: a test runs each of the three with `--help` and asserts no line starts with `set ` and that build's output names `--rehearsal-run-id` and the exit codes. + + diff --git a/draft/docs/pyautobrain/docstrings_printed_as_help_still_carry_incident.md b/draft/docs/pyautobrain/docstrings_printed_as_help_still_carry_incident.md new file mode 100644 index 000000000..e81bc3d69 --- /dev/null +++ b/draft/docs/pyautobrain/docstrings_printed_as_help_still_carry_incident.md @@ -0,0 +1,27 @@ +# Docstrings printed as --help still carry incident history + +Type: docs +Target: PyAutoBrain +Repos: +- PyAutoBrain +Difficulty: small +Autonomy: safe +Priority: normal +Status: formalised +Consequence: notify +Witness: each tool's `--help` names no date, milestone tag or incident; the suite passes. +Review-minutes: 0 +Unattended: ready +Lane: any + +Docstrings printed as --help still carry incident history + +Type: docs +Target: PyAutoBrain +Lane: any + +PyAutoBrain#701 moved dated incident history out of comments and docstrings but left about 18 module docstrings alone because they are printed as `--help` (`description=__doc__`), so changing them changes program output. In @PyAutoBrain these are: `agents/_repo_paths.py`, `agents/conductors/clone/_clone.py`, `bin/check_boundary.py`, `agents/conductors/community/_community.py`, `agents/conductors/docs/_docs.py`, `agents/conductors/hygiene/_hygiene_extras.py` (a "2026-08-03: tfp-nightly" anecdote), `_hygiene_optdeps.py`, `_hygiene_repos.py`, `agents/conductors/workspace/_workspace.py`, `bin/codex_usage.py`, `bin/lane_backfill.py` ("M1.3, slice 2 … 12 of ~270 … since 2026-11-03"), `bin/project_discovery.py`, `bin/regroup_workspace.py`, `bin/shift_ledger.py`, `bin/sync_feedback.py`, `bin/workspace_instructions.py`, `board/_board.py`, `board/_publish.py`; plus the printed first paragraph of `_hygiene_ci.py` and first lines of `_hygiene_tokens.py` and `bin/dataset_provenance.py`. Also message strings that carry tags (for example "ruling e, 2026-11-19" in the batch worker notes, "(M2.3)" in digest messages). Rewrite each to say what the tool does, in the present tense. This changes `--help` and message text, so check for tests that pin the wording. + +Witness: each tool's `--help` names no date, milestone tag or incident; the suite passes. + + diff --git a/draft/docs/pyautomind/docs_in_pyautomind_and_pyautoheart_still_describ.md b/draft/docs/pyautomind/docs_in_pyautomind_and_pyautoheart_still_describ.md new file mode 100644 index 000000000..0a69400da --- /dev/null +++ b/draft/docs/pyautomind/docs_in_pyautomind_and_pyautoheart_still_describ.md @@ -0,0 +1,31 @@ +# Docs in PyAutoMind and PyAutoHeart still describe the retired batch collect + +Type: docs +Target: PyAutoMind +Repos: +- PyAutoMind +- PyAutoHeart +Difficulty: small +Autonomy: safe +Priority: normal +Status: formalised +Consequence: notify +Witness: `git grep -n "batch collect"` in both repos returns only history (`complete/`, `queue.md` footer) and sentences that say it was retired. +Review-minutes: 0 +Unattended: ready +Lane: any + +Docs in PyAutoMind and PyAutoHeart still describe the retired batch collect + +Type: docs +Target: PyAutoMind +Repos: +- PyAutoMind +- PyAutoHeart +Lane: any + +`pyauto-brain batch collect` (and its `--integration` / `--push` flags) was removed in PyAutoBrain#701; a shift is now a brief the watcher runs and its digest is the report. These pages still describe it as live. In @PyAutoMind: `batches/AGENTS.md` (around lines 115-120, `collect --integration` and `--push`), `REFERENCE.md` (around line 189, "`batch collect` carries one line" about the Heart freeze), `batches/packets/TEMPLATE.md` (the page a `batch collect` emits). In @PyAutoHeart: `bin/pyauto-heart` help text (around line 332, the same freeze sentence). Rewrite each to the brief-only flow or remove it; the `integration/*` sweep rule stays for refs already published. The `queue.md` footer entry "batch collect" is history and stays. + +Witness: `git grep -n "batch collect"` in both repos returns only history (`complete/`, `queue.md` footer) and sentences that say it was retired. + + diff --git a/draft/refactor/pyautobrain/one_reader_for_repos_yaml_instead_of.md b/draft/refactor/pyautobrain/one_reader_for_repos_yaml_instead_of.md new file mode 100644 index 000000000..7a8783a8d --- /dev/null +++ b/draft/refactor/pyautobrain/one_reader_for_repos_yaml_instead_of.md @@ -0,0 +1,28 @@ +# One reader for repos.yaml instead of about ten + +Type: refactor +Target: PyAutoBrain +Repos: +- PyAutoBrain +- PyAutoMind +Difficulty: medium +Autonomy: supervised +Priority: normal +Status: formalised +Consequence: notify +Witness: for the real `repos.yaml` and for fixtures with quoted values, trailing comments and a block ended by a new top-level key, every replaced reader returns the same value before and after; `tests/test_repo_paths.py`, `tests/test_public_names.py`, `tests/test_hygiene_conductor.py`, `tests/test_grouped_organ_consumers.py` and `tests/test_docs_conductor.py` pass. +Review-minutes: 0 +Unattended: ready +Lane: any + +One reader for repos.yaml instead of about ten + +Type: refactor +Target: PyAutoBrain +Lane: any + +The body map (`PyAutoMind/repos.yaml`) is parsed about ten separate ways in @PyAutoBrain. Five hand-written line scanners of the `repos:` block: `agents/_repo_paths.py` `manifest_paths` and `package_paths`, `bin/project_discovery.py` `manifest_categories`, `agents/conductors/hygiene/_hygiene_repos.py` `parse_minimal`, `bin/public_names.py` `body_map_packages`. Four regex readers: `_docs.known_repos`, `_intake._mind_home`, `_board.repo_homes`, `_hygiene_ci.derive_org` (whose owner vote `_board.derive_org` repeats). One `manifest_field(root, key)` in `agents/_repo_paths.py` could serve them. The scanners differ on quoting, comments and block termination, so each must be matched exactly; some are PyYAML-free on purpose and must stay so. Found in the 2026-11-22 refactor review (PyAutoBrain#700); estimated 60-80 lines. + +Witness: for the real `repos.yaml` and for fixtures with quoted values, trailing comments and a block ended by a new top-level key, every replaced reader returns the same value before and after; `tests/test_repo_paths.py`, `tests/test_public_names.py`, `tests/test_hygiene_conductor.py`, `tests/test_grouped_organ_consumers.py` and `tests/test_docs_conductor.py` pass. + + diff --git a/draft/refactor/pyautobrain/remove_what_batch_collect_left_behind_in.md b/draft/refactor/pyautobrain/remove_what_batch_collect_left_behind_in.md new file mode 100644 index 000000000..a65f2d602 --- /dev/null +++ b/draft/refactor/pyautobrain/remove_what_batch_collect_left_behind_in.md @@ -0,0 +1,27 @@ +# Remove what batch collect left behind in the planner and the status… + +Type: refactor +Target: PyAutoBrain +Repos: +- PyAutoBrain +Difficulty: medium +Autonomy: supervised +Priority: normal +Status: formalised +Consequence: notify +Witness: the intake dashboard renders the same for a current shift brief before and after; a record carrying `collected:` or `- outcomes:` still renders without error; `batch plan` output is unchanged against a Mind whose newest record is a shift brief. +Review-minutes: 0 +Unattended: ready +Lane: any + +Remove what batch collect left behind in the planner and the status box + +Type: refactor +Target: PyAutoBrain +Lane: any + +`batch collect` was retired in PyAutoBrain#701, but three things in @PyAutoBrain still serve only records that collect wrote. (1) `agents/conductors/batch/_status.py`: the dashboard's batch status box shows its review button and a `batches/packets/.html` link when the record has `collected:`, which nothing stamps now; `dev_status` also reads member `outcome` words collect wrote. (2) `agents/conductors/batch/_batch.py`: `previous_carried` and `read_outcomes` feed `plan` a "Carried in" line from an `- outcomes:` block only collect wrote. (3) `agents/conductors/batch/packet.css` (506 lines, the review packet's stylesheet) is inlined whole into the opt-in `digest.html` (`_orchestrator._write_packet`), which is one `
`. Decide per item whether shift briefs need it; remove what they do not, and keep old records rendering without error. This changes dashboard and `plan` output for old records, so it is not behaviour-preserving for them.
+
+Witness: the intake dashboard renders the same for a current shift brief before and after; a record carrying `collected:` or `- outcomes:` still renders without error; `batch plan` output is unchanged against a Mind whose newest record is a shift brief.
+
+
diff --git a/draft/refactor/pyautobrain/replace_the_nine_pure_launcher_scripts_with.md b/draft/refactor/pyautobrain/replace_the_nine_pure_launcher_scripts_with.md
new file mode 100644
index 000000000..0273ba00b
--- /dev/null
+++ b/draft/refactor/pyautobrain/replace_the_nine_pure_launcher_scripts_with.md
@@ -0,0 +1,31 @@
+# Replace the nine pure launcher scripts with a registry entry
+
+Type: refactor
+Target: PyAutoBrain
+Repos:
+- PyAutoBrain
+- PyAutoMind
+Difficulty: large
+Autonomy: supervised
+Priority: normal
+Status: formalised
+Consequence: notify
+Witness: every verb's output is byte-identical before and after for `--help` and one real invocation; `tests/test_skill_install.py` and `tests/test_conductor_discovery.py` pass; `repos_sync.py --check` passes.
+Review-minutes: 0
+Unattended: ready
+Lane: any
+
+Replace the nine pure launcher scripts with a registry entry
+
+Type: refactor
+Target: PyAutoBrain
+Repos:
+- PyAutoBrain
+- PyAutoMind
+Lane: any
+
+Nine agent wrappers in @PyAutoBrain only `exec python3 "$HERE/_.py" "$@"` after sourcing `_common.sh`: `docs.sh`, `clone.sh`, `workspace.sh`, `profiling.sh`, `eyes.sh`, `community.sh`, `cortex.sh`, `batch.sh`, `review.sh` (265 lines, 36 of them code; `board/board.sh` is the same shape). Let a registry value in `bin/pyauto-brain` name `_.py` and add one `exec python3` branch in `main()`; the dispatcher already exports `PYAUTO_ROOT`. Check each script's header usage text against its `AGENTS.md` before deleting it. @PyAutoMind `scripts/repos_sync.py` (around lines 1860 and 1884) lists `clone.sh` and `profiling.sh` in allow-lists and needs the matching edit. Leave `sizing`, `memory`, `samplers`, `refactor`, `feature`, `bug`, `intake`, `vitals`, `release`: they resolve sibling checkouts or reorder arguments. Found in the 2026-11-22 refactor review (PyAutoBrain#700).
+
+Witness: every verb's output is byte-identical before and after for `--help` and one real invocation; `tests/test_skill_install.py` and `tests/test_conductor_discovery.py` pass; `repos_sync.py --check` passes.
+
+
diff --git a/state.json b/state.json
index 187ad0ecb..e5e6507e7 100644
--- a/state.json
+++ b/state.json
@@ -4,7 +4,7 @@
   "repo": "PyAutoMind",
   "status": "red",
   "headline": "RED \u2014 23 picks \u00b7 6 in flight",
-  "updated": "2026-11-22T14:57:39Z",
+  "updated": "2026-11-22T16:20:39Z",
   "pages_url": "https://pyautolabs.github.io/PyAutoMind/",
   "items": [
     {