Skip to content

feat(cortex): STATE.md as status tables, not a copy of the board #618

Closed

Description

@Jammy2211

Overview

#616/#617 made <Science>/STATE.md a byte copy of dashboard.md. The human finds it not human-readable: it carries the check-in prompt, full project cards and logs. They want a quick "check in on projects via a table" page like Professional/tasks.md — one table per group, the groups they need least (Retired) at the bottom.

Plan

  • Render STATE.md from its own small renderer instead of copying dashboard.md
  • Title line (generated date, last check-in, link to the Pages board, do-not-edit), then ## Active (N), ## Dormant (N), ## Planned (N) only when any, ## Retired (N) — tables only
  • Active/Dormant/Planned: Project · Where · Now · Runs · Last update; Retired: Project · Where · Note · Last update
  • Now cut at its first sentence end, capped at 120 chars (human choice); Note likewise, without the "previously: …" history
  • Tests; re-render

Tier: judge — merge mode: human /prm

Detailed implementation plan

Affected Repositories

  • PyAutoBrain (primary) — agents/conductors/cortex/_cortex.py, tests/test_cortex_conductor.py

Branch Survey

Repository Current Branch Dirty?
./PyAutoBrain main clean (untracked .worktrees/)

PyAutoBrain is also claimed by lane-fail-closed (PyAutoBrain#614), which touches nothing under agents/conductors/cortex/; parallel work there was approved by the human on 2026-11-13.

Suggested branch: feature/cortex-state-md-tables

Implementation Steps

  1. New render_science_state(c) -> str in _cortex.py. Rows come from c["projects"] by status (so dormant/retired rows with no ledger still show), with ledger fields from c["ledgers"] where present.
    • Where: local_path relative to the science root (active/…, development/…), or Code/<…> for paths under the PyAutoLabs root, else as written.
    • Runs: N running · M open, or -.
    • Last update: the ledger's updated, or -.
    • Now / Note: collapse whitespace, cut at the first sentence end (. / . at end; never inside a decimal or a #123-style ref), cap 120 with …. For Note, drop everything from ; previously: on.
    • Escape | in cells (reuse _cell).
  2. write_science_mirror writes render_science_state(c) instead of mirror_header(c) + dashboard.md; drop or adapt mirror_header. Keep: skipped silently off-laptop, one stderr note on a write failure, ignored by --check.
  3. Tests: section order and counts; Planned only when present; no check-in prompt / <details> in the output; first-sentence clipping (decimal, #123, no sentence end, the 120 cap); Note drops previously:; Where relative paths; the existing mirror tests updated.

Key Files

  • PyAutoBrain/agents/conductors/cortex/_cortex.py
  • PyAutoBrain/tests/test_cortex_conductor.py

Original Prompt

Click to expand starting prompt

STATE.md is a bit too not human readable, I want it to be a quick "check in on projects via a table" vibe and not incude things like the whole check in prompt you might copy from the dashboard. Professional/tasks.md serves this function a lot better, it is just tables under each group I can quickly eyeball with the stuff i need to look at less (e.g. Done) at the bottom.

Layout approved from a mockup; Now = "First sentence, max 120".

🤖 Generated with Claude Code

Activity

  1. Jammy2211 commented on Nov 13, 2026

    @Jammy2211
    ContributorAuthor

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

    • Authorization: live human, 2026-11-13, choosing "Override both (Recommended)" for (a) PyAutoCortex#90 ledger-merge Pages fix and (b) the STATE.md table render in PyAutoBrain: "Push and open both PRs, recorded in the four override sinks. CI must pass; merging stays with your /prm."
    • 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 104 passed (tests/test_cortex_conductor.py; rerun by the orchestrating session); smoke n/a (Brain organ renderer, no library code); review: in-session review of the diff and a preview rendered from the real ledgers. None of the RED reasons are in PyAutoBrain.
  2. Jammy2211 commented on Nov 13, 2026

    @Jammy2211
    ContributorAuthor

    Shipped in #619 (merged d2238c2, 2026-11-13) by the human's /prm; CI pytest 3.12 + 3.13 green on 0069a09 (the first head failed the tenant-firewall check on two test fixture names — PyAutoFit, autofit_inference — fixed in 0069a09). STATE.md is now status tables only.

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