Repository navigation
Conversation
There was a problem hiding this comment.
ℹ️ Minor suggestions only. The resolution logic is correct on both the local and federated paths, and the version-skew story (
agent_unconfiguredis already a known remote-start failure) holds up.
Reviewed changes
- Strict default resolution —
resolveWorkerStartAgentnow treats only an omitted--agentas "use the Settings default"; a non-empty unknown id throwsUnknown --agent "<id>", and a resolved default must be a known, enabled TUI agent. Shared by the local and federated attachment entry points. - Default resolver on the runtime — new
resolveDefaultOrchestrationAgent()returnssettings.defaultTuiAgentwhen it is a valid, enabled agent, elsenull; a disabled default is not swapped. - CLI empty-value guard —
getOptionalStringFlagRejectingEmptyrejects--agent ""/--agent(valueless) asinvalid_argumentbefore any RPC; applied to--agentand--terminal. - Spec and guide updates — usage changes
(--agent | --terminal)to[--agent | --terminal], the retry note reflects the default, and the kernel example omits the flag at zero line cost.
ℹ️ Nitpicks
references/coordinator-loop.mdlists an empty--agentamong the cases that "fail withagent_unconfigured", but the CLI rejects--agent ""earlier asinvalid_argument(getOptionalStringFlagRejectingEmpty). Only a direct RPC call with an empty string reaches theagent_unconfiguredpath, so dropping it from that sentence (or scoping the sentence to the runtime) would keep the guide honest.- The new test's
fakeRuntimere-implements the default-resolution semantics, so the production resolver inorca-runtime-get-terminal-interactive-wait.ts:197is never exercised directly.validateOrchestrationAgentLauncherstill refuses a disabled id at runtime, so this is a coverage nit rather than a live gap.
openrouter/deepseek/deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
|
Important Review skippedWe couldn't safely recover the incremental review. No full review was started, and the last reviewed checkpoint was preserved. Retry later, or explicitly request a full review by commenting You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
| Check name | Status | Explanation | Resolution |
|---|---|---|---|
| Description check | The description clearly explains the user-facing change, strict resolution rules, implementation scope, and verification results. However, it does not follow the repository template: it omits the requ… | Add the missing template sections. Include a valid issue reference after 'Fixes #', state 'N/A' with a reason for Visual Proof if no visual or interaction change exists, complete the Testing checklist, and address the Review, Agent skill up… | |
| Docstring Coverage | Docstring coverage is 20.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 10 functions across 8 files. (1 skipped: … | Write docstrings for the functions missing them to satisfy the coverage threshold. |
✅ Passed checks (3 passed)
-
Check name Status Explanation Title check ✅ Passed The title clearly and concisely describes the primary change: making the worker-start --agent flag use the Settings default agent when omitted. Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request. Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check
-
Explanation
The description clearly explains the user-facing change, strict resolution rules, implementation scope, and verification results. However, it does not follow the repository template: it omits the required Linked Issue entry, Visual Proof or an explicit N/A statement, the Testing checklist, Review section, Agent skill upstream boundary section, Notes, and the final Checklist.
Resolution
Add the missing template sections. Include a valid issue reference after 'Fixes #', state 'N/A' with a reason for Visual Proof if no visual or interaction change exists, complete the Testing checklist, and address the Review, Agent skill upstream boundary, Notes, and Checklist sections.
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 20.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 10 functions across 8 files. (1 skipped: 1 unsupported.)
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
ℹ️ Recent review info
-
⚙️ Run configuration
-
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 29adce3f-24ac-425e-a17f-ee8b221c44fc
📥 Commits
-
Reviewing files that changed from the base of the PR and between d2e10350e0f14e3a4ec05b53adf25c869c916835 and 54f56b9f6294fbfc3e614b58e1d7af9ff884bad4.
📒 Files selected for processing (3)
-
skill-guides/orchestration/references/coordinator-loop.md
src/cli/bundled-skill-guides.ts
src/cli/specs/orchestration-worker-specs.ts
🚧 Files skipped from review as they are similar to previous changes (1)
-
- src/cli/specs/orchestration-worker-specs.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
ℹ️ Recent review info
-
⚙️ Run configuration
-
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID:
29adce3f-24ac-425e-a17f-ee8b221c44fc
📥 Commits
-
Reviewing files that changed from the base of the PR and between d2e10350e0f14e3a4ec05b53adf25c869c916835 and 54f56b9f6294fbfc3e614b58e1d7af9ff884bad4.
📒 Files selected for processing (3)
-
skill-guides/orchestration/references/coordinator-loop.mdsrc/cli/bundled-skill-guides.tssrc/cli/specs/orchestration-worker-specs.ts
🚧 Files skipped from review as they are similar to previous changes (1)
-
- src/cli/specs/orchestration-worker-specs.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
-
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: adeae118-ca47-4a50-9083-b4a05020b090
📥 Commits
Reviewing files that changed from the base of the PR and between 403b62a and 35dab25a48fd8ec506c63d2922e48a87965fd167.
📒 Files selected for processing (11)
skill-guides/orchestration.mdskill-guides/orchestration/references/coordinator-loop.mdskill-guides/orchestration/references/recovery-and-cleanup.mdsrc/cli/bundled-skill-guides.tssrc/cli/flags.test.tssrc/cli/flags.tssrc/cli/handlers/orchestration/worker-launch-handler.tssrc/cli/specs/orchestration-worker-specs.tssrc/main/runtime/orca-runtime-get-terminal-interactive-wait.tssrc/main/runtime/rpc/methods/orchestration/worker/worker-start-validation.test.tssrc/main/runtime/rpc/methods/orchestration/worker/worker-start-validation.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Named the unknown
--agenton the remote path —validateFederatedWorkerStartPlacementnow throwsUnknown --agent "<id>", matching the local refusal instead of the generic "an agent is required" message, which resolves the one open thread from the prior review. - Corrected the coordinator guide — an omitted
--agentresolves against the worker host's Settings default (not the caller's); a named agent that is unknown or disabled fails withagent_unconfigured, and an empty--agentis rejected at the CLI withinvalid_argument. The bundled skill guide is regenerated in sync. - Reworked the resolution tests — driven through the real
resolveDefaultOrchestrationAgentandvalidateOrchestrationAgentLauncherprototype methods rather than a re-implementation, with new coverage for the remote unknown-agent refusal and a Settings-disabled explicit agent.
I verified the touched tests locally: worker-start-validation.test.ts (7 passed), flags.test.ts (2), orchestration-skill-guidance.test.mjs (29), and generate-bundled-skill-guides.mjs --check (clean).
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
Addressed the review in b94855f5e1 (both inline threads answered). Pullfrog nitpicks:
Verification: 373 tests across the orchestration worker, CLI flags, and skills suites pass; |
d2e1035 to
54f56b9
Compare
54f56b9 to
b05987e
Compare
|
| // Why: an explicit --agent must be a known id; an omitted one is resolved by the | ||
| // worker host against its own Settings default. | ||
| if (!params.terminal && params.agent && !isTuiAgent(params.agent)) { |
There was a problem hiding this comment.
Federated worker agent goes unrecorded
When a federated start omits --agent, the worker host launches its Settings default, but the Run home saves agent: null and a pending launch receipt. The ready response includes the resolved agent, yet worker-show reads the saved values, so it cannot show which agent actually ran. Persist the worker host’s resolved agent and launch selection on the home dispatch.
There was a problem hiding this comment.
Fixed in 324d8975d0. When the worker host reports the launch it resolved, the home now writes that receipt into the Dispatch's start options, and its agent when it is a known agent id (the receipt crosses the federation boundary unvalidated, so an unknown id is ignored). worker-show then names the agent that actually ran. An older host that sends no launch receipt leaves the start options unchanged. Tests: federated-worker-start-receipt.test.ts (records the host-resolved agent; ignores an unknown one). The first fails without the fix.
b05987e to
df05bfa
Compare
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This run re-reviewed the delta since the last Pullfrog review: the branch now records the agent a federated worker host resolved. The prior head (b05987e) is not an ancestor, so the change was isolated by tree-diffing the PR files; the delta is three files (PR grew 11 → 14).
- Federated launch persisted —
startFederatedWorkernow calls a newrecordWorkerStartLaunchwhen the remote receipt carries alaunch, writing the host-resolvedeffective.agentand the receipt into the home dispatch'sstart_options, so observations show the agent that actually ran. - Unknown host agent not trusted — only a
launch.effective.agentthat is a known TUI id is written; otherwise the savedagentis left untouched (the raw receipt is still stored underlaunch). recordWorkerStartLaunchDB mutator — JSON-mergesagent/launchintostart_optionswith adispatch_not_foundguard; exposed viaWorkerDispatchStageMethods.- Coverage —
federated-worker-start-receipt.test.tsdrives the realstartFederatedWorkerpath for both a known and an unknown host-resolved agent.
I verified the touched tests locally (federated-worker-start-receipt.test.ts + worker-start-validation.test.ts, 10 passed), orchestration-skill-guidance.test.mjs (29), pnpm tc:node, and generate-bundled-skill-guides.mjs --check.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
df05bfa to
3602195
Compare
|
@greptile-apps review |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This run re-reviewed the delta since the last Pullfrog review: the branch now accepts Settings-configured command aliases for an explicit --agent and scopes default resolution to the worker host. The delta is docs + tests only — no production source changed — and the tests pass locally (13 across the three touched files).
- Alias behavior documented —
references/coordinator-loop.mdnow states a named--agentmay be an agent id or a command alias configured on the worker host, and separates the empty---agentcase (invalid_argumentat the CLI) fromagent_unconfigured, which also resolves the prior review's nitpick. - Remote passthrough test — the remote-path test that expected a local rejection of an unknown
--agentis replaced by one asserting a non-id name is forwarded for the worker host to resolve; a new local test asserts a configured alias resolves instead of the Settings default. - Generated skill guide regenerated —
src/cli/bundled-skill-guides.tsis in sync with the edited reference.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
3602195 to
ceecf8b
Compare
848aee3 to
5933998
Compare
…ault agent `worker-start` required an explicit `--agent` whenever it created a terminal, even though Settings already holds the user's default agent and the new-workspace picker honours it. Omitting `--agent` now resolves that default on the worker host, matching how `--model` and `--effort` already inherit. Resolution is deliberately strict, so a typo can never silently launch something the caller did not ask for: - An explicit `--agent` must be a known agent id. A mistyped one is rejected rather than falling through to the default. - An empty or valueless `--agent` counts as explicit-but-invalid, not omitted, and is rejected at the CLI boundary before an RPC is sent. - A disabled default agent is never swapped for another one. - No usable default fails with `agent_unconfigured`, which is also what an older worker host returns when it cannot resolve one — an explicit, recoverable failure rather than a silent substitution. The always-loaded kernel is at its 202-line budget, so it carries only the example (worker A now omits the flag) and the detail lives in `references/coordinator-loop.md` beside the `--model`/`--effort` rules it mirrors. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…ault to the worker host - Remote worker-start refuses an unknown --agent with the same `Unknown --agent "<id>"` message as the local path. - Coordinator guide: an omitted --agent uses the worker host's Settings default; the CLI rejects an empty --agent as invalid_argument. - Tests drive the real runtime default resolver and launcher validator. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…or the casting gate Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…erated start A federated worker-start with no --agent is resolved against the worker host's Settings default, but the Run home saved agent: null and a pending launch receipt, so worker-show could not say which agent ran. The home now writes the host's launch receipt, and its agent when it is a known id, back into the Dispatch's start options. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ettings default Main now resolves an explicit --agent that names a command alias configured in Settings (stablyai#24648). Keep that, and keep this branch's rule that only an omitted --agent falls back to the Settings default: - An explicit --agent resolves as an agent id or a configured alias; anything else, including an empty name, fails by name instead of launching the default. - A remote start no longer rejects a non-id name on the home side, since only the worker host knows its aliases; the host validates it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ime module Main (stablyai#27602) moved orca-runtime-get-terminal-interactive-wait.ts under runtime/terminal/wait/; the validation test's import follows it. Co-Authored-By: Claude Fable 5.1 <[email protected]>
…unch settings Main now records the worker host's launch receipt into the Dispatch (recordWorkerLaunchObservation) and leaves the saved --agent selector untouched, so the branch's own recordWorkerStartLaunch is redundant: drop it and keep a regression test that a federated start with no --agent shows the host's agent. Resolve the Settings default through runtime.getClientAgentLaunchSettings() and a shared resolveEnabledDefaultTuiAgent instead of a new runtime method, and use main's getPresentStringFlag for the empty --agent check. Co-Authored-By: Claude Opus 5.5 <[email protected]>
5933998 to
44da0fb
Compare

Resubmits #15935 standalone against current
main. That PR was stacked on the IBM Bob branch and got closed when the Bob work was consolidated into #20397 — but this change is unrelated to Bob and was never superseded. It is now rebased ontomainwith every Bob reference removed, as a single commit.What changes
worker-startrequired an explicit--agentwhenever it created a terminal, even though Settings already holds the user's default agent and the new-workspace picker honours it. Omitting--agentnow resolves that default on the worker host, matching how--modeland--effortalready inherit the user's configuration.Resolution is deliberately strict
The point of a default is convenience, not guessing, so nothing silently substitutes an agent the caller did not ask for:
--agentmust be a known agent id. A mistyped one is rejected, not quietly replaced by the default — that was the failure mode worth closing.--agentcounts as explicit-but-invalid rather than omitted, and is rejected at the CLI boundary before any RPC is sent.agent_unconfigured. That is also what an older worker host returns when it cannot resolve one, so version skew surfaces as an explicit, recoverable error instead of a silent substitution.Docs placement
The always-loaded orchestration kernel sits exactly at its 202-line budget (
config/scripts/orchestration-skill-guidance.test.mjsenforces it, since that guide is in context for every orchestration turn). So the kernel carries only the example — worker A now omits the flag, which demonstrates the behaviour at zero line cost — and the detail lives inreferences/coordinator-loop.mdnext to the--model/--effortrules it mirrors. Theagent_unconfiguredrecovery path is documented inreferences/recovery-and-cleanup.md.Verification
pnpm tcclean across node, cli, and web.origin/mainworktree and fail identically there — developer-envANTHROPIC_API_KEY, a real Claude CLI, and network-dependent cross-version-wire specs. Nothing fails because of this branch.pnpm run check:code-quality:changed: 0 new findings across 8 changed files.src/cli/flags, the orchestration RPC methods, the CLI orchestration handlers, and the skill-guide generators), including new coverage for each rejection case above.🤖 Generated with Claude Code