Repository navigation
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
Walkthrough
Priority: Merge Risk:
|
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:
3651934c-357a-45f8-8b37-19e6aa619464
Files selected for processing: 11-
resources/skills/current-manifest.jsonresources/skills/released-digests.jsonskill-guides/orchestration.mdskill-guides/orchestration/references/coordinator-loop.mdskill-guides/orchestration/references/legacy-contract-migration.mdskill-guides/orchestration/references/messaging-and-gates.mdskill-guides/orchestration/references/placement-and-remote.mdskill-stubs/orchestration.mdskills/orchestration/SKILL.mdsrc/cli/bundled-skill-guides.tssrc/main/skills/bundled-skill-install/bundled-skill-sources.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.
-
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

Major · Use new-top-level for project code changes. · placement-and-remote.md:8-11
skill-guides/orchestration/references/placement-and-remote.md:8-11
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick winUse
new-top-levelfor project code changes.
skill-guides/orchestration.md:47-55now makescurrentthe default and limits new workspaces to explicit requests or checkout conflicts. This allows ordinary project code changes to run in the coordinator’s checkout, contrary to the intended code-change workflow.Keep
currentfor non-code and plain-folder work. Usenew-top-level --repo ...for project code changes, then regenerate the bundled copies.

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:
09042b6a-aac6-43bb-9e09-897cfbdeda56
Files selected for processing: 4-
skill-guides/orchestration.mdskill-guides/orchestration/references/placement-and-remote.mdsrc/cli/bundled-skill-guides.tssrc/main/skills/bundled-skill-install/bundled-skill-sources.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.
-
There was a problem hiding this comment.
Actionable comments posted: 2
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

Major · Pass the reused workspace with --worktree. · coordinator-loop.md:61
skill-guides/orchestration/references/coordinator-loop.md:61
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick winPass the reused workspace with
--worktree.When the reused terminal belongs to a different workspace, omitting
--worktreedefaults to the coordinator’s workspace and fails terminal validation.Proposed fix
-ORCA orchestration worker-start --task <next_task_id> --terminal <agent_terminal_handle> --json +ORCA orchestration worker-start --task <next_task_id> --terminal <agent_terminal_handle> --worktree <same_workspace> --json

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:
9cbf1462-42ec-43f1-bb12-66d9e6b5e6b4
Files selected for processing: 4-
resources/skills/released-digests.jsonskill-guides/orchestration/references/coordinator-loop.mdskill-guides/orchestration/references/recovery-and-cleanup.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; 8 remain after this review.
-
| | Code | Meaning | Recovery | | ||
| | -------------------- | --------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | | ||
| | `task_not_found` | No Task with that id, or not in the bound Run (`data.taskId`, `data.runId`) | Check `task-list --json`; create the Task with `task-create` if it does not exist | | ||
| | `task_not_startable` | Task cannot start now: not `ready`, or invalid `--retry-of` (`data.status`, `data.unmetDependencies`, `data.retryOf`) | Wait for running dependencies to report (Orca wakes you); retry or unblock failed ones; inspect `dispatch-show` if already dispatched | |
There was a problem hiding this comment.
Handle invalid --retry-of separately.
task_not_startable also covers an invalid --retry-of, but this recovery text only describes waiting for dependencies or retrying failed dependencies. When data.retryOf is the cause, no dependency may be running, so the coordinator can wait indefinitely or repeat the same invalid retry. Branch on data.unmetDependencies versus data.retryOf, then correct the retry Dispatch ID before retrying. (raw.githubusercontent.com)
…d safety rules, fixed scope and settled 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:
90ace25a-3936-4715-b84e-6b68a5ea5015
Files selected for processing: 7-
skill-guides/orchestration.mdskill-guides/orchestration/references/coordinator-loop.mdskill-guides/orchestration/references/messaging-and-gates.mdskill-guides/orchestration/references/placement-and-remote.mdskill-guides/orchestration/references/recovery-and-cleanup.mdskill-guides/orchestration/references/worker-contract.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; 9 remain after this review.
-
| The wake is best-effort and can fail to arrive, so whenever you resume for any | ||
| reason, run `check --run <run_id>` first. The loop: |
There was a problem hiding this comment.
Start newly ready Tasks after each completed wave.
If Task B depends on Task A, the coordinator cannot start B until A reports. The new wake loop handles A’s mail but does not direct the coordinator to list ready Tasks and start B. The completion rule also checks only Dispatches already started. A coordinator following this loop can leave B unstarted and never complete the requested DAG. After processing a batch, check for newly ready Tasks and start the next wave before declaring completion. The coordinator-loop reference already documents planned Tasks and the ready view. (raw.githubusercontent.com)
…d, and label the wake loop branches
… to settle, and let bare-shell workers exit
|
Superseded by #36137, which combines the orchestration v3 changes into one PR. |
ELI5
The orchestration guide used to tell an agent to sit and wait, for up to 15 minutes, while its worker agents ran. Orca has been able to wake the agent when a worker finishes since August, but the guide never said so. The guide now says: start the workers, end your turn, and Orca will wake you with the result. It also fixes how to put a worker in a new workspace of another project, and it is shorter and plainer.
What Changed
Only corrections to outdated or incomplete text. When to use orchestration (the skill trigger) and where workers go by default are unchanged.
End the turn after dispatch. Orca wakes the coordinator with "You have N orchestration messages. Run
orca orchestration check --run <id>". The text is typed into its terminal, or sent as a new user message in a chat. The coordinator then runscheck, handles each message, acks, and frees each finished worker. The old guide's loop of 15-minutecheck --waitcalls with "do not end the coordinator turn" predates the wake (fix(orchestration): wake coordinators with mail pointers #12988 for terminals, feat(orchestration): orchestrate native-born structured chat sessions #18827 for chats). A 15-minute wait is also longer than the 10-minute per-command limit some agents have.The wake is best-effort. It can fail to arrive (for example, a Claude coordinator with a busy agent-teams teammate keeps reporting "working", so no wake is typed). The guide says so, and tells the coordinator to run
check --run <id>whenever it resumes. The app-side fix is a separate PR.check --waitis opt-in. Use it only when this turn needs the result, or when nothing can wake the agent (it is not running in an Orca terminal or chat). The timeout is under 10 minutes.Placement accuracy:
worker-start, andrun-createtakes none;--repo. Without it, Orca uses the Git project you are in, and fails if you are in none;The default is still the current or an existing workspace, with a new workspace only when the user asks or sharing a checkout would conflict.
Shorter and plainer, same rules.
--tasktocoordinator-loop,caller.orcaSessionIdtomessaging-and-gates, and the retired-scheduler note tolegacy-contract-migration.Review corrections:
worker-listdescription is fixed (it uses the bound Run);Leftover contradictions fixed in the references: the recovery table no longer says to wait for dependencies with
check --wait, the DAG example no longer puts every worker in one checkout, and retries point to--retry-of.Unchanged: the skill description, the discovery stub, and the
orca-cliguide.Generated files:
src/cli/bundled-skill-guides.tsis regenerated. The skill ledger keeps the digest of an interim stub pushed earlier on this branch, because the ledger only grows.Every command and flag in the guide is checked against
src/cli/specsby the existingbundled-guide-flagstest.Why
Agents followed the old guide literally:
--worktree new-top-levelonrun-createand gotselector_not_found.Linked Issue
N/A (maintainer change). Follow-up for a related app gap: STA-12520.
Visual Proof
Setup: a hidden dev build (
ORCA_BACKGROUND_LAUNCH=1) with its own profile, CDP port, and agent config. A coordinator agent ran in an Orca terminal with the prompt: "Have another agent add a --verbose flag to the greet script in the demo-app project, and tell me what it did when it's finished."check --wait --timeout-ms 540000until the worker reported.worker-start --worktree new-top-level --repo id:<demo-app>, then ended its turn. Woken 14 s later, it rancheck, verified the diff, released the worker, acked, and reported.worker_donewoke it next, and it reported.In the after runs, neither coordinator used
check --wait. With a plain prompt that asks for no agent ("Add a --verbose flag…"), both guides lead the agent to edit the project itself. That is expected, since the trigger is unchanged.Before, A: blocked inside its turn on
check --wait.After, A: ended its turn, then was woken by the pointer and reported.
After, B:
App issue seen during testing, not changed here: a coordinator terminal created from the CLI, whose pane was never mounted in the hidden window, got its wake only after its workspace was made active.
Testing
pnpm check:changed --maxWorkers=2passes all 19 checks. The bundled-guide flag test, the generator and routing tests, the agent-facing parity test, and bothskillsCLI tests pass. No new tests: guide content is already covered by the flag and routing checks.AI Disclosure
Review