Repository navigation
Description
Overview
Cortex-birth phase 5. The batch conductor gains its second member kind: cortex (science phases) beside dev (Mind prompts), registered on the KINDS extension point batch collect shipped with (#332). It folds in the phase-2 cortex conductor's plan/collect — nothing rebuilt — gives each surface its own batch record and review-at:, makes the Cortex packet a rolling board (a phase joins when its results are pulled; running members show a live strip and hold no review control), formalises carry-forward Cortex-side, and routes the AUTONOMY leg-4 record read per organ. It supersedes two-slot-batching phase 8 (batch_science_lane.md) and retires queue.md #9. Gates: Cortex phase 2 (shipped) and the collect verb (#332, shipped).
Plan
--kind dev|cortex|both, default from the lane (local-dev→ both; cloud →devonly, reporting the Cortex ready count);_cortex.pyimported lazily so dev verbs keep working with no Cortex checkout;_cortexstays Mind-free.plan --kind cortexdelegates to_cortex.census+_cortex.plan(ready + witness + budget + lane; no autonomy cap; no library-repo clash in either direction);--apply --review-at <ISO>writesPyAutoCortex/batches/<slot>.mdin the Cortex schema (refused without--review-at; the human's).collect --kind cortex:score_cortex/cortex_blocksover_cortex.score_phase/member_block; Cortex health vocabulary (HEALTHY · SUSPECT · FAILED · RUNNING); the HTML packet through the shared renderer intoPyAutoCortex/batches/packets/, parametrised per organ (###follow-ups,(none)default, the four ruling verbs); record writes via the phase-2 apply (phase moves,refreshed:per pull) pluscollected:/packet:/delivered:; a submitted review closes the batch.- Carry-forward:
- carried:lines at close; the nextplan --kind cortex --applyauto-includes still-live members withcarried-from:. - Doctrine: AUTONOMY leg 4 (a member reads its own organ's record),
skills/batch/batch.md, batchAGENTS.md; PyAutoCortexbatches/AGENTS.md+packets/AGENTS.md; Mind: supersede phase 8, retire queue PyAutoBrain: Health Agent renders the unified dashboard card — M5 #9, carry-forward pointer. - Tests:
tests/test_batch_kinds.pyover a two-organ fixture.
Detailed implementation plan
Affected Repositories
- PyAutoBrain (primary) — conductor + doctrine
- PyAutoCortex —
batches/AGENTS.md,batches/packets/AGENTS.md - PyAutoMind — ledger (prompt →
active/, epic/queue/prompt edits, completion record)
Branch Survey
| Repository | Current Branch | Dirty? |
|---|---|---|
| ./PyAutoBrain | claude/cortex-birth-phases-1-3-u9pq77 (= origin/main 16e2a77) | clean |
| ./PyAutoCortex | claude/cortex-birth-phases-1-3-u9pq77 (= origin/main 3346da2) | clean |
| ./PyAutoMind | claude/cortex-birth-phases-1-3-u9pq77 (= origin/main) | clean |
Suggested branch: claude/cortex-birth-phases-1-3-u9pq77 (web-github lane: the session branch is the PR branch; no worktree). Merge order: PyAutoBrain → PyAutoCortex → Mind ledger.
Implementation Steps
_batch.py:load_cortex_conductor/cortex_context(lazy);KINDS["cortex"] = (score_cortex, cortex_blocks, cortex_claims);HEALTHS+RUNNING; leg iterators reads["leg_order"].organ_for(kind, root, slot)→ home, packet/review paths, follow-ups heading (##/###), default decision (UNREVIEWED/(none)), lede;_members_js,render_member_section(no controls whenreviewableis false),_fresh_packet,_callout,packet.jstokens (%%FOLLOWUPS_HEADING%%,%%DEFAULT_DECISION%%, reviewable-aware progress).plan_cortex+cortex_record_text/write_cortex_record(run stems, integer minutes, current state, em dash; rehearsed withcheck_problems); carried members (newest_closed_record,carried_members,carried-from:).collect --kind cortex:apply_collect_cortex=cx._apply_checkedover the movers, thenrecord_update_cortex(keys only; member lines untouched), then the shared packet path;carried_linesat close;--review-atre-declaration;--pulllaptop-only.- CLI:
--kind,--cortex,--cortex-budget,--review-at,--shift,--pull;RC_NO_CORTEX = 5. - Doctrine + tests.
Key Files
agents/conductors/batch/_batch.py,packet.js— the conductor and packet assetsagents/conductors/cortex/_cortex.py— folded in, unchangedAUTONOMY.md,agents/conductors/batch/AGENTS.md,skills/batch/batch.md— doctrinePyAutoCortex/batches/AGENTS.md,batches/packets/AGENTS.md— the Cortex schematests/test_batch_kinds.py— the witness
Original Prompt
Click to expand starting prompt
PyAutoMind/draft/feature/pyautocortex/cortex_batch_member_kind.md — "Cortex phase 5 — the second batch member kind: separate records, separate review-at, rolling board". Witness: pyauto-brain batch plan --kind cortex in a laptop session proposes only ready Cortex phases against a Cortex review-minute budget and writes PyAutoCortex/batches/<date>-<slot>.md; batch plan (dev) in the same checkout proposes no Cortex phase and no science prompt; batch collect --kind cortex adds a newly pulled member to an open Cortex packet without touching the Mind record. Task items 1–7: two member kinds; separate batch records; rolling board; carry-forward formalised Cortex-side; AUTONOMY leg 4 per organ; supersede two-slot phase 8 and retire queue #9; tests. Full text in the Mind (moved to active/ on issue).
Activity
Jammy2211 commentedon Sep 2, 2026
Shipped
e917269(head6f3ece4); PyAutoCortex Modernise and re-home PyAuto workflow skills for PyAutoBrain #5 — merged88b17fc(heada6d362d), in that order.cortexbatch member kind —--kind dev|cortex|both(default from the lane),plan --kind cortexover the phase-2 conductor (no autonomy cap, no library clash either way) with--apply --review-atopening the Cortex record,collect --kind cortexas the rolling board (Cortex health words and verbs,###follow-ups, RUNNING members with no review control, phase moves andrefreshed:through the Cortex apply, packet spliced in place, re-scored after the moves), carry-forward (carried:/carried-from:), AUTONOMY leg 4 per organ, the two-kind doctrine on both sides._cortex.pyunchanged. 21 tests; suite 797 green on 3.12 and 3.13; tenant firewall OK.active.mdentry.queue.mdPyAutoBrain: Health Agent renders the unified dashboard card — M5 #9 retired, carry-forward pointer left; completion recordcomplete/2026/09/cortex-batch-member-kind.md(close-out commit follows). Unblocks cortex-birth phase 6.Generated by Claude Code