From 6a124d948a715bf26134e6ffba09e06750f19921 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Thu, 1 Oct 2026 20:27:52 +0100 Subject: [PATCH] docs: adopt ecosystem responsibility roles and reconcile Eyes ownership --- ORGANISM.md | 45 +++++++++++++++++++++++++++++++++------ docs/concepts/organism.md | 21 ++++++++++++++---- docs/organs/eyes.md | 8 +++---- docs/satellites.md | 8 +++++++ skills/eyes/eyes.md | 6 ++++-- 5 files changed, 72 insertions(+), 16 deletions(-) diff --git a/ORGANISM.md b/ORGANISM.md index 98aeec81..0632cce2 100644 --- a/ORGANISM.md +++ b/ORGANISM.md @@ -16,7 +16,7 @@ organs plan, build, test and release it, and you make every judgment call. | **Mind** | PyAutoMind | Decides *what* — intent, goals, priorities, workflow state, the prompt registry and taxonomy. Also holds the body map (`repos.yaml`, the single source of repo identity). | | **Cortex** | PyAutoCortex | Keeps track of *what is true* — the science body map (`projects.yaml`) and **one ledger per science project** (`## Now`, the `## Runs` on the cluster, a `## Log` that only gets longer); the science mirror of the Mind (runs and a dated log ↔ prompts and PRs). Not a task tracker: it records cluster facts and the human's words, never a verdict of its own. | | **Memory** | PyAutoMemory | Long-term knowledge — *what the science says* (literature wikis, concepts, bibliographies). Operational history — *what the organism did* — lives in Mind (the `complete/` records, issues), not here. | -| **Eyes** | PyAutoEyes | Sees *what the figures look like* — one rendered gallery per library (lens, galaxy, fit, cti) of every visualizer output on realistic data, the harness that renders them, the instance registry and the board that is the single point of contact for the visual behaviour of the whole ecosystem. Plain git PNGs, re-rendered on library release. The Eyes see what is true of the figures — the perception mirror of the Heart (what the software shows, not whether it is healthy); the Brain's Eyes conductor drives it and does the judging, as vitals reads Heart. Renders and holds figures; never judges them and never edits library plot code (critiques route through intake). | +| **Eyes** | PyAutoEyes | Sees *what the figures look like* across the `_visualization` project repos. Owns the instance registry, the manifest read contract and the dashboard that links to project-owned PNGs. Project repos own producers, render harnesses, figures and manifests; Eyes renders no figures and copies none. The Brain's Eyes conductor drives review and judgment; accepted critiques route through intake, never directly into library plot code. | | **Heart** | PyAutoHeart | Determines whether the organism is healthy. `pyauto-heart readiness` is the **authoritative** GREEN/YELLOW/RED "is it safe to release?" gate. An observer: never writes into other repos, never triggers Build. | | **Hands** | PyAutoHands | Builds and releases — packaging, tagging, notebook generation, PyPI via `release.yml`. A pure executor: runs no readiness checks and never re-derives a gate decision. | | **Nerves** | PyAutoNerves | The configuration/serialization layer (`autonerves`) — layered config with overrides, the workspace↔library version handshake, `test_mode`, FITS/JSON I/O. Connects the organism's conventions to every library; the base layer the scientific libraries all import. | @@ -33,6 +33,37 @@ The scientific libraries (PyAutoFit, PyAutoArray, PyAutoGalaxy, PyAutoLens) and the workspaces are **capabilities the organism uses, not organs**. The full inventory is `PyAutoMind/repos.yaml`. +## Responsibility roles + +**Library, project and organ** name responsibilities, not levels in a strict +containment tree. A **repository** is the versioned container for those +responsibilities; it is not a separate middle level. + +| Role | Responsibility | Examples | +|------|----------------|----------| +| **Library** | Reusable capabilities, their APIs and behavioral contracts. | The scientific libraries and the `autonerves` package. | +| **Project** | Concrete applications, examples or measurement environments; their producers, execution details and local artifacts. | User workspaces, tutorials, profiling, inference and visualization repos. | +| **Organ** | An organism-wide responsibility with explicitly owned state or effects and interfaces to other roles. | Mind's development intent, Cortex's science records, Eyes' cross-project view. | + +Relationships can cross these roles: several projects can use one library, +and several organs can read evidence from one project. Nerves is an organ +that also supplies a library package. Eyes demonstrates a project-to-organ +read contract; it does not make evidence aggregation the definition of every +organ or move project producers into the organ. Cortex retains science +records and the human's observations; project artifacts do not replace them. + +**Workspace** retains its established meaning for example/tutorial projects +and, when qualified, a local checkout environment. The broader project role +can include workspace-family, `howto` and `project` categories without renaming +them. +The category in `PyAutoMind/repos.yaml` still selects the repository's existing +workflow and validation/release contract, as described in the +[category contract](docs/satellites.md). In particular, the `project` category's +"no release mechanics" expectation does not transfer to every repo serving a +project role. A responsibility role is not a `category: project` filter or a new registry +field. The body map's existing `role` and `public_role` strings remain descriptive +text, not a responsibility-role classification. + ## The call chain (always this order) ``` @@ -75,8 +106,10 @@ true is the **Cortex** (PyAutoCortex), the second organ to earn it: it owns state no organ owned before — the science body map and the per-project ledgers — so science runs and the human's notes on them belong there, not in the Mind. Seeing what the software shows is the **Eyes** (PyAutoEyes): it owns -the perception lifecycle — every library's rendered figures, their manifests, -the one render harness, the instance registry and the board — state that was -copy-pasted between workspace repos before, so figures belong there, not in a -per-library gallery. The human interaction layer is the command surface (`/route` + the -verb commands), which is part of Brain. +the cross-project instance registry, manifest read contract and dashboard. +Each visualization project retains its render harness, figures and generated +manifest; the organ reads those manifests and links to the figures. The +Brain's Eyes conductor owns review and judgment. A dashboard alone does not +waive the state-or-effects requirement for a new organ. The human interaction +layer is the command surface (`/route` + the verb commands), which is part of +Brain. diff --git a/docs/concepts/organism.md b/docs/concepts/organism.md index d84c75a0..444556ec 100644 --- a/docs/concepts/organism.md +++ b/docs/concepts/organism.md @@ -1,7 +1,7 @@ # The organism -The system is organised as a body: each repository is an **organ** with one -job, and the boundaries between them are load-bearing. The canonical +The system is organised around **organs**, each with an explicit responsibility, +working with libraries and projects. Their boundaries are load-bearing. The canonical definition lives in the Brain repo as [ORGANISM.md](https://github.com/PyAutoLabs/PyAutoBrain/blob/main/ORGANISM.md) — one page every organ links to instead of restating. This page summarises @@ -13,7 +13,7 @@ it and adds the framework/instance distinction an adopter needs. | **Mind** | PyAutoMind | Decides *what* — intent, goals, priorities, workflow state, the prompt registry, and the body map (`repos.yaml`). | | **Cortex** | PyAutoCortex | *Keeps track of what is true* — the science body map (`projects.yaml`) and one ledger per science project (`## Now`, the `## Runs` on the cluster, a `## Log` that only gets longer); the science mirror of the Mind (runs and a dated log ↔ prompts and PRs). Not a task tracker: it records cluster facts and the human's words, never a verdict of its own. | | **Memory** | PyAutoMemory | *Knows* — long-term domain knowledge: literature wikis, concepts, bibliographies. Pull-only; consulted, never load-bearing at runtime. | -| **Eyes** | PyAutoEyes | *Sees* — one rendered gallery per library (lens, galaxy, fit, cti) of every visualizer output on realistic data, the render harness, the instance registry and the board: the single point of contact for what the software shows. The perception mirror of the Heart (what the software shows, not whether it is healthy); renders and holds figures, never judges them — the Brain's Eyes conductor does. | +| **Eyes** | PyAutoEyes | *Sees* — the cross-project visualization registry, manifest read contract and dashboard. Project repos render and hold figures; Eyes links to them. The Brain's Eyes conductor handles judgment. | | **Heart** | PyAutoHeart | Decides whether the organism is *healthy*. `pyauto-heart readiness` is the authoritative GREEN/YELLOW/RED release gate. An observer: never writes into other repos, never triggers a build. | | **Hands** | PyAutoHands | *Does* — packaging, tagging, notebook generation, PyPI releases. A pure executor: never re-derives a gate decision. | | **Nerves** | PyAutoNerves | *Connects* — the configuration/serialization layer (`autonerves`): layered config, the workspace↔library version handshake, `test_mode`, FITS/JSON I/O. The base layer every library imports. | @@ -24,6 +24,19 @@ test suites, tutorials — is a **satellite**: a capability the organism works *on*, not part of the organism itself. The satellite kinds and what the organism expects of each are the {doc}`category contract <../satellites>`. +## Responsibility roles and repository categories + +The canonical [responsibility roles](https://github.com/PyAutoLabs/PyAutoBrain/blob/main/ORGANISM.md#responsibility-roles) +distinguish reusable library capabilities, concrete projects and organism-wide +responsibilities. They describe relationships rather than a containment tree: +Nerves, for example, is an organ that supplies a library package. A repository +is the container, and a workspace is one familiar kind of project. + +These roles do not replace the {doc}`repository categories <../satellites>` or +change their workflow and release gates. Profiling, inference and visualization +repos illustrate the project role; Eyes provides an existing cross-project +organ view. The project-to-organ boundary is described in {doc}`../organs/eyes`. + ## The call chain ``` @@ -45,7 +58,7 @@ The organs split on one line that matters for adoption: and policy files, not logic), and a drift check — the {ref}`tenant firewall ` — keeps it that way. - **Instance organs — Mind, Cortex, Memory, Eyes, Gut.** Committed state, - ledgers, knowledge, rendered figures, and shed material. These are + ledgers, knowledge, visualization registries and shed material. These are *inherently yours*: an adopter never forks the upstream Mind, Cortex, Memory, Eyes or Gut content, they create their own repos with the same documented shape. diff --git a/docs/organs/eyes.md b/docs/organs/eyes.md index 04dd39b3..22a2822c 100644 --- a/docs/organs/eyes.md +++ b/docs/organs/eyes.md @@ -1,6 +1,6 @@ # Eyes — PyAutoEyes -**What it owns:** the *perception lifecycle* as a **cross-project dashboard** +**What it owns:** the **cross-project visualization view** over the `_visualization` project repos (`autolens_visualization`, `autogalaxy_visualization`, `autofit_visualization` and `autocti_visualization`) — the registry of those repos, the read contract of @@ -67,9 +67,9 @@ conductor reasons over it. ## For an adopter Like Mind, Cortex, Memory and Gut, the Eyes are an **instance organ** — -inherently yours. You do not fork this repo's figures; you create your own -Eyes with the same shape, over your own libraries' visualization project -repos. +inherently yours. You create your own Eyes registry and dashboard over your +own libraries' visualization project repos. Those projects produce and retain +the figures; the organ reads their manifests and links to them. The organ was born through the `pyautoeyes-birth` epic: diff --git a/docs/satellites.md b/docs/satellites.md index 7ce0a9e4..7a188bdf 100644 --- a/docs/satellites.md +++ b/docs/satellites.md @@ -6,6 +6,14 @@ the category is a contract: it says what the repo is for and what the organism expects of it. You don't need the live instance's repos; you need repos that honour the contracts your body map declares. +Categories are distinct from the canonical +[library, project and organ responsibility roles](https://github.com/PyAutoLabs/PyAutoBrain/blob/main/ORGANISM.md#responsibility-roles). +The project role includes workspace-family, `howto` and `project` categories; it is +not a category rename or a filter for `category: project`. Resolve a repo by +its body-map identity and retain its declared category's workflow and release +expectations. In particular, a workspace serving a project role keeps its +workspace gates; the `project` row's "no release mechanics" does not apply to it. + | Category | What it is for | What the organism expects of it | |----------|----------------|--------------------------------| | `organ` | The organism repos themselves. | Framework identity — names survive a fork; excluded from the tenant firewall's instance-fact tokens. | diff --git a/skills/eyes/eyes.md b/skills/eyes/eyes.md index aacb59fc..8ed9e0f6 100644 --- a/skills/eyes/eyes.md +++ b/skills/eyes/eyes.md @@ -88,7 +88,9 @@ panels): ## Boundary -- The Eyes Agent decides and routes; the PyAutoEyes organ (or a workspace - instance) renders and holds the figures; intake/start_dev ship. No step edits plots directly from critique. +- The Eyes Agent decides and routes; the `_visualization` project repos + render and hold figures and publish their manifests. PyAutoEyes owns the + registry, manifest read contract and dashboard that links to those figures; + intake/start_dev ship accepted changes. No step edits plots directly from critique. - The core never fetches papers or figures — the session gathers reference material; the conductor only lists what it is given.