Repository navigation
Description
Overview
Phase 2 of the Eyes scratch mirror. Phase 1 (autogalaxy/autofit/autocti_visualization, merged 2026-10-21, e.g. autogalaxy_visualization#5) added an opt-in PYAUTO_EYES_SCRATCH mirror so figures can be inspected on the fly before any PR or CI. This ports the same change, exactly as merged, to autolens_visualization, so lens figures land in $PYAUTO_EYES_SCRATCH/autolens/<dataset_type>/ (e.g. eyes/autolens/imaging).
Plan
_viz_cli.py: addEYES_LIB = "autolens",mirror_to_scratch()and thepython _viz_cli.py scratch [domain ...]entry point (merged around the feat: point domains keep image_with_points.png and fit_image_with_points.png #7extra_pngschange)gallery/gallery_run.sh: mirror each producer's domain that succeeds; a failed mirror never fails the run; unset = no-opscripts/misc/test/test_eyes_scratch.py: hermetic tests (run by the existing lint.yml pytest leg), plus AGENTS.md and README notes- PyAutoBrain
skills/eyes/eyes.md: drop the "lens support lands in phase 2" note so the section covers all four instances
Detailed implementation plan
Affected Repositories
- autolens_visualization (primary)
- PyAutoBrain
Branch Survey
| Repository | Current Branch | Dirty? |
|---|---|---|
| ./lens/autolens_visualization | main | clean |
| ./organs/PyAutoBrain | main | clean |
Suggested branch: feature/eyes-scratch-mirror-lens
Implementation Steps
- Port autogalaxy_visualization merge 41be603a:
_viz_cli.py(import os;shutilalready imported),gallery/gallery_run.sh,scripts/misc/test/test_eyes_scratch.py,AGENTS.md,README.md, withautogalaxy->autolens. - All lens domains render under
scripts/<domain>/images/(cross-checked againstgallery/viz_manifest.yaml); cluster's nestedpoint_<i>/subfolders are preserved. - Brain
skills/eyes/eyes.md: listautolensin the<lib>names and remove the phase-2 caveat. - Tests: ruff check/format, pytest scripts/misc/test/, Brain skill tests, a hermetic mirror run plus one real
imagingrun.
Key Files
_viz_cli.py- mirror helper and CLI entry pointgallery/gallery_run.sh- per-producer mirrorscripts/misc/test/test_eyes_scratch.py- hermetic tests- PyAutoBrain
skills/eyes/eyes.md- active image work section
Original Prompt
Click to expand starting prompt
Eyes scratch mirror: phase 2 (autolens_visualization)
Consequence: judge
Autonomy: human-required
blocked-by: #7 (task point-image-fit-filename; that PR also edits _viz_cli.py)
@autolens_visualization
Phase 1 shipped on 2026-10-21; record complete/2026/10/eyes-scratch-mirror.md. Port the same change, exactly as merged in autogalaxy_visualization#5, to lens/autolens_visualization:
_viz_cli.py:EYES_LIB = "autolens",mirror_to_scratch(), and thescratchentry pointgallery/gallery_run.sh: mirror each producer that succeedsscripts/misc/test/test_eyes_scratch.py, plus the AGENTS.md and README notes- Drop the "lens support lands in phase 2" note from PyAutoBrain
skills/eyes/eyes.md
The result is figures in $PYAUTO_EYES_SCRATCH/autolens/<dataset_type>/, e.g. /mnt/c/Users/Jammy/Science/scratch/eyes/autolens/imaging.
Activity
Jammy2211 commentedon Oct 21, 2026
PRs open: #9 (port) + PyAutoLabs/PyAutoBrain#530 (eyes.md caveat drop). Consequence judge, awaiting human /prm. Heart YELLOW at ship (pre-existing, acknowledged by human): manifest drift (1 mismatch vs repos.yaml); release validation stale (PyAutoArray).
Jammy2211 commentedon Oct 21, 2026
Shipped. Merged via /prm on 2026-10-21. Every CI leg was green.
mirror_to_scratch()and thescratchentry point, thegallery_run.shmirror, tests and notes/eyestext now covers autolensWith
PYAUTO_EYES_SCRATCHset, figures land in$PYAUTO_EYES_SCRATCH/autolens/<dataset_type>/. The Eyes scratch mirror now covers all four visualization instances.