Repository navigation
fix: honor Agent and node exec settings in Dedicated workers - #205572
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR carries Agent exec timing settings into Dedicated workers and applies node-selected executable paths, Git configuration, and public tool inputs. Example: An Agent configures tools.exec.timeoutSeconds to 17 and runs sleep 30 without an explicit timeout.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it addresses a source-confirmed worker configuration gap, has maintainer-approved direction, and contains no definite introduced defect. Reviewed head: Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Gateway prepares each worker turn's tool policy, the node supplies local execution settings, and the worker combines them when constructing approved command processes. flowchart LR
A[Agent configuration] --> B[Gateway tool policy]
B --> C[Worker admission]
D[Dedicated node launcher] --> E[Node execution context]
C --> F[Worker exec tool]
E --> F
F --> G[Approved local process]
Technical reviewBest possible solution: Carry resolved settings through the existing worker tool-policy and node execution owners while preserving Gateway approval and explicit GitHub identity precedence. Do we have a high-confidence way to reproduce the issue? Current-main source drops configured exec timing and search paths during worker tool construction, while node environment projection excludes launcher-selected Git configuration; no target code was executed during this review. Is this the best way to solve the issue? The implementation uses the existing configuration resolver, worker tool surface, node supervisor, and exec environment merger without introducing a competing policy owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e61e680e180e. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +86, Tests +94, Docs +14, Other +1. Total +195 across 17 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 25, 2026, 5:27 PM ET / 22:27 UTC. |
|
…w#205572) * fix(worker): apply Agent and node exec settings to dedicated tools * feat(protocol): define dedicated worker exec settings * Use system Git in the Dedicated worker process test * chore(ci): account for the node worker execution setting * fix(worker): type the exec fixture and account for public tool data --------- Co-authored-by: stevenlee-oai <[email protected]>
Co-authored-by: sallyom <[email protected]> (cherry picked from commit 3f00a51) Companion audit: #204847 participant-limit propagation, #205572 worker exec settings, #204805 deferred tools, #206762 tool-description perf, and #206537 prompt manifest redesign touch neighboring owners but are not prerequisites for stable worker spawn guidance. Release adaptation: Render the dedicated-worker hint only for worker placement; preserve stable local workflow text and keep both render sites on one delegation section binding, and let the worker hint suppress the duplicate full-surface messaging hint. Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
A Dedicated Agent's exec tool could use different timeouts and executable search paths than its owner configured. When a model invoked Git, the supervised worker also lost the Git configuration selected by the node.
User Impact
Dedicated workers honor the Agent's configured timing and can find tools in directories that the node permits. The node can provide an image-owned Git configuration and public tool inputs to local commands. Explicit per-turn GitHub identity retains precedence.
Why This Change Was Made
The Gateway sends the resolved exec settings through the tool surface defined in #205571. The node admits requested directories and supplies the local tool inputs. Source credentials remain with their existing owners, and the exec approval path stays in effect.
Evidence
At
2895edef, 20 local worker-supervisor tests passed. Hosted CI passed all five core typecheck shards and the baseline check. The full local Gateway exec suite could not complete because the local environment lacks the pinned native fs-safe companion.Hosted CI at
2895edefpassed the required gate after the Android retry. The earlier Android timeout also occurred on scheduledmain. All five Gateway worker exec approval tests passed in the first hosted attempt, including the new case for the Agent timeout and the executable directory admitted by the node. Required CI · Worker exec tests · Scheduled main Android jobEarlier compiled worker tests exercised model-invoked exec and system Git using the node-selected configuration, with the model credential and private launch configuration kept outside the tool process. OCE qualified and merged the Runner pinned to
9a838501. Qualification of the newer upstream-main Runner follows this stack. OCE qualification