Repository navigation
feat(cortex): split development projects from science projects - #698
Merged
Merged
Conversation
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>
Merged
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_pathnames (<science root>/<category>/<project>), read from the string alone, never the filesystem, so the CI render matches the laptop's. A project indevelopment/is Development; every other category (and a root in no category) is Science. Human ruling 2026-11-19: folder only, noprojects.yamlfield.census(text and--json) carriescategoryper project andsections= per-kind Running / Open / Projects (Projects = rows that are not retired).dashboard.md/.htmland theScience/STATE.mdmirror render a Science and a Development section (Development only when a row sits indevelopment/), 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 prefixeddevelopment-.state.json(v1) are unchanged, since the Brain board and cockpit read them.pullandcheckintake--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.category_of,kind_of,section_counts,board_kinds. The census dict gainssectionsand a per-ledgercategory/kind.See full details below.
Test Plan
pytest tests/ -n 4: 2550 passed, 1 skippedtests/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--categoryfilter. Four layout tests are updated for the new heading levels.census --jsoncategory equals thelocal_pathfolder for every ledger. Development = the 7 projects named in the issue.checkin --category developmentreads back exactly those 7.Full API Changes (for automation & release notes)
Added
category_of(row) -> str: the category folder inlocal_path,''when nonekind_of(row) -> str:'development'or'science'section_counts(projects, rows) -> dict,board_kinds(c) -> listsections; ledger dict keys:category,kind--categoryoncortex pullandcortex checkinChanged Behaviour
render_dashboard,render_dashboard_html,render_science_state: two kind sections and heading levels one deepercheckin_keys(projects, ledgers, only, category=None): optional category filterproject_digest: adds aCategory:lineGenerated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code