Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 26 additions & 35 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/<work-type>/<target>/<name>.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/<name>.md` holds issued prompts; `complete/<YYYY>/<MM>/<slug>.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

Expand Down Expand Up @@ -70,19 +64,16 @@ nothing has set it up — this block is what does.

## Workflow entry points

For a new prompt, write `draft/<work-type>/<target>/<name>.md` or use `$intake`.
Do not move it into `active/` or edit completion records by hand. For existing
work, use `$start-dev draft/<work-type>/<target>/<name>.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/<work-type>/<target>/<name>.md` or use `$intake`; never
move prompts into `active/` or edit completion records by hand. Existing work:
`$start-dev draft/<work-type>/<target>/<name>.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".

<!-- repos_sync:history:begin -->
## Never rewrite history
Expand Down
13 changes: 7 additions & 6 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<workspace-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`.

---

Expand Down
56 changes: 56 additions & 0 deletions active.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/<leg>.json
- resume: (1) `sacct -j 414456`; each task ends with a 'complete <json>' 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
24 changes: 24 additions & 0 deletions active/cortex_agents_slim.md
Original file line number Diff line number Diff line change
@@ -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`).
24 changes: 24 additions & 0 deletions active/mind_agents_trim.md
Original file line number Diff line number Diff line change
@@ -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`).
26 changes: 26 additions & 0 deletions active/organism_map_compact.md
Original file line number Diff line number Diff line change
@@ -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`).
24 changes: 24 additions & 0 deletions active/token_load_measure_four_organs.md
Original file line number Diff line number Diff line change
@@ -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`).
47 changes: 47 additions & 0 deletions complete/2026/11/eyes-survey-next-action-stale.md
Original file line number Diff line number Diff line change
@@ -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`).

<!-- filed by hand 2026-11-06 for the weekend cloud shift; headers mirror intake's -->

## 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.
3 changes: 2 additions & 1 deletion complete/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<!-- CURATED:START -->
## Highlights
Expand Down Expand Up @@ -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(…
Expand Down
Loading
Loading