Skip to content

feat: queued epics drive shifts; briefs allow RAL by default #696

Closed

Description

@Jammy2211

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 ral plus a default ral-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 --check and the shift digest.
  • Docs: Mind batches/AGENTS.md, queue.md header; Brain batch conductor AGENTS.md, skills/queue, skills/batch.
  • Tests for each, plus the Witness: on today's Mind state an unedited brief --new brief passes --check with 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

  1. agents/conductors/batch/_batch.py: NEW_BRIEF_DEFAULTS["lanes"] → any local-dev ral; the brief skeleton writer (~L3500) emits a ral-allowance: block (packets 2, partition ral, cpu-hours 64) that satisfies _brief.py's existing check.
  2. New queued_epics(queue, records, mind): maps each queue entry to an epic slug via the entry prompt's Epic: header, falling back to - ledger: lines in epics.md.
  3. queue_rank consults that map so epic members rank at the ledger's position; the scoped_reach_why call site exempts members queued directly or via their epic. pool_gate unchanged.
  4. 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 --check warnings, and a "Queued epics" sub-section in _digest.py.
  5. 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 --new passes --check.
  6. Docs: Mind batches/AGENTS.md (schema/default lanes: text), queue.md header paragraph; Brain agents/conductors/batch/AGENTS.md, skills/queue/queue.md, skills/batch/batch.md where defaults are stated.
  7. 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 output
  • agents/conductors/batch/_brief.py — --check warnings
  • agents/conductors/batch/_digest.py — digest sub-section
  • agents/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 --brief for a brief made by an unedited batch brief --new (a) passes brief --check with ral in lanes: and a ral-allowance: block, and (b) with queue.md holding only epic ledgers, takes draft/feature/autofit/results_library_p5c_dr1_census.md and draft/research/autolens_inference/numba_wtilde_validation_legs_stall_nautilus.md as 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:

  1. RAL excluded by default. batch brief --new writes lanes: any (NEW_BRIEF_DEFAULTS, agents/conductors/batch/_batch.py), so every Lane: ral member 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).
  2. Queuing an epic does not queue its phases. queue_rank matches queue entries by path/basename only. The queued ledger itself is Autonomy: human-required ("would park at ship"), and its next-phase member prompts count as unqueued, so scoped_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) and numba_wtilde_validation_legs_stall_nautilus.md (likelihood-lifecycle phase 4, medium).
  3. 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 --new writes lanes: any local-dev ral and a default ral-allowance: (packets 2, partition ral, cpu-hours 64), both editable. Update the schema text in Mind batches/AGENTS.md and the batch conductor docs that state lanes: any as 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_why exemption). 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 --check and 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.md header and Brain skills/queue say 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

  1. Jammy2211 commented on Nov 19, 2026

    @Jammy2211
    ContributorAuthor

    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".

    • Exact RED reason (scoped readiness --dev --repos PyAutoBrain,PyAutoMind): PyAutoMind: Lifecycle Drift failure on main — pre-existing: planned.md entry cortex-development-split points at active/development_projects_split.md (filed by another session); not caused or fixed by this change.
    • Passed gates: Brain full suite 2538 passed, 1 skipped (worktree, PyAuto313); Mind queue/lifecycle/spawn tests 167 passed; Witness passes on the 2026-11-19 Mind state; smoke n/a (organ tooling, no workspace impact); review: in-session diff read — independent review at /prm.
    • Merge needs a separate /prm with 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.

  2. Jammy2211 commented on Nov 19, 2026

    @Jammy2211
    ContributorAuthor

    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).

    • briefs now default to lanes: any local-dev ral + ral-allowance: and add queued epics to scoped: epics
    • a queued epic ledger queues its members at the ledger's rank; every other gate unchanged
    • one line per queued epic in plan / brief --check / digest
      Heart RED (development override) remains RED for release purposes until the planned.md drift is fixed.
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