Skip to content

chore: shift defaults — 4 workers, 8 sessions, 5M token budget - #657

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/shift-defaults-4-workers-5m
Nov 16, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/shift-defaults-4-workers-5m

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

New shifts default to 4 concurrent workers (was 2) and 8 sessions (was 6), and batch brief --new writes token-budget: 5000000 (was 2000000). Closes #656.

Tier: glance — merge mode: auto-merge on green if the Witness passes, post-merge summary. For this run the PR stops open; the human will /prm.

  • agents/conductors/batch/_brief.py: CAP_DEFAULTS = {"max-workers": 4, "max-sessions": 8}.
  • agents/conductors/batch/_batch.py: NEW_BRIEF_DEFAULTS["token-budget"] = "5000000".
  • agents/conductors/batch/AGENTS.md: the watcher section states default 4 / 8.
  • Mind batches/AGENTS.md (brief template and caps paragraph) updated direct to main: PyAutoMind 5e769d792.

API Changes

None. Only the default values change for briefs that omit max-workers: / max-sessions:, and for new briefs from brief --new.

Test Plan

  • Full Brain suite: 2201 passed, 1 skipped, 1 failed. The failure is test_grouped_organ_consumers.py::test_hygiene_map_and_heart_board_find_grouped_checkouts, which comes from the task worktree's activate.sh environment. It fails the same way without this change and passes in a clean environment (4/4).
  • Tests that read a brief's own cap now name it in the brief (max-workers: 2, plus max-sessions: 6 for the /cap tests), so they keep their meaning: watcher max-workers refusal, token unmeasured-session test, /cap steering tests, the /add acks, and the attach summary.
  • test_batch_watch.py checks the max-sessions default, so it now expects 4 of 8.
  • New: test_a_brief_without_caps_gets_the_code_defaults_4_workers_8_sessions (5 named tasks, no caps → 4 spawn, t5 refused max-workers 4 reached) and test_new_writes_the_5m_token_budget_and_leaves_the_caps_to_the_code.

Witness

  • brief --new output carries token-budget: 5000000 (new test in tests/test_batch_brief_goals.py).
  • A brief with no max-workers: spawns 4 (new test in tests/test_orchestrator_watcher.py).
  • Brain test suite passes, apart from the pre-existing environment failure above.

Notes

  • Heart: the whole-organism door this session was YELLOW (PyAutoMind monitoring red, unrelated) and the human was shown it. The scoped dev gate pyauto-heart readiness --dev --repos PyAutoBrain is GREEN.
  • worker_token_estimate (_orchestrator.py ~753) only uses earlier shifts whose budget is within 2x. A 5M shift therefore skips the old 2M shifts (2.5x) but uses 2026-11-16-pm, which ran at 5M. That is sensible, so no change.

🤖 Generated with Claude Code

A brief that omits the caps now gets max-workers 4 and max-sessions 8
(was 2 and 6), and `batch brief --new` writes token-budget 5000000 (was
2000000). The batch AGENTS.md states the new defaults. Tests that read a
brief's cap now name it in the brief; new tests pin the defaults.

Closes #656

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit f2081c7 into main Nov 16, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/shift-defaults-4-workers-5m branch November 16, 2026 20:38
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.

chore: shift defaults — 4 workers, 8 sessions, 5M token budget

1 participant