From 3438770e968224f0813bbf9f296d40ee884a281a Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Thu, 19 Nov 2026 22:16:17 +0000 Subject: [PATCH] feat: queued epics drive shifts; briefs allow RAL by default (#696) - brief --new writes lanes: any local-dev ral plus a default ral-allowance (packets 2, partition ral, cpu-hours 64) - a queue.md entry naming an epic ledger queues the epic's members at the ledger's rank (queue_standing); the 2026-11-16 scoped-reach rule no longer blocks them; every other gate unchanged - one line per queued epic (taken / why idle) in plan text+json, brief --check and the shift digest - phase order now also reads members the brief scope or claims withheld Co-Authored-By: Claude Opus 5.5 --- batches/AGENTS.md | 11 +++++++---- queue.md | 9 +++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/batches/AGENTS.md b/batches/AGENTS.md index b20632ffa..00686bab8 100644 --- a/batches/AGENTS.md +++ b/batches/AGENTS.md @@ -196,7 +196,7 @@ only while a brief is open (`policy/shift_watcher.md`). - draft/feature/autofit/.md - epics: euclid-dr1 - review-minutes: 45 - - lanes: any local-dev ral # any subset of: any local-dev ral gpu wsl-data + - lanes: any local-dev ral # the default; any subset of: any local-dev ral gpu wsl-data - merge-cap: 3 # unattended glance merges this shift, at most - token-budget: # tokens the shift may spend, all sessions - max-workers: 4 # optional: concurrent workers (default 4) @@ -204,7 +204,7 @@ only while a brief is open (`policy/shift_watcher.md`). - worker-mode: auto # optional: auto (default) | dontAsk | acceptEdits — never bypassPermissions - sandbox: no # optional: yes marks a test shift - shadow: no # optional: yes plans and digests, spawns nothing - - ral-allowance: # only when lanes includes ral; phase 5 consumes it + - ral-allowance: # required when lanes includes ral; these are the defaults - packets: 2 - partition: ral - cpu-hours: 64 @@ -213,8 +213,11 @@ only while a brief is open (`policy/shift_watcher.md`). **Goals come from [`goals.md`](../goals.md)** (PyAutoMind#565). `pyauto-brain batch brief --new --review-at ` writes a skeleton brief whose `goals:` are that file's goals in order, with `backlog: scoped` to the union of -their `epics:`/`tags:` (or `fill-idle` when no goal names any) and safe -defaults (`merge-cap: 0`) for the rest; it prints to stdout unless `--out` +their `epics:`/`tags:` (or `tiers: notify, glance` when no goal names any) plus +the epics whose ledgers `queue.md` names, and defaults for the rest: `merge-cap: +0`, and `lanes: any local-dev ral` with the `ral-allowance:` above (2 packets, +partition `ral`, 64 cpu-hours; PyAutoBrain#696), so a queued RAL phase can run. +Edit any of them per shift. It prints to stdout unless `--out` names a file, so writing the record — the dispatch — stays the human's act. `goals.md` is written by the human alone, so every goal is copied as written. `--new` also prints, on stderr, how the goals changed since the newest brief. diff --git a/queue.md b/queue.md index 4d5e929a2..fcd868a87 100644 --- a/queue.md +++ b/queue.md @@ -37,6 +37,15 @@ outranks an unqueued one, and among queued prompts the file's order wins. Below the queue it sorts by `Priority:`, then cheapest review first. An entry written against `draft/…` keeps its place after the prompt moves to `active/`. +**Queuing an epic ledger queues its phases** (PyAutoBrain#696). An entry whose +ref is an epic's ledger (the file `epics.md` names as its `- ledger:`) makes +every member of that epic count as queued at the ledger's place, so a shift +takes the epic's next phase even when it is medium or spans several repos. +The other gates still apply: phase order, `Autonomy: human-required`, +`Unattended:`, `Blocked-by:`, Witness and lane. `batch plan`, `brief --check` +and the shift digest say, per queued epic, what it gave or why nothing did. +Queue a single phase prompt to queue only that phase. + **An empty list stops a shift** (M2.3, PyAutoBrain `AUTONOMY.md` "M2 rulings — 2026-11-12"): with no live entry here an unattended shift takes its brief's named tasks and dips into no backlog. **Every ref is checked**: