Repository navigation
Description
Overview
Make queuing an epic in queue.md actually drive shifts, and stop briefs excluding RAL by default. In shift 2026-11-19-pm2 (PyAutoMind#591) the human queued four epic ledgers, but nothing from them started: brief --new writes lanes: any (every Lane: ral task rejected), the queued ledger is human-required, its next-phase prompts count as unqueued so the 2026-11-16 scoped-dip rule rejects every medium/multi-repo phase, and the plan never says why an epic is idle.
Plan
- New briefs allow RAL by default:
lanes: any local-dev ralplus a defaultral-allowance:(2 packets, partition ral, 64 cpu-hours); both stay editable per shift. - Queuing an epic queues its phases: a member of a queued epic counts as queued at the ledger's rank, so the small-single-repo rule no longer blocks it. Every other gate stays (phase order, human-required,
Unattended: never,Blocked-by:, Witness, lane, repo holds, budget). - One line per queued epic saying what it contributes this shift or why nothing — in
batch plan(text + JSON),brief --checkand the shift digest. - Docs: Mind
batches/AGENTS.md,queue.mdheader; Brain batch conductorAGENTS.md,skills/queue,skills/batch. - Tests for each, plus the Witness: on today's Mind state an unedited
brief --newbrief passes--checkwith RAL and takes results-library phase 5 and likelihood-lifecycle phase 4.
Tier + merge mode: effective level: supervised; merge mode: human /prm.
Detailed implementation plan
Affected Repositories
- PyAutoBrain (primary)
- PyAutoMind (docs)
Branch Survey
| Repository | Current Branch | Dirty? |
|---|---|---|
| ./organs/PyAutoBrain | main | clean |
| ./organs/PyAutoMind | main | clean (untracked .worktrees/ only) |
Suggested branch: feature/queued-epics-drive-shifts
Implementation Steps
agents/conductors/batch/_batch.py:NEW_BRIEF_DEFAULTS["lanes"]→any local-dev ral; the brief skeleton writer (~L3500) emits aral-allowance:block (packets 2, partition ral, cpu-hours 64) that satisfies_brief.py's existing check.- New
queued_epics(queue, records, mind): maps each queue entry to an epic slug via the entry prompt'sEpic:header, falling back to- ledger:lines inepics.md. queue_rankconsults that map so epic members rank at the ledger's position; thescoped_reach_whycall site exempts members queued directly or via their epic.pool_gateunchanged.- New
epic_idle_lines(): per queued epic — next phase, its members and each one's gate word, or "no draft prompt for phase N — run the epic's Continue prompt in an attended chat". Surfaced in plan text, plan--json(queued_epics),_brief.py --checkwarnings, and a "Queued epics" sub-section in_digest.py. - Tests (batch test suite fixtures): queued ledger + medium 2-repo phase → taken; out-of-order later phase still "not next"; missing phase prompt → idle line names the phase; unedited
brief --newpasses--check. - Docs: Mind
batches/AGENTS.md(schema/defaultlanes:text),queue.mdheader paragraph; Brainagents/conductors/batch/AGENTS.md,skills/queue/queue.md,skills/batch/batch.mdwhere defaults are stated. - Timing: PyAutoBrain is the running shift's watcher (self-organ). Work in a worktree; merge only after the 2026-11-19-pm2 watcher stops (22:15Z + 45 min).
Out of scope: a shift worker that continues an epic from its ledger and files the next phase prompt itself (follow-up if the idle lines show it is common).
Key Files
agents/conductors/batch/_batch.py— defaults,queue_rank,scoped_reach_why, plan outputagents/conductors/batch/_brief.py—--checkwarningsagents/conductors/batch/_digest.py— digest sub-sectionagents/conductors/batch/_steer.py—read_queue
Original Prompt
Click to expand starting prompt
Queued epics drive shifts, and briefs allow RAL by default
Type: feature
Target: PyAutoBrain
Repos:
- PyAutoBrain
- PyAutoMind
Themes: - autonomy
- orchestration
Difficulty: medium
Autonomy: supervised
Priority: high
Epic: autonomous-orchestrators
Filed: 2026-11-19
Consequence: judge
Review-minutes: 15
Unattended: never
Lane: local-dev
Witness: on the 2026-11-19 Mind state,batch plan --brieffor a brief made by an uneditedbatch brief --new(a) passesbrief --checkwithralinlanes:and aral-allowance:block, and (b) with queue.md holding only epic ledgers, takesdraft/feature/autofit/results_library_p5c_dr1_census.mdanddraft/research/autolens_inference/numba_wtilde_validation_legs_stall_nautilus.mdas queued members (no "not in queue.md … beyond queue.md" rejection), while still refusing phases that are not next; and the plan names, per queued epic, why nothing of it starts when nothing does.
Request (human, verbatim, 2026-11-19)
"make sure this RAL issue doesnt ever copy up by defaulty, we also need to make it so we can queue up epics in this way with less friction as this is how I intend to use this for the most part."
What happened (shift 2026-11-19-pm2, PyAutoMind#591)
The human queued four epic ledgers (likelihood-lifecycle, hpc-campaign, results-library, cti-upkeep) and launched a shift "to do the autopilot queue" with backlog: scoped to those epics. Nothing from the epics started:
- RAL excluded by default.
batch brief --newwriteslanes: any(NEW_BRIEF_DEFAULTS,agents/conductors/batch/_batch.py), so everyLane: ralmember was rejected "lane ral not in the brief's lanes". RAL was available; the human expected it to be used. Fixed for that shift by hand (lanes: any local-dev ral+ral-allowance: packets 2, partition ral, cpu-hours 64). - Queuing an epic does not queue its phases.
queue_rankmatches queue entries by path/basename only. The queued ledger itself isAutonomy: human-required("would park at ship"), and its next-phase member prompts count as unqueued, soscoped_reach_why(ruling 2026-11-16: beyond queue.md only small single-repo tasks) rejects every medium or multi-repo phase — e.g.results_library_p5c_dr1_census.md(phase 5, medium, 2 repos) andnumba_wtilde_validation_legs_stall_nautilus.md(likelihood-lifecycle phase 4, medium). - Why an epic is idle is not said. The plan lists hundreds of per-file rejections; the human cannot see at a glance "cti-upkeep: next phase 2 — both members human-required" or "hpc-campaign: 3 phase-5 drafts lack a Witness".
Want
- RAL by default.
brief --newwriteslanes: any local-dev raland a defaultral-allowance:(packets 2, partition ral, cpu-hours 64), both editable. Update the schema text in Mindbatches/AGENTS.mdand the batch conductor docs that statelanes: anyas the default. - A queued epic queues its phases. A queue.md entry that resolves to an epic (its
Epic:header, or the- ledger:path in epics.md) makes every member of that epic count as queued at the ledger's rank (queue_rank, and the scoped-dip/scoped_reach_whyexemption). Every other gate stays: phase order (pool_gate"phase N is not next"),Autonomy: human-required,Unattended: never,Blocked-by:, Witness, lane, repo holds, budget. The 2026-11-16 ruling is narrowed, not dropped: the human queuing an epic is the human queuing its work. - Say why a queued epic is idle.
batch plan(text and--json),brief --checkand the shift digest carry one line per queued epic: what it contributes this shift, or why nothing (next phase N; its members and their gate words; or "no draft prompt for phase N — run the epic's Continue prompt in an attended chat to file it"). - Docs: Mind
queue.mdheader and Brainskills/queuesay a queued epic ledger queues its phases.
Out of scope
- A shift worker that continues an epic from its ledger and files the next phase prompt itself (the ledger is human-required); note it as a follow-up if the idle-epic line shows it is the common case.
- Any change to the phase-order, autonomy or Unattended gates.
Notes
- PyAutoBrain is a self-organ: a shift never edits it. Merge only after the 2026-11-19-pm2 watcher stops (review-at 22:15Z + 45 min).
Activity
Jammy2211 commentedon Nov 19, 2026
Heart RED override (development only)
Live human, 2026-11-19, this session: asked to choose "1. Override Heart RED for this dev ship … 2. Fix the drift first … 3. Wait" and answered "Override red".
readiness --dev --repos PyAutoBrain,PyAutoMind):PyAutoMind: Lifecycle Drift failure on main— pre-existing:planned.mdentrycortex-development-splitpoints atactive/development_projects_split.md(filed by another session); not caused or fixed by this change./prmwith every required check green. Heart stays RED for release purposes.PRs: #697, PyAutoLabs/PyAutoMind#592 — stop at PR-open (judge tier); merge by /prm after the 2026-11-19-pm2 watcher stops.
Jammy2211 commentedon Nov 19, 2026
Shipped
Merged by the human's /prm (2026-11-19): #697 (code, tests, Brain docs) and PyAutoLabs/PyAutoMind#592 (Mind docs). CI green on both (ci-verdict GREEN).
lanes: any local-dev ral+ral-allowance:and add queued epics toscoped: epicsHeart RED (development override) remains RED for release purposes until the planned.md drift is fixed.