Skip to content

docs(gateway): document the Daytona cloud-worker provider - #130282

Merged
steipete merged 1 commit into
mainfrom
claude/machine0-cloud-team-server-027374
Aug 26, 2026
Merged

steipete merged 1 commit into
mainfrom
claude/machine0-cloud-team-server-027374

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

docs/gateway/cloud-workers.md documented how to configure Crabbox cloud-worker profiles for AWS but said nothing about Daytona, even though the bundled Crabbox provider already supports it as a full ssh-lease backend.

Why This Change Was Made

Confirmed via crabbox providers describe daytona --json and a real end-to-end live test that no new OpenClaw provider code is needed — settings.provider: "daytona" already passes straight through the existing Crabbox worker provider. The only gap was documentation: how to authenticate (DAYTONA_API_KEY, no crabbox login step required, unlike AWS), a profile example, and what the default snapshot provides out of the box.

User Impact

Operators can now configure a Daytona-backed cloud-worker profile with a documented, live-verified example instead of reverse-engineering it from the AWS section or Crabbox source.

Evidence

Live proof against the real Daytona API (isolated local Crabbox binary, not the shared team Gateway):

  • crabbox doctor --provider daytona --json → daytona-fallback auth=ready control_plane=ready inventory=ready leases=0 mutation=false
  • crabbox run --provider daytona --no-sync -- 'node --version; npx --version; uname -a' → real lease cbx_7787281196a7, exit 0, node v25.9.0, npx 11.12.1, Ubuntu 24.04 kernel — confirming the default snapshot ships Node/npx already, so settings.setup is optional for this provider (documented as such).
  • crabbox list --provider daytona --json → null after the run, confirming clean teardown with no dangling billable resource.
  • pnpm docs:check-config-examples and node scripts/check-changed.mjs -- docs/gateway/cloud-workers.md both pass.
  • Codex-engine autoreview --mode branch --base origin/main: clean, no accepted/actionable findings.

Docs-only change; no runtime/schema/config-contract impact.

Crabbox already ships a Daytona backend; add the profile example and
provider-specific notes (no crabbox login step, default snapshot ships
Node, default machine class) confirmed by a live lease-and-exec proof.
@clawsweeper

clawsweeper Bot commented Aug 26, 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 gateway Gateway runtime size: XS labels Aug 26, 2026
@steipete
steipete marked this pull request as ready for review August 26, 2026 18:14
@openclaw-barnacle openclaw-barnacle Bot added the maintainer Maintainer-authored PR label Aug 26, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 26, 2026
@clawsweeper

clawsweeper Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 26, 2026, 2:21 PM ET / 18:21 UTC.

ClawSweeper review

What this changes

The PR adds a Daytona-backed Crabbox cloud-worker profile, credential guidance, and provider-specific setup notes to the Cloud Workers guide.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

The Daytona documentation fills a real gap, but one changed sentence incorrectly says operators may omit class; OpenClaw rejects such a profile before it reaches Crabbox.

Priority: P2
Reviewed head: 64836051ac6b84fb7400ed3f33849e11ef2c99b3

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The scope and live-proof narrative are strong, but the documented class fallback is contradicted by the current profile owner.
Proof confidence 🌊 off-meta tidepool Not applicable: Real behavior proof is not required because this PR only changes files under docs/.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Real behavior proof is not required because this PR only changes files under docs/.
Evidence reviewed 5 items Incorrect documented fallback: The new claim that class may be omitted conflicts with the profile owner: it rejects a missing or empty class before provisioning.
Provisioning contract: After validation, the provider always supplies the configured class as --class, so Crabbox cannot supply a default for an omitted OpenClaw setting.
Current-main comparison: Current main has no Daytona section; this PR is not redundant.
Findings 1 actionable finding [P2] Remove the nonexistent class fallback
Security None None.

How this fits together

Gateway cloud-worker profiles select a bundled provider and pass its settings to Crabbox to lease an ephemeral worker. The documentation leads operators from provider credentials and configuration to Gateway-managed worker placement.

flowchart LR
  A[Gateway operator] --> B[Cloud-worker profile]
  B --> C[Crabbox plugin]
  C --> D[Profile validation]
  D --> E[Crabbox lease request]
  E --> F[Daytona worker]
  F --> G[Gateway session placement]
Loading

Before merge

  • Remove the nonexistent `class` fallback (P2) - OpenClaw requires a non-empty settings.class before it invokes Crabbox, then always passes that value as --class. Saying omission defaults to beast therefore leads users to a profile-validation error; keep the field required or document a real OpenClaw-side default.

Findings

  • [P2] Remove the nonexistent class fallback — docs/gateway/cloud-workers.md:112
Agent review details

Security

None.

PR surface

Docs +31. Total +31 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 1 31 0 +31
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 31 0 +31

Review metrics

None.

Technical review

Best possible solution:

Keep class: "beast" explicit in the example and replace the fallback claim with wording that class is required by the OpenClaw Crabbox profile.

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

Yes—omitting settings.class reaches the Crabbox profile parser, which rejects it before any provider command is issued.

Is this the best way to solve the issue?

No—the current example is sound, but the statement that omission falls back to Crabbox's default contradicts the OpenClaw validation boundary.

Full review comments:

  • [P2] Remove the nonexistent class fallback — docs/gateway/cloud-workers.md:112
    OpenClaw requires a non-empty settings.class before it invokes Crabbox, then always passes that value as --class. Saying omission defaults to beast therefore leads users to a profile-validation error; keep the field required or document a real OpenClaw-side default.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.99

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 1fec7b6ccd89.

Labels

Label changes:

  • add P2: The documentation would direct Daytona operators toward a configuration that fails profile validation.
  • 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: Real behavior proof is not required because this PR only changes files under docs/.

Label justifications:

  • P2: The documentation would direct Daytona operators toward a configuration that fails profile validation.
  • 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: Real behavior proof is not required because this PR only changes files under docs/.

Evidence

What I checked:

Likely related people:

  • steipete: Recent history attributes the cloud-worker architecture, Codex placement work, and this documentation update to this contributor. (role: recent cloud-worker feature contributor; confidence: high; commits: 64836051ac6b, 1353ce0995c6, 0a6b95a3df9f; files: docs/gateway/cloud-workers.md, extensions/crabbox/src/crabbox-worker-profile.ts)
  • joshavant: The current-main Cloud Workers requirements and coordinator guidance immediately preceding this new section trace to this contributor. (role: recent documentation contributor; confidence: medium; commits: e6ed7e30cc5f; files: docs/gateway/cloud-workers.md)

Rank-up moves

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

  • Replace the class fallback sentence with the current required-setting contract and rerun the documentation example check.

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
steipete merged commit 84a0c6e into main Aug 26, 2026
119 checks passed
@steipete
steipete deleted the claude/machine0-cloud-team-server-027374 branch August 26, 2026 18:24
@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 27, 2026
…30282)

Crabbox already ships a Daytona backend; add the profile example and
provider-specific notes (no crabbox login step, default snapshot ships
Node, default machine class) confirmed by a live lease-and-exec proof.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS 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