Skip to content

feat: split development projects from science projects on the board #95

Closed

Description

@Jammy2211

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_path string, 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), the checkin summary, the board (dashboard.md / .html, state.json) and the Science/STATE.md mirror.
  • Render the board and STATE.md in 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|development filter to pull and checkin (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

  1. 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_dict gains category; census() gains c["sections"] = {science, development} each with running, open, projects. The existing c["counts"] keys are untouched (Brain board / board/_state.py / state.json v1 read them).
    • emit_census text gains a category column; --json carries 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. Adjust tests/board_sections_browser.cjs anchors only if they break.
    • checkin_payload / check-in summary: category tag per project.
    • checkin_keys and the pull / checkin argparse: optional --category {active,development}.
  2. PyAutoBrain — tests/test_cortex_conductor.py: derivation (each category, a non-category path, trailing slash); census category + section counts; board grouping (each section lists exactly its projects; overall table unchanged); --category filter on pull/checkin keys.
  3. PyAutoCortex
    • docs/schema_decisions.md: decision 63 (2026-11-19) — category derived from the local_path folder, no field; an explicit intent field was considered and declined (drift).
    • REFERENCE.md: projects.yaml fields 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: from projects.yaml, assert the committed dashboard.md places each project in the section matching its folder.
    • No edit to projects.yaml, any ledger, any status or any Science folder.
  4. Witness: pyauto-brain cortex census --json gives every project a category equal to its local_path folder; dashboard.md has Science and Development sections with per-section Running / Open / Projects counts beside the unchanged overall table; python3 scripts/cortex.py check is OK; new tests in both repos pass.

Key Files

  • PyAutoBrain/agents/conductors/cortex/_cortex.py — census, renderers, CLI
  • PyAutoBrain/tests/test_cortex_conductor.py — conductor tests
  • PyAutoCortex/docs/schema_decisions.md, PyAutoCortex/REFERENCE.md — docs
  • PyAutoCortex/dashboard.md, dashboard.html, state.json — regenerated board
  • PyAutoCortex/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 --json carries a category for every project, equal to the category folder in its local_path; the generated dashboard.md has 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 check is 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 categories active, development, complete,
    archive, and RAL mirrors it under /mnt/ral/jnightin/<category>/.
  • In @PyAutoCortex/projects.yaml the category appears only inside local_path and ral_root.
    There is no category or kind field. status is active | dormant | planned | retired for
    every project.
  • The drift verb 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), the census verb, the checkin
    summary and the Science/STATE.md mirror 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

  1. Derive each project's category from the category folder in its local_path string, in one
    place, and expose it wherever the conductor reports a project: census (text and --json),
    the checkin summary, the board and the STATE.md mirror.
  2. Render the board and STATE.md in two sections, Science (categories active, and
    complete / archive for retired rows as now) and Development. Within each, keep the
    present layout. Add per-section Running / Open / Projects counts.
  3. Let pull and checkin take an optional --category filter.
  4. Record the change as a new dated entry in docs/schema_decisions.md and update
    REFERENCE.md (the projects.yaml fields table and "The board").
  5. 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 in projects.yaml would be one more thing to drift.
  • The derivation must read the local_path string 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.json v1) read them.
  • projects.yaml is code: any edit to it goes to the human as a PR. Ledgers change only through
    scripts/cortex.py verbs. 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

  1. Jammy2211 commented on Nov 20, 2026

    @Jammy2211
    ContributorAuthor

    Shipped

    🤖 Generated with Claude Code

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