Skip to content

feat: guide cloud-session setup with protected provider connections - #131067

Closed
steipete wants to merge 4 commits into
mainfrom
steipete/cloud-session-setup-e781f4
Closed

steipete wants to merge 4 commits into
mainfrom
steipete/cloud-session-setup-e781f4

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Related: #130713 — guided cloud-session setup with Crabbox and protected credentials.
Related: #130966 — generic support for omitted Crabbox profile classes; coordinate the overlapping prerequisite during integration.

Additional instructions

Maintainers can update this repository branch. This PR is AI-assisted and intentionally remains a draft. The unresolved gates below are not waived; no merge or release is requested.

What Problem This Solves

Setting up a cloud session currently requires operators to connect plugin enablement, native CLI installation, provider credentials, raw worker profiles, runtime preparation, and lifecycle verification themselves. New Session offers little guidance when no cloud profile exists, and a successful credential check is easy to confuse with a working remote session.

This change adds a guided Settings flow and a Set up cloud… entry in New Session, preserving the draft and selecting the saved destination on return.

Why This Change Was Made

Crabbox remains an optional bundled plugin. Provider-specific descriptors, native tooling, credential resolution, and leases belong to that plugin; core and the Control UI consume generic setup contracts. Named connections use canonical SecretRefs backed by the existing protected SQLite secret store, not plaintext configuration. The store is not encrypted at rest.

Saving, installing tooling, and read-only checking do not allocate a worker. The separately confirmed test uses ordinary session creation, placement, execution, workspace reconciliation, and reclaim. Its pass condition requires a real remote turn, accepted inbound manifest, exact unpredictable file bytes, and verified teardown. The Gateway owns cleanup, not the browser; a bounded private marker in existing session metadata retains exact cleanup ownership through restart, without a new table or schema version.

The plugin prepares supported Node and the exact OpenClaw runtime before enrollment. Existing/manual profiles remain in Advanced; omitted classes remain omitted, advertised machine choices stay authoritative, and warm images require a known effective class. Cloud-only code and English copy load lazily, preserving the existing startup budget.

Live setup uncovered two activation defects repaired here: the UI must wait for the config owner's applied revision before reconnecting for new plugin methods, and restart-pending configuration must not become the active-runtime comparison baseline. The latter repair preserves the original active source while carrying the pending candidate through equivalent writes and watcher echoes; it does not add retries or a parallel restart path.

User Impact

Administrators get a provider-connection form, protected credential entry, actionable dependency diagnostics, and separate credential/lifecycle/endpoint status. They can return to New Session without reconstructing their draft. Selected provider commands resolve current credentials without placing them in argv, global process state, worker setup, or agent tools. Existing manual configuration remains available.

Direct Daytona is not adoption-ready in this draft. The pinned Crabbox 0.46.0 CLI does not provide the complete direct session lifecycle. A configured connection, capability advertisement, or successful short test must not be interpreted as proof of hard-lifetime enforcement. The screenshots deliberately show the unsupported lifecycle rather than a false success.

Evidence

Real isolated Gateway proof

Final candidate: cfbe8cfa19bac80451f1328c834c833cf3a50a9e. Real built Control UI and Gateway, isolated state and port, no mocked Gateway/provider responses. Account-specific form fields and credentials are masked. No cloud worker or model turn was started by this proof.

Flow Observed outcome
Enable bundled plugin One plugins.setEnabled; UI obtained a new hello only after applied configuration. No driver refresh/reconnect and no Gateway process restart.
Managed macOS CLI install Official Darwin arm64 0.46.0 archive rejected by the existing safe extractor's PAX policy. Visible install_archive_rejected, no false Compatible state, no allocation. This is failure characterization, not successful installation.
Existing-CLI recovery Supplied the verified official executable in an already-configured PATH directory, then explicitly retried Install. Result unmanaged, version 0.46.0, without restarting the Gateway. This does not prove managed archive installation.
Save and activate secrets.store.set → crabbox.setup.prepare → config.patch → normal config.apply → actual Gateway restart. Applied revision matched saved configuration; one connection/profile became active; config contained a store SecretRef and no plaintext key.
Read-only provider check credentials: verified, allocation: none, lifecycle: unsupported, endpoint: not_configured. Exact diagnostic codes: endpoint_unproven, posix_script_unsupported, credentials_verified. Credential access is proven; hosted execution is not.
Cost consent and cancel Server supplied default-false consent; no affirmative answer was sent. wizard.start → wizard.cancel ended cancelled / not-allocated, with no session creation/dispatch/send.
New Session → Settings → return Real Git-eligible task workspace, typed draft and attached public favicon. Set up cloud… then Start session returned with the same draft/attachment and saved cloud profile selected. No session was created or sent.

Before: manual profile form — real pre-feature build at 036e635c71cba06cae81722a803b3e61276d3ab3.

Before: manual cloud profile form

After: guided connection with protected credentials — masked key, organization, and account-specific snapshot.

After: guided provider connection

Read-only result stays honest about unsupported execution.

Verified credential access, unsupported lifecycle, endpoint not configured

Draft preservation, installation failure, and consent screenshots

Draft and attachment retained with saved cloud destination

Safe, actionable managed-installation failure

Default-false cloud cost confirmation before allocation

Cancellation completed without allocating a worker

The attached 7.24-second recording shows the real confirmation/cancellation flow. Its confirmation and terminal frames were inspected. It is not remote-turn or allocated-worker teardown evidence. No credential-entry video was recorded.

Builds, tests, and review

pnpm build passed on the final candidate. Startup JavaScript measured 342,633 bytes gzip, below the unchanged 342,930-byte baseline + 512-byte tolerance, with all eight startup assets counted. The first full build failed at 346,360 bytes; moving the observer and cloud-only English catalog behind the lazy page fixed the cost without changing budgets or asset accounting.

Recorded test batches are separate checkpoints, not a summed campaign-wide count or one full-suite invocation:

  • Initial feature: 1,504 distinct tests / 68 files across targeted batches, plus a separate 502-test macOS CI run.
  • Startup/lazy ownership: 253 / 17 files, including browser, bootstrap/lifetime, and catalog/performance tooling; overlaps earlier tests.
  • Hot-enable and diagnostic continuation: 243 / 18 files, including delayed apply/auth/owner/draft invalidation, the Plugins sibling, and real Chromium diagnostic geometry.
  • Explicit installer refresh: 41 selected tests / 3 files; the discovery selection also skipped 208 cases, which are not counted as passing.
  • Restart-pending ownership: 547 / 12 files in two disjoint owner/sibling invocations. Regression cases failed before the repair; the five-file changed gate passed, including all 14 core-test typecheck shards.
Selected exact executed commands

Run separately from the repository root. These reproduce recorded focused batches; no claim that all historical batches ran together on final HEAD.

pnpm build
node scripts/run-vitest.mjs src/gateway/worker-environments/cloud-session-test-cleanup.test.ts src/agents/main-session-recovery/cloud-session-test-recovery.test.ts src/gateway/server-methods/cloud-session-test.test.ts src/wizard/session.test.ts src/plugin-sdk/session-store-runtime.recovery.test.ts extensions/crabbox
node scripts/run-vitest.mjs ui/src/pages/cloud-workers/cloud-provider-setup.test.ts ui/src/lib/config/config-write-coordinator.test.ts ui/src/pages/plugins/plugins-page.test.ts ui/src/pages/plugins/plugins-page.surface-refresh.test.ts ui/src/app-navigation.test.ts ui/src/pages/new-session/where-chip.test.ts ui/src/pages/new-session/cloud-target.test.ts ui/src/pages/plugins/plugins-page.routing.test.ts ui/src/pages/plugins/view.test.ts ui/src/components/config-form.tiers.test.ts ui/src/pages/new-session/folder-validation.test.ts
node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/cloud-workers-settings.e2e.test.ts ui/src/e2e/cloud-workers-advanced-settings.e2e.test.ts ui/src/e2e/new-session-page.connect-machine.e2e.test.ts ui/src/e2e/new-session-page.draft-handoff.e2e.test.ts ui/src/e2e/config-safe-write.e2e.test.ts
node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/cloud-workers-installation.e2e.test.ts
node scripts/run-vitest.mjs extensions/crabbox/src/crabbox-install.test.ts extensions/crabbox/src/crabbox-setup.test.ts
node scripts/run-vitest.mjs src/gateway/config-reload.test.ts src/gateway/server-reload-handlers.test.ts
node scripts/run-vitest.mjs src/gateway/server-reload-restart.test.ts src/gateway/server-restart-deferral.test.ts src/gateway/server-reload-handlers.hot-reload-status.test.ts src/gateway/server-methods/config-write-flow.test.ts src/gateway/server-startup-config.secrets.test.ts src/gateway/server-startup-config.recovery.test.ts src/gateway/server.shared-token-hot-reload.test.ts src/config/config.env-vars.test.ts src/secrets/runtime-store.test.ts src/gateway/server-reload-managed.restart-debt.test.ts
node scripts/check-changed.mjs -- src/gateway/config-reload.ts src/gateway/server-reload-managed.ts src/gateway/config-reload.test.ts src/gateway/server-reload-handlers.test.ts src/gateway/server-reload-managed.restart-debt.test.ts
node --import tsx scripts/plugin-sdk-surface-report.mts --check

The final command fails at the unchanged SDK budget, as detailed below. Passing scoped checks or check-plugin-sdk-exports during the build do not make that gate green.

Isolated Codex autoreviews completed at the required default P0-only threshold without actionable findings, covering the feature and subsequent commit groups. One optional unchanged context file was refused by the review helper's sensitive-path policy; it was omitted without bypass and inspected locally. This is not all-priority certification, hosted acceptance, or a substitute for the unresolved gates.

Two historical test hazards remain recorded rather than claimed fixed: a reused-PID temporary database reopened obsolete schema state, and a session-send RPC test timed out once. Unchanged scoped reruns passed; the database isolation issue has a separate follow-up. The restart-owner tests also required correcting two include-file fixtures to use their own state directory instead of host-default state. No timeout increase, weakened assertion, or budget override masks these results.

Remaining draft gates

  1. SDK surface: freshly measured on final HEAD: 4,362 public exports > 4,345 and 2,587 callable exports > 2,582; 50 wildcard reexports and zero forbidden package subpaths. Unused additions and a duplicate were removed. Remaining consumed contracts still require an approved surface solution; no budget override or unrelated shipped-API deletion was made.
  2. Managed installation: safe bounded PAX support is missing in the current extractor for the official macOS release archive. No dependency patch, archive-header stripping, or extraction bypass was applied. Existing-CLI recovery is proven, not a substitute for the intended one-click install.
  3. Native/direct acceptance: a replacement native implementation still needs independent acceptance for exact recovery, account-bound cleanup, credential rotation, and actual deadline enforcement. The previous unreleased candidate remains on allocation hold. No hosted model turn, remote file roundtrip, allocated-resource cancellation/restart teardown, or active-TTL proof has occurred here.
  4. Integration/CI: the candidate is frozen for evidence and not rebased onto current main. Read-only merge preflight against main 0b80ba8240b29eb08a1cf4e020ab03ef3700e271 reported 19 conflicting paths. Integrate the shared profile/catalog/SDK/UI/docs changes coherently, then rerun exact-head validation. Do not resurrect the deleted manual form to resolve its modify/delete test conflict. This draft does not claim green PR CI or merge readiness.

Scope and release-note context

Four commits against 036e635c71cba06cae81722a803b3e61276d3ab3, 159 paths. Raw production/tooling +7,587/-2,042 (net +5,545); tests/support +5,280/-1,188 (net +4,092); generated Swift client net +444; authored docs net +92; generated docs net 0; assertion-ratchet metadata -1. These are raw counts including moves, not adjusted complexity metrics. The restart-owner repair itself is production net -1; feature growth adds the generic setup contract, plugin-owned connections/install/runtime preparation, guided UI, and server-owned test/recovery boundary. Removed paths include the bespoke raw profile form and duplicate lifecycle/control branches; moved code is not claimed new capability.

Release-note intent, once the remaining gates are resolved: guide cloud-session setup through provider connections and protected credentials, preserve New Session drafts through setup, and distinguish read-only readiness from a separately confirmed real session test. No changelog or version bump is included.

Documentation: https://docs.openclaw.ai/gateway/cloud-workers

consent-cancel.mp4

Add descriptor-driven cloud setup through the bundled Crabbox plugin, managed
CLI preparation, protected SQLite SecretRefs, and canonical profile config CAS.
Keep manual profiles in Advanced and preserve New Session drafts across setup.

Add an explicitly confirmed, server-owned test session using ordinary placement,
remote workspace proof, and exact cleanup with restart-safe private metadata.
Prepare the exact worker runtime before enrollment and keep cloud credentials
in the selected Gateway-side provider command.

Release-note context: Settings can configure named cloud connections without
allocating resources on save or read-only checks. A real test requires separate
cloud/model consent. Related to #130713 (guided cloud-session setup).

This is an unlanded implementation checkpoint. The unchanged Plugin SDK budget
still needs resolution, and hosted direct-Daytona acceptance waits for the
separate native failed-allocation cleanup repair. No release is implied.
Load cloud test observation and English copy with their Settings/Plugins
surfaces, retaining one application-owned observer across navigation and
rejecting late initialization or starts after application disposal.

Keep complete source catalogs in canonical i18n/build tooling. Correct the
provider help and docs: requested account scope is not authenticated scope,
and idle stop or a short session test is not hard-TTL destruction proof.

Validation: startup JS 346360 -> 342665 bytes against the unchanged budget;
253 UI/tooling tests, 28 setup tests, UI types, focused lint and docs checks
pass. Fresh isolated Codex P0 review reports no actionable findings.

This remains an unlanded checkpoint for guided cloud setup (#130713).
The SDK budget and native direct-Daytona lifecycle acceptance are unresolved;
no hosted allocation, merge, or release is implied.
A restart-required write advanced the reloader's effective baseline before
services or secrets were active. An equivalent Apply write could then pause
the pending restart and fail source publication against the old runtime.

Distinguish applied, restart-pending, and explicitly skipped candidates.
Preserve accepted source journaling and committed environment ownership while
keeping service comparison and applied revision tied to actual runtime
publication. Replace parallel unapplied fields with one bounded record.

Add real managed-reloader/secret-store regressions for equivalent writes,
watcher echoes, metadata, skipped/invalid/reverted candidates, and shutdown.
Isolate two existing include-file fixtures from host-default state.

Validation: 547 tests across 12 files and the scoped changed-file gate pass.
Production delta is -1 line; secret/epoch/restart guards and storage formats
are unchanged. Fresh Codex P0 review found no actionable findings; its policy
excluded unchanged managed-secrets context, which was inspected locally.
Live Save/Apply replay remains a separate next step.

Related to #130713 (guided cloud-session configuration).
Wait for the exact applied config revision before refreshing the current
client's hello in Cloud setup and Plugins. Reuse the config owner's existing
refresh loop and retain Gateway, auth, source, mutation, and page fences.

Keep long diagnostics readable in wrapping descriptions and report a closed
archive-format rejection without exposing raw native details. Explicit CLI
installation refreshes inspection so operator-provided executables can be
adopted and removed or tampered files cannot report stale availability.
Ordinary inspection remains process-cached and concurrent installs coalesce.

Validation: 243 UI/diagnostic tests, final 41 selected installer/setup/discovery
tests, canonical UI/extension types, focused lint, i18n, docs, and formatting
pass. Regression failures were captured first. Fresh Codex P0 review reports
no actionable findings. Full candidate build and live replay follow.

Managed PAX extraction is still blocked in fs-safe; no dependency, hash,
extraction safeguard, SDK budget, or native lifecycle gate was bypassed.
Related to #130713 (guided cloud-session setup).
@clawsweeper

clawsweeper Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime scripts Repository scripts agents Agent runtime and tooling extensions: crabbox size: XL maintainer Maintainer-authored PR labels Aug 27, 2026
@clawsweeper clawsweeper Bot added 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. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 27, 2026
@clawsweeper

clawsweeper Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 27, 2026, 1:38 PM ET / 17:38 UTC.

ClawSweeper review

What this changes

Adds a guided Control UI flow and generic plugin setup contract for Crabbox connections, secret references, CLI preparation, and cloud profile testing.

Merge readiness

⚠️ Ready for maintainer review - 7 items remain

Keep this draft open: an unverified Direct Daytona profile can enter the normal billable session flow despite the stated unresolved lifecycle acceptance, and the new public setup surface needs maintainer direction.

Priority: P1
Reviewed head: cfbe8cfa19bac80451f1328c834c833cf3a50a9e
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The draft contains substantial implementation work, but a lifecycle-unverified provider remains launchable through normal placement.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer draft is exempt from the external-contributor proof gate; supplied isolated Gateway evidence does not resolve the lifecycle design flaw.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer draft is exempt from the external-contributor proof gate; supplied isolated Gateway evidence does not resolve the lifecycle design flaw.
Evidence reviewed 7 items Introduced launch gate: The added settings view disables Start session only for lifecycle unsupported; absent and unverified checks remain launchable. The local commit records this file as added.
Normal placement lacks a test gate: Start session navigates with the selected profile, while submission and placement resolution require only an available configured profile and runtime/worktree conditions, not successful lifecycle-test evidence.
Provider explicitly reports an unverified lifecycle: Crabbox retains lifecycle_unverified after POSIX-script discovery and says fixed-ID allocation, worker execution, workspace transfer, and reclaim remain unverified; its test expects status: verified with lifecycle: unverified.
Findings 1 actionable finding [P1] Require a lifecycle gate before normal cloud-session launch
Security Needs attention Validate the Codex launcher contract before remote execution: The new worker setup resolves and executes the @openai/codex launcher to decide whether remote execution may proceed; the repository policy requires direct inspection of the sibling Codex source for this affirmative dependency use, but that checkout is unavailable.

How this fits together

Cloud-session setup spans the Control UI, Gateway plugin protocol, and bundled Crabbox provider. Operator input becomes secret references and profile configuration, then the Gateway may prepare and test a temporary worker.

flowchart LR
  A[Operator in Control UI] --> B[Guided cloud setup]
  B --> C[Gateway plugin protocol]
  C --> D[Crabbox provider]
  C --> E[Secret store and config]
  E --> D
  D --> F[Temporary cloud worker]
  F --> G[Session placement]
Loading

Decision needed

Question Recommendation
Should a guided profile reporting lifecycle: unverified be prevented from normal Cloud session placement while Direct Daytona lifecycle acceptance remains unresolved? Block normal placement until acceptance: Treat lifecycle-unverified guided providers as unavailable for ordinary sessions until the native lifecycle acceptance work establishes the contract.

Why: The draft's stated acceptance boundary conflicts with its current launch path, and choosing between fail-closed placement and a persisted per-profile acceptance mechanism changes product and public-contract scope.

Before merge

  • Require a lifecycle gate before normal cloud-session launch (P1) - This introduced action is disabled only for unsupported, so an absent check or Crabbox's documented unverified lifecycle state can navigate to New Session. That submission path accepts a configured profile without test evidence, even though the provider says allocation, execution, transfer, and reclaim remain unverified; the current E2E test intentionally exercises Start session while the profile is Not tested. Enforce lifecycle acceptance at the Gateway placement boundary, or keep this guided provider unavailable for normal sessions.
  • Resolve security concern: Validate the Codex launcher contract before remote execution - The new worker setup resolves and executes the @openai/codex launcher to decide whether remote execution may proceed; the repository policy requires direct inspection of the sibling Codex source for this affirmative dependency use, but that checkout is unavailable.
  • Resolve merge risk (P1) - A normal Cloud session can allocate billable resources before the selected provider has demonstrated fixed-ID allocation, execution, transfer, and reclaim.
  • Resolve merge risk (P1) - The generic WorkerSetup protocol and Crabbox connection configuration expand plugin and configuration compatibility surfaces while the PR states its SDK budget remains unresolved.
  • Resolve merge risk (P1) - The remote Codex preparation path executes a platform launcher, but the required direct upstream Codex contract inspection could not be performed.
  • Complete next step (P2) - A maintainer must choose the lifecycle-acceptance policy and SDK contract scope before this draft can safely continue.

Findings

  • [P1] Require a lifecycle gate before normal cloud-session launch — ui/src/pages/cloud-workers/cloud-provider-setup-view.ts:632-635
  • [medium] Validate the Codex launcher contract before remote execution — extensions/crabbox/src/crabbox-worker-runtime-preparation.ts:20
Agent review details

Security

Needs attention: No direct credential leak was found in the inspected runner, but the new Codex launcher-execution contract could not receive the required upstream source review.

Review metrics

Metric Value Why it matters
Production/test scope +13,455/-3,283 across 159 files; exact production/test split unavailable This is a large cross-layer feature change, and the supplied introduction evidence is truncated while the local merge-base delta is unavailable.
Plugin setup protocol 1 generic descriptor with 4 RPC method names The new Gateway/plugin contract is a compatibility surface for bundled and third-party plugins.
Configuration surface 1 named Crabbox connections shape Guided setup adds persisted connection/profile configuration that can affect existing operator workflows.

Stored data model

Persistent data-model change detected: persistent cache schema: extensions/crabbox/src/crabbox-setup-preparation.ts, persistent cache schema: ui/src/pages/cloud-workers/cloud-worker-config.ts, serialized state: extensions/crabbox/src/crabbox-connections.ts, serialized state: extensions/crabbox/src/crabbox-install-publication.ts, serialized state: extensions/crabbox/src/crabbox-install.ts, serialized state: extensions/crabbox/src/crabbox-setup-preparation.ts, and 3 more. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #130713
Summary: This draft is the candidate implementation for the guided cloud-session setup issue.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Fail closed for unverified lifecycle (recommended)
    Gate normal Gateway placement for lifecycle-unverified guided profiles until the selected acceptance design is implemented and demonstrated.
  2. Pause guided Direct Daytona launch
    Keep the setup and diagnostic work separate but defer normal Direct Daytona session availability until its lifecycle contract is accepted.

Technical review

Best possible solution:

Keep lifecycle-unverified providers out of normal Gateway placement until native lifecycle acceptance is proven; if a per-profile test is intended to unlock placement, make that evidence server-owned, revision-bound, and enforced at dispatch.

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

Yes: a profile whose check is absent or returns lifecycle: unverified enables Start session, which selects the profile in New Session without a lifecycle-test success condition.

Is this the best way to solve the issue?

No: the current UI-only condition treats unverified lifecycle status as launchable, whereas the normal placement boundary needs a fail-closed policy or server-enforced acceptance record.

Full review comments:

  • [P1] Require a lifecycle gate before normal cloud-session launch — ui/src/pages/cloud-workers/cloud-provider-setup-view.ts:632-635
    This introduced action is disabled only for unsupported, so an absent check or Crabbox's documented unverified lifecycle state can navigate to New Session. That submission path accepts a configured profile without test evidence, even though the provider says allocation, execution, transfer, and reclaim remain unverified; the current E2E test intentionally exercises Start session while the profile is Not tested. Enforce lifecycle acceptance at the Gateway placement boundary, or keep this guided provider unavailable for normal sessions.
    Confidence: 0.96

Overall correctness: patch is incorrect
Overall confidence: 0.78

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 834368b7d444.

Labels

Label changes:

  • add P1: The introduced UI condition permits a lifecycle-unverified cloud profile to reach normal session placement.
  • add merge-risk: 🚨 compatibility: The draft adds a generic WorkerSetup protocol and persisted Crabbox connection configuration with unresolved SDK-surface budget.
  • add merge-risk: 🚨 security-boundary: The new remote-worker preparation validates and executes a Codex launcher, but its required upstream contract inspection is unavailable.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This maintainer draft is exempt from the external-contributor proof gate; supplied isolated Gateway evidence does not resolve the lifecycle design flaw.

Label justifications:

  • P1: The introduced UI condition permits a lifecycle-unverified cloud profile to reach normal session placement.
  • merge-risk: 🚨 compatibility: The draft adds a generic WorkerSetup protocol and persisted Crabbox connection configuration with unresolved SDK-surface budget.
  • merge-risk: 🚨 security-boundary: The new remote-worker preparation validates and executes a Codex launcher, but its required upstream contract inspection is unavailable.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This maintainer draft is exempt from the external-contributor proof gate; supplied isolated Gateway evidence does not resolve the lifecycle design flaw.

Evidence

Security concerns:

  • [medium] Validate the Codex launcher contract before remote execution — extensions/crabbox/src/crabbox-worker-runtime-preparation.ts:20
    The new worker setup resolves and executes the @openai/codex launcher to decide whether remote execution may proceed; the repository policy requires direct inspection of the sibling Codex source for this affirmative dependency use, but that checkout is unavailable.
    Confidence: 0.9

What I checked:

Likely related people:

  • steipete: Recent cloud provider and worker-profile history, including the reviewed draft commits, is attributed to this contributor. (role: recent cloud-worker contributor; confidence: high; commits: 68fcc9b, a82042f, 8a1ff396; files: extensions/crabbox/src/crabbox-worker-provider.ts, extensions/crabbox/src/crabbox-setup.ts)

Rank-up moves

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

  • Enforce a Gateway-level lifecycle acceptance condition before normal placement.
  • Resolve the public WorkerSetup SDK and compatibility budget.
  • Perform the required direct upstream Codex source check before reviewing the launcher contract as sufficient.

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.

@steipete

Copy link
Copy Markdown
Contributor Author

Maintainer scope update: simplify this draft around ordinary cloud sessions, rather than add a separate test-session lifecycle.

The dedicated cloud-test wizard, cleanup-only session marker/recovery, browser observer, and pass/teardown certification UI are being removed. Settings will configure the connection, perform explicitly read-only checks, and hand off to normal New Session with the profile selected and the user's draft preserved. Normal sending is the billable action; existing session/placement owners retain execution, recovery, Stop cloud worker, and archive responsibilities. A completed turn or closed browser is not a promise of immediate worker destruction.

This also resolves the requested product-policy decision: we will not add a persisted per-profile test-acceptance gate. A diagnostic model response is not authorization or a teardown certificate. Provider capability/preflight checks and correct native allocation/recovery/reclaim contracts remain mandatory; this direction is not a waiver of the outstanding native acceptance proof.

Independent config/plugin repairs will be separated where they provide a useful, fully validated fix on their own. The generic restart-pending owner repair has a five-file standalone handoff; current-main receipt changes must survive integration. The SDK surface, managed archive installation, current-main integration, and native/deployment proof remain open gates. No claim of readiness or completed simplification yet.

The current screenshots and test totals describe the existing cfbe8cfa19bac80451f1328c834c833cf3a50a9e checkpoint. They will be replaced or explicitly marked historical when the simplified candidate is pushed. In particular, the attached consent/cancellation recording is not restart or hosted-session proof.

aniruddhaadak80 added a commit to aniruddhaadak80/openclaw that referenced this pull request Sep 1, 2026
Keep restart-pending and skipped candidates separate from the active config
and plugin-install comparison baseline. Equivalent writes and watcher echoes
retain restart debt without publishing inactive services or secrets. Exact
reverts cancel only config-owned debt, and signaled plugin metadata stays
pending until its running generation is replaced.

Extract the generic owner repair from 97c6b86
without the guided cloud setup feature. Preserve current-main config-write
application receipts. Extend the original revert scenario through residual
plugin-index and metadata work, with real managed-secret/reloader regressions.

Fixes openclaw#119360. Related to openclaw#131067 and openclaw#130713.

Co-authored-by: Aniruddha Adak <[email protected]>
@steipete

Copy link
Copy Markdown
Contributor Author

Retiring this large draft (+13k/-3k, 159 files). It introduces a new guided provider-connection flow and WorkerSetup RPC surface, and its own notes record unverified billable lifecycle paths. Guided cloud setup should come back as a scoped design on current main if it is still wanted.

Closed in a sweep of stale maintainer PRs (no activity for 7+ days). Reopen with a current reproduction if this still matters.

@steipete steipete closed this Oct 21, 2026
@RomneyDa
RomneyDa deleted the steipete/cloud-session-setup-e781f4 branch October 22, 2026 05:50
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: web-ui App: web-ui docs Improvements or additions to documentation extensions: crabbox gateway Gateway runtime maintainer Maintainer-authored PR 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. P1 High-priority user-facing bug, regression, or broken workflow. 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