Skip to content

feat(cortex): split development projects from science projects - #698

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/cortex-development-split
Nov 20, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/cortex-development-split

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

The cortex conductor now tells development projects from science projects (PyAutoLabs/PyAutoCortex#95, schema decision 66). A project's category is the category folder its local_path names (<science root>/<category>/<project>), read from the string alone, never the filesystem, so the CI render matches the laptop's. A project in development/ is Development; every other category (and a root in no category) is Science. Human ruling 2026-11-19: folder only, no projects.yaml field.

  • census (text and --json) carries category per project and sections = per-kind Running / Open / Projects (Projects = rows that are not retired).
  • dashboard.md / .html and the Science/STATE.md mirror render a Science and a Development section (Development only when a row sits in development/), each with its own counts and the old Summary + Projects layout inside. Headings move one level down (Summary/Projects h3, status h4). The HTML ids the hero links to (#summary, #active, …) stay on the Science section; Development's ids are prefixed development-.
  • The overall counts table and state.json (v1) are unchanged, since the Brain board and cockpit read them.
  • The check-in dry run and read-back name each project's category.
  • pull and checkin take --category {active,development,complete,archive}.

Merge order: this PR first, then PyAutoLabs/PyAutoCortex (the regenerated board there is rendered by this code).

API Changes

Brain-internal conductor changes plus one new CLI option.

  • pyauto-brain cortex pull|checkin --category <category>: new and optional.
  • New conductor helpers: category_of, kind_of, section_counts, board_kinds. The census dict gains sections and a per-ledger category / kind.
    See full details below.

Test Plan

  • pytest tests/ -n 4: 2550 passed, 1 skipped
  • tests/test_cortex_conductor.py: 116 passed. The 12 new tests cover the derivation (each category, a non-category path, a trailing slash, no disk access), census category and per-kind counts, the board / HTML / STATE.md split, no Development section when there are no development rows, and the --category filter. Four layout tests are updated for the new heading levels.
  • On the real register: census --json category equals the local_path folder for every ledger. Development = the 7 projects named in the issue. checkin --category development reads back exactly those 7.
  • Heart dev-ship readiness (PyAutoCortex, PyAutoBrain): GREEN. Shown (non-blocking) reasons:
  • PyAutoGalaxy: 5 commit(s) behind origin
  • PyAutoLens: 5 commit(s) behind origin
  • manifest drift: end-at-deliverable blocks (generated) — 46 mismatch(es) vs PyAutoMind/repos.yaml
  • manifest drift: generated hooks (session-start + end-at-deliverable) — 2 mismatch(es) vs PyAutoMind/repos.yaml
  • PyAutoCortex: not Heart-gated: PR checks decide
Full API Changes (for automation & release notes)

Added

  • category_of(row) -> str: the category folder in local_path, '' when none
  • kind_of(row) -> str: 'development' or 'science'
  • section_counts(projects, rows) -> dict, board_kinds(c) -> list
  • census keys: sections; ledger dict keys: category, kind
  • CLI: --category on cortex pull and cortex checkin

Changed Behaviour

  • render_dashboard, render_dashboard_html, render_science_state: two kind sections and heading levels one deeper
  • checkin_keys(projects, ledgers, only, category=None): optional category filter
  • project_digest: adds a Category: line

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

Derive each project's category from the category folder in its
local_path string (never the filesystem) and report it everywhere the
conductor reports a project: census (text and --json), the check-in
read-back, the board and the Science/STATE.md mirror. The board and
STATE.md now render a Science and a Development section, each with
per-kind Running / Open / Projects counts and the old Summary/Projects
layout inside; the overall counts table and state.json are unchanged.
pull and checkin take --category.

PyAutoLabs/PyAutoCortex#95

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit fbe9fd7 into main Nov 20, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/cortex-development-split branch November 20, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant