Repository navigation
Orchestration: fix agent instructions that misdirect workers and coordinators - #36803
Conversation
…dinators - worker-list no longer tells a coordinator to release a finished worker that was kept open. - Worker preamble: helpers' coordinators end their turn; ask example drops a literal --options placeholder; redispatch text drops undefined stale follow-ups. - Guide: drop the autoReleaseAt release rule, the optional --name, and the inbox-script wording. - Undelivered follow-up notice no longer reads as resend; older-host worker-show hint uses the caller's CLI name.
Findings
|
There was a problem hiding this comment.
Actionable comments posted: 3

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
a83aad47-cc9a-483c-81b7-79d681d93457
Files ignored due to path filters: 1-
src/main/runtime/orchestration/__snapshots__/preamble.test.ts.snapis excluded by!**/*.snap
Files selected for processing: 9-
skill-guides/orchestration.mdskill-guides/orchestration/references/messaging-and-gates.mdsrc/cli/bundled-skill-guides.tssrc/main/runtime/orchestration/preamble.tssrc/main/runtime/rpc/methods/orchestration/federation/federated-worker-start.tssrc/main/runtime/rpc/methods/orchestration/messaging/settled-worker-follow-through.tssrc/main/runtime/rpc/methods/orchestration/receipt-next.tssrc/shared/orchestration-fleet-projection.test.tssrc/shared/orchestration-fleet-worker-projection.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
-
…ndle failed helper starts in sub-dispatch wording
There was a problem hiding this comment.
Actionable comments posted: 1

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
7df8fce7-41d8-4f0d-beda-809f260a0fba
Files selected for processing: 2-
src/main/runtime/orchestration/preamble.tssrc/main/runtime/rpc/methods/orchestration/messaging/settled-worker-follow-through.ts
Files skipped from review as they are similar to previous changes: 1-
- src/main/runtime/rpc/methods/orchestration/messaging/settled-worker-follow-through.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
-
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

Minor · Restore the inbox-only check rules. · messaging-and-gates.md:3
skill-guides/orchestration/references/messaging-and-gates.md:3
Minor · Functional Correctness · Quick win Restore the inbox-only check rules.
The current sentence does not tell inbox-only scripts to use
--peekor to avoid--ack. A plaincheckconsumes the batch and marks it handled. Add both rules to the source guide, then regenerate the bundled guide so both copies stay consistent.Suggested fix
--- a/skill-guides/orchestration/references/messaging-and-gates.md +++ b/skill-guides/orchestration/references/messaging-and-gates.md @@ -Handle a whole `check` batch before the next `check`. +Handle a whole `check` batch before the next `check`. Inbox-only scripts must use `--peek` (including `--peek --wait`) and must never use `--ack`.

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
ece6d046-e517-49b8-b879-f8bf9ae2fa84
Files selected for processing: 2-
skill-guides/orchestration.mdsrc/cli/bundled-skill-guides.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
-
There was a problem hiding this comment.
Actionable comments posted: 1

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
f5ce6694-17a6-4b66-99c0-8817cb327707
Files selected for processing: 1-
src/main/runtime/orchestration/preamble.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
-
There was a problem hiding this comment.
Actionable comments posted: 1

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
7f78ba42-00af-44a3-b799-68cf0aa0211a
Files selected for processing: 1-
src/main/runtime/orchestration/preamble.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
-
ELI5
Some of the instructions Orca gives agents pointed them the wrong way. The worst one:
worker-listtold coordinators to close a finished worker that was kept open on purpose (Keep open,--keep-open, or a worker in a new workspace), and the guide says to follownext, so coordinators closed chats users still wanted. The rest are wording fixes. Each one is the same length or shorter.Changes (old → new)
next: a finished worker whose terminal is kept open (release_state = 'retained', any reason: Keep open,--keep-open/ new-workspace, or a pane Orca can no longer prove is the worker's) used to getnext: worker-release. Now it gets no next action, so an emptycheckcan still say "end your turn" while such a worker is in the Run.autoReleaseAtinworker-list, release it yourself." It contradicted the new-workspace rule, andworker-listnextalready covers the cases that still need a release.check --peek…" and the "inbox scripts" wording in the reference table.check --helpstill documents--peek.--options "<optional,comma,separated>", which agents typed literally.worker-startreceipt: usedorcaeven when the caller runsorca-dev/orca-ide. It now uses the caller terminal's resolved CLI name, the same way the preamble does.--worktree new-top-level --repo id:<repoId> --name <short-name>→ dropped--name(it's optional).Net size: guide 111 → 109 lines, messaging reference 8 → 7, preamble the same line count and 105 characters shorter.
Not changed: the
[Reply: orca orchestration reply …]hint in message banners. It's built in about six check/mailbox paths that don't have the caller's CLI name, so fixing it means passing the name through each of them. That belongs in its own change.Testing
pnpm tc:node,pnpm tc:cli, oxlint, anti-slop lint,generate-bundled-skill-guides --check, and thecheck-changed-code-quality,check-reliability-gates,check-test-file-runners, andcheck-readme-local-linksscripts all pass.