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
13 changes: 13 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,19 @@ jobs:
with:
repository: PyAutoLabs/PyAutoCortex
path: PyAutoCortex
# A Brain branch that changes the conductor alongside a Cortex schema
# change is tested against the Cortex branch of the SAME NAME when one
# exists (the two land as a pair), and against Cortex main otherwise.
- name: Prefer the same-named PyAutoCortex branch, if any
working-directory: PyAutoCortex
env:
BR: ${{ github.head_ref || github.ref_name }}
run: |
if git fetch --depth 1 origin "$BR" 2>/dev/null; then
git checkout -q FETCH_HEAD && echo "PyAutoCortex @ $BR"
else
echo "PyAutoCortex @ main (no branch named $BR)"
fi
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
Expand Down
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Canonical boundaries live in `PyAutoBrain/ORGANISM.md`; the full body map
|-------|------|------|
| **Brain** | PyAutoBrain | Reasoning/orchestration layer; how work is decomposed and routed; the specialist agents. |
| **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). |
| **Cortex** | PyAutoCortex | The Cortex — where the organism keeps track of what is true: the science body map (`projects.yaml`) and one ledger per science project (what was run, what came back, what was learned, where to pick up); the science mirror of the Mind (runs and a dated log, not prompts and PRs). |
| **Memory** | PyAutoMemory | Long-term scientific/software/project knowledge (see science pointer below). |
| **Heart** | PyAutoHeart | Health/readiness — the authoritative "is it safe to release?" verdict. |
| **Hands** | PyAutoHands | Packaging, tagging, notebook generation, PyPI release execution. |
Expand Down Expand Up @@ -141,7 +141,7 @@ the `/<verb>` slash commands.
| `workspace` | The voice — the organism's expressive function: plan/survey workspace + HowTo example authorship (workspace\|howto registers) — WorkspaceDecision (never writes) | `bin/pyauto-brain workspace` |
| `eyes` | The perceptive function — the organism's sense of its own appearance: survey/review a visualization workspace's figure surface, critiques route to intake/start_dev — EyesSurvey/EyesReviewSurface (never renders, never edits) | `bin/pyauto-brain eyes` |
| `profiling` | The proprioceptive function — the organism's sense of its own effort: campaign/ingest/triage plans over the autolens_profiling workspace — ProfilingDecision | `bin/pyauto-brain profiling` |
| `cortex` | The learning function — where the organism finds out what is true: the science check-in over PyAutoCortex ('cortex checkin') — pull every active project through its own sync CLI, score every live run against its pre-registered witness, move what came back to awaiting-ruling, re-render the board and summarise it by project; its door never submits a run and never writes a ruling; the agent submits only on the human's ask, and the ruling is the human's word | `bin/pyauto-brain cortex` |
| `cortex` | The learning function — where the organism keeps track of what is true: the per-project science ledger over PyAutoCortex ('cortex checkin') — pull every active project through its own sync CLI, show where each run stands, re-render the board; it records cluster facts and the human's words, never a verdict of its own | `bin/pyauto-brain cortex` |
| `hygiene` | The maintenance function — the organism's sense of its own upkeep: code-quality debt (dev-loop cost + tidiness), delegating fixes — HygieneDecision | `bin/pyauto-brain hygiene` |
| `clone` | The Mitosis Agent: partition the reference assistant, analyze the domain, emit the CloneDecision; --apply --mode lightweight-seed delegates the seed birth to Build; 'clone sync' patches the reference's generic-file diff onto the born siblings (dry run by default; rejected hunks are a human decision) | `bin/pyauto-brain clone` |
| `build` | Coordinate execution: consult the vitals faculty, then delegate to PyAutoHands | `bin/pyauto-brain build` |
Expand Down
4 changes: 2 additions & 2 deletions agents/_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ _resolve_dir() {
resolve_mind() { _resolve_dir PYAUTO_MIND PyAutoMind; }

# resolve_cortex — locate the PyAutoCortex checkout (the organism's science
# state: phases, gates, runs, rulings of record). Resolved independently of the
# Mind so a session holding one organ and not the other still works.
# state: one ledger per project — Now, Runs, Log). Resolved independently of
# the Mind so a session holding one organ and not the other still works.
resolve_cortex() { _resolve_dir PYAUTO_CORTEX PyAutoCortex; }

# resolve_memory — locate the PyAutoMemory checkout (the organism's long-term
Expand Down
2 changes: 1 addition & 1 deletion agents/conductors/batch/_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -2689,7 +2689,7 @@ def read_review(text: str) -> dict:
#: The packet's opening line. One organ since 2026-09-03: the science board and
#: everything that modelled the human as a reviewer working a scheduled shift
#: were retired (PyAutoCortex#9), and checking in on the science is
#: `pyauto-brain cortex collect` instead.
#: `pyauto-brain cortex checkin` instead.
DEV_LEDE = ("{n} of {total} ended member(s) delivered on the evidence — a PR "
"with a non-empty diff and checks that ran.")

Expand Down
2 changes: 1 addition & 1 deletion agents/conductors/batch/_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

It rendered a second box for the Cortex until 2026-09-03, when the science
review slot was retired (PyAutoCortex#9); checking in on the science is
`pyauto-brain cortex collect` now, and that surface has no board of its own.
`pyauto-brain cortex checkin` now, and that surface has no board of its own.
"""

from __future__ import annotations
Expand Down
Loading
Loading