Repository navigation
feat: mirror rendered figures to an opt-in Eyes scratch folder - #5
Merged
Merged
Conversation
When PYAUTO_EYES_SCRATCH is set, gallery/gallery_run.sh copies each successful producer's domain PNGs to $PYAUTO_EYES_SCRATCH/autogalaxy/<domain>/ (folder replaced, no stale figures) for on-the-fly review before any PR or CI. Also exposed as `python _viz_cli.py scratch [domain ...]`. Unset = silent no-op. Refs #4 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Opt-in Eyes scratch mirror for on-the-fly figure review (phase 1 of #4). When
PYAUTO_EYES_SCRATCHis set,gallery/gallery_run.shmirrors each successful producer's domain to$PYAUTO_EYES_SCRATCH/autogalaxy/<domain>/(matching the PyAutoEyes dashboard naming), replacing the folder so no stale figures remain. A mirror failure never fails the run. Unset = silent no-op, so CI and other machines are unaffected and no machine path is committed. No figures are re-rendered or changed by this PR.Scripts Changed
_viz_cli.py—mirror_to_scratch(domains=None)+python _viz_cli.py scratch [domain ...]entry point; module docstring updatedgallery/gallery_run.sh— mirror the producer's domain after each success (only whenPYAUTO_EYES_SCRATCHis set); header usage commentscripts/misc/test/test_eyes_scratch.py— hermetic tests: unset no-op,<lib>/<domain>/<subpath>layout, no stale figures,miscskippedAGENTS.md,README.md— short on-the-fly review noteTest Plan
ruff check .+ruff format --check .cleanpytest scripts/misc/test/— 14 passedPYAUTO_EYES_SCRATCH=<scratch> bash gallery/gallery_run.sh <domain>: ellipse (17 PNGs) to a scratchpad dir; imaging (11 PNGs) to the real scratch folder landed under<scratch>/autogalaxy/<domain>/[eyes-scratch]output, no files written;python _viz_cli.py scratchreports the variable is unsetHeart readiness: YELLOW (pre-existing, unrelated: "manifest drift: workspace checkouts (manifest ↔ disk) — 1 mismatch(es) vs PyAutoMind/repos.yaml"; "release validation stale: source moved since rehearsal (PyAutoArray)"), acknowledged by the human for this task. Consequence: judge — merge via human /prm.
Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code