feat: Add worker-to-orchestrator communication channel
Problem
Currently, communication between the orchestrator and worker agents is one-directional. The orchestrator can send messages to workers via ao send, but there is no mechanism for worker agents to communicate back to the orchestrator.
This means workers cannot:
- Signal that they need human/orchestrator judgment on a decision
- Report blockers that require orchestrator-level coordination
- Request information that only the orchestrator has context for
- Escalate issues that affect other sessions (e.g., dependency conflicts between workers)
- Ask for clarification on ambiguous requirements
Current Workaround
Workers can only passively signal via ao report states like needs-input or waiting, which the orchestrator must poll for. There is no way to send a structured message or question back upstream.
Proposed Solution
Add a worker-to-orchestrator communication primitive, such as:
# From within a worker session
ao signal <message>
ao escalate "I found a breaking change that affects ao-72's work too"
ao ask "Should I use approach A or B for the auth refactor?"
Requirements:
- Workers should be able to send structured messages to the orchestrator
- Messages should appear in
ao statusor trigger a notification - The orchestrator should be able to respond via
ao send(existing mechanism) - Messages should be persisted in session metadata for audit trail
- Support different message types: question, blocker, info, escalation
Possible Implementation:
- Add an
ao signalorao askCLI command available inside worker sessions - Store messages in session metadata (e.g.,
messages.jsonl) - Surface unread worker messages in
ao statusoutput - Optionally trigger notifiers (desktop/slack/webhook) for urgent escalations
- Dashboard could show a "messages" tab or inline alerts on session cards
Why This Matters
- Enables true bidirectional orchestration instead of poll-based status checking
- Reduces time workers spend stuck waiting for orchestrator to notice they need help
- Improves coordination for complex multi-agent workflows where sessions have dependencies
- Makes the orchestrator pattern more robust for real-world usage
Context
In practice, workers often hit decision points or blockers that require orchestrator input. Without a communication channel, the only signal is a state change that the orchestrator must notice during polling, with no context about what the worker actually needs.
Adding a use case to the "why this matters" section: chain-spawn flows where the parent needs to confirm the child fired a specific procedural step, not just "I'm done."
Our case: the parent implementer session needs the child to invoke a follow-on skill (skills/review-loop) after gh pr create succeeds. The skill itself is mandatory but the requirement is currently expressed only in prose inside the skill's "Trigger scope" section. Agents read prose and don't reliably pick up the cue — Test 2b had two parallel implementers both stop at gh pr create because they treated PR-open as terminal.
What's missing isn't quite an ao ask-shaped channel (which the issue describes) — it's the inverse: a worker-to-orch confirmation primitive that lets the orch enforce procedural invariants from outside ("did the worker invoke skill X before reporting done?"). Without it, the only options are (a) baking the directive into the spawn prompt every time (we do this in our /dispatch-next slash command, prepending a <critical> block to the ticket description), or (b) post-hoc audit (we have a log scan that flags merged PRs without ## Review report comments).
If you're considering scope for #1377, worth thinking about whether the channel goes both ways: workers signal questions/escalations to the orch, and the orch can also subscribe to confirmation events from workers (skill invoked, milestone reached, procedural gate passed). Both shapes are useful; the implementation primitive (durable message log per session) is the same.