diff --git a/AGENTS.md b/AGENTS.md index 0dde2c990..c8f45dc91 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -6,35 +6,29 @@ when the task needs them. Read [README.md](README.md) for the public overview. ## Where work lives -- Inference campaign intent and pending domain tasks live in **PyAutoInsight** - (`campaigns.yaml`, `tasks/`, `CHECKIN.md`). Mind retains bounded implementation - issue/PR lifecycle and claims. See `docs/insight-task-migration.md`; source - removal follows the destination merge, never precedes it. - -- Profiling campaign intent and pending tasks live in **PyAutoPulse** - (`campaigns.yaml`, `tasks/`, `CHECKIN.md`). Use its single-chat check-in first. - Mind holds bounded implementation phases and repository claims, linking the - canonical Pulse task. See `docs/pulse-task-migration.md`. - - +- Inference and profiling campaign intent and their pending domain tasks live + in **PyAutoInsight** and **PyAutoPulse** (`campaigns.yaml`, `tasks/`, + `CHECKIN.md`; start with their check-in). Mind keeps the bounded + implementation phases, issue/PR lifecycle and claims, linking the canonical + task (`docs/insight-task-migration.md`, `docs/pulse-task-migration.md`). + Source removal follows the destination merge, never precedes it. - `draft///.md` holds unstarted prompts. Work types: `feature`, `bug`, `refactor`, `docs`, `test`, `release`, `maintenance`, - `research`, and `triage` when genuinely unclear. `human_review` is reserved - for work a human explicitly asks to review after shipping. + `research`, and `triage` when genuinely unclear; `human_review` only when a + human explicitly asks to review shipped work (hard rule 5). - `active/.md` holds issued prompts; `complete///.md` holds shipped records. `scripts/lifecycle.py` owns these moves. - `repos.yaml` owns repository identity and generated adapter rollout. Change it, then run `python3 scripts/repos_sync.py --write`; never edit generated - policy copies directly. Root routing and Brain owner maps come from it. -- Codex users must review and trust the current `.codex/hooks.json` hash with - `/hooks`; changed or untrusted project hooks are skipped. The remote Python - SessionStart bootstrap applies to Claude sessions only. + copies directly; root routing and Brain owner maps come from it. - Registry files (`active.md`, `planned.md`, `parked.md`, `condemned.md`, - `epics.md`, `ideas.md`) are changed through skills in `skills/`. - `dashboard.md` is generated: run `pyauto-brain intake --apply dashboard` - after registry or draft changes. Never hand-edit it. - -Dashboard presentation tasks follow [the concise-copy policy](policy/dashboard_copy.md): structured facts and indented details, without repeated explanatory boilerplate. + `epics.md`, `ideas.md`) change through skills in `skills/`. `dashboard.md` + is generated (`pyauto-brain intake --apply dashboard` after registry or draft + changes); never hand-edit it. Dashboard copy follows + [policy/dashboard_copy.md](policy/dashboard_copy.md). +- Codex users trust the current `.codex/hooks.json` hash with `/hooks` + (untrusted hooks are skipped); the remote SessionStart bootstrap is + Claude-only. ## Hard rules @@ -70,19 +64,16 @@ nothing has set it up — this block is what does. ## Workflow entry points -For a new prompt, write `draft///.md` or use `$intake`. -Do not move it into `active/` or edit completion records by hand. For existing -work, use `$start-dev draft///.md`; it routes from -`@RepoName` references in the body. Skill arguments are Mind-relative in both -grouped and flat layouts, e.g. `draft/bug/autoarray/mask_edge_case.md`. -Resolve the actual checkout once; set `PYAUTO_MIND` for an explicit location. - -Mind ledger-only pushes on `claude/**` or `codex/**` auto-merge under -`.github/workflows/mind_ledger_merge.yml`; code, skills, policy and prose -changes require a PR. Check with `python3 scripts/ledger_merge.py classify ---base origin/main` before pushing. Push ledger-only work and let the merge -workflow land it. Read [REFERENCE.md](REFERENCE.md) "How the -ledger lands" for conflict handling and classification details. +New intent: write `draft///.md` or use `$intake`; never +move prompts into `active/` or edit completion records by hand. Existing work: +`$start-dev draft///.md` (Mind-relative in grouped and +flat layouts; it routes from `@RepoName` references). Set `PYAUTO_MIND` for an +explicit checkout. + +Ledger-only pushes on `claude/**` or `codex/**` auto-merge +(`.github/workflows/mind_ledger_merge.yml`); code, skills, policy and prose need +a PR. Predict with `python3 scripts/ledger_merge.py classify --base origin/main`; +conflicts and classes: [REFERENCE.md](REFERENCE.md) "How the ledger lands". ## Never rewrite history diff --git a/REFERENCE.md b/REFERENCE.md index f1d190069..1e47d9169 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -8,12 +8,13 @@ completion-record schemas) resolve here, one link from the README. The read-only context check is `python3 scripts/token_load.py report --root `; `check` applies the same measurement to the configured budgets. It supports grouped main and flat bundle roots, and reports mandatory -AGENTS and core skill files separately from conditional references. In the -September 2026 context pass, Mind `AGENTS.md` fell from 12,507 bytes / 214 lines -to about 5,100 bytes / 94 lines. The broader -`draft/maintenance/organs/reduce_session_token_load.md` remains draft; this -measurement does not imply its Cortex, Memory, or completion-record goals are -done. +AGENTS and core skill files separately from conditional references. It also +prints the three numbers `draft/maintenance/organs/reduce_session_token_load.md` +targets: the four organs' AGENTS.md total (Brain, Mind, Cortex, Memory; target +≤ 6,000 tokens), the core procedure lines, and the newest month's median +completion-record length (target ≤ 60). The Cortex/Memory files and the median +are report-only unless `--organ-agents-budget` / `--record-median-budget` is +passed, so Mind-only CI still passes `check`. --- diff --git a/active.md b/active.md index eaf2e603c..2cbeda5a2 100644 --- a/active.md +++ b/active.md @@ -144,3 +144,59 @@ - compute-tracking: RAL 414456 (array 0-16%5, `ral`, exclusive, 8 CPU, 11 draws/leg; submitted via hpc/sync with worktree-local hpc/sync.conf → HPC_BASE=/mnt/ral/jnightin/autolens_profiling_wt, PROJECT_NAME=critical-curves-jax-viz-feasibility). RAL clone /mnt/ral/jnightin/autolens_profiling_wt/critical-curves-jax-viz-feasibility (ca27dd65); private libs /mnt/ral/jnightin/PyAuto_wt/critical-curves-jax-viz-feasibility (2026.11.6.1 mains, setup.log); RAL venv jax 0.11.2 / jax_zero_contour 2.0.0 match laptop, numpy 2.2.6 / skimage 0.24 older. Rows → results/lens/critical_curves/viz_feasibility/ral_cpu/.json - resume: (1) `sacct -j 414456`; each task ends with a 'complete ' line or 'INCOMPLETE' (exit≠0); (2) pull RAL ral_cpu/*.json into the worktree results (hpc/sync pull, or rsync that dir); (3) summarize (`modeling_viz_feasibility.py --summarize`; cluster also zero_contour_explicit); drop MS closure flag; investigate galaxy radial-caustic ZC fails; (4) A100 timing leg (human go); (5) wiki verdict + results + PR. Gated follow-up draft/refactor/autogalaxy/zero_contour_pytree_compile_cache.md - tier: judge — merge mode: human /prm + +## token-load-measure-four-organs +- issue: none (PR is the tracking surface; human approved PRs 2026-11-06) +- library-pr: https://github.com/PyAutoLabs/PyAutoMind/pull/544 (opened 2026-11-06; merge Mind first) +- issued: 2026-11-06 +- session: https://claude.ai/code/session_016nhQ8MapiJKa7vatHsEsZH +- location: claude.ai cloud session (ephemeral container; work lives on the pushed branch) +- status: PR open — awaiting human /prm +- prompt: active/token_load_measure_four_organs.md +- repos: + - PyAutoMind: ccr-c113837c-0ulthv +- parent: draft/maintenance/organs/reduce_session_token_load.md +- tier: judge — merge mode: human /prm + +## organism-map-compact +- issue: none (PR is the tracking surface; human approved PRs 2026-11-06) +- library-pr: https://github.com/PyAutoLabs/PyAutoMind/pull/544 (opened 2026-11-06; merge Mind first) +- library-pr: https://github.com/PyAutoLabs/PyAutoBrain/pull/596 (opened 2026-11-06; merge Mind first) +- library-pr: https://github.com/PyAutoLabs/PyAutoCortex/pull/87 (opened 2026-11-06; merge Mind first) +- issued: 2026-11-06 +- session: https://claude.ai/code/session_016nhQ8MapiJKa7vatHsEsZH +- location: claude.ai cloud session (ephemeral container; work lives on the pushed branch) +- status: PR open — awaiting human /prm +- prompt: active/organism_map_compact.md +- repos: + - PyAutoMind: ccr-c113837c-0ulthv + - PyAutoBrain: ccr-c113837c-0ulthv + - PyAutoCortex: ccr-c113837c-0ulthv +- parent: draft/maintenance/organs/reduce_session_token_load.md +- tier: judge — merge mode: human /prm + +## cortex-agents-slim +- issue: none (PR is the tracking surface; human approved PRs 2026-11-06) +- library-pr: https://github.com/PyAutoLabs/PyAutoCortex/pull/87 (opened 2026-11-06; merge Mind first) +- issued: 2026-11-06 +- session: https://claude.ai/code/session_016nhQ8MapiJKa7vatHsEsZH +- location: claude.ai cloud session (ephemeral container; work lives on the pushed branch) +- status: PR open — awaiting human /prm +- prompt: active/cortex_agents_slim.md +- repos: + - PyAutoCortex: ccr-c113837c-0ulthv +- parent: draft/maintenance/organs/reduce_session_token_load.md +- tier: judge — merge mode: human /prm + +## mind-agents-trim +- issue: none (PR is the tracking surface; human approved PRs 2026-11-06) +- library-pr: https://github.com/PyAutoLabs/PyAutoMind/pull/544 (opened 2026-11-06; merge Mind first) +- issued: 2026-11-06 +- session: https://claude.ai/code/session_016nhQ8MapiJKa7vatHsEsZH +- location: claude.ai cloud session (ephemeral container; work lives on the pushed branch) +- status: PR open — awaiting human /prm +- prompt: active/mind_agents_trim.md +- repos: + - PyAutoMind: ccr-c113837c-0ulthv +- parent: draft/maintenance/organs/reduce_session_token_load.md +- tier: judge — merge mode: human /prm diff --git a/active/cortex_agents_slim.md b/active/cortex_agents_slim.md new file mode 100644 index 000000000..336cabef1 --- /dev/null +++ b/active/cortex_agents_slim.md @@ -0,0 +1,24 @@ +# Cortex AGENTS.md points to REFERENCE.md instead of restating it + +Type: maintenance +Target: PyAutoCortex +Repos: +- PyAutoCortex +Difficulty: small +Autonomy: supervised +Priority: high +Status: active +Consequence: judge +Witness: Cortex AGENTS.md falls from 21.5 kB to ~10.9 kB with no rule removed; `cortex.py check` OK and the Cortex suite passes. +Review-minutes: 5 +Parent: draft/maintenance/organs/reduce_session_token_load.md +Filed: 2026-11-06 (slice of the parent, split in the 2026-11-06 cloud queue session) + +Lever 3 of the parent prompt. + +The verb-by-verb `cortex.py` listing, the conductor verb table, the workflow table and the 16-line verbatim out-of-scope quote are replaced by pointers to REFERENCE.md / the shelved prompt; every rule stays (projects.yaml is code except births, no inferred results, nothing submits by itself, CPU arrays on `ral`, workspace-paths exception, the six hard rules). + +Grouped by the human's request "find 4 grouped tasks and do them" (2026-11-06) +with `token_load_measure_four_organs`, `organism_map_compact`, +`cortex_agents_slim` and `mind_agents_trim` — one cloud session, one branch per +repo (`ccr-c113837c-0ulthv`). diff --git a/active/mind_agents_trim.md b/active/mind_agents_trim.md new file mode 100644 index 000000000..91238f193 --- /dev/null +++ b/active/mind_agents_trim.md @@ -0,0 +1,24 @@ +# Mind AGENTS.md prose trim + +Type: maintenance +Target: PyAutoMind +Repos: +- PyAutoMind +Difficulty: small +Autonomy: supervised +Priority: high +Status: active +Consequence: judge +Witness: Mind AGENTS.md falls from 7.2 kB to ~6.6 kB with no rule removed; the Mind suite passes. +Review-minutes: 5 +Parent: draft/maintenance/organs/reduce_session_token_load.md +Filed: 2026-11-06 (slice of the parent, split in the 2026-11-06 cloud queue session) + +Surrounding-prose pass on Mind, the last organ AGENTS.md the parent names. + +The Insight and Pulse paragraphs merge into one bullet, the dashboard-copy and Codex-hook notes fold into the registry list, and the workflow entry points become two short paragraphs; the hard rules and generated blocks are unchanged. + +Grouped by the human's request "find 4 grouped tasks and do them" (2026-11-06) +with `token_load_measure_four_organs`, `organism_map_compact`, +`cortex_agents_slim` and `mind_agents_trim` — one cloud session, one branch per +repo (`ccr-c113837c-0ulthv`). diff --git a/active/organism_map_compact.md b/active/organism_map_compact.md new file mode 100644 index 000000000..e3b5e9e55 --- /dev/null +++ b/active/organism_map_compact.md @@ -0,0 +1,26 @@ +# one-clause organism map in every organ AGENTS.md + +Type: maintenance +Target: PyAutoMind +Repos: +- PyAutoMind +- PyAutoBrain +- PyAutoCortex +Difficulty: small +Autonomy: supervised +Priority: high +Status: active +Consequence: judge +Witness: The map block shrinks from ~4.4 kB to ~2.0 kB; `repos_sync.py --check` reports no map drift on the checked-out organs; a test bounds every organ's `map_role`; Mind + Brain suites pass. +Review-minutes: 5 +Parent: draft/maintenance/organs/reduce_session_token_load.md +Filed: 2026-11-06 (slice of the parent, split in the 2026-11-06 cloud queue session) + +Lever 2 of the parent prompt. + +Organ rows in `repos.yaml` gain `map_role` (one clause, ≤100 chars); `system_map()` renders it (falling back to `role`) with a two-line preamble and a one-paragraph invariant line. Regenerated into Brain and Cortex AGENTS.md; the other six organ copies (Heart, Hands, Nerves, Gut, Eyes, …) regenerate on the next laptop `repos_sync.py --write` after merge (absent from this cloud session). + +Grouped by the human's request "find 4 grouped tasks and do them" (2026-11-06) +with `token_load_measure_four_organs`, `organism_map_compact`, +`cortex_agents_slim` and `mind_agents_trim` — one cloud session, one branch per +repo (`ccr-c113837c-0ulthv`). diff --git a/active/token_load_measure_four_organs.md b/active/token_load_measure_four_organs.md new file mode 100644 index 000000000..4881339f7 --- /dev/null +++ b/active/token_load_measure_four_organs.md @@ -0,0 +1,24 @@ +# token_load.py measures the prompt's three targets + +Type: maintenance +Target: PyAutoMind +Repos: +- PyAutoMind +Difficulty: small +Autonomy: supervised +Priority: high +Status: active +Consequence: judge +Witness: `token_load.py report` prints the four-organ total and the record median in a cloud (flat) root; tests pin both totals, the budgets and the absent-organ case; the Mind suite passes. +Review-minutes: 5 +Parent: draft/maintenance/organs/reduce_session_token_load.md +Filed: 2026-11-06 (slice of the parent, split in the 2026-11-06 cloud queue session) + +Lever 0 (measure first): the parent prompt's numbers were only partly measured — the script counted Brain + Mind + the laptop-only workspace AGENTS.md, so a cloud session printed `AGENTS total: unknown` and Cortex/Memory were never counted. + +`scripts/token_load.py` reports the four organs' AGENTS.md total (Brain, Mind, Cortex, Memory) and the newest month's median completion-record length beside the existing procedure lines; both are report-only unless `--organ-agents-budget` / `--record-median-budget` is passed, so Mind-only CI still passes `check`. + +Grouped by the human's request "find 4 grouped tasks and do them" (2026-11-06) +with `token_load_measure_four_organs`, `organism_map_compact`, +`cortex_agents_slim` and `mind_agents_trim` — one cloud session, one branch per +repo (`ccr-c113837c-0ulthv`). diff --git a/complete/2026/11/eyes-survey-next-action-stale.md b/complete/2026/11/eyes-survey-next-action-stale.md new file mode 100644 index 000000000..ed2685419 --- /dev/null +++ b/complete/2026/11/eyes-survey-next-action-stale.md @@ -0,0 +1,47 @@ +- issue: none +- completed: 2026-11-06 +- summary: RETIRED as stale, no change made. The prompt's premise was false: only the `autolens_workspace_test/gallery/` copy of the harness was deleted (2026-09-30). The four registered `*_visualization` instances the Eyes conductor targets still ship `gallery/gallery_run.sh` (autolens_visualization and autogalaxy_visualization checked on main, 51c7e4d), and their AGENTS.md/README and `PyAutoBrain/agents/conductors/eyes/AGENTS.md` all say to run it. `_eyes.py`'s next action is therefore correct; the Witness (never mention `gallery_run.sh`) would have made it wrong. +- found by: 2026-11-06 cloud queue session, verifying weekend cloud-lane task 1 before it was run; human ruling 2026-11-06: "Yes do all 3" (retire it). +- follow-up: weekend cloud task 1 in `draft/feature/pyautobrain/mobile_shift_operation.md` is marked do-not-run. + +## Original prompt + +# `eyes survey` still tells people to run the retired `gallery/gallery_run.sh` + +Type: bug +Target: PyAutoBrain +Repos: +- PyAutoBrain +Difficulty: small +Autonomy: supervised +Priority: normal +Status: formalised +Filed: 2026-11-06 +Consequence: glance +Witness: `pyauto-brain eyes survey` output and the `_eyes.py` docstring no longer mention `gallery/gallery_run.sh`; the next action names the current route (render via the domain's `*_visualization` producers, then `eyes review`); a test pins the next-action text; the Brain suite passes +Review-minutes: 5 +Unattended: ready +Lane: any + +The gallery harness (`gallery/gallery_run.sh`, `gallery_build.py`) was retired on 2026-09-30 (autolens_workspace_test 0dc177b, PyAutoEyes phase 5). Lens figures now render in `autolens_visualization` and are collected by the PyAutoEyes dashboard. `PyAutoBrain/agents/conductors/eyes/_eyes.py` still says, at lines 29 and 144: +- docstring: "rendering is the workspace's `gallery/gallery_run.sh`" +- `next_action`: "run the workspace's gallery/gallery_run.sh for stale/missing renders, then `eyes review`" + +Found by a pilot live-shift worker (2026-11-06, autolens_workspace_test#354, record `complete/2026/11/gallery-runner-missing-tiers.md`). Fix the two strings to the current route (check `agents/conductors/eyes/AGENTS.md`) and add a test asserting the next action never names `gallery_run.sh`. Weekend cloud-lane task 1 (`draft/feature/pyautobrain/mobile_shift_operation.md`). + + + +## Verified 2026-11-06 (cloud queue session): premise false — recommend retire + +The retired harness was the copy in `autolens_workspace_test/gallery/` only. +The four registered instances the conductor targets still ship it: +`autolens_visualization/gallery/gallery_run.sh` and +`autogalaxy_visualization/gallery/gallery_run.sh` exist on `main` (checked by +clone; autolens_visualization 51c7e4d, 2026-10-23), their AGENTS.md/README tell +you to run `bash gallery/gallery_run.sh --all`, and +`PyAutoBrain/agents/conductors/eyes/AGENTS.md` ("project repos … the +`gallery/gallery_run.sh` harness") agrees. So `_eyes.py`'s next action +("run the workspace's gallery/gallery_run.sh …, then `eyes review`") is +correct, and the Witness (never mention `gallery_run.sh`) would make it wrong. +Not changed. Needs a human ruling to retire (as with +`gallery-runner-missing-tiers`). Do not run weekend cloud task 1. diff --git a/complete/index.md b/complete/index.md index 5fb55ea21..c85436101 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. -2189 records across 11 buckets. +2190 records across 11 buckets. ## Highlights @@ -159,6 +159,7 @@ markers; everything below GENERATED is rebuilt. - [ell-comps-disk-constraint-dup](2026/11/ell-comps-disk-constraint-dup.md) — already shipped before it was filed — PyAutoFit#1538 (96dad519) + PyAutoGalaxy#589 (merge 0fbe863d, 2026-08-28… - [eyes-group-cluster-gallery](2026/11/eyes-group-cluster-gallery.md) — superseded by human decision — autolens_visualization#5 and #14, record `complete/2026/10/viz-all-dataset-type… - [eyes-multi-galaxy-gallery](2026/11/eyes-multi-galaxy-gallery.md) — superseded by human decision — autolens_visualization#5 (+ 465fc508 datasets), record `complete/2026/10/viz-al… +- [eyes-survey-next-action-stale](2026/11/eyes-survey-next-action-stale.md) — RETIRED as stale, no change made. The prompt's premise was false: only the `autolens_workspace_test/gallery/` … - [gallery-runner-missing-tiers](2026/11/gallery-runner-missing-tiers.md) — RETIRED as obsolete, no change made. The gallery runner it targeted (`gallery/gallery_run.sh`, `gallery_build.… - [generate-converter-preflight](2026/11/generate-converter-preflight.md) - [glance-shadow-window-reached](2026/11/glance-shadow-window-reached.md) — already shipped — closed as stale draft. Item 1 (code): commit 679b1319f (2026-10-16) made `shadow_count_line(… diff --git a/dashboard.html b/dashboard.html index 8d0c0052c..ae068c4c0 100644 --- a/dashboard.html +++ b/dashboard.html @@ -327,8 +327,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-06 13:03:47 UTC
↻ Update

- +- Open Mind repository: https://github.com/PyAutoLabs/PyAutoMind
Last updated 2026-11-06 14:27:36 UTC
↻ Update

+
Batch 2026-11-06-pm — 0 in progress · 0 awaiting review

Nothing to review yet.

Start here

24
@@ -345,7 +345,7 @@

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

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

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 80

+

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

Guard every workspace script against untimed network downloads🧪 testautolens_workspacesmallsafemedium

@@ -507,18 +507,22 @@

Fits a slot (ready to run unattended, cheapest to revie image-source-mappings — 1 queued prompt(s) — ⚠️ not in epics.md

-

In flight

11
+

In flight

15

Autonomous orchestrators phase 4c: run the Dev orchestrator pilot… — issue #574 — issued 2026-11-04 — human-ops (pilot run; no worktree — briefs land in PyAutoMind/batches/ by the human)

+

Cortex AGENTS.md points to REFERENCE.md instead of restating it — issued 2026-11-06 — PR open — awaiting human /prm — PRs: PyAutoCortex#87

+

Mind AGENTS.md prose trim — issued 2026-11-06 — PR open — awaiting human /prm — PRs: PyAutoMind#544

+

one-clause organism map in every organ AGENTS.md — issued 2026-11-06 — PR open — awaiting human /prm — PRs: PyAutoMind#544, PyAutoBrain#596, PyAutoCortex#87

Issued: 2026-11-02 — issue #176 — issued 2026-11-02 — workspace-shipped, awaiting-merge (judge → human /prm; wiki-currency waits on a PyAutoFit release) — PRs: autolens_assistant#177

+

token_load.py measures the prompt's three targets — issued 2026-11-06 — PR open — awaiting human /prm — PRs: PyAutoMind#544

Planned

9
9 task(s) @@ -532,8 +536,8 @@

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

interferometer-primary-beam-persistence-mirror — filed 2026-10-21 — ready — PyAutoLens claim released 2026-10-21 (point-dataset-positions-panel shipped…

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)…

-

Backlog

242
-

Lanes: any 233 · local-dev 6 · ral 1

+

Backlog

241
+

Lanes: any 232 · local-dev 6 · ral 1

Human review — 2

Human review: the scaling_relation slam parks (imaging un-parked, multi_galaxy kept)👀 human_reviewautolens_workspacenormal — flagged for review 2026-08-29

-bug — 52 +bug — 51

Fix KNN neighbor search for a partial final point block🐛 bugautoarraymediumsupervisedhigh

@@ -595,7 +599,6 @@

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

SLaM simultaneous subhalo grid search fits last band only🐛 bugautolens_workspacesmallsafenormal

- @@ -764,14 +767,20 @@

Fits a slot (ready to run unattended, cheapest to revie 2026-11-06 issued -corner_anesthetic takes 40+ minutes on a 20-parameter model… - +token_load.py measures the prompt's three targets + 2026-11-06 -filed -eyes survey still tells people to run the retired… - +issued +one-clause organism map in every organ AGENTS.md + + + +2026-11-06 +issued +corner_anesthetic takes 40+ minutes on a 20-parameter model… + 2026-11-06 @@ -788,6 +797,12 @@

Fits a slot (ready to run unattended, cheapest to revie 2026-11-06 issued +Mind AGENTS.md prose trim + + + +2026-11-06 +issued HowTo series: ship stored fit results so notebooks run without… @@ -798,24 +813,30 @@

Fits a slot (ready to run unattended, cheapest to revie +2026-11-06 +issued +Cortex AGENTS.md points to REFERENCE.md instead of restating it + + + 2026-11-05 filed autofit: Samples.with_paths / without_paths break on factor-graph… - + 2026-11-05 filed Write compile_repeats from autolens_profiling's jax_compile tooling… - + 2026-11-05 filed Regression test: Nautilus as the EP default_optimiser over… - + 2026-11-05 issued Likelihood lifecycle phase 4e: ingest the phase-4 wall-time… @@ -1043,24 +1064,6 @@

Fits a slot (ready to run unattended, cheapest to revie PlotterEllipse.fit_ellipse writes every variant to… - -2026-09-27 -filed -Sparse interferometer inversion: jax.grad of the log-evidence terms… - - - -2026-09-27 -filed -Same-class q-clamp and bare-sqrt ellipticity gradient sites… - - - -2026-09-27 -filed -Building a JAX Fitness then calling register_tracer_classes raises… - -

Pending release

3
diff --git a/dashboard.md b/dashboard.md index 32c584195..314d0efdf 100644 --- a/dashboard.md +++ b/dashboard.md @@ -10,9 +10,9 @@ |-------|------:| | [Start here](#start-here) | 24 | | [Epics](#epics) | 21 | -| [In flight](#in-flight) | 11 | +| [In flight](#in-flight) | 15 | | [Planned](#planned) | 9 | -| [Backlog](#backlog) | 242 | +| [Backlog](#backlog) | 241 | | [Recent](#recent) | 50 | | [Pending release](#pending-release) | 3 | @@ -121,7 +121,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 80 +**Fits a slot** (ready to run unattended, cheapest to review first) — showing 12 of 79
📋 Guard every workspace script against untimed network downloads — autolens_workspace · small · safe · medium @@ -1056,6 +1056,14 @@ Use the start-dev skill. active/corner_anesthetic_takes_40_minutes_on_a.md
+
📋 Cortex AGENTS.md points to REFERENCE.md instead of restating it — issued 2026-11-06 — PR open — awaiting human /prm — PRs: PyAutoCortex#87 + +``` +Use the start-dev skill. active/cortex_agents_slim.md +``` + +
+
📋 Feasibility: JAX zero-contour critical curves/caustics for modeling-run visualization — issue #521 — issued 2026-11-06 — workspace-dev ``` @@ -1104,6 +1112,22 @@ Use the start-dev skill. active/matrix_free_interferometer_inversion.md
+
📋 Mind AGENTS.md prose trim — issued 2026-11-06 — PR open — awaiting human /prm — PRs: PyAutoMind#544 + +``` +Use the start-dev skill. active/mind_agents_trim.md +``` + +
+ +
📋 one-clause organism map in every organ AGENTS.md — issued 2026-11-06 — PR open — awaiting human /prm — PRs: PyAutoMind#544, PyAutoBrain#596, PyAutoCortex#87 + +``` +Use the start-dev skill. active/organism_map_compact.md +``` + +
+
📋 ECLIPSE site: serve R2 lens files through a Pages Function behind Cloudflare… — issued 2026-10-29 ``` @@ -1128,6 +1152,14 @@ Use the start-dev skill. active/sky_orientation_euclid_dr1_and_library.md
+
📋 token_load.py measures the prompt's three targets — issued 2026-11-06 — PR open — awaiting human /prm — PRs: PyAutoMind#544 + +``` +Use the start-dev skill. active/token_load_measure_four_organs.md +``` + +
+ ## Planned Scoped but not started; some are not yet prompt files. Full detail in [`planned.md`](planned.md). @@ -1211,7 +1243,7 @@ Use the start-dev skill. draft/docs/autolens_assistant/point_plots_yaml_keys.md ## Backlog -Lanes: any 233 · local-dev 6 · ral 1 +Lanes: any 232 · local-dev 6 · ral 1
@@ -1262,7 +1294,7 @@ regenerate the dashboard. If I do not sign it off, file the follow-up with
-bug — 52 +bug — 51
📋 test_latent_euclid_variables_traces_under_jax_jit went red on main: total_source_flux differs by 6% between jax.jit… — euclid · small · supervised · high @@ -1488,14 +1520,6 @@ Use the start-dev skill. draft/bug/autonerves/jax_enable_x64_env_ignored_and_fp3
-
📋 eyes survey still tells people to run the retired gallery/gallery_run.sh — pyautobrain · small · supervised · normal - -``` -Use the start-dev skill. draft/bug/pyautobrain/eyes_survey_next_action_retired_gallery_harness.md -``` - -
-
📋 Convolver "No blurring_image provided" warning in canonical workspace scripts — workspaces · small · safe · normal ``` @@ -2646,21 +2670,24 @@ Use the start-dev skill. draft/triage/autolens/jit_fit_from_is_vacuous.md | Date | Event | Task | |------|-------|------| +| 2026-11-06 | issued | token_load.py measures the prompt's three targets | +| 2026-11-06 | issued | one-clause organism map in every organ AGENTS.md | | 2026-11-06 | issued | corner_anesthetic takes 40+ minutes on a 20-parameter model… | -| 2026-11-06 | filed | eyes survey still tells people to run the retired… | | 2026-11-06 | filed | Zero-contour critical curves: compile once per run by passing the… | | 2026-11-06 | filed | Visualization run-time campaign: measure and optimize modeling-run… | +| 2026-11-06 | issued | Mind AGENTS.md prose trim | | 2026-11-06 | issued | HowTo series: ship stored fit results so notebooks run without… | | 2026-11-06 | issued | Feasibility: JAX zero-contour critical curves/caustics for… | +| 2026-11-06 | issued | Cortex AGENTS.md points to REFERENCE.md instead of restating it | | 2026-11-05 | filed | autofit: Samples.with_paths / without_paths break on factor-graph… | -| 2026-11-05 | filed | Write compile_repeats from autolens_profiling's jax_compile tooling… | -| 2026-11-05 | filed | Regression test: Nautilus as the EP default_optimiser over… | -| 2026-11-05 | issued | Likelihood lifecycle phase 4e: ingest the phase-4 wall-time… |
… 10 more (40 left) | Date | Event | Task | |------|-------|------| +| 2026-11-05 | filed | Write compile_repeats from autolens_profiling's jax_compile tooling… | +| 2026-11-05 | filed | Regression test: Nautilus as the EP default_optimiser over… | +| 2026-11-05 | issued | Likelihood lifecycle phase 4e: ingest the phase-4 wall-time… | | 2026-11-05 | filed | Filed: 2026-11-05 (phase 2 of autolens_profiling#519; Pulse task… | | 2026-11-05 | filed | Filed: 2026-11-05 (found by the autolens_profiling#519 worker-route… | | 2026-11-04 | issued | Autonomous orchestrators phase 4c: run the Dev orchestrator pilot… | @@ -2668,14 +2695,14 @@ Use the start-dev skill. draft/triage/autolens/jit_fit_from_is_vacuous.md | 2026-11-02 | issued | Magnification maps 8d: wire into fit subplots and make them pretty | | 2026-11-02 | issued | Issued: 2026-11-02 | | 2026-11-02 | filed | Imaging sparse-operator path gives a very different log L from dense… | -| 2026-11-02 | issued | Gradient-correctness sweep: triage and investigate every open… | -| 2026-10-31 | issued | Sky orientation (north/east): euclid_dr1 catalogue, paper and… | -| 2026-10-30 | filed | Should PyAutoArray flip FITS rows at load so +y is north |
… 10 more (30 left) | Date | Event | Task | |------|-------|------| +| 2026-11-02 | issued | Gradient-correctness sweep: triage and investigate every open… | +| 2026-10-31 | issued | Sky orientation (north/east): euclid_dr1 catalogue, paper and… | +| 2026-10-30 | filed | Should PyAutoArray flip FITS rows at load so +y is north | | 2026-10-29 | issued | ECLIPSE site: serve R2 lens files through a Pages Function behind… | | 2026-10-26 | filed | Trim autogalaxy_assistant skills toward their autolens size | | 2026-10-25 | filed | Heart Health rerun cannot publish after main advances | @@ -2683,14 +2710,14 @@ Use the start-dev skill. draft/triage/autolens/jit_fit_from_is_vacuous.md | 2026-10-23 | filed | autolens_assistant leg of the PyAutoLabs AI-options page (deferred… | | 2026-10-23 | filed | @autolens_profiling stale auto-simulated dataset/cluster/simple… | | 2026-10-22 | filed | point-plots-yaml-keys-assistant | -| 2026-10-21 | filed | interferometer-primary-beam-persistence-mirror | -| 2026-10-21 | filed | PyAutoLens mirror of the interferometer primary-beam persistence… | -| 2026-10-21 | filed | Note in autolens_profiling that plain source-plane lane values… |
… 10 more (20 left) | Date | Event | Task | |------|-------|------| +| 2026-10-21 | filed | interferometer-primary-beam-persistence-mirror | +| 2026-10-21 | filed | PyAutoLens mirror of the interferometer primary-beam persistence… | +| 2026-10-21 | filed | Note in autolens_profiling that plain source-plane lane values… | | 2026-10-21 | filed | Matrix-free interferometer inversion, phase 5b: profiling note… | | 2026-10-21 | issued | Matrix-free interferometer inversion for very large rectangular… | | 2026-10-21 | filed | Interferometer primary beam: workspace example and docs | @@ -2698,14 +2725,14 @@ Use the start-dev skill. draft/triage/autolens/jit_fit_from_is_vacuous.md | 2026-10-16 | filed | Re-measure the shapelets/modeling.py SLOW park (#586) under the… | | 2026-10-14 | filed | @autofit_workspace six searches/ scripts fail on main at… | | 2026-10-14 | filed | Cortex output summaries — phase 2 | -| 2026-10-08 | filed | JAX_ENABLE_X64=False is overridden to True, so the fp32 inference… | -| 2026-10-07 | filed | Upstream the DR1 final-catalogue tooling to the pipeline, with a… | -| 2026-10-02 | filed | sibson-internal-edge-continuity |
… 10 more (10 left) | Date | Event | Task | |------|-------|------| +| 2026-10-08 | filed | JAX_ENABLE_X64=False is overridden to True, so the fp32 inference… | +| 2026-10-07 | filed | Upstream the DR1 final-catalogue tooling to the pipeline, with a… | +| 2026-10-02 | filed | sibson-internal-edge-continuity | | 2026-10-02 | filed | knn-partial-point-block | | 2026-10-02 | filed | Fix Sibson interpolation at internal edges | | 2026-10-02 | filed | Fix KNN neighbor search for a partial final point block | @@ -2713,9 +2740,6 @@ Use the start-dev skill. draft/triage/autolens/jit_fit_from_is_vacuous.md | 2026-10-01 | filed | Interferometer log_evidence fails (LinAlgError / NaN) at large… | | 2026-10-01 | filed | Interferometer galaxy_image_dict drops a mixed galaxy's ordinary… | | 2026-09-29 | filed | PlotterEllipse.fit_ellipse writes every variant to… | -| 2026-09-27 | filed | Sparse interferometer inversion: jax.grad of the log-evidence terms… | -| 2026-09-27 | filed | Same-class q-clamp and bare-sqrt ellipticity gradient sites… | -| 2026-09-27 | filed | Building a JAX Fitness then calling register_tracer_classes raises… |
diff --git a/draft/bug/pyautobrain/eyes_survey_next_action_retired_gallery_harness.md b/draft/bug/pyautobrain/eyes_survey_next_action_retired_gallery_harness.md deleted file mode 100644 index 0894905fa..000000000 --- a/draft/bug/pyautobrain/eyes_survey_next_action_retired_gallery_harness.md +++ /dev/null @@ -1,24 +0,0 @@ -# `eyes survey` still tells people to run the retired `gallery/gallery_run.sh` - -Type: bug -Target: PyAutoBrain -Repos: -- PyAutoBrain -Difficulty: small -Autonomy: supervised -Priority: normal -Status: formalised -Filed: 2026-11-06 -Consequence: glance -Witness: `pyauto-brain eyes survey` output and the `_eyes.py` docstring no longer mention `gallery/gallery_run.sh`; the next action names the current route (render via the domain's `*_visualization` producers, then `eyes review`); a test pins the next-action text; the Brain suite passes -Review-minutes: 5 -Unattended: ready -Lane: any - -The gallery harness (`gallery/gallery_run.sh`, `gallery_build.py`) was retired on 2026-09-30 (autolens_workspace_test 0dc177b, PyAutoEyes phase 5). Lens figures now render in `autolens_visualization` and are collected by the PyAutoEyes dashboard. `PyAutoBrain/agents/conductors/eyes/_eyes.py` still says, at lines 29 and 144: -- docstring: "rendering is the workspace's `gallery/gallery_run.sh`" -- `next_action`: "run the workspace's gallery/gallery_run.sh for stale/missing renders, then `eyes review`" - -Found by a pilot live-shift worker (2026-11-06, autolens_workspace_test#354, record `complete/2026/11/gallery-runner-missing-tiers.md`). Fix the two strings to the current route (check `agents/conductors/eyes/AGENTS.md`) and add a test asserting the next action never names `gallery_run.sh`. Weekend cloud-lane task 1 (`draft/feature/pyautobrain/mobile_shift_operation.md`). - - diff --git a/draft/feature/pyautobrain/mobile_shift_operation.md b/draft/feature/pyautobrain/mobile_shift_operation.md index 8719092ab..7ff1b81a3 100644 --- a/draft/feature/pyautobrain/mobile_shift_operation.md +++ b/draft/feature/pyautobrain/mobile_shift_operation.md @@ -39,7 +39,7 @@ Tell the laptop session: the minutes, which PRs you merged or left, and anything These were checked against `main` on 2026-11-06. Each is self-contained: cloud sessions don't load the laptop's skills, and they can't read PyAutoMind. -**1. Repo: `PyAutoLabs/PyAutoBrain`** +**1. Repo: `PyAutoLabs/PyAutoBrain`** — ⚠ **DO NOT RUN (stale, verified 2026-11-06):** the `*_visualization` instances still ship `gallery/gallery_run.sh`, so the next action is correct; retired as `complete/2026/11/eyes-survey-next-action-stale.md`. Run tasks 2 and 3 only. ``` You are a cloud worker in a PyAutoLabs pilot shift. Read AGENTS.md in this repo first and follow it. diff --git a/draft/maintenance/organs/reduce_session_token_load.md b/draft/maintenance/organs/reduce_session_token_load.md index 7e8f577a0..edcb82eb9 100644 --- a/draft/maintenance/organs/reduce_session_token_load.md +++ b/draft/maintenance/organs/reduce_session_token_load.md @@ -73,3 +73,30 @@ day that the memory faculty greps by title. - **Remaining:** The ≤6k target: AGENTS.md across Mind/Brain/Cortex/Memory still totals ~11.9k tokens, Cortex grew to ~5.4k; completion-record work not done. _Evidence from the 2026-11-05 read-only sweep (Mind ledger + GitHub search); remaining items are the live scope of this prompt._ + +## Progress 2026-11-06 (cloud queue session) — four slices on branch `ccr-c113837c-0ulthv` + +Measured with the extended `scripts/token_load.py` (now reports all three numbers): + +| Load | 2026-11-05 | After the slices | Target | +|---|---:|---:|---:| +| Four organs' AGENTS.md (Brain/Mind/Cortex/Memory) | ~11,950 tok | **~8,690 tok** (2.8k/1.65k/2.7k/1.5k) | ≤ 6,000 | +| Completion-record median (2026/11, 110 records) | — | **55 lines** — already met | ≤ 60 | +| start_dev / prm procedure lines | 499 / 456 | unchanged | ≤ 350 / ≤ 300 | + +Slices claimed in `active.md`: `token-load-measure-four-organs`, `organism-map-compact`, +`cortex-agents-slim`, `mind-agents-trim`. **Left here:** the remaining ~2.7k +tokens are mostly the five generated shared blocks (~3.3 kB in each organ: +remote, history, deliverable, filing, standards; "Out of scope" keeps their +rules verbatim — a ruling on trimming their surrounding prose, or loading them +from one file, is the human's), Brain's generated command table, and the two +procedure-line budgets (levers 5–6). + +**Ruling 2026-11-06 (human): leave the shared generated blocks alone.** +They are written into ~50 repos; trimming their prose would save ~600 tokens +across the four organs at the cost of a ~46-repo regeneration. The ≤ 6,000 +target is therefore out of reach as written: the blocks are ~3.3 kB in each +organ (~3.3k tokens total). Read the target as **≤ 6,000 excluding the shared +blocks** (today ~5.4k by that measure, so met once the slices merge). What is +still open here: the procedure-line budgets (levers 5–6: start_dev 499 / prm +456 lines). diff --git a/repos.yaml b/repos.yaml index c887f0008..c962c2bc8 100644 --- a/repos.yaml +++ b/repos.yaml @@ -65,6 +65,9 @@ smoke_bootstrap_rollout: true # receive board component guidance. This is independent of hook/filing scope. repos: # --- organs ----------------------------------------------------------- + # `map_role` is the one-clause copy in the generated organism map that every + # organ AGENTS.md loads into each session; it falls back to `role`. Keep it + # to one clause — the full role stays in `role` and PyAutoBrain/ORGANISM.md. # `public_role` is the curated copy shown in the public front-door organ # tables (org profile + PyAutoScientist READMEs, generated by repos_sync); # it falls back to `role` when absent. `front_door: true` is the mechanism for @@ -108,6 +111,7 @@ repos: category: organ organ: Brain role: "Reasoning/orchestration layer; how work is decomposed and routed; the specialist agents." + map_role: "Reasoning and orchestration: decomposes and routes work through its conductors and faculties." public_role: "Works out *how*: classifies, plans and routes work through specialist reasoning and coding agents." codex_hooks: [mind-commit-guard, scheduler-action-guard, end-at-deliverable] PyAutoBroca: @@ -117,6 +121,7 @@ repos: category: organ organ: Broca role: "Assistant evaluation history, upkeep evidence, collection receipts and an operational dashboard. Brain interprets; Mind tracks fixes; public assistants remain independent." + map_role: "Assistant evaluation history, upkeep evidence and its dashboard." public_role: "Tracks assistant evaluation and upkeep evidence." PyAutoMind: board_owner: true @@ -125,6 +130,7 @@ repos: category: organ organ: Mind role: "Intent, goals, priorities, workflow state; every task starts as a markdown prompt here." + map_role: "Intent, priorities and workflow state; every task starts as a prompt here." public_role: "Captures intent: every piece of work begins as a plain-English description of *what* should change and is tracked from the initial idea to its completed implementation." codex_hooks: [end-at-deliverable] PyAutoCortex: @@ -134,6 +140,7 @@ repos: category: organ organ: Cortex role: "The Cortex — what is true in the science: the body map (`projects.yaml`) and one ledger per science project (runs, results, learnings, where to pick up); the science mirror of the Mind." + map_role: "What is true in the science: the project body map and one ledger per project." public_role: "Holds the science body map and one ledger per science project — the runs on the cluster and a dated log of what was set off, seen and learned — so a project is picked up where it was left, apart from software development." PyAutoMemory: board_owner: true @@ -142,6 +149,7 @@ repos: category: organ organ: Memory role: "Long-term scientific/software/project knowledge (see science pointer below)." + map_role: "Long-term scientific, software and project knowledge." public_role: "Provides long-term scientific knowledge through cross-linked literature wikis, concepts and verifiable citations." PyAutoEyes: board_owner: true @@ -150,6 +158,7 @@ repos: category: organ organ: Eyes role: "The Eyes — cross-project visualization dashboard over the `_visualization` repos: their registry, the `gallery/viz_manifest.yaml` read contract and the Pages board linking their PNGs. Renders and copies nothing, never judges figures (the Brain's Eyes conductor does) and never edits plot code." + map_role: "Cross-project figure dashboard over the `_visualization` repos." public_role: "The dashboard of every figure the PyAuto libraries draw: it gathers each library's rendered gallery on realistic data into one board, so what the software shows can be seen, judged and improved in one place." PyAutoEars: board_owner: true @@ -158,6 +167,7 @@ repos: category: organ organ: Ears role: "The Ears — community listening: read-only public conversation collection, the versioned community snapshot contract, coverage receipts and the dashboard. GitHub stays authoritative; Brain's Community conductor judges and drafts replies; never posts, labels, files issues or exports transcripts." + map_role: "Read-only community listening: conversation snapshots and coverage." public_role: "Listens to public community conversations and feedback, showing who may need attention and where listening coverage is incomplete; the Community workflow helps you decide how to respond." PyAutoHeart: board_owner: true @@ -166,6 +176,7 @@ repos: category: organ organ: Heart role: "Health/readiness — the authoritative \"is it safe to release?\" verdict." + map_role: "Health/readiness — the authoritative release verdict." public_role: "Monitors repository health and supplies the authoritative GREEN/YELLOW/RED release-readiness verdict." PyAutoHands: board_owner: true @@ -174,6 +185,7 @@ repos: category: organ organ: Hands role: "Packaging, tagging, notebook generation, PyPI release execution." + map_role: "Packaging, tagging, notebooks and PyPI release execution." public_role: "Executes builds and releases: packages libraries, generates notebooks, creates tags and publishes releases to PyPI." PyAutoPulse: board_owner: true @@ -182,6 +194,7 @@ repos: category: organ organ: Pulse role: "The Pulse — cross-project profiling dashboard over the `_profiling` repos: campaign intent, instance registry, the versioned `profiling-summary` read contract, ingest receipts and the Pages board. Validates the contract only; never judges, scores or issues verdicts (the Brain's profiling conductor judges)." + map_role: "Cross-project profiling dashboard over the `_profiling` repos." public_role: "The dashboard of how fast the PyAuto libraries run: it gathers each library's profiling results into one board, so run times and how they change across releases can be seen in one place." PyAutoInsight: board_owner: true @@ -190,6 +203,7 @@ repos: category: organ organ: Insight role: "Inference campaign intent, the cross-project inference instance registry, the versioned `inference-summary` read contract, ingest receipts and the evidence dashboard. Projects execute, Cortex records the science, Mind owns task state; never infers scientific acceptance or submits compute." + map_role: "Inference campaign intent, instance registry and evidence dashboard." public_role: "Coordinates inference campaigns and their tasks in one place, showing results, diagnostics, provenance and missing evidence across projects while keeping scientific conclusions with the human and Cortex." PyAutoDNA: board_owner: true @@ -198,6 +212,7 @@ repos: category: organ organ: DNA role: "Software-stack specifications, environment inventory receipts, support rationale, upgrade campaigns and adoption history. Brain coordinates, Heart validates readiness, Hands releases, Nerves enforces runtime compatibility; collection never upgrades environments." + map_role: "Software-stack specifications, environment inventories and upgrade campaigns." public_role: "Records software-stack specifications, tracks what local, RAL and CI environments run, and coordinates validated upgrades with compatibility evidence and rollback history." PyAutoNerves: board_owner: true @@ -207,6 +222,7 @@ repos: category: organ organ: Nerves role: "The Nerves — the configuration/serialization layer connecting workspace conventions to libraries (layered config, version handshake, test_mode), delivered as the `autonerves` package." + map_role: "Configuration/serialization layer (`autonerves`): layered config, version handshake, test_mode." public_role: "Provides the configuration and serialization layer connecting shared conventions across the scientific libraries and workspaces." PyAutoGut: board_owner: true @@ -215,6 +231,7 @@ repos: category: organ organ: Gut role: "Lifecycle of condemned self-material (stale branches, stashes, dead code/tests): held as recoverable git refs through a transit window, voided on a sweep. The storage mirror of Memory." + map_role: "Condemned branches, stashes and dead code, held as recoverable refs until swept." public_role: "Holds stale branches, dead code and other condemned material as recoverable Git references before it is permanently removed." # --- scientific libraries ---------------------------------------------- PyAutoFit: diff --git a/scripts/repos_sync.py b/scripts/repos_sync.py index 25171fa53..5f71d6868 100644 --- a/scripts/repos_sync.py +++ b/scripts/repos_sync.py @@ -647,25 +647,23 @@ def system_map(categories, repos): """ organs = {n: r for n, r in repos.items() if r["category"] == "organ"} lines = [ - "**You are one organ of the PyAuto organism** — an agentic ecosystem for", - "human-led, natural-language software development. The organs below are", - "peer repositories; this repo is one of them, not a part of another.", - "Canonical boundaries live in `PyAutoBrain/ORGANISM.md`; the full body map", - "(every repo, not just organs) is `PyAutoMind/repos.yaml`.", + "**You are one peer organ of the PyAuto organism** (human-led, " + "natural-language software development), not a part of another. " + "Boundaries: `PyAutoBrain/ORGANISM.md`; every repo: " + "`PyAutoMind/repos.yaml`.", "", "| Organ | Repo | Role |", "|-------|------|------|", ] for name, repo in organs.items(): - lines.append(f"| **{repo.get('organ', name)}** | {name} | {repo['role']} |") + role = repo.get("map_role", repo["role"]) + lines.append(f"| **{repo.get('organ', name)}** | {name} | {role} |") lines += [ "", - "Call chain (always this order): **Brain → Heart (gate) → Build " - "(execute)**. Brain agents are **conductors** (front-door; a human " - "drives them; they decide *and* act) or **faculties** (read-only " - "opinions the conductors consult; they judge and stop). New capability " - "grows as a faculty, not a new organ, unless it owns state or effects no " - "existing organ can.", + "Call chain: **Brain → Heart (gate) → Build (execute)**. Conductors " + "decide *and* act; faculties judge read-only and stop. New capability " + "grows as a faculty, not an organ, unless it owns state or effects no " + "organ can.", "", "Generated from `PyAutoMind/repos.yaml` + `PyAutoBrain/ORGANISM.md`; edit " "there, then run `python3 PyAutoMind/scripts/repos_sync.py --write`.", diff --git a/scripts/token_load.py b/scripts/token_load.py index d85293ebe..708e0ce0f 100644 --- a/scripts/token_load.py +++ b/scripts/token_load.py @@ -3,6 +3,11 @@ Approximate tokens are UTF-8 bytes / 4, rounded up. Report is read-only; ``check`` exits nonzero when a required file is missing or a budget is exceeded. +It also reports the three numbers `reduce_session_token_load.md` targets: the +four organs' AGENTS.md total, the core procedure lines, and the median +completion-record length of the newest month. The Cortex/Memory AGENTS and the +record median are report-only unless their budget flag is given, so Mind-only +CI (no sibling organs) still passes ``check``. The root may be grouped or flat. Repository placement uses Mind's checkout helper (Brain's resolver when present). """ @@ -37,6 +42,13 @@ "GitHub reference": ("PyAutoBrain", "skills/GITHUB_ACCESS.md"), "Mind reference": ("PyAutoMind", "REFERENCE.md"), } +# Measured for the four-organ AGENTS total; absent checkouts are reported, not +# failed, because Mind-only CI and flat task bundles hold just Brain + Mind. +ORGAN_AGENTS = { + "Cortex AGENTS": ("PyAutoCortex", "AGENTS.md"), + "Memory AGENTS": ("PyAutoMemory", "AGENTS.md"), +} +FOUR_ORGANS = ("Brain AGENTS", "Mind AGENTS", "Cortex AGENTS", "Memory AGENTS") def measure(path: Path) -> dict: @@ -51,11 +63,42 @@ def measure(path: Path) -> dict: } -def collect(root: Path) -> dict: +def record_median(mind: Path, month: str | None = None) -> dict | None: + """Median line count of the completion records of one month + (`complete/YYYY/MM/*.md`; default the newest month present).""" + complete = mind / "complete" + months = sorted( + d for d in complete.glob("[0-9][0-9][0-9][0-9]/[0-9][0-9]") if d.is_dir() + ) + if month: + months = [d for d in months if d.relative_to(complete).as_posix() == month] + if not months: + return None + records = sorted(months[-1].glob("*.md")) + if not records: + return None + counts = sorted(len(r.read_bytes().splitlines()) for r in records) + mid = len(counts) // 2 + median = counts[mid] if len(counts) % 2 else (counts[mid - 1] + counts[mid]) / 2 + return { + "month": months[-1].relative_to(complete).as_posix(), + "records": len(counts), + "median_lines": median, + } + + +def collect(root: Path, month: str | None = None) -> dict: paths = {} for name, (repo, relative) in (CORE | CONDITIONAL).items(): base = root if repo is None else repo_checkout(root, repo) paths[name] = measure(base / relative) + optional = {} + for name, (repo, relative) in ORGAN_AGENTS.items(): + try: + base = repo_checkout(root, repo) + except (OSError, ValueError, RuntimeError): + base = root / repo + optional[name] = measure(base / relative) agents = ("workspace AGENTS", "Brain AGENTS", "Mind AGENTS") totals = {} if all("missing" not in paths[name] for name in agents): @@ -72,7 +115,16 @@ def collect(root: Path) -> dict: ): if all("missing" not in paths[name] for name in names): totals[label] = sum(paths[name]["lines"] for name in names) - return {"root": str(root), "files": paths, "totals": totals} + organs = paths | optional + if all("missing" not in organs[name] for name in FOUR_ORGANS): + totals["organ_agents_tokens_approx"] = sum( + organs[name]["tokens_approx"] for name in FOUR_ORGANS + ) + records = record_median(repo_checkout(root, "PyAutoMind"), month) + if records is not None: + totals["completion_records"] = records + return {"root": str(root), "files": paths, "organ_files": optional, + "totals": totals} def violations(result: dict, args: argparse.Namespace) -> list[str]: @@ -94,6 +146,24 @@ def violations(result: dict, args: argparse.Namespace) -> list[str]: lines = result["totals"].get(name) if lines is not None and lines > budget: errors.append(f"{name}: {lines} > {budget} lines") + if args.organ_agents_budget is not None: + organs = result["totals"].get("organ_agents_tokens_approx") + if organs is None: + errors.append("organ AGENTS total: unknown (an organ checkout is absent)") + elif organs > args.organ_agents_budget: + errors.append( + f"organ AGENTS total: {organs} > {args.organ_agents_budget} " + "approximate tokens" + ) + if args.record_median_budget is not None: + records = result["totals"].get("completion_records") + if records is None: + errors.append("completion-record median: unknown (no records)") + elif records["median_lines"] > args.record_median_budget: + errors.append( + f"completion-record median ({records['month']}): " + f"{records['median_lines']} > {args.record_median_budget} lines" + ) return errors @@ -109,10 +179,22 @@ def main(argv=None) -> int: parser.add_argument("--agents-budget", type=int, default=7500) parser.add_argument("--start-dev-budget", type=int, default=400) parser.add_argument("--prm-budget", type=int, default=450) + parser.add_argument( + "--organ-agents-budget", type=int, default=None, + help="enforce the four-organ AGENTS.md total (target 6000; report-only " + "when omitted)", + ) + parser.add_argument( + "--record-median-budget", type=float, default=None, + help="enforce the median completion-record length (target 60; " + "report-only when omitted)", + ) + parser.add_argument("--month", help="completion-record month YYYY/MM " + "(default: newest)") parser.add_argument("--json", action="store_true") args = parser.parse_args(argv) try: - result = collect(args.root.resolve()) + result = collect(args.root.resolve(), args.month) except (OSError, ValueError, RuntimeError) as error: print(f"token load: {error}", file=sys.stderr) return 2 @@ -121,7 +203,7 @@ def main(argv=None) -> int: if args.json: print(json.dumps(result, indent=2)) else: - for name, row in result["files"].items(): + for name, row in (result["files"] | result["organ_files"]).items(): if "missing" in row: print(f"{name}: MISSING {row['path']}") else: @@ -132,8 +214,22 @@ def main(argv=None) -> int: print( f"AGENTS total: ~{result['totals'].get('agents_tokens_approx', 'unknown')} tokens" ) + print( + "organ AGENTS total (Brain+Mind+Cortex+Memory): " + f"~{result['totals'].get('organ_agents_tokens_approx', 'unknown')} " + "tokens (target <= 6000)" + ) for name in ("start_dev_lines", "prm_lines", "core_union_lines"): print(f"{name}: {result['totals'].get(name, 'unknown')} lines") + records = result["totals"].get("completion_records") + if records: + print( + f"completion-record median ({records['month']}, " + f"{records['records']} records): {records['median_lines']} " + "lines (target <= 60)" + ) + else: + print("completion-record median: unknown (no records)") for issue in issues: print(f"FAIL: {issue}", file=sys.stderr) return 1 if args.command == "check" and issues else 0 diff --git a/state.json b/state.json index 2a2fb0e9b..f67de6462 100644 --- a/state.json +++ b/state.json @@ -3,8 +3,8 @@ "organ": "mind", "repo": "PyAutoMind", "status": "yellow", - "headline": "YELLOW \u2014 24 picks \u00b7 11 in flight", - "updated": "2026-11-06T13:03:48Z", + "headline": "YELLOW \u2014 24 picks \u00b7 15 in flight", + "updated": "2026-11-06T14:27:36Z", "pages_url": "https://pyautolabs.github.io/PyAutoMind/", "items": [ { diff --git a/tests/test_repos_sync_organism_map.py b/tests/test_repos_sync_organism_map.py index 49420d59a..b03177fb9 100644 --- a/tests/test_repos_sync_organism_map.py +++ b/tests/test_repos_sync_organism_map.py @@ -39,3 +39,15 @@ def test_every_role_is_one_bounded_line(): def test_the_leg_is_registered_under_its_label(): assert repos_sync.MAP_BLOCKS == "organism-map blocks (generated)" + + +def test_every_map_role_is_one_clause(): + """The map is loaded by every organ session; `map_role` keeps each row to + one clause (the full role stays in `role` and ORGANISM.md).""" + _, repos = repos_sync.load_manifest(MIND) + for name, repo in repos.items(): + if repo["category"] != "organ": + continue + assert repo.get("map_role"), name + assert len(repo["map_role"]) <= 100, (name, len(repo["map_role"])) + assert repo["map_role"] in repos_sync.system_map({}, repos), name diff --git a/tests/test_token_load.py b/tests/test_token_load.py index ebc93402c..654c33ff7 100644 --- a/tests/test_token_load.py +++ b/tests/test_token_load.py @@ -101,3 +101,40 @@ def test_ambiguous_grouped_and_flat_checkout_fails_closed(tmp_path): proc = run(root, "report") assert proc.returncode == 2 assert "ambiguous flat and grouped" in proc.stderr + + +def test_four_organ_total_and_record_median_are_reported(tmp_path): + root, brain, mind = workspace(tmp_path, True) + for organ in ("PyAutoCortex", "PyAutoMemory"): + repo = root / "organs" / organ + (repo / ".git").mkdir(parents=True) + (repo / "AGENTS.md").write_text("rules\n") + for month, lengths in (("2026/10", (500,)), ("2026/11", (1, 3, 40))): + folder = mind / "complete" / month + folder.mkdir(parents=True) + for i, n in enumerate(lengths): + (folder / f"r{i}.md").write_text("x\n" * n) + report = json.loads(run(root, "report").stdout) + assert report["totals"]["organ_agents_tokens_approx"] == 8 + assert report["totals"]["completion_records"] == { + "month": "2026/11", "records": 3, "median_lines": 3} + october = json.loads(run(root, "report", "--month", "2026/10").stdout) + assert october["totals"]["completion_records"]["median_lines"] == 500 + check = run(root, "check", "--organ-agents-budget", "7", + "--record-median-budget", "2") + assert check.returncode == 1 + violations = json.loads(check.stdout)["violations"] + assert any("organ AGENTS total: 8 > 7" in item for item in violations) + assert any("completion-record median (2026/11): 3 > 2" in item + for item in violations) + + +def test_absent_cortex_and_memory_are_report_only(tmp_path): + root, _, _ = workspace(tmp_path, True) + report = json.loads(run(root, "check").stdout) + assert not report["violations"] + assert "missing" in report["organ_files"]["Cortex AGENTS"] + assert "organ_agents_tokens_approx" not in report["totals"] + check = run(root, "check", "--organ-agents-budget", "6000") + assert check.returncode == 1 + assert "absent" in json.loads(check.stdout)["violations"][0]