Skip to content

feat: define exec settings for Dedicated workers - #205571

Merged
stevenlee-oai merged 3 commits into
mainfrom
dev/stevenlee/dedicated-worker-exec-contract
Nov 26, 2026
Merged

stevenlee-oai merged 3 commits into
mainfrom
dev/stevenlee/dedicated-worker-exec-contract

Conversation

@stevenlee-oai

@stevenlee-oai stevenlee-oai commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

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 128ed321 passed on attempt 3, including the Android third-party suite and security-fast. The earlier Android timeout also occurred on scheduled main. Required CI · Scheduled main Android job

@clawsweeper

clawsweeper Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added app: macos App: macos app: web-ui App: web-ui gateway Gateway runtime size: M labels Nov 25, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:auth-provider Auth, provider routing, model choice, or SecretRef resolution may break. labels Nov 25, 2026
@stevenlee-oai stevenlee-oai changed the title Define Dedicated worker exec settings feat: define exec settings for Dedicated workers Nov 25, 2026
@stevenlee-oai
stevenlee-oai marked this pull request as ready for review November 25, 2026 21:58
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 25, 2026
@clawsweeper

clawsweeper Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The worker tool-surface schema rejects policy.execDefaults.timeoutSec.
  • After: The schema accepts timeoutSec: 120; applying the timeout belongs to the companion runtime PR.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused additive contract with no identified defect; validation is test-based and runtime delivery is separately scoped.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored contract stage does not activate the new worker settings; reported schema and generation checks support it, while running-worker behavior belongs to #205572.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Dedicated workers cannot describe configured command timing and executable paths alongside node-selected local tool inputs.
Reason: The host identifies maintainer-approved direction, and this deliberately scoped contract is a useful prerequisite for the paired runtime implementation.

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: 128ed32117faac6601740e1933a27b6b051ddd2b

Before merge

None.

Findings

None.

Agent review details

How this fits together

Gateway-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]
Loading

Technical review

Best 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

  • Worker tool-surface policy keeps the original intent (10ea473: Share Gateway-prepared tool policy and constructors with worker turns while preserving execution authority.)
  • Host environment reservations keeps the original intent (fix(infra): expand host env security policy denylist [AI] #63277: Prevent dangerous environment overrides and align inherited filtering across JavaScript and macOS.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

PR surface

Source +60, Generated +4, Other +1. Total +65 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 4 267 207 +60
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 1 4 0 +4
Other 1 2 1 +1
Total 6 273 208 +65

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-25T22:22:54.999Z sha db2ab0d :: needs maintainer review before merge. :: none

Reviewed November 26, 2026, 12:39 AM ET / 05:39 UTC (Revision 2).

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@stevenlee-oai
stevenlee-oai merged commit b8c9305 into main Nov 26, 2026
298 of 302 checks passed
@stevenlee-oai
stevenlee-oai deleted the dev/stevenlee/dedicated-worker-exec-contract branch November 26, 2026 06:02
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 27, 2026
* feat(protocol): define dedicated worker exec settings

* chore(ci): account for the node worker execution setting

---------

Co-authored-by: stevenlee-oai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos app: web-ui App: web-ui gateway Gateway runtime impact:auth-provider Auth, provider routing, model choice, or SecretRef resolution may break. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant