Repository navigation
maintenance: retire the science review slot from the batch conductor - #348
Merged
Merged
Conversation
Deletes the batch conductor's `cortex` member kind whole — the rolling board, its record and packet, the review chips, partial reviews and carry-forward — and the cortex conductor's `plan` verb and gate-grading wrapper. Phase 1 of the `cortex-checkin` epic (PyAutoCortex#9). Dev batching is untouched. In the three days the second kind existed the conductor opened 0 slots, 0 rulings came from a packet, 0 partial reviews were filed and `review-minutes-actual` was never written; all 22 rulings were reached in a live session. Gate grading saw 2 gated refs and flipped 0. `cortex collect` is decoupled from the batch record and becomes the check-in: `--slot` is gone, the default scope is every phase in `submitted | running`, `--phase REL` narrows, and `apply_ops` still moves `running → pulled → awaiting-ruling` (rehearsed on a copy, refused if `cortex.py check` would not pass) and writes nothing else. `census`, `dashboard` and every payload builder phase 2 and 3 compose are untouched. The `KINDS` extension point stays: a member kind is a scorer plus a block builder plus a claim, which is what made the second board cheap to try and cheap to remove. _batch.py −865 lines, _cortex.py −233, _status.py −80. pytest 864 passed (903 collected before). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013HsZA1ufn3msgPiDFxEXa6
Brain CI checks PyAutoCortex out at main, which may be a release behind this branch: asserting the per-ref URL the listing prints made this suite depend on the other repo's tip. Assert what the wrapper owns — it fetches nothing and flips nothing. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013HsZA1ufn3msgPiDFxEXa6
This was referenced Sep 4, 2026
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.
Phase 1 of the
cortex-checkinepic (ledgerPyAutoMind/draft/maintenance/pyautocortex/cortex_checkin_epic.md), the Brain half of PyAutoCortex#9. Deletion only, plus the one decoupling the phase-2/cortexdoor needs.The batch conductor grew a second member kind on 2026-08-31: a science phase on a rolling board, with its own record, packet page, review chips, partial reviews and carry-forward. In the three days it existed the conductor opened 0 slots, 0 rulings came from a packet, 0 partial reviews were filed and
review-minutes-actualwas never written — all 22 rulings were reached in a live session. What the human actually does is check in on the runs, so that is what the Cortex conductor now does, in one command that needs no record at all.Dev batching is untouched. No behaviour of
batch plan/batch collectfor the dev kind changes.What went
agents/conductors/batch/_batch.py(−865 lines): the wholecortexsection —plan_cortex,cortex_plan_record,cortex_record_text,write_cortex_record,_rehearse_cortex,carried_members/carried_lines/_recorded_carried_slugsand thecarried:/carried-from:keys,CORTEX_CHIPSand the cortex packet rendering,REVIEW_PART_RE/_review_paths/_next_review_path/_merge_reviews(the partial reviews shipped yesterday as PyAutoCortex#7 / PyAutoBrain#342 — reverted cleanly, not worked around),score_cortex/cortex_claims/cortex_blocks/_on_the_board/_cortex_callout,cortex_context/load_cortex_conductor/CortexMissing/default_kinds/cortex_ready_note,apply_collect_cortexand_main_plan_cortex/_main_collect_cortex.--kind,--cortex,--cortex-budget,--shift,--pullandRC_NO_CORTEXare gone from the CLI;organ_foris kept (one row) because the renderer readsorgan[...]throughout and a second board would arrive as one more row.agents/conductors/batch/_status.py:cortex_status,CORTEX_BOARD_STATES,_carried_slugs, thePULLEDdisplay word. The dev reading is unchanged.agents/conductors/cortex/_cortex.py(−233 lines): theplanverb (plan,emit_plan,detect_lane,DEFAULT_REVIEW_BUDGET,LOCAL_LANE,_ready_payload's slot framing), thegates --grade --applywrapper,_slot_statusand the status-box render calls on both pages,record_updateand the record-rewrite leg ofapply_ops,_refresh_index(its input was therefreshed:lines nothing writes any more), and thegates_cleared/gate_override/lanefields of_phase_row.KINDSextension point stays: a member kind is still a scorer + block builder + claim, which is what made the second board cheap to try and cheap to remove.collect, decoupled — what it now accepts--slotis gone, and so is the batch record it named.submitted | running— the runs the Cortex believes are out there. That is the check-in.--phase REL(repeatable) narrows to named phases, whatever their state.--pullstill runs each project's own<sync_cli> pulland prints the command first;--applystill requires a refresh stamp (from--pullor--refreshed <ISO>) so a human cannot move phases on a stale laptop, and the stamp is now printed at the head of the report.apply_opskeepsrunning → pulled → awaiting-ruling, still rehearsed on a throwaway copy and refused outright ifcortex.py checkwould not pass afterwards. It writes nothing else.census,dashboardand every payload builder phase 2 and 3 compose are untouched:_ruling_payload,launch_payload,_live_payload,_epic_payload,_project_payload(plus_ready_payload,_gate_payload,_phase_head,_live_note).API Changes
batch:--kind,--cortex,--cortex-budget,--shift,--pullremoved; exit code 5 (RC_NO_CORTEX) retired.collect(mind, slot, ...)drops itskind-switchingcortex=parameter._status:cortex_status,CORTEX_BOARD_STATES,_carried_slugsremoved (_batch.pyre-exported the middle one).cortex:planverb removed;gatesloses--grade/--apply;collectloses--slot._cortex.pyno longer importsMEMBER_REorbatch_recordsfrom the Cortex script, which this epic's PyAutoCortex PR deletes.Docs
agents/conductors/{batch,cortex}/AGENTS.md,skills/{batch,cortex}/*.md,skills/COMMANDS.md,docs/organs/cortex.md,agents/conductors/cortex/cortex.shand thebin/pyauto-brainregistry line (withAGENTS.md's generated verb table regenerated bybin/install.sh --write-agents-surface).skills/batch/batch.md's science section is now one paragraph pointing at/cortex; the/cortexrow inCOMMANDS.mdstays — phase 2 installs the command.Verification
pytest -q→ 864 passed, 0 failed (903 collected before).tests/test_batch_kinds.py(the second kind's own file, 25 tests) is deleted;test_batch_status.pyandtest_batch_freeze.pylose their science-box tests;test_cortex_conductor.pyloses the plan and grading tests and its collect tests now name their phases with--phase, with a new test pinning the default scope. The known worktree-only failuretest_cortex_conductor::test_a_fixture_tree_finds_the_schema_its_checkout_shipspasses here (the branch's Cortex worktree ships the matching schema).pyauto-brain cortex census|gates|collectandpyauto-brain batch plansmoke-run against the branch's Cortex worktree.dashboard --checkcurrent.Merge order: this PR first, then PyAutoCortex#10. Brain CI checks PyAutoCortex out at main, and this conductor works against either the old script or the new one, so it is green now. PyAutoCortex#10's
refreshcheck renders through PyAutoBrain main and stays red until this lands.🤖 Generated with Claude Code
https://claude.ai/code/session_013HsZA1ufn3msgPiDFxEXa6