/decision-queue — Sequential Decision Walkthrough
Forces strict compliance with decision-queue-one-at-a-time.md (global policy, soft enforcement). When a session has accumulated 2+ user-facing decisions, invoke this command to walk them one at a time with AskUserQuestion, updating working state between answers.
Input: $ARGUMENTS
When to Use
- The model is about to surface 2+ decisions and is tempted to batch them into a single
AskUserQuestion(or a numbered list in text). - A skill (
/brainstorm,/prd,/architect,/diagnose,/run-project,/execute-task,/strategize,/review-plan) needs to defer to the user on several separable choices. - Ad-hoc: the user is mid-task, has multiple open questions, and explicitly asks for a decision queue (
decision queue plz,walk me through these one at a time).
Rule
Outside conductor mode, each decision = one AskUserQuestion call with one question. Wait for the answer. Update any working state (plan file, brainstorm.md, PRD, in-memory state, or just an explicit acknowledgement). Then proceed to the next decision.
Never batch 2+ decisions into a single AskUserQuestion invocation, even though the tool accepts up to 4 questions per call. That capacity is for disambiguating a single decision (e.g. "Which DB?" + "Which migration tool?" as a tightly-coupled pair), not for stacking unrelated decisions.
Process
- Parse $ARGUMENTS — either a free-text description of decisions in scope, or a path to a markdown/json file listing them. If neither, infer from session context (most recent assistant message that surfaced decisions).
- Enumerate the queue internally as a numbered list with: title, context, default recommendation (if any), 2-4 options.
- Show the queue header to the user as a transparency block:
Decision queue (N items): 1. … 2. … 3. …so they know what's coming. Skip it for a single item. Never end the turn on the header: the first picker always follows it in the same turn. - For each decision in order:
a. Brief insight block explaining why this decision is foundational / what it unlocks. Skip it in conductor mode.
b. AskUserQuestion with exactly one question, 2-4 options, recommended option first with (Recommended) suffix. When an option carries content the user must see to choose (an outbound message draft, a file or asset, a code or config snippet), put it in that option's preview, in full for drafts.
c. Wait for the answer.
d. Update working state — minimum: state in plain text what was decided and how it shapes the next decision. If a plan file / brainstorm.md / PRD exists, persist the answer there.
e. Relay the answer when the item came from someone else (a child session, a teammate, a bot) before opening the next picker. The caller says how; for /super-conductor it is the quoted OWNER GO (or hold) sent on the link and by direct message to the owning session.
f. If the answer materially changes the remaining queue (e.g. user picks "skip the rest", "stop", or an option that obviates downstream questions), re-enumerate before moving on.
- After the last decision: summarize the resolved decisions as a numbered list and confirm next action.
Conductor mode (`/super-conductor`, `/overnight`)
/super-conductor routes everything that needs the owner through this skill, but in conductor mode the conductor does not open pickers itself. The pickers are opened by the link's /decision-desk session, fed by the link's decision queue (workspace/reports/conduct/<link>-decisions.jsonl), so the conductor's turn is never held by a picker:
- Run for any number of items, including one.
- Each item comes with its source (child session, channel, CI) and its relay target. Append every owner item to the queue the moment it is found, in the same turn:
node core/scripts/super-conductor-decisions.mjs add --file <queue> --source ledger|ask|conductor --ref <id> --question "<who asked and what happens on each answer>" --option "<label>::<description>"... [--recommended <label>] --priority critical|normal --relay-session <local_ id> --relay-child <child> --relay-link <link> [--company <slug>] [--asked-by <who>].addexits 3 with the existing id when the same source and ref is already queued; the same question is never queued twice. - Optional
addflags:--body <text>or--body-file <path>holds the full ask or draft (newlines kept;show --file <queue> --id <id>prints it);--subject auto(or--subject <key>) dedupes on the PR being decided, exiting 3 with the open row's id or 4 withsettled <id> → <answer>when it was already answered;--reopen <why>asks a settled subject again;--relay-agent <id>names a worker subagent as the relay target. - One picker per item, asked by
/decision-desk, not here. A pick between several candidates (A/B assets, copy or sound variants) is one item with the candidates as options; with more than four, queue a first item to narrow, then a second to choose. Two to four options, recommended first. - Arrival order, critical first:
nextreturns the oldest open row with critical rows ahead of normal ones, so set--priority criticalon merges, deploys, sends, money, and deletes that are blocking a child. - An item the owner already answered in the source session (the open-ask checker no longer lists it, or the child's last message shows the owner's reply) is dropped, not asked:
super-conductor-decisions.mjs drop --id <id> --note "answered in source" --by conductor.dropalways needs a reason; a row is never dropped without one, and never because it is inconvenient to relay. - A child session's ask is relayed by the desk itself the moment the owner picks (
/decision-deskStep 3b); the conductor sees no ANSWER line for it unless the desk's relay failed. Relay every other answer when itsSUPER-CONDUCTOR ANSWERline arrives on the heartbeat: write the ledger rowanswered(andhq runners questions answerfor a lane question), send the quotedOWNER GO(or hold) on the link and by directsend_messageto the relay session in the same turn, update the conductor's save file (open_decisions), thensuper-conductor-decisions.mjs relayed --file <queue> --id <id> --by conductor. A relay that fails leaves the rowansweredand the next wakeup retries it; the owner is never asked twice. - Standing answers: a row that matches one of the owner's standing rules (
super-conductor-decisions.mjs standing list) is answered ataddtime and never reaches the desk. Its ANSWER line says "answered by standing <id>, never asked"; relay it exactly like a desk answer, quoting the rule rather than an OWNER GO from today. Only the desk writes rules (standing add --by desk), and only on the owner's explicit "from now on" words. In code, a rule needs an expiry (at most 30 days), never answers a merge, deploy, send, delete or money row without the owner's--irreversible, and never answers a teammate's request without--from. - New items found while the desk is draining are appended to the queue and the desk asks them in the same drain.
- Never end the turn with unasked items listed in prose ("still to come", "next I'll ask about"), and never open an
AskUserQuestionfor an owner item in the conductor, except apriority: criticalrow the conductor has claimed first (claim --id <id> --desk conductor; see /super-conductor "Critical cards interrupt").answeralways needs--desk <name>holding the row's fresh claim. The item goes to the queue; the turn ends after the last relay or the lastadd.
Queue cards (`core/scripts/decision-queue.sh`)
The desk asks each row as a server-backed Queue card before it opens a
picker. decision-queue.sh asks through hq decide ask as the owner's
personal local bot; the CLI and server enforce that only that bot may ask in
release 1. Never substitute owner credentials when that gate refuses. Card
state lives in workspace/reports/conduct/<link>-queue-cards.json, owned by
the script (it locks and writes atomically). There is one active card at a
time: later rows wait until the active one is answered and acknowledged,
withdrawn, cancelled, or resolved after expiry.
bash core/scripts/decision-queue.sh --state <cards> enqueue-row <row.json> --company <slug>
bash core/scripts/decision-queue.sh --state <cards> sweep
enqueue-row takes one row printed by `super-conductor-decisions.mjs next
--json` and maps its options to ids A to D, its recommended option to
--recommend, and option descriptions to the card context. The row's
company wins over --company. A conductor item can also be enqueued
directly with enqueue <step.json>, which takes step_id, statement,
source, relay_target, options, recommend, company, and optional
context, context_links, expires (default 72h) and commitment_id.
Context links are checked against the shared secret patterns; signed URLs
are rejected.
sweep runs hq decide list --open --json, then hq decide show <id> for
the card it owns (an answered record leaves the open list). Its status:
open: the card is on the owner's Queue. Open no picker; end the drain.answer_pending:step.answer.choiceIdis the owner's pick. Write it
back, relay it, then ack <step-id> --evidence <relay receipt>. A step
with a commitment_id also needs --ledger-evidence from the commitments
ledger write; without it ack saves the relay receipt and does not advance.
fallback:hq decide ask(or the list before any card existed) failed,
and the failure is saved under decision_queue.failures. Only this status
permits the chat picker for that step. Record the pick with
fallback-answer <step-id> --choice <A-D> or --text "<Other text>",
then ack <step-id> --evidence chat-fallback:<step-id>. The next step
tries hq decide ask again.
ask_uncertainorreconcile_required: an ask was interrupted or returned
no id and may have created a card. Do not re-ask, open a picker or advance;
check the Queue and say so in the status line.
expired: expiry is not an answer. `resolve-expired <step-id> --action
reask --reason "..."` keeps the step first and asks a new card on the next
sweep; --action drop --reason "..." lets the next step go.
- A non-zero exit while a card is open is a failed read. Keep the card and
retry on the next wake; it is not permission for a picker.
When the source row was answered or dropped elsewhere, `withdraw
<decision-id> an open card or cancel <step-id> --reason "..."` a step with
no card, or an answered step whose answer can no longer be written. withdraw refuses ids this script did not ask.
Never withdraw a foreign decision from the open list, and never infer an
answer from a record missing from that list.
bash core/scripts/decision-queue.sh --state <cards> ack <step-id> --evidence <receipt> [--ledger-evidence <ledger receipt>]
bash core/scripts/decision-queue.sh --state <cards> fallback-answer <step-id> --choice A
bash core/scripts/decision-queue.sh --state <cards> withdraw <decision-id>
bash core/scripts/decision-queue.sh --state <cards> cancel <step-id> --reason 'answered in source'
bash core/scripts/decision-queue.sh --state <cards> resolve-expired <step-id> --action drop --reason 'Request obsolete'
An external relay and the local receipt are not one transaction: after an
interruption, check the target before relaying again.
Examples
Correct (sequential):
Decision queue (3 items):
1. Branching strategy
2. PR splitting
3. Test coverage scope
[Insight: branching strategy is foundational because…]
AskUserQuestion(Q1) → user picks "new branch off main"
[Update: working on indigo/hq-sync-… off latest main]
[Insight: PR splitting depends on Q1 because…]
AskUserQuestion(Q2) → user picks "single PR"
[Update: one PR for both yellow-removal + copy-prompt]
[Insight: test scope follows from Q2 because…]
AskUserQuestion(Q3) → user picks "vitest only"
[Update: no Playwright; local units + manual UAT]
Resolved:
1. Branch off main → indigo/hq-sync-no-yellow-copy-prompt
2. Single PR
3. vitest + manual UAT
Incorrect (batched):
AskUserQuestion([Q1, Q2, Q3]) ← never do this; even though the schema allows it
Rules
- Outside conductor mode, one
AskUserQuestioncall per decision. In conductor mode, the desk asks a Queue card first and opens a picker only after a failed ask. - Recommended option goes first with
(Recommended)in the label, perAskUserQuestiontool conventions. - Never reference "the plan" if you are in plan mode — the user can't see it. Use
ExitPlanModefor plan approval, notAskUserQuestion. - If only one decision is in scope outside conductor mode, asking it directly with one
AskUserQuestionis fine. In conductor mode every item, even a single one, goes through this skill. - If the user says "stop", "I'll figure it out", or picks an option that ends the queue, stop. Do not force the remaining decisions.
- Persist resolutions in the appropriate working file (plan / PRD / brainstorm.md) when one exists; otherwise just state the resolution in text.