Skip to content

docs: clarify Daytona cloud-worker class incompatibility - #130814

Merged
steipete merged 1 commit into
mainfrom
steipete/jolly-spence-ce3756
Aug 27, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/jolly-spence-ce3756

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where operators following the Daytona Cloud Workers guide are told that omitting settings.class selects beast, but OpenClaw rejects the profile before invoking Crabbox. The existing explicit beast example also must not be presented as working direct-Daytona provisioning: Crabbox rejects an explicit --class because its Daytona snapshot owns resource sizing.

Related: #130282 (the original Daytona cloud-worker documentation).

Why This Change Was Made

Correct the documentation to match the current integration rather than introducing runtime defaults. State that the example's class is explicit, explain the validation-versus-provider distinction, and put a direct-Daytona incompatibility warning before the setup instructions.

This is an interim docs-only correction. The separate Daytona runtime/setup repair should replace the warning and example together when its working contract is integrated. No per-session discovery, Machine0 picker, settings editor, catalog output limit, configuration schema, or runtime behavior changes are included.

User Impact

Operators no longer mistake the Crabbox CLI's generic default metadata for an OpenClaw profile default, or assume that setting beast repairs direct Daytona dispatch. The guide directs them to another supported backend until the integration is compatible.

Evidence

  • Read the complete Crabbox profile parser/provider, machine-options caller, core profile schema and lifecycle callers, relevant provider/schema/warm-image tests, and documentation/history.
  • The requirement predates the docs sentence. parseCrabboxProfile rejects missing/blank class, resolveCrabboxProvisionProfile validates before applying an override, and buildCrabboxWarmupArgs always forwards --class.
  • Direct source probes verified omitted classes are rejected for AWS, Daytona, Hetzner, and Machine0, including with a per-session override. The Daytona JSON example passes the core schema and OpenClaw parser. Provider timeout/discovery/provision entry points reject omission before any CLI invocation.
  • Upstream Crabbox internal/providers/daytona/backend_ssh.go rejects explicitly supplied --class; its TestApplyDaytonaProviderFlagsRejectsResourceNoops test protects that contract. Credentialless crabbox providers describe daytona --json reports generic beast metadata but an unmapped class catalog; it is not proof of provider acceptance.
  • Focused provider/schema suites passed: 203 tests during investigation. No runtime or tests were changed.
  • node scripts/check-docs-mdx.mjs docs/gateway/cloud-workers.md and git diff --check passed. Post-rebase validation is recorded in the landing proof comment.
  • No cloud allocation or authenticated Daytona end-to-end success is claimed. The documentation explicitly records the incompatibility instead.

Production LOC: +0/-0. Tests: +0/-0. Documentation: +5/-1 in one file.

AI-assisted documentation correction.

@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 gateway Gateway runtime size: XS maintainer Maintainer-authored PR labels Aug 27, 2026
@steipete
steipete marked this pull request as ready for review August 27, 2026 08:04
@steipete steipete self-assigned this Aug 27, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready documentation proof

Reviewed head: 1300f96682a7adc3c1b6cecaad1f5663e37873a9. Production LOC +0/-0; tests +0/-0; docs +5/-1 in one file.

The defect is the guide's false omitted-class default, not a request to change runtime policy. The parser rejects missing class before overrides or CLI execution, while warmup explicitly forwards --class; upstream direct Daytona rejects that flag. The corrected Cloud Workers guide now distinguishes local profile validation from provider compatibility and warns before the recipe. Adding a runtime default or recommending beast alone would not repair direct dispatch.

Fresh exact-head proof:

node scripts/run-vitest.mjs extensions/crabbox/src/crabbox-worker-provider.test.ts src/config/zod-schema.cloud-workers.test.ts

Passed 209 tests: 171 provider + 38 schema.

node scripts/check-docs-mdx.mjs docs/gateway/cloud-workers.md

Passed.

node_modules/.bin/oxfmt --check docs/gateway/cloud-workers.md

Passed.

git diff --check origin/main...HEAD

Passed.

A direct TypeScript source probe on this head also verified that AWS, Daytona, Hetzner, and Machine0 reject omitted class even with a per-session override; the documented JSON passes core schema and OpenClaw parser validation; warmup forwards --class beast; and the real provider timeout, discovery, and provision entry points reject omission before any CLI call.

Hosted CI run 33052428761 completed successfully on the exact head, including security-fast, check-docs, and openclaw/ci-gate. Native review artifacts validate with no findings. Current effective branch rules require the green CI gate and do not require an independent PR approval. ClawSweeper's latest comment currently reports review started; it contains no findings or Rank-up moves yet.

Scope and gap: this PR changes documentation only. No authenticated Daytona allocation or working end-to-end dispatch is claimed, and no runtime defaults, settings editor, per-session discovery, or catalog limit changes are included. The coordinated runtime/setup repair must replace this interim warning and the example together when its verified working contract is integrated. No new prose-string test or runtime test seam was added; the docs-only exception applies to full build and autoreview.

@steipete
steipete merged commit 9f581a7 into main Aug 27, 2026
109 checks passed
@steipete
steipete deleted the steipete/jolly-spence-ce3756 branch August 27, 2026 08:12
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@clawsweeper

clawsweeper Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 27, 2026, 4:12 AM ET / 08:12 UTC.

ClawSweeper review

What this changes

The PR adds a direct-Daytona incompatibility warning and clarifies that the documented settings.class value is explicit rather than an OpenClaw default.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open: the new warning correctly identifies an incompatible path, but the retained setup copy immediately asserts that the bundled provider can lease Daytona workers, leaving operators with contradictory guidance.

Priority: P2
Reviewed head: 1300f96682a7adc3c1b6cecaad1f5663e37873a9

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The source-backed correction is useful, but the remaining contradictory setup guidance is a merge-blocking documentation defect.
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 Current main documents the incorrect default: Current main still says Daytona class defaults to beast when omitted, while the plugin requires a non-empty class.
OpenClaw class contract: The current Crabbox plugin rejects an empty class and always includes it in warmup arguments; the configuration reference documents the same required contract.
Provisioning caller and regression coverage: Provisioning resolves the profile before allocation, and focused tests assert that warmup receives --class and that a per-operation class override is forwarded.
Findings 1 actionable finding [P2] Remove the contradictory Daytona provisioning claim
Security None None.

How this fits together

Gateway cloud-worker profiles pass provider-owned settings to the bundled Crabbox plugin. That plugin requires a machine class and turns it into the Crabbox CLI’s --class argument before provisioning a worker.

flowchart LR
  A[Operator cloud-worker profile] --> B[Gateway worker lifecycle]
  B --> C[Crabbox plugin]
  C --> D[Required class validation]
  D --> E[Crabbox warmup command]
  E --> F[Daytona backend]
Loading

Before merge

  • Remove the contradictory Daytona provisioning claim (P2) - The added warning says direct Daytona cloud-worker dispatch cannot provision, but the following paragraph still says the bundled provider can lease Daytona sandboxes as cloud workers and retains a copy-paste profile. Rewrite that remaining path as unsupported until the runtime contract exists, so operators receive one unambiguous outcome.
  • Resolve merge risk (P1) - Merging still leaves copy-paste provisioning instructions and an affirmative leasing claim beneath a warning that says direct Daytona provisioning cannot work, which can mislead operators into attempting the unsupported setup.

Findings

  • [P2] Remove the contradictory Daytona provisioning claim — docs/gateway/cloud-workers.md:88
Agent review details

Security

None.

PR surface

Docs +4. Total +4 across 1 file.

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

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Make the Daytona section internally consistent (recommended)
    Remove or rewrite the remaining direct-provisioning claim and example so the page presents one clear unsupported-state path until a working runtime contract exists.

Technical review

Best possible solution:

Keep the incompatibility warning, but replace the remaining direct-Daytona provisioning claim and unusable profile example with a concise unsupported-state note until the runtime contract makes the integration usable.

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

Yes for the OpenClaw side: current source rejects an omitted class and always forwards an explicit one before provider allocation. The exact Daytona backend rejection was not re-executed in this read-only environment.

Is this the best way to solve the issue?

No: the warning is an appropriate interim correction, but retaining affirmative direct-provisioning guidance directly below it leaves the operator path internally contradictory.

Full review comments:

  • [P2] Remove the contradictory Daytona provisioning claim — docs/gateway/cloud-workers.md:88
    The added warning says direct Daytona cloud-worker dispatch cannot provision, but the following paragraph still says the bundled provider can lease Daytona sandboxes as cloud workers and retains a copy-paste profile. Rewrite that remaining path as unsupported until the runtime contract exists, so operators receive one unambiguous outcome.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 21b41efc7bb8.

Labels

Label changes:

  • add P2: This corrects a documented cloud-worker setup path that currently cannot provision as described.
  • add merge-risk: 🚨 other: The merged page would still pair an unsupported-flow warning with affirmative setup guidance for that same flow.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.

Label justifications:

  • P2: This corrects a documented cloud-worker setup path that currently cannot provision as described.
  • merge-risk: 🚨 other: The merged page would still pair an unsupported-flow warning with affirmative setup guidance for that same flow.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.

Evidence

What I checked:

Likely related people:

  • steipete: Authored the merged Daytona guide and this focused correction; the affected current documentation and reviewed head are both attributable to this work. (role: Daytona documentation owner and recent cloud-worker contributor; confidence: high; commits: 84a0c6ea14b4, 1300f96682a7; files: docs/gateway/cloud-workers.md)

Rank-up moves

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

  • Replace the remaining direct-Daytona provisioning assertion and unusable example with guidance consistent with the warning.

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 commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor Author

Agreed with the late review finding. The warning was correct, but retaining the affirmative leasing claim and copy-paste profile beneath it left the operator path contradictory.

Addressed in #130824: remove the unsupported setup recipe and associated affirmative setup text, retain a concise unsupported-state explanation, and point to the supported AWS configuration and standalone Crabbox documentation. No runtime contract changes are included. The separate runtime/setup repair must replace this section when its verified working contract is integrated.

The review was published during the native merge/final-verification window for this PR, so the correction was landed as a focused follow-up rather than silently leaving the finding unresolved.

Resolved by merged #130824, commit 9fb992fb512a1ebf4940db54bafbf33223af10d3. The follow-up passed exact-head CI, docs checks, independent full-page sanity review, and fresh upstream-source reconfirmation. Both the actionable finding and matching Rank-up move are addressed.

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 size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant