Skip to content

maintenance: retire the science review slot from the batch conductor - #348

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/cortex-checkin-p1-shed-review-slot
Sep 4, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
feature/cortex-checkin-p1-shed-review-slot

Conversation

@Jammy2211

@Jammy2211 Jammy2211 commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Phase 1 of the cortex-checkin epic (ledger PyAutoMind/draft/maintenance/pyautocortex/cortex_checkin_epic.md), the Brain half of PyAutoCortex#9. Deletion only, plus the one decoupling the phase-2 /cortex door 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-actual was 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 collect for the dev kind changes.

What went

  • agents/conductors/batch/_batch.py (−865 lines): the whole cortex section — plan_cortex, cortex_plan_record, cortex_record_text, write_cortex_record, _rehearse_cortex, carried_members / carried_lines / _recorded_carried_slugs and the carried: / carried-from: keys, CORTEX_CHIPS and 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_cortex and _main_plan_cortex / _main_collect_cortex. --kind, --cortex, --cortex-budget, --shift, --pull and RC_NO_CORTEX are gone from the CLI; organ_for is kept (one row) because the renderer reads organ[...] throughout and a second board would arrive as one more row.
  • agents/conductors/batch/_status.py: cortex_status, CORTEX_BOARD_STATES, _carried_slugs, the PULLED display word. The dev reading is unchanged.
  • agents/conductors/cortex/_cortex.py (−233 lines): the plan verb (plan, emit_plan, detect_lane, DEFAULT_REVIEW_BUDGET, LOCAL_LANE, _ready_payload's slot framing), the gates --grade --apply wrapper, _slot_status and the status-box render calls on both pages, record_update and the record-rewrite leg of apply_ops, _refresh_index (its input was the refreshed: lines nothing writes any more), and the gates_cleared / gate_override / lane fields of _phase_row.
  • The KINDS extension 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

pyauto-brain cortex collect [--phase REL]... [--pull] [--refreshed ISO] [--apply] [--out FILE] [--cortex DIR]
  • --slot is gone, and so is the batch record it named.
  • Default scope: every phase in 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.
  • --pull still runs each project's own <sync_cli> pull and prints the command first; --apply still requires a refresh stamp (from --pull or --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_ops keeps running → pulled → awaiting-ruling, still rehearsed on a throwaway copy and refused outright if cortex.py check would not pass afterwards. It writes nothing else.

census, dashboard and 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, --pull removed; exit code 5 (RC_NO_CORTEX) retired. collect(mind, slot, ...) drops its kind-switching cortex= parameter.
  • _status: cortex_status, CORTEX_BOARD_STATES, _carried_slugs removed (_batch.py re-exported the middle one).
  • cortex: plan verb removed; gates loses --grade/--apply; collect loses --slot. _cortex.py no longer imports MEMBER_RE or batch_records from 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.sh and the bin/pyauto-brain registry line (with AGENTS.md's generated verb table regenerated by bin/install.sh --write-agents-surface). skills/batch/batch.md's science section is now one paragraph pointing at /cortex; the /cortex row in COMMANDS.md stays — 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.py and test_batch_freeze.py lose their science-box tests; test_cortex_conductor.py loses 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 failure test_cortex_conductor::test_a_fixture_tree_finds_the_schema_its_checkout_ships passes here (the branch's Cortex worktree ships the matching schema).
  • pyauto-brain cortex census|gates|collect and pyauto-brain batch plan smoke-run against the branch's Cortex worktree.
  • The Cortex dashboard regenerated from this branch; dashboard --check current.

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 refresh check renders through PyAutoBrain main and stays red until this lands.

🤖 Generated with Claude Code

https://claude.ai/code/session_013HsZA1ufn3msgPiDFxEXa6

Jammy2211 and others added 2 commits September 3, 2026 19:39
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
@Jammy2211
Jammy2211 merged commit fc1cb32 into main Sep 4, 2026
3 checks passed
@Jammy2211
Jammy2211 deleted the feature/cortex-checkin-p1-shed-review-slot branch September 4, 2026 13:44
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.

1 participant