Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ Canonical boundaries live in `PyAutoBrain/ORGANISM.md`; the full body map

| Organ | Repo | Role |
|-------|------|------|
| **Mind** | PyAutoMind | Intent, goals, priorities, workflow state; every task starts as a markdown prompt here. |
| **Brain** | PyAutoBrain | Reasoning/orchestration layer; how work is decomposed and routed; the specialist agents. |
| **Hands** | PyAutoHands | Packaging, tagging, notebook generation, PyPI release execution. |
| **Heart** | PyAutoHeart | Health/readiness — the authoritative "is it safe to release?" verdict. |
| **Mind** | PyAutoMind | Intent, goals, priorities, workflow state; every task starts as a markdown prompt here. |
| **Cortex** | PyAutoCortex | The Cortex — where the organism learns what is true: the science body map (`projects.yaml`) and the rulings of record for every science run; the science mirror of the Mind (runs and rulings, not prompts and PRs). |
| **Memory** | PyAutoMemory | Long-term scientific/software/project knowledge (see science pointer below). |
| **Gut** | PyAutoGut | Owns the lifecycle of condemned self-material (stale branches, stashes, dead code/tests): holds it as durable, recoverable git refs through a transit window and voids it on a sweep. The storage mirror of Memory (retention vs release). |
| **Heart** | PyAutoHeart | Health/readiness — the authoritative "is it safe to release?" verdict. |
| **Hands** | PyAutoHands | Packaging, tagging, notebook generation, PyPI release execution. |
| **Nerves** | PyAutoNerves | The Nerves — the configuration/serialization layer connecting workspace conventions to libraries (layered config, version handshake, test_mode), delivered as the `autonerves` package. |
| **Gut** | PyAutoGut | Owns the lifecycle of condemned self-material (stale branches, stashes, dead code/tests): holds it as durable, recoverable git refs through a transit window and voids it on a sweep. The storage mirror of Memory (retention vs release). |

Call chain (always this order): **Brain → Heart (gate) → Build (execute)**. Brain agents are **conductors** (front-door; a human drives them; they decide *and* act) or **faculties** (read-only opinions the conductors consult; they judge and stop). New capability grows as a faculty, not a new organ, unless it owns state or effects no existing organ can.

Expand Down
19 changes: 12 additions & 7 deletions ORGANISM.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ organs plan, build, test and release it, and you make every judgment call.

| Organ | Repo | Role and boundary |
|-------|------|-------------------|
| **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). |
| **Brain** | PyAutoBrain | Figures out *how* — reasoning, planning, decomposition, routing; hosts the specialist agents. Owns **no state, no health checks, no execution mechanics**. |
| **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 | Learns *what is true* — the science body map (`projects.yaml`) and the rulings of record for every science run; the science mirror of the Mind (runs and rulings ↔ prompts and PRs). The Mind decides what to build, the Brain routes the work and executes nothing, the Cortex learns what is true. A verdict recorded only outside the Cortex does not exist: project ledgers are commentary that cite the ruling. |
| **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. |
| **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. |
| **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. |
| **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. |
| **Gut** | PyAutoGut | Owns the lifecycle of *condemned self-material* — stale branches, stashes, dead code/tests. Holds each as a durable, recoverable git ref through a transit window and **voids** it on a sweep. The storage mirror of Memory (retention ↔ release); the hygiene conductor drives it, as vitals reads Heart. |
| **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. The seventh organ. |

*Hands* and *Build* name the **same organ** (PyAutoHands) throughout this
document: the organ is the **Hands**, and *Build* is the call-chain step it
Expand Down Expand Up @@ -65,8 +66,12 @@ human types); let faculties multiply behind them.
New capability grows as a **faculty** (cheap: one directory, one doc, one
script), not as a repo. A new organ costs an `AGENTS.md`, a `CLAUDE.md` stub,
install wiring, a body-map row and boundary prose — it must earn that by
owning state or effects no existing organ can. Configuration/signalling is the
one standing exception that already earned organ status: it is the **Nerves**
owning state or effects no existing organ can. Two capabilities have earned
organ status that way. Configuration/signalling is the **Nerves**
(PyAutoNerves), the base config/serialization layer every library imports — new
config surfaces belong there, not in a new organ. The human interaction layer
is the command surface (`/route` + the verb commands), which is part of Brain.
config surfaces belong there, not in a new organ. Learning what is true is the
**Cortex** (PyAutoCortex), the second organ to earn it: it owns state no organ
owned before — the science body map and the rulings of record — so science
runs and their verdicts belong there, not in the Mind. The human interaction
layer is the command surface (`/route` + the verb commands), which is part of
Brain.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ bin/pyauto-brain vitals # read the Heart's readiness verdict
bash bin/install.sh # symlink every organ's skills into ~/.claude
```

The seven organs the Brain coordinates — Mind (intent), Brain (reasoning),
Heart (health), Hands (release), Memory (knowledge), Gut (shedding), Nerves
(configuration) — are defined once in [ORGANISM.md](ORGANISM.md), which this
The eight organs the Brain coordinates — Brain (reasoning), Mind (intent),
Cortex (learning what is true), Memory (knowledge), Heart (health), Hands
(release), Nerves (configuration), Gut (shedding) — are defined once in
[ORGANISM.md](ORGANISM.md), which this
repo hosts. Agent contracts and the generated command table are in
[AGENTS.md](AGENTS.md). The full organism documentation — including how to
fork it and lead your own — is at <https://pyautoscientist.readthedocs.io>,
Expand Down
5 changes: 3 additions & 2 deletions agents/_pyauto_root.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@
# want) but a Brain-only remote session is still a legitimate root.
SIBLING_ORGANS = (
"PyAutoMind",
"PyAutoCortex",
"PyAutoMemory",
"PyAutoHeart",
"PyAutoHands",
"PyAutoMemory",
"PyAutoGut",
"PyAutoNerves",
"PyAutoGut",
)

_BRAIN_HOME = Path(__file__).resolve().parents[1]
Expand Down
4 changes: 2 additions & 2 deletions bin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ CODEX_HOME="${CODEX_HOME:-$HOME/.codex}"
# are skipped, so this runs in a partial/web checkout.
COMMANDS_BEGIN="<!-- pyauto:commands:begin -->"
COMMANDS_END="<!-- pyauto:commands:end -->"
ORGAN_REPOS=(PyAutoMind PyAutoBrain PyAutoHeart PyAutoHands PyAutoMemory)
ORGAN_REPOS=(PyAutoBrain PyAutoMind PyAutoMemory PyAutoHeart PyAutoHands)

# Emit the canonical command-surface block (identical in every organ) to stdout,
# sourced from the agent registry in bin/pyauto-brain — the single source of
Expand Down Expand Up @@ -185,7 +185,7 @@ check_agents_surface() {
# is checked out. The AGENTS.md command surface (above) still advertises the full
# verb set + hosting organ. Generated + drift-checked — do not hand-edit these
# dirs. Symlinks (single source = skills/), matching the user-level install.
DISCOVERY_REPOS=(PyAutoMind PyAutoBrain PyAutoHeart PyAutoHands autolens_profiling)
DISCOVERY_REPOS=(PyAutoBrain PyAutoMind PyAutoHeart PyAutoHands autolens_profiling)
DISCOVERY_DIRS=(.claude/commands .claude/skills .codex/skills)

# Emit the (link<TAB>target) pairs a repo's committed discovery should contain,
Expand Down
136 changes: 68 additions & 68 deletions board/_theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,26 @@
# hero: (lift, base) — the hero's radial gradient, echoing each logo's
# vignette: a tinted lift behind the wordmark falling to near-black.
ORGANS = {
"mind": {
"organ": "Mind",
"tagline": "Intent. Priority. Flow.",
"ink_light": "#0a7d72", "ink_dark": "#2ee6cf", "glow": "#00d1ba",
"hero": ("#07302b", "#000000"),
},
"brain": {
"organ": "Brain",
"tagline": "Reason. Plan. Decide.",
"ink_light": "#2159c9", "ink_dark": "#6f9dff", "glow": "#4d8bff",
"glow2": "#a855f7",
"hero": ("#16234f", "#000312"),
},
"mind": {
"organ": "Mind",
"tagline": "Intent. Priority. Flow.",
"ink_light": "#0a7d72", "ink_dark": "#2ee6cf", "glow": "#00d1ba",
"hero": ("#07302b", "#000000"),
},
"memory": {
"organ": "Memory",
"tagline": "Remember. Learn. Evolve.",
"ink_light": "#6b34d6", "ink_dark": "#b37eff", "glow": "#b37eff",
"glow2": "#8b5cf6",
"hero": ("#221345", "#000000"),
},
"heart": {
"organ": "Heart",
"tagline": "Check. Validate. Protect.",
Expand All @@ -92,13 +99,6 @@
"ink_light": "#9a5400", "ink_dark": "#ffa733", "glow": "#ff9201",
"hero": ("#372100", "#000000"),
},
"memory": {
"organ": "Memory",
"tagline": "Remember. Learn. Evolve.",
"ink_light": "#6b34d6", "ink_dark": "#b37eff", "glow": "#b37eff",
"glow2": "#8b5cf6",
"hero": ("#221345", "#000000"),
},
# The umbrella is the one board with no logo to sample: the accent and
# the tagline are designed to sit in the family rather than read off a
# file. Replace both from the logo if that repo ever grows one.
Expand All @@ -122,30 +122,6 @@
# are ~1KB of path data, stay sharp on any screen, and take the accent.
# Keep them that way — a mark is a logo's glyph in line art, not a rendering.
MARKS = {
# Mind — a left-facing head profile, a check inside the skull, three
# node-tipped signal lines leaving the back of the head, inside a ring.
"mind": (
'<circle cx="24" cy="24" r="20.4"/>'
'<path d="M20.2,37.6 L20.2,33.6 '
'C20.2,32.4 19.4,31.6 18.4,30.8 '
'C16.8,29.6 15.8,28.2 15.6,26.6 '
'C15.5,25.6 14.9,25.2 13.9,24.9 '
'C12.6,24.5 12.3,23.7 13.0,22.7 '
'C13.8,21.6 14.5,20.6 14.6,19.4 '
'C15.0,15.4 18.2,12.2 22.4,11.8 '
'C27.2,11.3 31.6,14.6 32.3,19.2 '
'C32.8,22.4 31.6,25.0 30.6,27.0 '
'C29.9,28.4 29.6,29.6 29.6,31.2 '
'L29.6,37.6"/>'
'<circle cx="24.6" cy="19.6" r="4.4"/>'
'<path d="M22.5,19.7 L24.0,21.3 L26.8,18.1"/>'
'<path d="M34.2,16.5 L38.8,16.5 M35.2,21.0 L39.4,21.0 '
'M33.6,25.5 L37.2,25.5"/>'
'<g fill="currentColor" stroke="none">'
'<circle cx="40.1" cy="16.5" r="1.4"/>'
'<circle cx="40.7" cy="21.0" r="1.4"/>'
'<circle cx="38.5" cy="25.5" r="1.4"/></g>'
),
# Brain — a circuit brain: two lobed hemispheres either side of a spine,
# each branching into elbowed, node-tipped traces, inside a ring.
"brain": (
Expand Down Expand Up @@ -187,6 +163,61 @@
'<circle cx="26.8" cy="32.8" r="1.2"/>'
'<circle cx="24" cy="33.8" r="1.4"/></g>'
),
# Mind — a left-facing head profile, a check inside the skull, three
# node-tipped signal lines leaving the back of the head, inside a ring.
"mind": (
'<circle cx="24" cy="24" r="20.4"/>'
'<path d="M20.2,37.6 L20.2,33.6 '
'C20.2,32.4 19.4,31.6 18.4,30.8 '
'C16.8,29.6 15.8,28.2 15.6,26.6 '
'C15.5,25.6 14.9,25.2 13.9,24.9 '
'C12.6,24.5 12.3,23.7 13.0,22.7 '
'C13.8,21.6 14.5,20.6 14.6,19.4 '
'C15.0,15.4 18.2,12.2 22.4,11.8 '
'C27.2,11.3 31.6,14.6 32.3,19.2 '
'C32.8,22.4 31.6,25.0 30.6,27.0 '
'C29.9,28.4 29.6,29.6 29.6,31.2 '
'L29.6,37.6"/>'
'<circle cx="24.6" cy="19.6" r="4.4"/>'
'<path d="M22.5,19.7 L24.0,21.3 L26.8,18.1"/>'
'<path d="M34.2,16.5 L38.8,16.5 M35.2,21.0 L39.4,21.0 '
'M33.6,25.5 L37.2,25.5"/>'
'<g fill="currentColor" stroke="none">'
'<circle cx="40.1" cy="16.5" r="1.4"/>'
'<circle cx="40.7" cy="21.0" r="1.4"/>'
'<circle cx="38.5" cy="25.5" r="1.4"/></g>'
),
# Memory — an open book with a node-tree growing out of its spine and a
# scatter of stars, under an arc open at the bottom.
"memory": (
'<path d="M10.6,37.6 A20.4,20.4 0 1 1 37.4,37.6"/>'
'<path d="M24.0,28.2 C20.7,25.5 15.6,24.4 9.6,24.9 '
'L9.6,37.8 C15.6,37.3 20.7,38.4 24.0,41.1 '
'C27.3,38.4 32.4,37.3 38.4,37.8 '
'L38.4,24.9 C32.4,24.4 27.3,25.5 24.0,28.2 Z"/>'
'<path d="M24.0,28.2 L24.0,41.1"/>'
'<path d="M13.0,28.6 C15.6,28.7 17.9,29.2 19.8,30.1 '
'M13.0,30.7 C15.6,30.8 17.9,31.3 19.8,32.2 '
'M13.0,32.8 C15.6,32.9 17.9,33.4 19.8,34.3 '
'M35.0,28.6 C32.4,28.7 30.1,29.2 28.2,30.1 '
'M35.0,30.7 C32.4,30.8 30.1,31.3 28.2,32.2 '
'M35.0,32.8 C32.4,32.9 30.1,33.4 28.2,34.3"/>'
'<path d="M24.0,28.0 L24.0,12.6 M24.0,19.0 L19.6,16.2 '
'M24.0,23.6 L17.6,20.2 M24.0,19.0 L28.4,16.2 '
'M24.0,23.6 L30.4,20.2"/>'
'<g fill="currentColor" stroke="none">'
'<circle cx="24" cy="11.4" r="1.5"/>'
'<circle cx="19.2" cy="16.0" r="1.3"/>'
'<circle cx="17.2" cy="20.0" r="1.3"/>'
'<circle cx="28.8" cy="16.0" r="1.3"/>'
'<circle cx="30.8" cy="20.0" r="1.3"/></g>'
'<path d="M12.6,14.6 Q12.6,17.0 10.2,17.0 Q12.6,17.0 12.6,19.4 '
'Q12.6,17.0 15.0,17.0 Q12.6,17.0 12.6,14.6 Z"/>'
'<path d="M35.4,13.0 Q35.4,15.2 33.2,15.2 Q35.4,15.2 35.4,17.4 '
'Q35.4,15.2 37.6,15.2 Q35.4,15.2 35.4,13.0 Z"/>'
'<path d="M15.8,21.8 Q15.8,23.4 14.2,23.4 Q15.8,23.4 15.8,25.0 '
'Q15.8,23.4 17.4,23.4 Q15.8,23.4 15.8,21.8 Z"/>'
),
# Heart — a heart outline crossed by an ECG trace, with the check badge
# sitting in the ring's lower-right gap.
"heart": (
Expand Down Expand Up @@ -222,37 +253,6 @@
'<path d="M3.8,26.2 L11.6,26.2 M2.2,30.4 L8.6,30.4 '
'M5.0,34.6 L9.4,34.6"/>'
),
# Memory — an open book with a node-tree growing out of its spine and a
# scatter of stars, under an arc open at the bottom.
"memory": (
'<path d="M10.6,37.6 A20.4,20.4 0 1 1 37.4,37.6"/>'
'<path d="M24.0,28.2 C20.7,25.5 15.6,24.4 9.6,24.9 '
'L9.6,37.8 C15.6,37.3 20.7,38.4 24.0,41.1 '
'C27.3,38.4 32.4,37.3 38.4,37.8 '
'L38.4,24.9 C32.4,24.4 27.3,25.5 24.0,28.2 Z"/>'
'<path d="M24.0,28.2 L24.0,41.1"/>'
'<path d="M13.0,28.6 C15.6,28.7 17.9,29.2 19.8,30.1 '
'M13.0,30.7 C15.6,30.8 17.9,31.3 19.8,32.2 '
'M13.0,32.8 C15.6,32.9 17.9,33.4 19.8,34.3 '
'M35.0,28.6 C32.4,28.7 30.1,29.2 28.2,30.1 '
'M35.0,30.7 C32.4,30.8 30.1,31.3 28.2,32.2 '
'M35.0,32.8 C32.4,32.9 30.1,33.4 28.2,34.3"/>'
'<path d="M24.0,28.0 L24.0,12.6 M24.0,19.0 L19.6,16.2 '
'M24.0,23.6 L17.6,20.2 M24.0,19.0 L28.4,16.2 '
'M24.0,23.6 L30.4,20.2"/>'
'<g fill="currentColor" stroke="none">'
'<circle cx="24" cy="11.4" r="1.5"/>'
'<circle cx="19.2" cy="16.0" r="1.3"/>'
'<circle cx="17.2" cy="20.0" r="1.3"/>'
'<circle cx="28.8" cy="16.0" r="1.3"/>'
'<circle cx="30.8" cy="20.0" r="1.3"/></g>'
'<path d="M12.6,14.6 Q12.6,17.0 10.2,17.0 Q12.6,17.0 12.6,19.4 '
'Q12.6,17.0 15.0,17.0 Q12.6,17.0 12.6,14.6 Z"/>'
'<path d="M35.4,13.0 Q35.4,15.2 33.2,15.2 Q35.4,15.2 35.4,17.4 '
'Q35.4,15.2 37.6,15.2 Q35.4,15.2 35.4,13.0 Z"/>'
'<path d="M15.8,21.8 Q15.8,23.4 14.2,23.4 Q15.8,23.4 15.8,25.0 '
'Q15.8,23.4 17.4,23.4 Q15.8,23.4 15.8,21.8 Z"/>'
),
# Umbrella — no logo to sample, so the family language (ring, line-art,
# node dots) applied to the double helix the board already carried.
"organism": (
Expand Down
4 changes: 2 additions & 2 deletions config/policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ board:
# (yaml) and by the Mind renderer's footer (stdlib regex on this block —
# keep one `name: Repo` pair per line).
boards:
mind: PyAutoMind
brain: PyAutoBrain
mind: PyAutoMind
memory: PyAutoMemory
heart: PyAutoHeart
hands: PyAutoHands
memory: PyAutoMemory
organism: PyAutoScientist
Loading
Loading