Skip to content

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

Closed

Description

@Jammy2211

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 --new writes token-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

  1. agents/conductors/batch/_brief.py:26: CAP_DEFAULTS = {"max-workers": 4, "max-sessions": 8}.
  2. agents/conductors/batch/_batch.py ~3276: NEW_BRIEF_DEFAULTS["token-budget"] → "5000000".
  3. Docs: Brain agents/conductors/batch/AGENTS.md ~263 (default 2 → 4, default 6 sessions → 8); Mind batches/AGENTS.md ~202 (template line → max-workers: 4 # optional: concurrent workers (default 4)), ~268 and any max-sessions default text. Grep both plus Brain skills/batch* for other stated defaults.
  4. Tests: tests/test_orchestrator_tokens.py:177 relies on default 2 — set max-workers: 2 explicitly 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 that brief --new writes token-budget: 5000000 (modelled on tests/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.
  5. Check the earlier-shift budget comparison in _orchestrator.py (~757-785) still reads sensibly.

Key Files

  • agents/conductors/batch/_brief.py — CAP_DEFAULTS
  • agents/conductors/batch/_batch.py — NEW_BRIEF_DEFAULTS
  • agents/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 --new output carries token-budget: 5000000; a brief with no max-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.

  1. agents/conductors/batch/_brief.py:26: CAP_DEFAULTS["max-workers"] 2 → 4. Consider max-sessions 6 → 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).
  2. Docs that say "default 2": Brain agents/conductors/batch/AGENTS.md (~263) and the brief template in Mind batches/AGENTS.md (~202, ~268). The template's example line is copied into briefs verbatim, so change it to max-workers: 4 too; otherwise the code default never applies.
  3. Update tests under tests/ that assume the default of 2 (grep max-workers).
  4. Token budget: agents/conductors/batch/_batch.py ~3276, NEW_BRIEF_DEFAULTS["token-budget"] "2000000" -> "5000000" (what brief --new writes). Update tests and docs that assume 2000000, and check the earlier-shift budget comparison in _orchestrator.py (~757-785) still reads sensibly.
  5. brief --new writes no max-workers: line today, so the CAP_DEFAULTS change in item 1 is what new briefs get; check the /batch skill and planner text for any stated worker count or budget.

Activity

  1. Jammy2211 commented on Nov 16, 2026

    @Jammy2211
    ContributorAuthor

    Shipped

    Merged: #657 (merge commit f2081c7, CI green, human /prm 2026-11-16).

    • agents/conductors/batch/_brief.py: CAP_DEFAULTS is now max-workers: 4, max-sessions: 8 (was 2 / 6).
    • agents/conductors/batch/_batch.py: batch brief --new writes token-budget: 5000000 (was 2000000).
    • agents/conductors/batch/AGENTS.md: watcher section states the 4 / 8 defaults.
    • Mind batches/AGENTS.md brief template and caps paragraph updated on Mind main (PyAutoMind 5e769d792).
    • Tests: two new witness tests (a brief with no caps spawns 4 workers; brief --new writes 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions