Skip to content

feat: mirror rendered figures to an opt-in Eyes scratch folder - #5

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/eyes-scratch-mirror
Oct 21, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/eyes-scratch-mirror

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

Opt-in Eyes scratch mirror for on-the-fly figure review (phase 1 of #4). When PYAUTO_EYES_SCRATCH is set, gallery/gallery_run.sh mirrors 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 updated
  • gallery/gallery_run.sh — mirror the producer's domain after each success (only when PYAUTO_EYES_SCRATCH is set); header usage comment
  • scripts/misc/test/test_eyes_scratch.py — hermetic tests: unset no-op, <lib>/<domain>/<subpath> layout, no stale figures, misc skipped
  • AGENTS.md, README.md — short on-the-fly review note

Test Plan

  • ruff check . + ruff format --check . clean
  • pytest scripts/misc/test/ — 14 passed
  • PYAUTO_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>/
  • Unset: no [eyes-scratch] output, no files written; python _viz_cli.py scratch reports the variable is unset
  • Test re-renders reverted; no PNG / GALLERY.md / manifest changes in this PR

Heart 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

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>
@Jammy2211
Jammy2211 merged commit 41be603 into main Oct 21, 2026
1 check passed
@Jammy2211
Jammy2211 deleted the feature/eyes-scratch-mirror branch October 21, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant