Repository navigation
Description
Epic: pyautoeyes-birth, phase 3
Heart at the door (2026-09-29): YELLOW — "PyAutoMemory: open PR 7d old" (continue; acknowledgement is a ship-time act).
Overview
Birth the second <lib>_visualization project repo, PyAutoLabs/autogalaxy_visualization (local checkout galaxy/autogalaxy_visualization), so the PyAutoEyes cross-project dashboard shows every PyAutoGalaxy visualizer output. It mirrors the phase-1a autolens_visualization layout exactly: flat producers, tracked datasets, all-true plots.yaml, render harness, tracked PNGs + GALLERY.md + gallery/viz_manifest.yaml, lint/render workflows. The instance is then registered across the body map (Mind), Heart drift exclusion, Brain prose, and the PyAutoEyes registry.yaml.
Plan
- Push an initial stub (LICENSE + README) to the empty repo's
main, clone it togalaxy/autogalaxy_visualization, then build the repo on a feature branch by copying the lens repo's skeleton and rewriting every lens-specific piece for galaxy. - Three flat producers —
imaging,interferometer,ellipse— rendering every PyAutoGalaxy visualizer output on HST-scale imaging and SMA interferometer data (instrument presets copied from the lens repo), with galaxy-only simulated datasets tracked and an all-trueconfig/visualize/plots.yaml. - Render harness, tracked PNGs,
GALLERY.md, trackedgallery/viz_manifest.yaml,lint.yml+render.yml(galaxy stack only;render.ymlfireseyes-refreshat PyAutoEyes). - Register the instance: Mind
repos.yamlrow + ROUTING target +repos_sync --write; Heart drift exclusion; Brain prose; PyAutoEyesregistry.yamlgalaxy row + tests + regenerated dashboard. - Ship library-first in the 1a merge order: Brain → autogalaxy_visualization → Mind → Heart → Eyes (Eyes last: its
checkHEADs every galaxy PNG on the galaxy repo'smain).
Corrections to the draft prompt (found in the survey):
- Nothing sends
pyautolens-releasetoday — PyAutoLens, PyAutoGalaxy and Handsrelease.ymlcontain norepository_dispatchsender; only the lensrender.ymllistens. This task's galaxyrender.ymllistens forpyautogalaxy-release+workflow_dispatch(parity with lens); the sender (Handsrelease.ymlfiring bothpyautolens-releaseandpyautogalaxy-releaseviaPAT_PYAUTOLABS) is filed as a separate Mind draftdraft/feature/pyautohands/release_fires_visualization_dispatch.md. PyAutoGalaxy stays untouched (claimed byworkspace-config-cleanup). - The Eyes survey scans
scripts/<domain>/*.pynon-recursively (open bug draft), so the galaxy repo uses the flatscripts/<domain>/visualization.pyproducer layout.
Human-only steps (surfaced at ship):
- Grant
PAT_PYAUTOLABSaccess toautogalaxy_visualization(otherwise theeyes-refreshdispatch 403s/skips). - Create the
eyes-critiquelabel on the new repo (agent triesgh label create; human runs it if denied). .githubprofile README patch fromrepos_syncstays human-only, as in phase 1a.
Detailed implementation plan
Affected Repositories
- autogalaxy_visualization (primary; empty GitHub repo
PyAutoLabs/autogalaxy_visualization, to be cloned atgalaxy/autogalaxy_visualization) - PyAutoEyes
- PyAutoMind
- PyAutoBrain
- PyAutoHeart
- (PyAutoGalaxy deliberately NOT touched — claimed by
workspace-config-cleanup)
Branch Survey
| Repository | Current Branch | Dirty? |
|---|---|---|
| galaxy/autogalaxy_visualization | main (empty remote; to be cloned) | clean |
| organs/PyAutoEyes | main | clean |
| organs/PyAutoMind | main | clean |
| organs/PyAutoBrain | main | clean |
| organs/PyAutoHeart | main | clean |
worktree_check_conflict: no conflict.
Suggested branch: feature/eyes-galaxy-instance (all five repos)
Worktree: ~/Code/PyAutoLabs-wt/eyes-galaxy-instance (via /start_library)
Implementation Steps
A. New repo galaxy/autogalaxy_visualization (template: lens/autolens_visualization @ 078c1e2)
Copy the whole tree except PNGs, dataset/, GALLERY.md, gallery/viz_manifest.yaml,
and .git; then rewrite. Files and the galaxy-specific change in each:
README.md,AGENTS.md,CLAUDE.md(@AGENTS.mdstub),AI_POLICY.md,LICENSE,
ruff.toml(repo-root sentinel),.gitignore,.claude/hooks — lens → galaxy prose,
repo names, Pages/registry links; note theeyes-critiquelabel +/eyes review galaxy.activate.sh: PYTHONPATH dropslens/PyAutoLens; keep Nerves/Fit/Array/Galaxy; the
../..root walk works fromgalaxy/._viz_cli.py: RuntimeError text; no other logic change.config/general.yaml(workspace_version_check: false),config/visualize/plots.yaml:
derive fromgalaxy/PyAutoGalaxy/autogalaxy/config/visualize/plots.yamlwith every
boolean true (fit.subplot_fit_log10, subplot_of_galaxies, subplot_galaxy_images;
galaxies.; inversion.subplot_mappings; fit_interferometer.subplot_fit_dirty_images,
subplot_fit_real_space; fit_ellipse. already true).instruments/{README.md,__init__.py,imaging.py,interferometer.py}: copy verbatim
(presets euclid/hst/jwst/jwst_lw/ao; sma noise_sigma 10.0/alma/alma_high/jvla), prose
only.scripts/misc/simulators/imaging.py,interferometer.py:ag.models — Sersic bulge +
Exponential disk galaxy (imaging, HST preset) and an MGE/Sersic galaxy (interferometer,
SMA preset); writedataset/imaging/hst/{data,noise_map,psf}.fits+galaxies.json
anddataset/interferometer/sma/{data,noise_map,uv_wavelengths}.fits+galaxies.json
(tracked, as lens tracks itstracer.json). Nopositions.json(no lensing).- Producers (flat, one per domain, same 5-step shape as lens: push config with
output_path=scripts/<d>/images,auto_simulate_if_missing, true model with every
parameter fixed,visualize_before_fitonce thenvisualizeper source in
("parametric","delaunay"), wipescripts/<d>/images/visualization/first, scratch in
output/visualization/<d>):scripts/imaging/visualization.py—VisualizerImaging(port of
galaxy/autogalaxy_workspace_test/scripts/imaging/visualization/visualization.py,
keep parametric + delaunay, drop rectangular, plusvisualize_combinedif it produces
figures); galaxy key('galaxies','galaxy').scripts/interferometer/visualization.py—VisualizerInterferometer(port of the
workspace_test interferometer script), parametric + delaunay.scripts/ellipse/visualization.py—VisualizerEllipse(port of the workspace_test
ellipse script): before-fit + the four scenarios plain / multipole (m=4) / scaled /
masked, on the tracked HST imaging dataset (as workspace_test reuses imaging); source
subdirs namedplain,multipole,multipole_scaled,masked. If the 300-iteration
masked loop is too slow at HST scale, keep it but note runtime in the README.
gallery/gallery_build.py:VERSION_LINE_PREFIX = "Rendered with PyAutoGalaxy",
STACKminus autolens,autogalaxy_version()in place of the autolens override,
HTML/Markdown titles; manifestrendered_withmust includeautogalaxy(Eyes freshness
column readsimport_name).gallery/gallery_run.sh: unchanged logic (scripts/*/ visualization*.py,--all/ domain /--build-only).scripts/misc/test/test_gallery_build.py:FAKE_STACKdropsautolens; assertion
becomes "Rendered with PyAutoGalaxy9.9.9"..github/workflows/render.yml: triggersworkflow_dispatch(inputautogalaxy_version)repository_dispatch: types: [pyautogalaxy-release]; installsautogalaxy[optional]
from PyPI; runsgallery_run.sh --all; commitsscripts/*/images GALLERY.md gallery/viz_manifest.yamlas github-actions[bot][skip ci]; then
gh api repos/PyAutoLabs/PyAutoEyes/dispatches -f event_type=eyes-refreshwith
client_payload[repo|sha|manifest],GH_TOKEN: secrets.PAT_PYAUTOLABS, skipped when
empty.
.github/workflows/lint.yml: checkouts Nerves/Fit/Array/Galaxy mains only (drop
PyAutoLens); ruff check + format,gallery_build.py --check,pytest scripts/misc/test,
lychee,gallery_run.sh --all.- Render locally once (
gallery_run.sh --all), commit the PNGs,GALLERY.mdand
gallery/viz_manifest.yaml;gallery_build.py --checkmust pass on the committed tree.
Initial push: one stub commit on main (LICENSE + README, mirroring lens c1e075d), then
everything above on feature/eyes-galaxy-instance as PR #1.
B. PyAutoEyes (organs/PyAutoEyes)
registry.yaml: append the galaxy row (onekey: valueper line — stdlib parser):
name: galaxy,repo: autogalaxy_visualization,path: galaxy/autogalaxy_visualization,
github: PyAutoLabs/autogalaxy_visualization,library: PyAutoGalaxy,
import_name: autogalaxy,manifest: gallery/viz_manifest.yaml,
images_base_url: https://raw.githubusercontent.com/PyAutoLabs/autogalaxy_visualization/main/,
gallery: GALLERY.md,dispatch_event: pyautogalaxy-release.tests/test_registry.py: add galaxy-row asserts beside the lens ones;
tests/test_cli.py:83rename the "unknown instance" fixture name away fromgalaxy.bin/pyauto-eyes board→ regeneratedashboard.md/dashboard.html;pyauto-eyes check
(needs the galaxy PNGs on the galaxymain→ Eyes PR is merged last).- README/REFERENCE prose: "autolens_visualization first" → two instances.
C. PyAutoMind (organs/PyAutoMind)
repos.yaml: newautogalaxy_visualizationrow directly afterautolens_visualization
(~line 324),category: project, pathgalaxy/autogalaxy_visualization, galaxy role
text; widen the PyAutoEyes role (line 136) from "(autolens_visualization first)".ROUTING.md:49: addautogalaxy_visualizationto the target list.python3 scripts/repos_sync.py --writethen--check. Trap (memory --writeSpill):
run it from the task worktree; it writes map blocks through symlinks into canonical
sibling organs (Nerves, Gut, Scientist, Cortex, Hands, Heart, root AGENTS.md). Snapshot
git statusper canonical repo before, keep the diffs only in the claimed worktrees
(Mind, Brain, Heart, Eyes),git diff > patchthen revert the canonical spills; the
saved patches become the sibling map-block PRs at ship (as 1a: Nerves/Gut/Scientist/
Cortex). RootAGENTS.mdis unversioned: keep its regenerated table (it is the
workspace's live instruction file).- New draft
draft/feature/pyautohands/release_fires_visualization_dispatch.mdfor the
dispatch sender (see Context §1); mention it in the epic notes.
D. PyAutoHeart (organs/PyAutoHeart)
config/repos.yaml:193excluded:— add
- autogalaxy_visualization # galaxy figure gallery project (PNGs + manifest tracked; re-rendered on release).- Map block via repos_sync.
E. PyAutoBrain (organs/PyAutoBrain)
- No conductor code change (
agents/conductors/eyes/_eyes.pyis repo-name-free). - Prose:
agents/conductors/eyes/AGENTS.md:27-32,skills/eyes/eyes.md:7-21(two
instances,--instance galaxy),docs/organs/eyes.md:32,bin/clean_slate.sh:72-84
prose ("the galaxy one sits under galaxy/"),AGENTS.md:23; map block via repos_sync. - If
config/policy.yamlwitness/tenant rows key on repo names, add the galaxy repo
besideautolens_visualization(checkgrep -n autolens_visualization config/).
F. Human-only steps (surface at ship)
- Grant
PAT_PYAUTOLABStoautogalaxy_visualization(memory PAT403: every newborn repo
must be added or theeyes-refreshdispatch 403s/skips). - Create the
eyes-critiquelabel on the new repo (agent will trygh label create;
if the classifier denies it as a public surface, the human runs it). .githubprofile README patch from repos_sync stays human-only, as in 1a.
Verification (the prompt's Witness, plus)
- In the galaxy repo:
ruff check . && ruff format --check .;
gallery/gallery_run.sh --allrenders every domain;python gallery/gallery_build.py --checkgreen on the committed tree;pytest scripts/misc/testgreen. pyauto-brain eyes survey galaxy/autogalaxy_visualization→ no gaps, no orphans;
pyauto-brain eyes survey --instance galaxyresolves via the registry.organs/PyAutoEyes:pytest tests/green;bin/pyauto-eyes boardthen
bin/pyauto-eyes checkgreen with the galaxy row (post galaxy-main merge); dashboard
shows a galaxy section.organs/PyAutoMind:python3 scripts/repos_sync.py --checkclean;lifecycle.py check.organs/PyAutoHeart/organs/PyAutoBrain: their own test suites for the touched
files (tests/test_board_theme.py, policy/registry tests).- Post-merge:
workflow_dispatchthe galaxyrender.ymlonce → it commits nothing new
(already rendered) and fireseyes-refresh; PyAutoEyesdashboard_refresh.ymlrun
green; Pages shows both instances.
Ship order
/start_library → implement (Opus subagents, progress file + Monitor) → /ship_library
per repo in the order Brain → autogalaxy_visualization → Mind → Heart → Eyes, with the
sibling map-block PRs (Nerves/Gut/Scientist/Cortex) opened from the saved patches; merge
stays human; Heart YELLOW acknowledged at ship.
Key Files
lens/autolens_visualization/@ 078c1e2 — template treegalaxy/autogalaxy_workspace_test/scripts/{imaging,interferometer,ellipse}/visualization/— producers to portgalaxy/PyAutoGalaxy/autogalaxy/config/visualize/plots.yaml— source of the all-true configorgans/PyAutoEyes/registry.yaml,tests/test_registry.py,tests/test_cli.pyorgans/PyAutoMind/repos.yaml,ROUTING.md,scripts/repos_sync.pyorgans/PyAutoHeart/config/repos.yamlorgans/PyAutoBrain/agents/conductors/eyes/AGENTS.md,skills/eyes/eyes.md,docs/organs/eyes.md,bin/clean_slate.sh
Original Prompt
Click to expand starting prompt
PyAutoEyes phase 3 — birth autogalaxy_visualization (PyAutoGalaxy figures)
Type: feature
Target: autogalaxy_visualization
Repos:
- autogalaxy_visualization
- PyAutoEyes
- PyAutoMind
- PyAutoBrain
- PyAutoHeart
Themes: - visualization
- infrastructure
Difficulty: large
Autonomy: supervised
Priority: normal
Lane: local-dev
Status: draft
Consequence: judge
Witness:pyauto-brain eyes survey galaxy/autogalaxy_visualizationreports no gaps/orphans; itsgallery/gallery_build.py --checkgreen and trackedgallery/viz_manifest.yamlcommitted;pyauto-eyes checkgreen with the galaxy registry row; the PyAutoEyes dashboard shows a galaxy section;repos_sync.py --checkclean
Review-minutes: 15
Epic: pyautoeyes-birth
Phase: 3
Filed: 2026-09-25
Blocked on: human repo creation (gh repo create PyAutoLabs/autogalaxy_visualization --public); phase 2 shipped 2026-09-28 (complete/2026/09/eyes-board-conductor-registry.md).
Task
Human first: gh repo create PyAutoLabs/autogalaxy_visualization --public.
Agent, local checkout at galaxy/autogalaxy_visualization, mirroring the
autolens_visualization project-repo layout from phase 1a:
- Port
autogalaxy_workspace_test/scripts/{imaging,interferometer,ellipse}/visualization/
to flat producersscripts/<domain>/visualization.py(HST-scale imaging +
SMA interferometer presets copied fromautolens_visualization/instruments),
all-trueconfig/visualize/plots.yaml, datasets simulated intodataset/
with simulators underscripts/misc/simulators/. - Render harness (
gallery/gallery_build.py+gallery_run.sh), tracked PNGs,
GALLERY.md, trackedgallery/viz_manifest.yaml;lint.yml+render.yml
on thepyautogalaxy-releasedispatch, which also fireseyes-refreshat
PyAutoEyes. - Registration, as phase 1a: Mind
repos.yamlproject row +repos_sync --write,ROUTING.mdtarget, Brainclean_slate.shexclusion, Heart drift
exclusion. - PyAutoEyes
registry.yamlgalaxy row; PyAutoGalaxy's release workflow fires
thepyautogalaxy-releasedispatch (as PyAutoLens does for lens).
Session: Claude Code CLI (Fable 5.1 architect, Opus execution), 2026-09-29; session ID unavailable.
Activity
prompt: route eyes-galaxy-instance (#452) → start_library
active: eyes-galaxy-instance (#452) → library-shipped, awaiting-merge
Jammy2211 commentedon Sep 29, 2026
Library PRs Created
PyAutoEyes phase 3 (epic pyautoeyes-birth). All PRs are open and none are merged. The five task PRs carry
pending-release.Merge order (human):
pyauto-eyes checkHEADs every galaxy PNG from raw.githubusercontent.com, so it only goes green once the galaxymainholds them.These map-block PRs can merge any time after Mind:
Then run
/prm.Tests:
gallery_build --checkgreen, ruff cleanlifecycle checkOK, 618 passedOne PyAutoMind test,
test_repos_sync_root_default, fails only when the taskactivate.shhas exportedPYAUTO_ROOT. It passes in a clean shell.Heart ack: 2026-09-29 YELLOW, acknowledged through the approved plan at ship:
scripts/multi_dataset/rectangular.py(cloud#36404726969)Human steps:
PAT_PYAUTOLABSaccess toautogalaxy_visualization. Then run itsrender.ymlwithworkflow_dispatch, then runpyauto-eyes check.pending-releaseandeyes-critiquewere created onautogalaxy_visualization(copied from autolens_visualization). Nothing is needed here..githuborg profile README, which only a human can edit. Apply this patch:New Mind drafts (on the Mind PR):
draft/bug/autogalaxy/ellipse_plotter_fit_ellipse_overwrites.md:PlotterEllipse.fit_ellipsewrites thedata,data_no_ellipseand log10 variants all toellipse_fit.png, so only the last survives.draft/maintenance/pyautomind/session_start_hook_copies_regen.md:repos_sync --checkfinds 28 driftedsession-start.shhook copies left over from Mind#439.Mind state:
active.mdis set tolibrary-shipped, awaiting-merge(6552a06).Jammy2211 commentedon Sep 29, 2026
Shipped
PyAutoEyes phase 3 —
autogalaxy_visualizationis born and registered as the second Eyes instance. All eight PRs merged 2026-09-29:plots.yaml; gallery builder + schema-1gallery/viz_manifest.yaml;lint.yml+render.ymllistening forpyautogalaxy-releaseand firingeyes-refresh.pyauto-eyes checkOK: lens 40, galaxy 41 figures).Witness: delivered except
repos_sync.py --check"clean" — it still reports 28 pre-existing hook-copy drifts plus the.githubprofile table (draftdraft/maintenance/pyautomind/session_start_hook_copies_regen.mdfiled).Human follow-ups still open: grant
PAT_PYAUTOLABSto autogalaxy_visualization (or make the org secret all-repos), thengh workflow run render -R PyAutoLabs/autogalaxy_visualization, then confirm PyAutoEyesDashboard Refresh; apply the.githubprofile README patch posted above. Nothing sendspyautogalaxy-release/pyautolens-releaseyet (draftdraft/feature/pyautohands/release_fires_visualization_dispatch.md).Record:
complete/2026/09/eyes-galaxy-instance.md. Next: phase 4 (draft/feature/pyautoeyes/eyes_p4_fit_cti_instances.md).complete: eyes-galaxy-instance (#452) — pyautoeyes-birth phase 3