Skip to content

feat(cortex): 📋 retire chip on dormant Nothing-open rows - #359

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/cortex-retire-project-chip
Sep 4, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/cortex-retire-project-chip

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

What changed

The Cortex board's Nothing open table gains a fourth column, Retire.

  • STATUS_RANK gains retired at rank 3 — active, planned, dormant,
    retired, and an unrecognised status still sorts last. New helper
    project_status(key, c) reads one row's status in one place.
  • _retire_payload(key) — the /cortex paste that ends a project. It
    names the project in prose and inside
    python3 scripts/cortex.py retire <key> --why "<one line on why>", then
    check, pyauto-brain cortex dashboard --apply, and the ledger push.
  • HTML twin — a real copy button in the Retire cell of every dormant
    row (class="copy text", the theme's worded-chip face; the shared
    button.copy click handler binds it, no JS change needed). Any other
    status gets an empty cell.
  • Markdown twin — the cell reads retire ↓ and one
    📋 retire <key> copy row per dormant project sits under the table,
    because a <details> inside a table cell does not render on GitHub.
  • Retired projects leave the table for a folded N retired line
    carrying each row's note, in both twins. The row is never deleted — it is
    the only record of where the project's data lives — but the reader of
    "nothing open" is looking for something to do.
  • census --by-project prints retired projects on their own Retired:
    line, separate from Dormant, nothing open:.
  • skills/cortex/cortex.md — an appendix row for the verb and a rule
    bullet: retiring never deletes a row or a ruling.

A planned project has not started, so it is not offered retirement.

Tests

tests/test_cortex_conductor.py: 81 → 85 test functions, 85 passed with
PYAUTO_CORTEX pointed at the paired Cortex worktree. Full Brain suite:
914 passed. Covers the chip in both twins, the empty cell on a
planned row, a retired row absent from the table and present in the
fold with its note and ordered last, the payload pins, and the
census --by-project line.

Merge order

The door behind the chip is cortex.py retire, which ships in the paired
PyAutoCortex PR. Merge this one first — the Cortex PR's refresh
check renders its dashboard against PyAutoBrain main and is red until
this lands.

Closes #358

🤖 Generated with Claude Code

https://claude.ai/code/session_01JYs4cX2wT5vsZScjLNLZif

The Nothing-open table under Summary lists the projects with nothing left
to do, most of them `status: dormant`. Until now the board could say a
project was asleep but offered no way to end it, so the row sat there
forever and the reader scanned past it every morning.

Each dormant row now carries a Retire chip whose payload is the `/cortex`
paste that ends that project: it names the project in prose and again
inside `python3 scripts/cortex.py retire <key> --why "…"`, then `check`,
`dashboard --apply` and the ledger push. A `planned` project has not
started, so it is not offered retirement — its cell is empty. On the
markdown twin the cell reads `retire ↓` and points at one copy row per
dormant project under the table, because a `<details>` inside a table cell
does not render on GitHub.

`STATUS_RANK` gains `retired` at rank 3 (an unrecognised status still
sorts last), and a retired project leaves the table for a folded
`N retired` line carrying its note — the row is never deleted, so the
project stays findable, but the reader of "nothing open" is looking for
something to do and a retired project is not it. `census --by-project`
prints them on their own `Retired:` line.

The door behind the chip is `cortex.py retire`, shipping in PyAutoCortex.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JYs4cX2wT5vsZScjLNLZif
@Jammy2211
Jammy2211 merged commit 1f425f0 into main Sep 4, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/cortex-retire-project-chip branch September 4, 2026 20:08
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.

feat(cortex): 📋 retire chip on dormant rows, backed by a cortex.py retire door

1 participant