Repository navigation
Description
Summary
When a pack agent becomes blocked and waits for input in its tmux pane — instead of routing the question through pack_dashboard_request.sh clarify — the operator has no way to see or answer it from the dashboard Attention panel. The swarm silently stalls: the board card sits in the agent's lane, Attention stays empty, and the only way to discover and resolve the block is to manually tmux attach to the pane and answer there.
This defeats the purpose of the dashboard, which is meant to be the single place an operator watches and responds to swarm activity without touching terminals.
Environment
- macOS (Darwin), tmux 3.x
- claude 2.1.252 (Sonnet),
bypass permissions on - bb v1.13.219
- four-pack (specifier → coder → refactorer → architect)
What happens
- A pack runs normally; the card advances specifier → coder → refactorer → architect.
- The architect hits a blocking condition that requires an operator decision (in my case: a Gradle verification step could not resolve an internal Artifactory host until VPN was connected).
- Instead of calling
pack_dashboard_request.sh clarify, the agent surfaces the question in its own pane using the model's native in-pane prompt. - The dashboard Attention field stays empty.
.swarmforge/dashboard/clarifications/pending/and.../requests/pending/receive nothing. - The card is stuck in the
architectlane with no visible reason. Nothing in the dashboard indicates the swarm is waiting on a human. - The agent does not resume on its own even after the underlying condition clears (VPN connected). It only proceeds after the operator manually
tmux attaches and answers the in-pane prompt.
Expected
Any time an agent is waiting for operator input, it should appear in the dashboard Attention panel and be answerable from there — never require attaching a terminal. The constitution already mandates this:
swarmforge/constitution/articles/handoffs.prompt (L12–14):
When blocked by ambiguity, contradiction, or test/specification conflict, ask the operator with
pack_dashboard_request.sh clarify ./tmp/question.txt. Do not ask in the pane.
So the intended behavior is well-defined; the problem is there is nothing that enforces or detects violations of it.
Root cause / analysis
- The Attention panel is fed only by
pack_dashboard_request.sh clarify→.swarmforge/dashboard/clarifications/pending/(rendered bypack_web.bb). If an agent asks any other way, Attention has no signal. - The rule "do not ask in the pane" lives in the prompt, but a prompt is not a guarantee. When the model uses its own native ask/permission UI (or any runtime prompt) it blocks in-pane and the constitution rule can't intercept it.
- There is no watchdog that notices a pane has gone interactive/idle-waiting. A pane blocked on input looks the same to the dashboard as a pane doing long work — both just sit in the lane.
- The Lieutenant is not a workaround: it is a host-level overseer explicitly barred from doing project work, and it uses the same
clarify/answermechanism, so it cannot answer a pack agent's in-pane prompt either.
Net effect: a single in-pane block silently halts the whole pack with zero dashboard visibility.
Suggested directions (any subset)
- Pane-block watchdog → Attention. Detect when a role pane is waiting for input (e.g.
pane_current_commandback to the shell mid-task, or the model's known "waiting for input" pane markers / idle with a pending prompt) and auto-raise an Attention entry that links to the pane, so the operator at least sees "architect is blocked in-pane" without attaching. - Bridge operator answers back to the pane. Let an Attention answer be delivered into the blocked pane (send-keys) so the operator can resolve native/in-pane prompts from the dashboard.
- Harden agent launch to forbid native ask UIs. Where possible, launch agents in a mode that disables the model's in-pane question/permission menus so the only path to ask is
clarify(making the constitution rule actually enforceable rather than advisory). - Surface the stall itself. Even without full bridging, flag a card whose pane has been input-idle for N seconds as "needs operator" in the dashboard, instead of it silently sitting in-lane.
Repro notes
- Trigger any operator-decision block in a pack agent (an unresolvable host / a design ambiguity the model decides to ask about).
- Observe: card sits in the agent lane,
pack_webAttention empty,clarifications/pendingempty, and the swarm only advances after a manualtmux attach+ answer.
Related
- Launch-race defect and fix: issue Master/first agent silently fails to launch — send-keys races cold-server prompt init; whole pack stalls #67 / PR Fix master agent launch race on cold tmux server #68 (distinct bug — that one is about the master agent never starting; this one is about a running agent blocking invisibly). Same underlying theme: the operator should never need to attach to tmux for normal swarm operation.
Activity
Add pane-block watchdog (unclebob#69), launch-race retry (unclebob#67)…