Skip to content

feat: cloud workers for the codex runtime (remote-exec placements) - #123743

Merged
steipete merged 5 commits into
mainfrom
steipete/cross-harness-compatibility-a708b2
Aug 14, 2026
Merged

steipete merged 5 commits into
mainfrom
steipete/cross-harness-compatibility-a708b2

Conversation

@steipete

@steipete steipete commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Cloud workers were hard-gated to the OpenClaw runtime: sessions.dispatch rejected any other
runtime and the Control UI greyed the Cloud target with "Cloud workers require the OpenClaw
runtime; codex is selected." Operators using the Codex harness could not run sessions on
throwaway cloud machines at all.

Why This Change Was Made

The Codex app-server cannot use the worker-turn split (its agent loop, inference, and auth live
inside the Codex binary), but it does not need to: the codex plugin already routes native
exec/fs/http through the sandbox exec-server backed by a pluggable sandbox backend. This PR adds
a second placement execution mode, remote-exec, that reuses the entire existing provisioning
pipeline (crabbox lease, bundle bootstrap, pinned SSH, managed-worktree sync) and runs codex
turns on the Gateway with a placement-owned SSH sandbox context pointed at the leased box.

Architecture:

  • Capability gate: isWorkerPlacementSessionRuntimeSupported (hardcoded openclaw) is
    replaced by a runtime→execution-mode resolver. openclaw → worker-turn (unchanged); a
    harness may declare cloudPlacement: { mode: "remote-exec" } (codex does); everything else
    stays refused with a generic message. The fact rides GatewayAgentRuntime.cloudPlacementSupported
    (additive protocol field) so the UI gates on the advertised capability instead of a hardcoded id.
  • Schema v8 (operator-authorized): worker_session_placements gains nullable
    execution_mode and a revised claim CHECK so active/draining placements admit
    environment/epoch-fenced local claims only for remote-exec; worker claims stay exclusive
    to worker-turn. NULL reads as worker-turn; v7→v8 migration + downgrade-reader proof included.
  • Turn routing: an active remote-exec placement runs the normal local harness path under a
    fenced claim, then reuses the existing workspace quiescence + reconciliation before claim
    release. Worker-turn behavior is untouched.
  • Placement sandbox: a placement-owned factory adapts the worker SSH endpoint identity
    (pinned host key, per-lease key) into SSH sandbox settings with a preprovisioned-workdir mode
    (adopts the synced remote worktree exactly; never uploads its own copy). Sandbox runtime ids
    include environmentId + ownerEpoch + placementGeneration to fence stale exec-server reuse.
  • Security: remote-exec requires prepared auth (ambient/native-home Codex credentials are a
    hard, actionable error); credential env vars are scrubbed unconditionally at the exec-server
    process/start boundary (verified upstream: Codex's default ShellEnvironmentPolicy inherits
    the full parent env with secret-name excludes disabled — codex-rs/protocol/src/config_types.rs).
    environment/add carries only an id + loopback URL; no auth material can reach the box.
  • Fix found by live proof: generated ssh_config wrote IdentityFile unquoted; crabbox lease
    keys live under "Application Support" (space) → "extra arguments" parse failure. Path
    directives are now quoted (pre-existing latent bug in the SSH sandbox backend).

User Impact

Codex-runtime sessions can dispatch to cloud workers. The Codex app-server and all its auth
(ChatGPT subscription or API key) stay on the Gateway host; only shell/file/network work
executes on the leased box, and the box holds zero credential material. The Cloud picker enables
for codex models; unsupported runtimes keep a generic explanatory tooltip. Worker-turn (OpenClaw
runtime) behavior, config surface, and defaults are unchanged; no new config keys.

Release-note context: feat(gateway/codex): cloud workers now support the Codex harness via a
remote-exec placement mode — Codex auth stays on the Gateway, execution happens on the leased box.

Evidence

  • Live proof on AWS via crabbox (rig: isolated OPENCLAW_STATE_DIR, dev gateway :19310):
    • ChatGPT-subscription mode: dispatched codex session proof-repo ⎇ crisp-krill;
      on-box output hostname=ip-172-31-40-100, uname = Ubuntu -aws kernel, DMI board vendor
      Amazon EC2, user crabbox; file edit reconciled back into the Gateway's managed worktree.
    • API-key mode: auth store reduced to a single openai:manual [openai/api_key] profile; fresh dispatch, on-box turn (hostname=ip-172-31-32-42, user crabbox), and +proof-api-key-mode reconciled back into the managed worktree (screenshots + video below).
    • Box credential audit over lease SSH: no ~/.codex, no codex binary, zero
      codex/openai/api_key env vars on the box.
    • Placement row proves the new authority shape live: active | remote-exec | local claim
      (impossible under schema v7's CHECK).
    • Gateway restart with active placement: remote-exec placement re-adopted (survives restart);
      box teardown surfaces as a failed placement with recorded reason
      ("cloud worker disappeared: environment state destroyed") — visible outcome, no silent path.
    • First-attempt SSH failure (before the quoting fix) surfaced visibly in-session; fixed and
      regression-tested (ssh.test.ts quoting case fails pre-fix).
  • Focused suites (local, run by reviewer): state DB migration/constraints, placement store +
    claims, worker-turn launcher, placement sandbox, sessions.dispatch matrix, codex
    exec-server/attempt-startup/auth-bridge, UI cloud-target — 221 tests green.
  • node scripts/check-changed.mjs green across all lanes; pnpm build clean
    (no INEFFECTIVE_DYNAMIC_IMPORT); pnpm ui:i18n:baseline clean; plugin-sdk API baseline
    regenerated via pnpm plugin-sdk:api:gen (delta attributable solely to the additive
    GatewayAgentRuntime field).
  • Autoreview (Codex gpt-5.6-sol, high): clean, no actionable findings (rerun after the ssh fix).
  • Red-main merge-tree repair: current main added device-pair setup maintenance coverage that pushed server-maintenance.test.ts over the max-lines ratchet. This PR consolidates that cadence assertion into the existing maintenance-schedule test, preserving startup/minute/hour behavior while removing 12 test lines. A stale skills CLI helper reported by the same run was already removed by a later main commit absorbed during rebase.
  • LOC: production +~1.4k/−461 (v8 migration/repair, placement sandbox factory, extracted shared
    workspace-finalization owner), tests +~800.

UI evidence:

BEFORE: Cloud target disabled for codex runtime (shipped behavior, per issue screenshot).

AFTER (live rig):

Cloud picker enabled for codex runtime
ChatGPT-mode cloud session with EC2 on-box output
Visible failure reason on pre-fix ssh error
API-key-mode cloud session with on-box output
https://github.com/user-attachments/assets/b508a696-fb18-49f9-aeef-90d513adf3a7

@clawsweeper

clawsweeper Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review August 14, 2026 16:29
@steipete
steipete requested a review from a team as a code owner August 14, 2026 16:29
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: voice-call Channel integration: voice-call app: web-ui App: web-ui gateway Gateway runtime agents Agent runtime and tooling extensions: codex size: XL maintainer Maintainer-authored PR labels Aug 14, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 14, 2026
@clawsweeper

clawsweeper Bot commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 14, 2026, 7:19 PM ET / 23:19 UTC.

ClawSweeper review

What this changes

Adds a remote-exec cloud placement mode so Codex sessions retain their app server on the Gateway while tool execution uses a leased SSH worker.

Merge readiness

⚠️ Needs maintainer review before merge - 6 items remain

Keep open: the previous P2 remains unresolved because a generic cloud-placement capability is implemented through local casts rather than the public harness contract; exact-head Codex security review is also blocked by unavailable source.

Priority: P2
Reviewed head: ffcc68f96b044c368fec9d76de87b9ccda6c0735
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Reported real behavior proof is strong, but a public-contract blocker and unavailable exact-head dependency review prevent merge readiness.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (recording): The PR body provides after-fix live AWS runs, screenshots, and a recording showing remote execution and reconciliation; reviewer-side network limits prevented independent media inspection.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Verified Sufficient (recording): The PR body provides after-fix live AWS runs, screenshots, and a recording showing remote execution and reconciliation; reviewer-side network limits prevented independent media inspection.
Evidence reviewed 6 items Current-main limitation: Current main accepts cloud placement only for the built-in OpenClaw runtime, establishing the behavior this PR expands.
Public harness contract gap: The exported AgentHarnessV2 composition has no cloud-placement capability, while the PR context adds a local Codex intersection and a core cast to consume that property.
Generic plugin registration boundary: Plugins register harnesses through the generic AgentHarness type, so a typed third-party harness cannot declare the newly generic capability without its own unsafe widening.
Findings 1 actionable finding [P2] Publish the cloud-placement capability through the Plugin SDK
Security Needs attention Verify the Codex process environment contract: The branch relies on Codex app-server environment behavior to justify credential scrubbing at the sandbox boundary; the required sibling Codex source is absent and cannot be retrieved in this environment.

How this fits together

Cloud-worker placement provisions and synchronizes a managed workspace on an ephemeral machine. This change lets a Codex harness use that machine as an SSH-backed sandbox while Gateway-owned session state and authentication remain local.

flowchart LR
  A[Session dispatch] --> B[Harness capability]
  B --> C[Cloud placement mode]
  C --> D[Leased worker workspace]
  D --> E[SSH sandbox execution]
  E --> F[Gateway session and auth]
Loading

Decision needed

Question Recommendation
Should cloud placement be a supported public harness capability, or should this feature be narrowed to an explicitly bundled-Codex-only design? Publish the typed capability: Add the narrow optional harness capability and its SDK docs and baseline coverage, matching the generic runtime behavior.

Why: The PR body and core resolver make the capability generic, while the author intentionally deferred the public Plugin SDK contract decision.

Before merge

  • Publish the cloud-placement capability through the Plugin SDK (P2) - AgentHarnessV2 has no cloudPlacement field, but this resolver reads one through an unsafe cast while the Codex harness supplies it through a local intersection. Because plugins register through the generic public harness type, a typed external harness cannot declare the advertised capability. Add the narrow shared contract with SDK docs/baseline/type coverage, then remove both casts.
  • Resolve security concern: Verify the Codex process environment contract - The branch relies on Codex app-server environment behavior to justify credential scrubbing at the sandbox boundary; the required sibling Codex source is absent and cannot be retrieved in this environment.
  • Resolve merge risk (P1) - The local cloudPlacement casts leave a generic plugin capability undocumented and unavailable to typed third-party harnesses.
  • Resolve merge risk (P1) - The credential-scrub and SSH execution boundary cannot be cleared without the exact PR head and the required sibling Codex source checkout.
  • Complete next step (P2) - A maintainer must decide whether cloud placement is a public Plugin SDK capability before a mechanical repair can proceed.

Findings

  • [P2] Publish the cloud-placement capability through the Plugin SDK — src/gateway/worker-environments/placement-session-runtime.ts:39-42
  • [medium] Verify the Codex process environment contract — extensions/codex/src/app-server/sandbox-exec-server/processes.ts:390
Agent review details

Security

Needs attention: The PR changes a credential and remote-execution boundary, but direct verification of the exact Codex environment contract is unavailable here.

Review metrics

Metric Value Why it matters
State schema 7 → 8 The placement execution-mode change requires upgrade and downgrade safety for existing shared-state databases.
Production versus tests production about +1,400/−461; tests about +800 The feature adds a cross-cutting placement mode across Gateway, Codex, SSH sandboxing, migration, and UI surfaces.

Stored data model

Persistent data-model change detected: database schema: src/state/openclaw-state-db-schema-repair.ts, database schema: src/state/openclaw-state-db.test.ts, durable storage schema: src/gateway/worker-environments/placement-sandbox.test.ts, durable storage schema: src/gateway/worker-environments/placement-sandbox.ts, durable storage schema: src/gateway/worker-environments/placement-session-runtime.test.ts, durable storage schema: src/gateway/worker-environments/placement-session-runtime.ts, and 40 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Publish the typed harness contract (recommended)
    Add the generic capability, SDK documentation, type-level registration coverage, and regenerated API baseline before merge.
  2. Narrow the design
    Keep remote-exec Codex-specific until maintainers approve a public third-party harness capability.
  3. Pause for exact-head security review
    Keep the PR open until a reviewer can inspect the exact branch and sibling Codex environment contract.

Technical review

Best possible solution:

Add one optional generic cloud-placement capability to the shared AgentHarness contract, document and type-test it, regenerate the SDK baseline, and remove the Codex/core casts before merging.

Do we have a high-confidence way to reproduce the issue?

Not applicable to a feature request; the PR body supplies live after-fix evidence, but the exact head and attached media could not be independently fetched in this environment.

Is this the best way to solve the issue?

No: the proposed local type intersections are not the best solution because core reads the capability generically through the public harness registration boundary.

Full review comments:

  • [P2] Publish the cloud-placement capability through the Plugin SDK — src/gateway/worker-environments/placement-session-runtime.ts:39-42
    AgentHarnessV2 has no cloudPlacement field, but this resolver reads one through an unsafe cast while the Codex harness supplies it through a local intersection. Because plugins register through the generic public harness type, a typed external harness cannot declare the advertised capability. Add the narrow shared contract with SDK docs/baseline/type coverage, then remove both casts.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.91

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 0fdf3ae36ca2.

Labels

Label justifications:

  • P2: This is a substantial but non-emergency cloud-worker feature with one actionable public-contract blocker.
  • merge-risk: 🚨 compatibility: The PR changes the shared state schema and adds new runtime capability metadata consumed by clients.
  • merge-risk: 🚨 security-boundary: It routes Codex tool execution across a leased SSH worker and changes the process environment credential boundary.
  • merge-risk: 🚨 availability: It changes cloud placement startup, recovery, reconciliation, and worker lifecycle execution.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (recording): The PR body provides after-fix live AWS runs, screenshots, and a recording showing remote execution and reconciliation; reviewer-side network limits prevented independent media inspection.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides after-fix live AWS runs, screenshots, and a recording showing remote execution and reconciliation; reviewer-side network limits prevented independent media inspection.
  • proof: 🎥 video: Contributor real behavior proof includes video or recording evidence. The PR body provides after-fix live AWS runs, screenshots, and a recording showing remote execution and reconciliation; reviewer-side network limits prevented independent media inspection.

Evidence

Security concerns:

  • [medium] Verify the Codex process environment contract — extensions/codex/src/app-server/sandbox-exec-server/processes.ts:390
    The branch relies on Codex app-server environment behavior to justify credential scrubbing at the sandbox boundary; the required sibling Codex source is absent and cannot be retrieved in this environment.
    Confidence: 0.95

What I checked:

  • Current-main limitation: Current main accepts cloud placement only for the built-in OpenClaw runtime, establishing the behavior this PR expands. (src/gateway/worker-environments/placement-session-runtime.ts:31, 0fdf3ae36ca2)
  • Public harness contract gap: The exported AgentHarnessV2 composition has no cloud-placement capability, while the PR context adds a local Codex intersection and a core cast to consume that property. (src/agents/harness/types.ts:477, 0fdf3ae36ca2)
  • Generic plugin registration boundary: Plugins register harnesses through the generic AgentHarness type, so a typed third-party harness cannot declare the newly generic capability without its own unsafe widening. (src/plugins/captured-registration.ts:232, 0fdf3ae36ca2)
  • Codex dependency signal: The Codex harness is typed as AgentHarnessV2, making its app-server integration a dependency-backed surface for this PR. (extensions/codex/harness.ts:109, 0fdf3ae36ca2)
  • Feature provenance: Current-main blame attributes the existing cloud-placement runtime boundary to this commit; deeper history and the PR head are unavailable because this checkout is promisor-backed and network DNS is unavailable. (src/gateway/worker-environments/placement-session-runtime.ts:31, 80e046d30eca)
  • Exact-head and upstream gap: The PR head is not present locally, sibling ../codex is absent, and network resolution failed; the required direct Codex contract inspection cannot be completed in this read-only environment.

Likely related people:

  • steipete: Current-main blame attributes the cloud-placement boundary to Peter Steinberger, and the PR commits and follow-up own the proposed Codex placement design. (role: feature owner and recent area contributor; confidence: medium; commits: 80e046d30eca, 7942aa6feb51, bc3c9e808c4b; files: src/gateway/worker-environments/placement-session-runtime.ts, src/agents/harness/types.ts, extensions/codex/harness.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Publish or deliberately narrow the cloud-placement harness contract.
  • Refresh exact-head review with the sibling Codex checkout available.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (5 earlier review cycles)
  • reviewed 2026-08-14T16:37:46.952Z sha 7e3f596 :: found issues before merge. :: [P1] Accept local remote-exec claims during forced reconciliation
  • reviewed 2026-08-14T18:31:24.984Z sha d732afe7f978657ec78d2bbb043740d061951fec :: found issues before merge. :: [P1] Finalize remote-exec local claims through forced recovery | [P2] Publish or restrict the cloud-placement harness capability
  • reviewed 2026-08-14T18:51:12.650Z sha 32d118fe64d7badf579fa83eecb04db2b2dacf80 :: found issues before merge. :: [P1] Persist the remote-exec local claim epoch | [P2] Publish or restrict the cloud-placement harness capability
  • reviewed 2026-08-14T19:49:03.719Z sha c0178ab :: found issues before merge. :: [P2] Publish the cloud-placement capability through the Plugin SDK
  • reviewed 2026-08-14T22:22:02.550Z sha 29f489c9fd76fe274682c1914b72e72ec72e807b :: found issues before merge. :: [P2] Publish the cloud-placement capability through the Plugin SDK

@steipete
steipete force-pushed the steipete/cross-harness-compatibility-a708b2 branch from 7e3f596 to d732afe Compare August 14, 2026 18:24
@openclaw-barnacle openclaw-barnacle Bot added the app: macos App: macos label Aug 14, 2026
@clawsweeper clawsweeper Bot added proof: 🎥 video Contributor real behavior proof includes video or recording evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 14, 2026
@steipete
steipete force-pushed the steipete/cross-harness-compatibility-a708b2 branch from d732afe to 32d118f Compare August 14, 2026 18:44
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. and removed P2 Normal backlog priority with limited blast radius. labels Aug 14, 2026
@steipete
steipete force-pushed the steipete/cross-harness-compatibility-a708b2 branch from 32d118f to c0178ab Compare August 14, 2026 19:42
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. and removed P1 High-priority user-facing bug, regression, or broken workflow. labels Aug 14, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

ClawSweeper follow-up on the latest review and Rank-up moves:

  • Public AgentHarnessV2 cloud-placement capability — skipped by owner scope for this landing. This work order authorizes landing the already owner-reviewed remote-exec design and explicitly limits this run to landing mechanics. Publishing a new third-party Plugin SDK compatibility contract is a separate product/API decision, so this PR keeps the declaration private to the bundled Codex harness. It should be handled as a focused follow-up rather than invented during merge prep.
  • Exact Codex environment contract — addressed. I directly inspected current openai/codex origin/main at 086396f7f60347b74c82784d5dfaf4fb2d3bda12. codex-rs/protocol/src/config_types.rs:222-252 defaults ShellEnvironmentPolicy to inherit: All with ignore_default_excludes: true; codex-rs/app-server/src/request_processors/process_exec_processor.rs:98-111 starts process/spawn from the complete parent environment; and codex-rs/protocol/src/shell_environment.rs:12-24 strips only the two internal federation/token-file variables. codex-rs/app-server-protocol/src/protocol/v2/environment.rs:10-18 confirms environment/add carries only environment id, exec-server URL, and optional timeout. This proves the OpenClaw process-boundary credential scrub is necessary and is the correct owner boundary.
  • Schema/upgrade risk — addressed. Exact-head CI run https://github.com/openclaw/openclaw/actions/runs/31834508073 is green for c0178abc7e71121a3bfd9677062b6b153d7fe0f4, including SQLite lifecycle, upgrade/downgrade-facing state tests, build, UI, macOS, iOS, Android, and the aggregate gate. Local focused migration/placement suites and the package-boundary compiler are also green.

The red-main merge-tree repair is documented in the PR body: the maintenance cadence assertions were consolidated without losing startup/minute/hour coverage, clearing the max-lines gate with a net 12-line test reduction.

@steipete
steipete force-pushed the steipete/cross-harness-compatibility-a708b2 branch from c0178ab to 29f489c Compare August 14, 2026 22:15
@clawsweeper clawsweeper Bot removed proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. labels Aug 14, 2026
Crabbox lease keys default to ~/Library/Application Support/... on macOS;
unquoted IdentityFile/UserKnownHostsFile/CertificateFile arguments tokenize
on the space and fail as 'extra arguments'. Found via live remote-exec
cloud-worker proof.
@steipete
steipete force-pushed the steipete/cross-harness-compatibility-a708b2 branch from 29f489c to ffcc68f Compare August 14, 2026 23:12
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Aug 14, 2026
@clawsweeper clawsweeper Bot added proof: 🎥 video Contributor real behavior proof includes video or recording evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. labels Aug 14, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

ClawSweeper exact-head disposition for ffcc68f96b044c368fec9d76de87b9ccda6c0735:

  • Publish or narrow the public harness contract — skipped by owner scope for this landing. The operator explicitly authorized landing the already owner-reviewed bundled Codex remote-exec design and limited this work order to landing mechanics. Adding a new third-party Plugin SDK compatibility contract is a separate product/API decision; this PR intentionally keeps the declaration private to the bundled Codex harness.
  • Refresh review with the sibling Codex checkout — addressed by direct upstream inspection. I inspected openai/codex at 086396f7f60347b74c82784d5dfaf4fb2d3bda12: codex-rs/protocol/src/config_types.rs:222-252, codex-rs/app-server/src/request_processors/process_exec_processor.rs:98-111, codex-rs/protocol/src/shell_environment.rs:12-24, and codex-rs/app-server-protocol/src/protocol/v2/environment.rs:10-18. Those sources establish the inherited parent-environment behavior and the narrow environment registration payload, confirming that OpenClaw's process-boundary credential scrub is necessary and correctly owned.

The only exact-head follow-up commit is the CI declaration-cache invalidation for the state migration type contract; it does not change either product decision above. Exact-head CI is running now, and landing will wait for its final result.

@steipete
steipete merged commit 0a6b95a into main Aug 14, 2026
348 of 351 checks passed
@steipete
steipete deleted the steipete/cross-harness-compatibility-a708b2 branch August 14, 2026 23:47
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 15, 2026
…penclaw#123743)

* feat(gateway): add remote-exec cloud placements

* feat(codex): run cloud turns through remote exec

* fix(sandbox): quote ssh_config path directives containing whitespace

Crabbox lease keys default to ~/Library/Application Support/... on macOS;
unquoted IdentityFile/UserKnownHostsFile/CertificateFile arguments tokenize
on the space and fail as 'extra arguments'. Found via live remote-exec
cloud-worker proof.

* test: consolidate gateway maintenance schedule coverage

* fix(ci): invalidate plugin sdk declarations on state changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: macos App: macos app: web-ui App: web-ui channel: voice-call Channel integration: voice-call docs Improvements or additions to documentation extensions: codex gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant