Repository navigation
Description
Overview
The Cortex register and board treat every project the same, so paper-bound science projects (e.g. euclid_detailed) and exploratory development projects (e.g. dm_sightlines, ep_gnfw_slope) sit in one undivided list. This task derives each project's category from the folder in its local_path and splits the board, census, the check-in summary and Science/STATE.md into a Science section and a Development section. Ruling (human, 2026-11-19): folder category only — no new projects.yaml field.
Plan
- Derive each project's category from the category folder in its
local_pathstring, in one function in the Brain cortex conductor (string only, never the filesystem, so CI renders stay machine-independent). - Report the category everywhere the conductor reports a project:
census(text and--json), thecheckinsummary, the board (dashboard.md/.html,state.json) and theScience/STATE.mdmirror. - Render the board and
STATE.mdin two sections — Science (active,complete,archive) and Development (development) — each keeping today's Active / Dormant / Retired summary and cards, each with its own Running / Open / Projects counts. The overall counts table (Running, Open, Active, Dormant, Retired) stays exactly as it is. - Add an optional
--category active|developmentfilter topullandcheckin(narrows which projects are pulled; the board always renders whole). - Record schema decision 63 and update
REFERENCE.md; regenerate the committed board. - Tests in both repos.
- Tier + merge mode: effective level: supervised; merge mode: human /prm
Detailed implementation plan
Affected Repositories
- PyAutoCortex (primary)
- PyAutoBrain
Branch Survey
| Repository | Current Branch | Dirty? |
|---|---|---|
| ./organs/PyAutoCortex | main | clean |
| ./organs/PyAutoBrain | main | clean (claimed by shift-smoke-targeted → this task filed as blocked) |
Suggested branch: feature/cortex-development-split
Worktree root: ~/Code/PyAutoLabs-wt/cortex-development-split/
Implementation Steps
- PyAutoBrain —
agents/conductors/cortex/_cortex.py- New
category_of(row) -> str:_category_of(local_path)[1], reusing the existing_category_of/SCIENCE_CATEGORIES; a row under no Science category (e.g. a repo root under~/Code) falls back to"active"(Science), so nothing drops off the board. _ledger_dictgainscategory;census()gainsc["sections"]={science, development}each withrunning,open,projects. The existingc["counts"]keys are untouched (Brain board /board/_state.py/state.jsonv1 read them).emit_censustext gains a category column;--jsoncarries it automatically.render_dashboard,render_dashboard_html,render_science_state: outer loop over the two kinds, the present status sections (_status_sections,_summary_rows,_section_ledgers) nested inside, filtered by kind; Development omitted when empty. Adjusttests/board_sections_browser.cjsanchors only if they break.checkin_payload/ check-in summary: category tag per project.checkin_keysand thepull/checkinargparse: optional--category {active,development}.
- New
- PyAutoBrain —
tests/test_cortex_conductor.py: derivation (each category, a non-category path, trailing slash); censuscategory+ section counts; board grouping (each section lists exactly its projects; overall table unchanged);--categoryfilter on pull/checkin keys. - PyAutoCortex
docs/schema_decisions.md: decision 63 (2026-11-19) — category derived from thelocal_pathfolder, no field; an explicitintentfield was considered and declined (drift).REFERENCE.md:projects.yamlfields table (category is derived) and "The board" (two sections, per-section counts).- Regenerate the board with
pyauto-brain cortex dashboard --apply. tests/test_cortex.py: fromprojects.yaml, assert the committeddashboard.mdplaces each project in the section matching its folder.- No edit to
projects.yaml, any ledger, any status or any Science folder.
- Witness:
pyauto-brain cortex census --jsongives every project acategoryequal to itslocal_pathfolder;dashboard.mdhas Science and Development sections with per-section Running / Open / Projects counts beside the unchanged overall table;python3 scripts/cortex.py checkis OK; new tests in both repos pass.
Key Files
PyAutoBrain/agents/conductors/cortex/_cortex.py— census, renderers, CLIPyAutoBrain/tests/test_cortex_conductor.py— conductor testsPyAutoCortex/docs/schema_decisions.md,PyAutoCortex/REFERENCE.md— docsPyAutoCortex/dashboard.md,dashboard.html,state.json— regenerated boardPyAutoCortex/tests/test_cortex.py— register/board consistency test
Original Prompt
Click to expand starting prompt
Cortex: split development projects from paper-bound science projects on the register and board
Type: feature
Target: PyAutoCortex
Repos:
- PyAutoCortex
- PyAutoBrain
Difficulty: medium
Autonomy: supervised
Priority: medium
Lane: any
Witness:pyauto-brain cortex census --jsoncarries acategoryfor every project, equal to the category folder in itslocal_path; the generateddashboard.mdhas a "Science" section and a "Development" section, each listing exactly the projects of that category, with per-section Running / Open / Projects counts beside the unchanged overall counts table;python3 scripts/cortex.py checkis OK; the new tests in both repos pass.
Why
The Cortex treats every project the same. A paper-bound science project (for example
euclid_detailed, sdssj0946_subhalo) and an exploratory development project (for example
dm_sightlines, stars_dm_slope, ep_gnfw_slope) have identical rows, identical ledgers and
sit in one undivided list on the board and in Science/STATE.md.
The human wants the two kinds told apart at a glance. Development projects exist to develop or
validate the software; their outcome is library issues and PRs filed in PyAutoMind, not a paper.
They are exploratory, they are not Mind epics, and most of their day-to-day state lives in the
project's own wiki/project/. Reading the board today, nothing says which projects are which.
What exists today (checked 2026-11-19)
development/is already an official Science category: schema decision 62 in
@PyAutoCortex/docs/schema_decisions.md(2026-10-29). The laptop tree is
<Science root>/<category>/<project>with categoriesactive,development,complete,
archive, and RAL mirrors it under/mnt/ral/jnightin/<category>/.- In
@PyAutoCortex/projects.yamlthe category appears only insidelocal_pathandral_root.
There is no category or kind field.statusisactive | dormant | planned | retiredfor
every project. - The
driftverb of the Brain's cortex conductor
(@PyAutoBrain/agents/conductors/cortex/_cortex.py) already parses the category out of the
paths and checks it against the tree. - The board (
dashboard.md,dashboard.html,state.json), thecensusverb, thecheckin
summary and theScience/STATE.mdmirror are rendered by that conductor and do not group or
label by category.REFERENCE.md"The board" describes one counts table (Running, Open,
Projects), one Summary table and one card per project. - Development-category rows today:
analytic_gaussian,ep_toy_gaussian,ic50_workspace,
slope_hierarchy_scale,dm_sightlines,stars_dm_slope,ep_gnfw_slope.
Ask
- Derive each project's category from the category folder in its
local_pathstring, in one
place, and expose it wherever the conductor reports a project:census(text and--json),
thecheckinsummary, the board and theSTATE.mdmirror. - Render the board and
STATE.mdin two sections, Science (categoriesactive, and
complete/archivefor retired rows as now) and Development. Within each, keep the
present layout. Add per-section Running / Open / Projects counts. - Let
pullandcheckintake an optional--categoryfilter. - Record the change as a new dated entry in
docs/schema_decisions.mdand update
REFERENCE.md(theprojects.yamlfields table and "The board"). - Tests in both repos for the derivation, the grouping and the filter.
Constraints
- Derive, do not add a field, unless the ruling below says otherwise. A second copy of the
category inprojects.yamlwould be one more thing to drift. - The derivation must read the
local_pathstring only, never the filesystem:census()has to
stay machine-independent because the board is rendered in CI (decision 62). - Keep the overall counts table and its three row names exactly as they are; the Brain board and
the organ-cockpit feed (board/_state.py,state.jsonv1) read them. projects.yamlis code: any edit to it goes to the human as a PR. Ledgers change only through
scripts/cortex.pyverbs. The ledger grammar (Now / Runs / Log) does not change.- Do not move any project, change any status or touch any Science folder.
Ruling needed before building
Is the folder category enough to say "development", or does the human want an explicit intent
that is independent of the folder (for example intent: paper | development | exploratory), so
that an exploratory project could live in active/ or a development project could be marked
paper-bound later? The default in this prompt is: folder category only, two sections.
Out of scope
A separate ledger format, workflow or orchestrator for development projects; tracking
development tasks in the Cortex (it is not a task tracker); anything in PyAutoMind beyond this
prompt.
Activity
Jammy2211 commentedon Nov 20, 2026
Shipped
fbe9fd7): the conductor derives each project's category from itslocal_pathfolder (string only).census/ check-in name it; the board andScience/STATE.mdrender Science and Development sections with per-kind Running / Open / Projects counts;pull/checkintake--category. The overall counts table andstate.jsonare unchanged.e02a038): schema decision 66,REFERENCE.md, the regenerated board, and a test that each project sits in its folder's section.category/intentfield.Science/STATE.mdtakes the new layout at the next check-in.🤖 Generated with Claude Code