Repository navigation
Description
Overview
New shifts should run 4 concurrent workers by default (was 2) with room for 8 sessions (was 6), and batch brief --new should write a 5,000,000 token budget (was 2,000,000). The human asked for this in the cockpit on 2026-11-16 and approved the plan in chat the same day; the 2026-11-16-pm shift already ran with these caps set live.
Tier: glance — merge mode: auto-merge on green if the Witness passes, post-merge summary (this run stops at the open PR; the human will /prm).
Witness: batch brief --new output carries token-budget: 5000000; a brief with no max-workers: spawns 4; Brain test suite passes.
Plan
- New shifts default to 4 concurrent workers and 8 sessions.
brief --newwritestoken-budget: 5000000.- Docs (Brain batch AGENTS.md, Mind brief template) stop saying the default is 2.
- Tests updated so existing tests keep their meaning, plus tests for the new defaults.
Detailed implementation plan
Affected Repositories
- PyAutoBrain (primary)
- PyAutoMind (doc lines only; direct to main)
Branch Survey
| Repository | Current Branch | Dirty? |
|---|---|---|
| ./organs/PyAutoBrain | main | clean (behind origin by 4; worktree branches from origin/main) |
| ./organs/PyAutoMind | main | 1 modified (batches/2026-11-16-pm.md, another flow's); Mind edits go via a temp worktree on origin/main |
Suggested branch: feature/shift-defaults-4-workers-5m
Implementation Steps
agents/conductors/batch/_brief.py:26:CAP_DEFAULTS = {"max-workers": 4, "max-sessions": 8}.agents/conductors/batch/_batch.py~3276:NEW_BRIEF_DEFAULTS["token-budget"]→"5000000".- Docs: Brain
agents/conductors/batch/AGENTS.md~263 (default 2 → 4, default 6 sessions → 8); Mindbatches/AGENTS.md~202 (template line →max-workers: 4 # optional: concurrent workers (default 4)), ~268 and any max-sessions default text. Grep both plus Brainskills/batch*for other stated defaults. - Tests:
tests/test_orchestrator_tokens.py:177relies on default 2 — setmax-workers: 2explicitly in its brief so it keeps its meaning. Add a test that the code defaults (4/8) apply when a brief omits them, and one thatbrief --newwritestoken-budget: 5000000(modelled ontests/test_batch_brief_goals.py). Leave explicit 2000000 in other test briefs. Run the full Brain suite; fix any default-dependent failure by making intent explicit, never by weakening assertions. - Check the earlier-shift budget comparison in
_orchestrator.py(~757-785) still reads sensibly.
Key Files
agents/conductors/batch/_brief.py—CAP_DEFAULTSagents/conductors/batch/_batch.py—NEW_BRIEF_DEFAULTSagents/conductors/batch/AGENTS.md— stated defaults- PyAutoMind
batches/AGENTS.md— brief template tests/test_orchestrator_tokens.py, new tests
Original Prompt
Click to expand starting prompt
Shift briefs: default max-workers 4 and token-budget 5M
Type: maintenance
Target: PyAutoBrain
Repos:
- PyAutoBrain
- PyAutoMind
Difficulty: small
Autonomy: supervised
Priority: medium
Status: draft
Filed: 2026-11-16
Epic: autonomous-orchestrators
Consequence: glance
Witness:batch brief --newoutput carriestoken-budget: 5000000; a brief with nomax-workers:spawns 4; Brain test suite passes
Lane: any
Start after shift 2026-11-16-pm ends (it runs on this Brain checkout).
The human asked (cockpit, 2026-11-16) for shifts to run 4 concurrent workers by default, not 2, and to get a 5,000,000 token budget by default, not 2,000,000.
agents/conductors/batch/_brief.py:26:CAP_DEFAULTS["max-workers"]2 → 4. Considermax-sessions6 → 8 so a 4-worker shift keeps room for re-dispatches (the 2026-11-16-pm brief was raised to 4 workers / 8 sessions / 5M tokens live).- Docs that say "default 2": Brain
agents/conductors/batch/AGENTS.md(~263) and the brief template in Mindbatches/AGENTS.md(~202, ~268). The template's example line is copied into briefs verbatim, so change it tomax-workers: 4too; otherwise the code default never applies. - Update tests under
tests/that assume the default of 2 (grepmax-workers). - Token budget:
agents/conductors/batch/_batch.py~3276,NEW_BRIEF_DEFAULTS["token-budget"]"2000000" -> "5000000" (whatbrief --newwrites). Update tests and docs that assume 2000000, and check the earlier-shift budget comparison in_orchestrator.py(~757-785) still reads sensibly. brief --newwrites nomax-workers:line today, so theCAP_DEFAULTSchange in item 1 is what new briefs get; check the/batchskill and planner text for any stated worker count or budget.
Activity
Jammy2211 commentedon Nov 16, 2026
Shipped
Merged: #657 (merge commit f2081c7, CI green, human /prm 2026-11-16).
agents/conductors/batch/_brief.py:CAP_DEFAULTSis nowmax-workers: 4,max-sessions: 8(was 2 / 6).agents/conductors/batch/_batch.py:batch brief --newwritestoken-budget: 5000000(was 2000000).agents/conductors/batch/AGENTS.md: watcher section states the 4 / 8 defaults.batches/AGENTS.mdbrief template and caps paragraph updated on Mind main (PyAutoMind 5e769d792).brief --newwrites the 5M budget); tests that relied on the old default now name their caps.Not released separately: PyAutoBrain is not in the published library set.