Skip to content

feat(cortex): board splits Active/Dormant/Retired, newest-first runs, Science STATE.md mirror #616

Closed

Description

@Jammy2211

Overview

The Cortex board hides everything that is not active: the counts box and the Summary list only active projects, dormant ones appear only as cards, and retired ones fold into one collapsed line. Runs inside a card read oldest-first. The human also wants the same board as a markdown file in the Science folder, to read it in that context. This changes the Cortex conductor's renderer only — no ledger or projects.yaml semantics change.

Plan

  • Counts box: Running · Open · Active · Dormant · Retired, each linking to its section
  • Summary: three tables — Active, Dormant, Retired
  • Projects: three headed sections; retired projects get visible compact cards instead of one collapsed line
  • Runs inside each card newest first
  • dashboard --apply / checkin --apply also write the markdown board to <Science>/STATE.md on the laptop (skipped silently elsewhere)
  • Tests; re-render the Cortex board; pointer line in Science/AGENTS.md

Tier: judge — merge mode: human /prm

Detailed implementation plan

Affected Repositories

  • PyAutoBrain (primary) — agents/conductors/cortex/_cortex.py, test_cortex_conductor.py
  • PyAutoCortex — re-rendered dashboard.md / dashboard.html / state.json only

Branch Survey

Repository Current Branch Dirty?
./PyAutoBrain main clean (untracked .worktrees/)
./PyAutoCortex cortex/project-review-2026-11-13 (PyAutoCortex#89) clean

PyAutoBrain is also claimed by lane-fail-closed (PyAutoBrain#614); that branch touches no file under agents/conductors/cortex/. The human approved proceeding in parallel (2026-11-13).

Suggested branch: feature/cortex-dashboard-status-split

Implementation Steps

  1. cortex_context (_cortex.py ~L295): add counts["dormant"], counts["retired"] (from projects.yaml status). Keep counts["active"] — state.json's headline and the Brain board read it; nothing parses the dashboard's counts rows.
  2. render_dashboard (~L647): counts rows Active (#active), Dormant (#dormant), Retired (#retired), Running/Open unchanged. Summary → ### Active / ### Dormant tables (Project · Running · Open · Last update) and ### Retired (Project · Note · Last update). Projects → ### Active, ### Dormant (full _card_md), ### Retired (compact: key, summary, note, ledger link). planned rows sit with Dormant (or their own heading if any exist). Rows with no ledger stay in the "No ledger" table.
  3. render_dashboard_html (~L763): the same split — counts tiles, three summary tables, three sections with ids; retired compact cards visible, not folded.
  4. _card_md / _card_html (~L536/L608): sort d["runs"] newest first by (date, jobid) descending before rendering. The Log is already newest first.
  5. Mirror: after cmd_dashboard --apply and the checkin render, write the dashboard markdown to science_root_from(projects)/STATE.md when that directory exists; otherwise skip without error. Header: "generated by pyauto-brain cortex dashboard --apply — mirror of the PyAutoCortex board (); do not edit". Never fail the render because of the mirror.
  6. Tests (test_cortex_conductor.py): status split and counts; retired visible; run ordering newest-first in md and html; mirror written when the root exists and skipped when absent.
  7. Re-render the Cortex board; add a line to Science/AGENTS.md naming STATE.md as the generated mirror.

Key Files

  • PyAutoBrain/agents/conductors/cortex/_cortex.py — context, md/html renderers, dashboard/checkin commands
  • PyAutoBrain/agents/conductors/cortex/test_cortex_conductor.py — tests

Original Prompt

Click to expand starting prompt

Cortex board: split Active / Dormant / Retired, newest-first runs, Science STATE.md mirror

Targets: @PyAutoBrain @PyAutoCortex
Type: feature
Filed: 2026-11-13
Consequence: judge

Verbatim user requests (2026-11-13 session):

I like the idea of the Science folder having a .md file which shows the state of everything, noting that this would need to be a mirror of the PyAutoCortex dashboard, I get its repetiiton but I will go to view both in different contexts.

Also for the PYAutoCortex Summary board I think we should split active and dormant, I think we could have a third initial box "retired" under "Summary" and "Projects" as currently retired is a bit hidden.

When I clikc a project like "euclid_dr1 it shows 60 runs, but they are going from first task at the top in date to last at the bottom, I think they should go the other way I want to see the latest things at the top.

Approved plan (in organs/PyAutoBrain/agents/conductors/cortex/_cortex.py + test_cortex_conductor.py):

  1. Counts box: Running · Open · Active · Dormant · Retired, each linking to its section (check the Brain board parser that reads the counts rows by label; keep "Projects" if renaming breaks it).
  2. Summary: three tables — Active, Dormant, Retired (retired: Status/Note columns instead of Running/Open).
  3. Projects: three headed sections — Active, Dormant (full cards; resume chip only for active), Retired (visible compact cards: summary, note, ledger link) replacing the single collapsed "N retired" line.
  4. Science mirror: cortex dashboard --apply and checkin --apply also write the same markdown to <science_root>/STATE.md (science_root_from(projects)); laptop only, silently skipped when the root is absent; generated/do-not-edit header + Pages link. Pointer line in Science/AGENTS.md.
  5. Runs within each project card sorted newest first (date, then job id), md and html.
  6. Tests for the split, run ordering and mirror skip; re-render the Cortex board.

Tier: judge — merge mode: human /prm

Approval: the human approved this plan in session on 2026-11-13 ("work this into the plan above and then begin it").

🤖 Generated with Claude Code

Activity

  1. Jammy2211 commented on Nov 13, 2026

    @Jammy2211
    ContributorAuthor

    Scope addition from the human (2026-11-13): in each card's runs table, show the Date column without the year (MM-DD, e.g. 11-13) to save width — sorting still uses the full date so newest-first order is kept.

  2. Jammy2211 commented on Nov 13, 2026

    @Jammy2211
    ContributorAuthor

    Heart RED override (development only) — PR: #617

    • Authorization: live human, 2026-11-13, choosing "Override, open PR (Recommended)" for this task (PyAutoBrain#616): "Use the AUTONOMY.md Human override for Heart RED (development only): push the branch and open the PR, recorded on the issue. CI still must pass and merging stays with you."
    • Heart RED reasons (verbatim): PyAutoNerves: 4 commit(s) behind origin; PyAutoFit: 2 commit(s) behind origin; PyAutoArray: 4 commit(s) behind origin; PyAutoGalaxy: on branch feature/galaxy-guide-rebalance (not main); PyAutoGalaxy: 1 uncommitted source change(s); PyAutoLens: 1 uncommitted source change(s); PyAutoLens: 45 commit(s) behind origin; PyAutoCTI: 4 commit(s) behind origin; install verification FAILED (testpypi; checks F); release validation FAILED (stage integrate); manifest drift: tenant firewall (organ code) — 40 mismatch(es) vs PyAutoMind/repos.yaml; manifest drift: workspace checkouts (manifest ↔ disk) — 3 mismatch(es) vs PyAutoMind/repos.yaml; PyAutoArray: open PR 9d old
    • Branch gates: cortex conductor tests 90 passed (tests/test_cortex_conductor.py; 83 before, 10 updated + 8 new); full Brain suite 1754 passed / 1 skipped / 1 failed — test_grouped_organ_consumers.py::test_hygiene_map_and_heart_board_find_grouped_checkouts, which fails identically on origin/main with the change stashed; smoke n/a (Brain organ renderer, no library code); review: in-session diff review by the orchestrating session (one fix applied: clip retired notes in the Summary table). None of the RED reasons are in PyAutoBrain.
  3. Jammy2211 commented on Nov 13, 2026

    @Jammy2211
    ContributorAuthor

    Shipped in #617 (merged d95a23b, 2026-11-13) by the human's /prm; CI pytest 3.12 + 3.13 green. Board: Active/Dormant/Retired counts, Summary and Projects sections; runs newest first with MM-DD dates; Science/STATE.md mirror on dashboard --apply / checkin --apply. Follow-up on the Science side: re-render the Cortex board and add the STATE.md pointer to Science/AGENTS.md.

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