Skip to content

feat: PyAutoEyes phase 0 — organ row, boundary prose, local move (pyautoeyes-birth) #437

Closed

Description

@Jammy2211

Overview

Phase 0 of the pyautoeyes-birth epic. The human decided (2026-09-25) to promote autolens_visualization (PyAutoMind#436, PR #1 merged) from a per-library project repo to the organ PyAutoEyes — one library-neutral home for every library's rendered figures, one render harness, an instance registry and a Pages board that is the single point of contact for visual behaviour. This phase wires the organ into the organism (body-map row, boundary prose, sibling-organ lists, generated map blocks and public tables) and moves the local checkout to organs/PyAutoEyes; the repo content restructure is phase 1.

Plan

  • Human first: rename the GitHub repo autolens_visualization → PyAutoEyes (history + PR docs: update stale admin_jammy/prompt/ refs to PyAutoPrompt/ #1 carry over) and add the org-profile organ row.
  • PyAutoMind: add the Eyes organ row to the body map, teach the sync script and session hook about the new organ, record the organ decision, regenerate every generated map block/table.
  • PyAutoBrain: add Eyes to the sibling-organ lists, the organism prose (table row, boundary, growth rule), the RTD organ pages and routing; point the Eyes conductor's default instance at organs/PyAutoEyes/lens.
  • PyAutoHeart and PyAutoHands: add Eyes to their sibling-organ lists (Heart's drift exclusion becomes an organism entry).
  • Public surfaces: hub blurb (pyautolabs.github.io) and the generated PyAutoScientist README table.
  • Local: the gallery checkout already moved to organs/PyAutoEyes with origin pointed at the renamed repo; discard the three stale unpushed feature/autolens-visualization-birth branches.
  • Ship in the Cortex order Mind → Brain → Heart → Hands → hub/Scientist under a contemporaneous human Heart RED override; merge stays human (/prm).
Detailed implementation plan

Work Classification

Workspace (organ/doc repos) — no library source changes.

Affected Repositories

  • PyAutoMind (primary)
  • PyAutoBrain
  • PyAutoHeart
  • PyAutoHands
  • pyautolabs.github.io
  • PyAutoScientist
  • (.github org profile — human)

Branch Survey

Repository Current Branch Dirty?
./organs/PyAutoMind main clean
./organs/PyAutoBrain main clean
./organs/PyAutoHeart main clean
./organs/PyAutoHands main clean
./pyautolabs.github.io main clean
./organs/PyAutoScientist main clean

Stale work: ~/Code/PyAutoLabs-wt/autolens-visualization-birth/ held unpushed feature/autolens-visualization-birth in Mind (2265a122), Brain (9829c67), Heart (1c9a532) — superseded by this pivot, discarded.

Suggested branch: feature/pyautoeyes-birth-organ-row
Worktree root: ~/Code/PyAutoLabs-wt/pyautoeyes-birth-organ-row/

Human-only prerequisites (public-surface guard denies these to the agent)

  1. gh repo rename PyAutoLabs/autolens_visualization PyAutoEyes (the local checkout's origin is already set to https://github.com/PyAutoLabs/PyAutoEyes.git; fetch fails until the rename).

  2. The .github org-profile README organ row.

  3. Heart RED override for shipping. PyAutoHeart readiness at 2026-09-25T18:05Z: RED, score 45, reasons verbatim:

    • release validation FAILED (stage integrate)
    • workspace validation not passing (4 failed, cloud#35579888156: autolens notebooks/cluster/modeling.ipynb, autolens notebooks/weak/a2744.ipynb, autolens scripts/cluster/modeling.py, +1 more)
    • manifest drift: hub organism blurb (organs present) — 7 mismatch(es) vs PyAutoMind/repos.yaml
    • manifest drift: workspace checkouts (manifest ↔ disk) — 1 mismatch(es) vs PyAutoMind/repos.yaml

    None touches the six organ/doc repos changed here; the override must be contemporaneous and recorded in the four sinks.

Implementation Steps

  1. PyAutoMind
    • repos.yaml: organ row after Gut (path: organs/PyAutoEyes, category: organ, organ: Eyes, role, public_role).
    • scripts/repos_sync.py:138 — ORGANS frozenset gains Eyes.
    • policy/session_start_hook.sh:134-140 — organ dir chains.
    • ROUTING.md — Eyes routing row.
    • epics.md — pyautoeyes-birth (added at the pivot) notes updated.
    • Decision record complete/2026/09/pyautoeyes-organ-decision.md (what state Eyes owns: per-library rendered-figure state, manifests, render harness, instance registry, board; boundary vs the Brain Eyes conductor; modelled on complete/2026/07/pyautogut-organ-decision.md).
    • python3 scripts/repos_sync.py --write (map blocks, organ tables, hooks).
  2. PyAutoBrain
    • agents/_pyauto_root.py:61 SIBLING_ORGANS; bin/_pyauto_root.sh:86-88.
    • ORGANISM.md — table row, boundary prose (Eyes renders and holds figures, never judges, never edits library plot code — the conductor judges, critiques route via intake), growth-rule mention.
    • docs/concepts/organism.md; new docs/organs/eyes.md + toctree docs/index.md:52-63; README.md:82 organ count; organs/AGENTS.md routing row.
    • tests/test_policy_seams.py:104 WITNESS_EXEMPT entry (until phase 1 tests land).
    • bin/clean_slate.sh dataset-wipe exclusion for organs/PyAutoEyes.
    • Eyes conductor prose agents/conductors/eyes/AGENTS.md, skills/eyes/eyes.md — default instance → organs/PyAutoEyes/lens.
  3. PyAutoHeart — heart/_workspace.py:72 _SIBLING_ORGANS; heart/_workspace.sh:91-93; config/repos.yaml drift exclusion → organism list entry.
  4. PyAutoHands — autohands/_workspace.py:42 _SIBLING_ORGANS.
  5. pyautolabs.github.io — index.html organism blurb names PyAutoEyes. PyAutoScientist — README organ table (generated by repos_sync.py --write).
  6. Local — lens/autolens_visualization → organs/PyAutoEyes (done at routing); content moves into lens/ in phase 1.

Testing / Witness

  • python3 organs/PyAutoMind/scripts/repos_sync.py --check — green on every leg except the pre-existing hub-blurb leg (which this phase should also improve).
  • Every generated repos_sync:map block names PyAutoEyes.
  • PyAutoBrain / PyAutoHeart / PyAutoHands pytest green; PyAutoMind lifecycle + dashboard checks green.
  • pyauto-brain eyes survey organs/PyAutoEyes/lens rc=0 (note: lens/ exists only after phase 1's restructure; in phase 0 the survey target is the organ root until then).

Key Files

  • organs/PyAutoMind/repos.yaml, scripts/repos_sync.py — the body map and its generator.
  • organs/PyAutoBrain/ORGANISM.md — organ boundaries.
  • organs/PyAutoBrain/agents/conductors/eyes/ — the conductor that drives the organ.

Original Prompt

Click to expand starting prompt

PyAutoEyes phase 0 — organ row, boundary prose, local move

Type: feature
Target: PyAutoEyes
Repos:

  • PyAutoMind
  • PyAutoBrain
  • PyAutoHeart
  • PyAutoHands
  • pyautolabs.github.io
  • PyAutoScientist
    Themes:
  • mind-workflow
  • visualization
    Difficulty: medium
    Autonomy: supervised
    Priority: high
    Lane: local-dev
    Status: draft
    Consequence: judge
    Witness: python3 PyAutoMind/scripts/repos_sync.py --check exits with only the pre-existing hub-blurb leg red and an Eyes organ row present; every organ AGENTS.md map block lists PyAutoEyes; pyauto-brain eyes survey organs/PyAutoEyes/lens rc=0
    Review-minutes: 15
    Epic: pyautoeyes-birth
    Phase: 0
    Filed: 2026-09-25

Phase 0 of 6 in the pyautoeyes-birth epic. Human-gated (the GitHub rename
and the org-profile row are human acts). Gates phase 1 (the restructure needs
the organ row and the renamed checkout).

Request (verbatim)

As development on this unfolds, I realise that we can promote this from a
workspace level task (e.g. autolens_visualization) to an organ level
repository (e.g. PyAutoEyes). It is clear that all libraries need
visualization, they all share a unified visualization API, I need a single
point of contact for managing and checking in on their visualization and this
warrants a dashboard level API like other organs.

ok lets go forward with PyAutoEyes, there is also the dashboard aspect where
this provides a single point of contact with the behaviour of the whole
software ecosystem

Context

autolens_visualization (PyAutoMind#436) was born on 2026-09-25 as a
per-library project repo: a permanent rendered gallery of every PyAutoLens
visualizer figure, a gallery harness, an Eyes-agent HTML gallery/manifest, and
lint/render workflows. The GitHub repo exists and PR #1 is merged; the three
organ registration branches (Mind/Brain/Heart) were verified green but never
pushed — they are discarded by this pivot (#436 closed as pivoted, completion
record complete/2026/09/autolens-visualization-birth.md).

Decision (human, 2026-09-25): promote it to an organ, PyAutoEyes — one
library-neutral home for what the whole ecosystem's figures look like, with
per-library instance subtrees, one harness, an instance registry and a Pages
board that is the single point of contact for visual behaviour.

Growth-rule justification (PyAutoBrain/ORGANISM.md: an organ "must earn
that by owning state or effects no existing organ can"): Eyes owns the
perception lifecycle — rendered-figure state per library, the manifests, the
render harness (today copy-pasted between autolens_workspace_test/gallery and
the new repo), the instance registry and the board. The Brain's Eyes conductor
stays where it is and drives the organ, exactly as Health→Heart and
Build→Hands. Eyes renders and holds figures; it never judges (the conductor
judges with the human) and never edits library plot code (critiques route via
intake).

Human choices already made:

Human-only actions (the public-surface guard denies them to the agent):

  • gh repo rename PyAutoLabs/autolens_visualization PyAutoEyes
  • the .github org-profile README organ row
  • the Heart RED override authorization for shipping (Heart is RED for reasons
    that touch none of these repos; verbatim reason strings go on the issue).

Shape of the organ (target state, reached by phases 1–4)

organs/PyAutoEyes/
  AGENTS.md  CLAUDE.md  README.md  REFERENCE.md      # organ prose + repos_sync markers
  bin/pyauto-eyes                                    # bash dispatcher (Heart pattern)
  eyes/                                              # python package: harness
    registry.py   build.py   run.py   board.py       # generalised gallery_build/run + dashboard
  registry.yaml                                      # instances: lens, galaxy, fit, cti
  lens/      <- today's autolens_visualization content, unchanged layout:
    scripts/<domain>/visualization.py, scripts/misc/{simulators,test}, dataset/, config/,
    instruments/, GALLERY.md
  galaxy/  fit/  cti/                                # later phases, same layout
  dashboard.md  dashboard.html                       # organ board (per instance: figures, stale, gaps)
  .github/workflows/{lint.yml, render.yml, pages_dashboard.yml, dashboard_refresh.yml}
  tests/                                             # hermetic harness + registry + board tests

Each instance root keeps the exact layout the Eyes conductor already scans
(scripts/<domain>/visualization*.py, scripts/<domain>/images/...,
output/gallery/{gallery.html,viz_manifest.yaml}), so
pyauto-brain eyes survey organs/PyAutoEyes/lens works with no conductor code
change
in phase 1. The conductor gains registry awareness in phase 2.

Task (phase 0)

Human first: gh repo rename; the org-profile row. Agent, in one task
worktree (feature/pyautoeyes-birth-organ-row), PRs in the Cortex order
Mind → Brain → Heart → Hands → hub/Scientist:

  1. PyAutoMind: repos.yaml organ row after Gut (path: organs/PyAutoEyes,
    category: organ, organ: Eyes, role, public_role); ORGANS frozenset
    in scripts/repos_sync.py:138; policy/session_start_hook.sh:134-140 dir
    chains; ROUTING.md; epics.md (pyautoeyes-birth already added at the
    pivot — update notes); the three carried drafts (multi_galaxy_gallery,
    group_cluster_gallery, eyes_survey_recursive_producers) already
    retargeted at the pivot; decision record
    complete/2026/09/pyautoeyes-organ-decision.md (what state Eyes owns;
    modelled on complete/2026/07/pyautogut-organ-decision.md); then
    repos_sync.py --write (map blocks, organ tables, hooks). No
    autolens_visualization rows (the unpushed ones are dropped).
  2. PyAutoBrain: SIBLING_ORGANS (agents/_pyauto_root.py:61),
    bin/_pyauto_root.sh:86-88, ORGANISM.md table row + boundary prose +
    growth-rule mention, docs/concepts/organism.md, new docs/organs/eyes.md
    • toctree docs/index.md:52-63, README.md:82 organ count,
      organs/AGENTS.md routing row, tests/test_policy_seams.py:104
      WITNESS_EXEMPT (until phase 1 tests land), bin/clean_slate.sh
      dataset-wipe exclusion; Eyes conductor prose
      (agents/conductors/eyes/AGENTS.md, skills/eyes/eyes.md) default
      instance → organs/PyAutoEyes/lens.
  3. PyAutoHeart: _SIBLING_ORGANS (heart/_workspace.py:72),
    heart/_workspace.sh:91-93, config/repos.yaml drift exclusion → organism
    list entry.
  4. PyAutoHands: _SIBLING_ORGANS (autohands/_workspace.py:42).
  5. pyautolabs.github.io index.html blurb; PyAutoScientist README
    table (generated); .github profile (human).

Local: move lens/autolens_visualization → organs/PyAutoEyes (checkout
with origin set to the renamed repo); content moves into lens/ in phase 1.
Discard the three stale organ branches + the autolens-visualization-birth
worktree after the phase-0 branches exist.

Witness

python3 organs/PyAutoMind/scripts/repos_sync.py --check green on every leg
except the pre-existing hub-blurb leg; every generated repos_sync:map block
names PyAutoEyes; Brain/Heart/Hands pytest green;
pyauto-brain eyes survey organs/PyAutoEyes/lens rc=0.

Ship policy

Heart is RED for unrelated reasons; the phase's PRs ship only under a
contemporaneous human RED override recorded in the four sinks. Merge stays
human (/prm). Brain merges before any Eyes conductor change relies on the
registry.

Activity

  1. Jammy2211 commented on Sep 25, 2026

    @Jammy2211
    CollaboratorAuthor

    Phase 0 shipped to PRs under a Heart RED override (2026-09-25)

    Authorization: "can you do 2 and 3 i authorize RED overrule". This was a live human message on 2026-09-25, sent in the session that built the branches. It replied to the phase-0 handover for this issue, whose item 3 was "Authorize the Heart RED override for issue #437".

    Heart verdict (re-read at 2026-09-25T18:54:09.039610+00:00, score 45; unchanged since authorization):

    • RED: release validation FAILED (stage integrate)
    • YELLOW: workspace validation not passing (4 failed, cloud#35579888156: autolens notebooks/cluster/modeling.ipynb, autolens notebooks/weak/a2744.ipynb, autolens scripts/cluster/modeling.py, +1 more)
    • YELLOW: manifest drift: hub organism blurb (organs present) — 7 mismatch(es) vs PyAutoMind/repos.yaml
    • YELLOW: manifest drift: workspace checkouts (manifest ↔ disk) — 1 mismatch(es) vs PyAutoMind/repos.yaml

    None of these come from this branch. The override covers commit, push and opening the PRs. Merge is not authorized. Heart stays RED for release, and these PRs do not fix Heart.

    Branch gates passed: Mind pytest 585 · Brain pytest 1002 + sphinx docs 0 warnings · Heart pytest 1035 · Hands pytest 463 · Cortex pytest 63 · Nerves pytest 185 · Gut has no tests · repos_sync --check organism-map blocks OK (workspace checkouts 39/39) · pyauto-brain eyes survey rc=0 on the organ root.

    PRs, in merge order:

    1. mind: birth the Eyes organ row (repos.yaml, ORGANS, hook, ROUTING, decision record) — PyAutoMind#437 #438
    2. docs: organism map block gains PyAutoEyes (PyAutoMind#437) PyAutoCortex#44 · docs: organism map block gains PyAutoEyes (PyAutoMind#437) PyAutoNerves#171 · docs: organism map block gains PyAutoEyes (PyAutoMind#437) PyAutoGut#8
    3. organism: the Eyes join as an organ — ORGANISM.md, docs, SIBLING_ORGANS, Eyes conductor → PyAutoEyes (PyAutoMind#437) PyAutoBrain#415
    4. workspace: the Eyes join the organ siblings and the organism poll group (PyAutoMind#437) PyAutoHeart#237 (DRAFT: merge only after the rename below, because Heart polls PyAutoLabs/PyAutoEyes)
    5. workspace: the Eyes join the organ siblings (PyAutoMind#437) PyAutoHands#288
    6. hub: name the Eyes in the organism card (PyAutoMind#437) pyautolabs.github.io#11
    7. readme: regenerated organ table gains the Eyes row (PyAutoMind#437) PyAutoScientist#34

    Human items outstanding:

    • gh repo rename PyAutoEyes -R PyAutoLabs/autolens_visualization, then mark PyAutoHeart#237 ready.
    • The .github org-profile organ row (.github/profile/README.md) is a human edit. It was denied to the agent twice.

    The override is also recorded in every PR body, in active.md (- heart-red-override:) and in the first table of autonomy_log.md (red-override), both in PyAutoMind#438.

  2. Jammy2211 commented on Sep 25, 2026

    @Jammy2211
    CollaboratorAuthor

    Shipped

    Phase 0 of the pyautoeyes-birth epic is merged: PyAutoEyes is registered as an organ across the organism (organ row, boundary prose, sibling-organ lists, generated map blocks and tables).

    Merged in order (2026-09-25):

    1. mind: birth the Eyes organ row (repos.yaml, ORGANS, hook, ROUTING, decision record) — PyAutoMind#437 #438 — a1d5092e (merged first, with its firewall leg red by construction: the installed hook copies were the previous generation)
    2. docs: organism map block gains PyAutoEyes (PyAutoMind#437) PyAutoCortex#44 — 3a780e9c
    3. docs: organism map block gains PyAutoEyes (PyAutoMind#437) PyAutoNerves#171 — 921a590f
    4. docs: organism map block gains PyAutoEyes (PyAutoMind#437) PyAutoGut#8 — 8cc3ff0e
    5. organism: the Eyes join as an organ — ORGANISM.md, docs, SIBLING_ORGANS, Eyes conductor → PyAutoEyes (PyAutoMind#437) PyAutoBrain#415 — 7684c838 (re-run green once Mind had merged)
    6. workspace: the Eyes join the organ siblings and the organism poll group (PyAutoMind#437) PyAutoHeart#237 — 059059d9
    7. workspace: the Eyes join the organ siblings (PyAutoMind#437) PyAutoHands#288 — 8f38ef4f
    8. hub: name the Eyes in the organism card (PyAutoMind#437) pyautolabs.github.io#11 — 3948062d
    9. readme: regenerated organ table gains the Eyes row (PyAutoMind#437) PyAutoScientist#34 — c3314a6f

    Heart was RED for unrelated reasons; shipped under the human's RED override: "can you do 2 and 3 i authorize RED overrule".

    Deviations: the .github org-profile organ row was applied by the human. The organ order follow-up (the human ruled that Eyes goes after Memory and before Heart, not after Gut) is filed as a separate task.

  3. added a commit that references this issue on Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions