Repository navigation
feat: define exec settings for Dedicated workers - #205571
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 defines optional Dedicated-worker execution settings, validates launcher-selected tool inputs, and reserves their environment names. Example: The Gateway needs to describe a worker command timeout of 120 seconds.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it supplies a focused contract for the paired worker runtime change, and no concrete introduced defect was found. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherGateway-prepared tool policy reaches workers through admission frames; the new parser describes node-selected paths, Git configuration, and public tool data for the companion runtime implementation. flowchart LR
A[Gateway tool preparation] --> B[Worker tool surface]
B --> C[Admission frame validator]
C --> D[Dedicated worker]
E[Launcher input] --> F[Node context parser]
G[Environment policy] --> H[Command environment sanitizer]
Technical reviewBest possible solution: Keep these optional contracts with the existing worker-policy and environment-security owners, and activate them through the paired runtime PR. Do we have a high-confidence way to reproduce the issue? Source confirms that current main cannot carry the proposed timing and path defaults through worker policy; no runtime reproduction was executed. Is this the best way to solve the issue? The additive contract fits the established tool-surface transport, and the small launcher-input module has a clear boundary without introducing a competing execution-policy owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 794699900cd1. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +60, Generated +4, Other +1. Total +65 across 6 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:
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 HistoryReview history (1 earlier review cycle)
Reviewed November 26, 2026, 12:39 AM ET / 05:39 UTC (Revision 2). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
* feat(protocol): define dedicated worker exec settings * chore(ci): account for the node worker execution setting --------- Co-authored-by: stevenlee-oai <[email protected]>
What Problem This Solves
A Dedicated worker's tool description carries permission to execute commands, but it cannot describe the Agent's requested command timeout or executable search paths. A node operator also needs a way to select local tool inputs without exposing the node's surrounding environment.
User Impact
This contract gives the Gateway and the node separate ways to declare their settings. Runtime support is in #205572.
Why This Change Was Made
The existing worker tool surface carries the Agent settings. The node owns the local directories, read-only Git configuration and public strings for installed tools. Reserved environment names prevent Agent-supplied overrides.
Evidence
All 24 worker admission and tool-surface tests passed. All 52 generated Gateway outputs and the generated macOS environment policy matched their sources. The companion PR exercises the running worker.
Hosted CI at
128ed321passed on attempt 3, including the Android third-party suite andsecurity-fast. The earlier Android timeout also occurred on scheduledmain. Required CI · Scheduled main Android job