Skip to content

feat(crabbox): allow profiles without a default machine class - #131009

Merged
steipete merged 5 commits into
mainfrom
steipete/crabbox-class-omission-130966
Aug 29, 2026
Merged

steipete merged 5 commits into
mainfrom
steipete/crabbox-class-omission-130966

Conversation

@steipete

@steipete steipete commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Closes #130966 — allow omitted Crabbox profile classes.

Related but not completed here: guided cloud-session setup with protected credentials.

What Problem This Solves

Operators cannot delegate resource selection to a Crabbox backend, or choose a class only at placement time, because OpenClaw rejects a profile without a default class. An already-open class-based editor can also restore a class intentionally removed through Advanced settings.

During verification, the Crabbox consumer was also found to mistake non-runnable lease states and failure prose for completed cleanup. That could let OpenClaw forget infrastructure while the owning CLI still reported cleanup failure.

Why This Change Was Made

Make omission a generic plugin contract, not a provider-specific exception. Missing settings.class omits --class; an explicit configured or placement class retains precedence and validation. Real mapped catalogs retain their advertised choices and 32-option bound without an invented default or reserved default slot.

One effective-sizing policy determines warm-image behavior. Classless omission is cold; a known configured/placement class retains the warm default when no setup environment is supplied. Explicit warmImage: false remains cold, and explicit warm reuse requires a class before commands run. Teardown uses the recorded enrolled class without rereading setup secrets or opening an unused warm store for cold workers.

Classless Edit uses the existing Advanced editor. A stale rich-editor draft checks the authoritative profile before producing a save patch. Unsupported backend errors retain the native diagnostic rather than an incorrect upgrade-only hint.

Cleanup remains owned by Crabbox: known non-runnable observations stop heartbeats and become unknown, not proven destruction. Only a normal zero-exit stop establishes completion; a preceding 404 warning or misleading nonzero “already stopped” prose does not. No provider-name exception, new SDK result variant, or consumer-side deletion guess is added.

User Impact

Profiles can omit their default machine class. Explicit null, empty/whitespace, and nonstring values remain invalid; configured classes and placement overrides continue working. Classless profiles are edited through Advanced, and stale saves cannot restore removed settings.

OpenClaw documents the generic Crabbox integration and its required worker lifecycle; backend sizing, snapshots, credentials, and setup stay in Crabbox documentation. This does not make unsupported direct backends satisfy fixed-ID, script-setup, replay, heartbeat, or cleanup contracts. In particular, managed evaluation is not direct-Daytona support.

No new configuration keys, environment variables, dependencies, Plugin SDK exports, database tables, or schema versions. One existing setting changes from required to optional. Production +103/-87 (net +16); tests +773/-406 (net +367); docs +36/-58 (net -22). Production growth implements optional sizing and its effective-class policy; the connected consumer cleanup repair is net-negative.

Release-note context: allow Crabbox profiles without a default class, preserve classless Advanced edits, resolve warm defaults from effective sizing, and retain failed cleanup until the owning CLI confirms success.

Evidence

The maintainer proof record, inspected screenshots/video, failures, and review-item dispositions are the detailed evidence record. It distinguishes released source/CLI fixtures, local development dependencies, real Gateway UI, hosted controls, and unperformed work.

  • Regression provenance: omission/stale-editor regressions failed against unchanged production code before repair. The connected false-cleanup repair had 25 red regression cases, including a real released-CLI 404-warning/failed-release sequence. The misleading native diagnostic dates to fixed-ID provisioning and was carried into lease keepalive, both authored/merged by @steipete; this is source-history attribution, not an asserted stable-release regression.
  • Released dependency contract: immutable Crabbox 0.46/0.47 source, nine checks using the official 0.46 binary, and ten sequential operations through the actual candidate adapter. Incomplete cleanup rejects stop; completed and repeated stop return zero. The latest review's invented nonzero-success premise is explicitly rejected with that evidence, not silently ignored. Joined actual-adapter/core-store coverage remains a named gap.
  • Real UI: a normally installed source-bound package served an isolated authenticated Gateway. A stale class-based draft was visibly rejected after another real editor saved classless settings; the newer lifetime survived, and classless Edit opened Advanced. No mocked Gateway or application-state injection. Captures are before/after interactions on the candidate, not a pre-fix frontend comparison.
  • Real cloud path: a classless profile allocated the approved small sandbox and executed the real remote setup script. Candidate download then failed with curl 35 / TLS reset before installation/enrollment. Initial stop failure stayed pending; independent exact-resource and complete retained-inventory absence, later ordinary stop success, normal reclaim, and managed-worktree deletion were verified. Earlier managed controls additionally covered fixed-ID replay and native expiry with the coordinator stopped.
  • Scope limit: node enrollment, a model turn, workspace roundtrip, cancellation, and Gateway restart through the approved endpoint remain unverified. A separate bounded Linux control reproduced selective TLS resets while ordinary Node.js HTTPS worked; the effective organization policy/tier could not be read and is not claimed. No network-policy bypass or account change was attempted. This is not full end-to-end acceptance or certification of local development Crabbox repairs as released software.
  • Containment: all four sequential task resources are confirmed absent through provider APIs; 7.030 conservative worker-minutes, approximately $0.0195 estimated, zero model turns. All task services/routes are stopped and temporary credential/browser copies removed. The original pre-allocation failed rig remains quarantined, not falsely labeled recovered.

Refreshed-source checks

Final published candidate 0844983f1b9dcca5a83aa660d5353faa3dfdfe00, based on 9e10397dee01b46fe8c707fb4b4abb698effb04b, preserves all five feature patches, authors, dates and messages. All seven PR production files are byte-identical to the live-tested 532b68d package.

Exact-head CI 33238476822 passed on attempt 1: 185 successful jobs, 13 skipped, including openclaw/ci-gate. The final source passed the original 1,772-test Gateway CI group in its original configuration/order and fresh restricted P0 autoreview over the complete committed branch. The earlier feature refresh passed 393 focused tests plus five declaration/closure tests, docs validation, full build and complete changed gate. An initial Knip timeout passed one serialized retry without changing its 600-second limit. Those earlier full checks are not relabeled as new full-repo runs on the final base.

The first refreshed CI run exposed two stale send-account expectations introduced by the interaction of main's Twitch canonical-send work and effective-account normalization. Both failures were reproduced alone and in original order, and a test-only repair was validated. Main's equivalent CI repair landed concurrently; the final branch retains it and drops our duplicate test commit. No unrelated production change or timeout/baseline workaround remains.

The latest ClawSweeper review on exact head 0844983 reports no actionable code findings. Exact-head checks are green; existing class-bearing warm defaults and restart teardown are covered, and direct released-CLI contract evidence is supplied. The maintainer integration decision is to proceed with the bounded optional-class feature under the landing instruction, using changed-boundary real proof and the documented provider-network limitation. The full-lifecycle rank-up recording remains explicitly incomplete because the approved endpoint reset TLS before enrollment. This does not certify the broader successful hosted flow or claim an operator proof waiver.

Separate owner work

The pre-existing null-lease cleanup defect is owned by failed-dispatch allocation-free cleanup, not an unpublished SDK/store slice imported here. Direct-AWS repeated-stop lookup can also miss retained terminal cleanup evidence and needs its own owner repair. Neither limitation is hidden by accepting generic not-found prose, and this PR does not claim universal backend teardown liveness.

AI-assisted maintainer work.

@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 extensions: crabbox size: L 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. 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 27, 2026
@clawsweeper

clawsweeper Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 29, 2026, 2:35 AM ET / 06:35 UTC.

ClawSweeper review

What this changes

The PR makes a Crabbox cloud-worker profile’s default machine class optional, passes a per-placement class through to provisioning, and updates warm-image, cleanup, UI, and documentation behavior.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep open for explicit maintainer review: the classless-profile implementation is coherent and current main still rejects it, but the exact-head checks are incomplete and the documented live provider run stops before enrollment and a session turn.

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

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch has coherent owner-boundary handling and focused coverage; final readiness depends on the documented proof decision and exact-head checks.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored protected PR is exempt from the external-contributor proof gate; the recorded allocation and cleanup are useful, but stop before complete enrollment and session behavior, leaving a maintainer landing decision.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored protected PR is exempt from the external-contributor proof gate; the recorded allocation and cleanup are useful, but stop before complete enrollment and session behavior, leaving a maintainer landing decision.
Evidence reviewed 9 items Current-main baseline: Fetched current main still rejects an absent class before provisioning, so the requested capability is not already implemented.
Introduced profile behavior: The PR accepts absent class, derives warm-image policy after configured-or-placement class resolution, and rejects requested warm images without an effective class before provider commands.
Lifecycle owner: Provisioning resolves the class before allocation, records it only after enrollment, and requires explicit stop for non-runnable or unrecognized leases.
Findings None None.
Security None None.

How this fits together

Cloud-worker profiles are configured in the Control UI and passed to provider plugins for lease provisioning. The Crabbox plugin resolves the effective class, runs provider commands, and returns lifecycle state to Gateway-managed sessions.

flowchart LR
  A[Cloud worker profile] --> B[Control UI or config]
  B --> C[Effective class resolution]
  C --> D[Crabbox provider plugin]
  D --> E[Cloud lease]
  E --> F[Enrollment and session]
  C --> G[Warm image policy]
Loading

Decision needed

Question Recommendation
Should this optional classless Crabbox profile capability land before a real profile has completed enrollment, a session turn, workspace reconciliation, and provider teardown? Wait for lifecycle proof: Keep the PR open until a classless profile completes the documented Gateway-to-provider lifecycle on the exact head.

Why: The implementation preserves the existing class-bearing path in source, but its real-provider evidence ends before the session boundary and the PR calls this a landing hold.

Before merge

  • Resolve merge risk (P1) - Existing class-bearing profiles now receive a conditional warm-image default, so exact-head checks and upgrade behavior need confirmation.
  • Resolve merge risk (P1) - The real provider run stopped before enrollment, a session turn, workspace reconciliation, and final teardown.
  • Resolve merge risk (P1) - Fresh inspection of Crabbox upstream source was unavailable because no sibling checkout was present and network access failed.
Agent review details

Security

None.

PR surface

Source +16, Tests +367, Docs -22. Total +361 across 14 files.

View PR surface stats
Area Files Added Removed Net
Source 7 103 87 +16
Tests 5 773 406 +367
Docs 2 36 58 -22
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 14 912 551 +361

Review metrics

Metric Value Why it matters
Production versus test delta production +103/-87; tests +773/-406; docs +36/-58 Production growth implements effective-class and lifecycle invariants, with substantial focused regression coverage.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #130966
Summary: This PR is the open candidate implementation for the optional Crabbox machine-class request.

Members:

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

Merge-risk options

Maintainer options:

  1. Prove the classless lifecycle (recommended)
    Run the exact head through allocation, enrollment, a session turn, workspace reconciliation, and provider teardown using a supported backend.
  2. Accept the provider-proof limitation
    A maintainer may merge after exact-head checks if they explicitly accept that the recorded provider environment failed before enrollment.

Technical review

Best possible solution:

Land only after exact-head checks are green and a maintainer accepts complete classless lifecycle proof or the documented provider-network limitation.

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

Yes at source level: current main rejects an omitted class before provider provisioning, and the exact PR head changes that path. The real classless provider scenario remains partial because it stopped before enrollment and a session turn.

Is this the best way to solve the issue?

Yes for the implementation shape: class omission is handled in the owning Crabbox plugin before provisioning and warm-image selection, while Advanced settings preserve a profile the rich editor cannot faithfully represent.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 8af1b4aceeab.

Labels

Label changes:

  • add merge-risk: 🚨 compatibility: The PR changes interpretation of an existing provider-owned profile setting and its warm-image default.
  • add proof: 🎥 video: Contributor real behavior proof includes video or recording evidence. This maintainer-authored protected PR is exempt from the external-contributor proof gate; the recorded allocation and cleanup are useful, but stop before complete enrollment and session behavior, leaving a maintainer landing decision.

Label justifications:

  • P2: This is a bounded optional cloud-worker capability with no evidence of a broad current outage.
  • merge-risk: 🚨 compatibility: The PR changes interpretation of an existing provider-owned profile setting and its warm-image default.
  • merge-risk: 🚨 availability: The PR changes cloud-worker lease inspection, cleanup, and renewal behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored protected PR is exempt from the external-contributor proof gate; the recorded allocation and cleanup are useful, but stop before complete enrollment and session behavior, leaving a maintainer landing decision.
  • proof: 🎥 video: Contributor real behavior proof includes video or recording evidence. This maintainer-authored protected PR is exempt from the external-contributor proof gate; the recorded allocation and cleanup are useful, but stop before complete enrollment and session behavior, leaving a maintainer landing decision.

Evidence

What I checked:

Likely related people:

  • steipete: Current implementation commits and the prior merged provisioning-idempotency and heartbeat work cover the same Crabbox lifecycle boundary. (role: feature and recent lifecycle contributor; confidence: high; commits: 0844983f1b9d, 05cd389cac01, 5a0fe2232b46; files: extensions/crabbox/src/crabbox-worker-profile.ts, extensions/crabbox/src/crabbox-worker-provider.ts, ui/src/pages/cloud-workers/cloud-worker-config.ts)

Rank-up moves

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

  • Resolve the maintainer decision on the live-provider gap after exact-head checks finish.

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 (12 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-28T02:02:41.327Z sha 8438688 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-28T16:40:36.725Z sha 435f1ab :: needs maintainer review before merge. :: none
  • reviewed 2026-08-28T19:17:48.658Z sha a07dfb1 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-28T20:35:51.538Z sha 4e324c5 :: needs changes before merge. :: [P1] Preserve completion for confirmed-destroyed leases
  • reviewed 2026-08-28T22:31:05.243Z sha 532b68d :: found issues before merge. :: [P1] Preserve completion for provider-confirmed destroyed leases
  • reviewed 2026-08-29T04:46:06.007Z sha 532b68d :: found issues before merge. :: [P1] Preserve completion for provider-confirmed destroyed leases
  • reviewed 2026-08-29T05:51:06.843Z sha 32b3973ecc77fbe12f9231691e2a143cca9a2db2 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-29T06:21:23.466Z sha 2b1feb3070ce98984b753689b1ba1c16f52a333c :: needs maintainer review before merge. :: none

@steipete steipete self-assigned this Aug 27, 2026
@steipete

steipete commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor Author

Final pre-merge proof — 2026-08-29

The scoped optional-class change is ready for native preparation; this is not a completed merge or full worker-turn acceptance report. Published head: 0844983f1b9dcca5a83aa660d5353faa3dfdfe00, based on 9e10397dee01b46fe8c707fb4b4abb698effb04b. Exact-head CI 33238476822 passed on attempt 1: 185 successful jobs, 13 skipped, including openclaw/ci-gate. GitHub reports CLEAN/MERGEABLE. Native review guards and fresh complete-committed-branch P0 review passed. No merge, release, or registry publication is claimed by this checkpoint.

Actual cloud dispatch, failure, and cleanup

A fresh, real isolated Gateway used the normally installed, source-bound candidate package. A normal registry-owned session/worktree dispatched through a classless Crabbox profile and allocated the approved 2-CPU/4-GiB/8-GiB sandbox without a class flag. Real remote profile execution reached the candidate download, which failed with curl: (35) Recv failure: Connection reset by peer before package installation, node enrollment, or model execution.

The first stop returned exit 5, and the known lease stayed pending rather than being falsely marked destroyed. Independent exact-resource HTTP 404 plus a complete exact-ID retained-inventory query confirmed provider API absence. A later ordinary stop returned 0; normal sessions.reclaim returned the session to local execution. Normal session deletion removed its managed live worktree, and project removal succeeded. No database edits or fabricated terminal state were used.

A separate, bounded three-minute Linux control reproduced the network limitation: HTTPS to nodejs.org returned HTTP 307, while the approved temporary tunnel failed with curl 35 / HTTP 000 using both normal and IPv4 networking; www.cloudflare.com also reset. The sandbox reported no custom network block or allowlists. Daytona documents connection resets under network restrictions and troubleshooting, but organization-detail reads returned 401, so the exact effective policy/tier is not verified. No policy bypass, account upgrade, DNS change, or alternate public destination was attempted.

Full node enrollment, a model turn, workspace roundtrip, cancellation, and Gateway restart remain unverified through this endpoint. The recording below is explicitly edited, 26-second evidence of allocation, visible failure/pending cleanup, and ordinary reclaim—not successful end-to-end worker execution or a pre-fix comparison. Its contact sheet and full-resolution keyframes were inspected for the asserted states and sensitive content.

Across the campaign, four small CPU-only resources were used sequentially, all confirmed absent through provider APIs: 7.030 conservative worker-minutes, approximately $0.0195 estimated at the recorded published rates, not an invoice. Model turns: zero. The latest coordinator trace recorded two creates and no TTL updates; both new leases ended released without pending/error/retry cleanup markers. All task Gateways, coordinators, temporary routes and local services are stopped, ports closed, owned containers/network removed, and temporary credential/browser files removed. Evidence and the coordinator volumes are preserved. API absence is not a physical-erasure claim.

The first failed rig remains offline with its original rejecting configuration unchanged. That earlier pre-allocation credential-destination failure exposed a pre-existing, independent null-lease cleanup defect: cleanup can re-enter allocating provision before the later enrollment fence. It was not “recovered” by correcting credentials, and no cleanup-only allocation was attempted. This optional-class PR does not introduce or claim to repair that owner boundary; unpublished cleanup/Move/SDK/store changes were not imported.

Candidate and refresh proof

The live package was built from head 532b68d, normally installed with npm lifecycle scripts enabled, and verified by source/build identity, native binding loads, and hashes of 1,573 installed key/UI/worker files. Archive: 70,165,065 bytes, SHA-256 1dc2ccf41ed6434254f4af66626c50550f0964df9a72fa2471e349beffc67312.

That head passed 433 focused tests, full changed-surface checks, docs checks, full build, native review guards, restricted P0 autoreview, and CI run 33216542141 (183 successful jobs, 13 skipped). Startup JavaScript measured 347,442 gzip bytes below the unchanged 347,831-byte limit. These are prior-head results, not the pending refreshed head's CI.

The refresh to 32b3973 resolved actual documentation/catalog-test conflicts after main adopted mapped classCatalog.profiles. It passed 393 focused tests (47 core lifecycle, 25 UI config, 321 Crabbox), five additional declaration/closure tests, MDX validation, 6,977 internal links with zero broken, 1,209 configuration fences, and restricted P0 autoreview. Full build passed in 4,033.60 seconds. The first changed gate failed when all three Knip scans hit their unchanged 600-second limits; its single serialized retry passed all scans, types, lint and remaining guards in 2,592.22 seconds. No timeout, budget, baseline, dependency, or install-script override was used.

That head's CI exposed two new-main Gateway send tests expecting omitted account input to remain omitted at local delivery, although main's canonical routing resolves default. The failures reproduced both alone (126 pass / 2 fail) and in the original CI order (1,759 pass / 2 fail). A bounded test-only repair passed the 1,772-test original group and 37 account-routing siblings. While it was being verified, main's equivalent CI repair landed as c18ea580. The final branch keeps that canonical fix and drops our duplicate test commit rather than carrying competing repairs.

Final 0844983 replays the five feature commits patch-identically onto 9e10397; authors, dates and full messages are preserved. All seven feature production blobs remain byte-identical to live-tested 532b68d. On the final source, the original CI group and both original configurations/order passed 1,772 tests in 257.42 seconds. A fresh review selected the complete committed final branch directly and returned exit 0 / scoped-clean with no actionable P0 findings in 116.96 seconds. This remains a P0-only result, not an all-priority certificate. The final exact-head CI is green as linked above; full build/whole changed-gate runs were not repeated merely for patch-identical rebases and adoption of main's equivalent test-only fix.

Production: +103/-87 (net +16). Tests: +773/-406 (net +367). Docs: +36/-58 (net -22). Growth implements the approved optional-class capability and effective-class policy; the consumer cleanup repair itself is net-negative. The refresh adds no new production behavior.

Released cleanup contract and review disposition

The earlier terminal-cleanup P1 was checked against immutable Crabbox 0.46/0.47 source, the official 0.46 binary, and the actual candidate adapter. The latest ClawSweeper review, at 06:35 UTC on August 29 on exact head 0844983, reports no actionable code findings and judges the implementation shape appropriate. Nine real-CLI boundary checks and ten sequential adapter operations passed. A released lease with incomplete cleanup rejects stop; once cleanup completes, stop and repeated stop return zero. An earlier GET 404 warning cannot convert a failed release into success. The released stop owner checks cleanup separately.

Disposition of the earlier P1 review items:

  • Literal destroyed / nonzero already-destroyed P1 and its duplicate merge-risk item: rejected as stated. The cited fixture deliberately tests misleading failure prose; it is not an upstream successful-stop transcript. Managed lease states do not emit literal destroyed; direct Daytona's literal state does not establish the supported fixed-ID provisioning sequence. Restoring broad prose success would reopen demonstrated false cleanup.
  • Unavailable upstream contract / recheck supported CLI: resolved within the released-source and real-CLI fixture scope above. This is not a universal backend or live-provider certificate.
  • Requested combined core/provider regression: the invented nonzero-success scenario was not added. The real released-CLI sequence was tested through the actual adapter, with existing core retry/restart coverage separately. A joined actual-adapter/core-store test remains a coverage gap; it is not represented as completed.

A distinct source-backed direct-AWS stop replay defect is tracked separately: active-only inventory lookup can prevent retry from reaching owner-held terminal cleanup evidence. It needs an owner-side repair, not generic not-found success. No all-backends teardown-liveness claim is made.

Latest review and rank-up disposition: exact-head checks are now green. Existing class-bearing profiles preserve their setup-environment/explicit-warm-image behavior; the effective-class matrix and durable restart teardown tests cover the conditional default. Direct upstream source and released-CLI proof are supplied above. The maintainer integration decision is to proceed with this bounded optional-class feature under the landing instruction, using changed-boundary real proof and the documented provider-network limitation. The successful full lifecycle recording is not supplied because the approved endpoint repeatedly failed TLS before enrollment. This is not a claimed successful run, operator proof waiver, direct-backend certification, or completed broader acceptance.

Recorded local validation commands

Feature refresh at 32b3973 (production bytes unchanged in the final head):

node scripts/run-vitest.mjs extensions/crabbox/index.test.ts extensions/crabbox/src/crabbox-worker-provider.test.ts extensions/crabbox/src/crabbox-worker-warm-image.test.ts extensions/crabbox/src/crabbox-worker-inspect.test.ts extensions/crabbox/src/doctor.test.ts src/gateway/worker-environments/provider-reconciliation.test.ts src/gateway/worker-environments/provider-node-teardown.test.ts ui/src/pages/cloud-workers/cloud-worker-config.test.ts
node scripts/check-changed.mjs --base 56c2083fbdd5cac62d69cae92bb71cc68e512412
node --import ./scripts/tsx.mjs scripts/build-all.mts
node scripts/check-docs-mdx.mjs docs/gateway/cloud-workers.md docs/gateway/configuration-reference.md

Final-head original-order replay used scripts/ci-run-node-test-shard.mts with the original agentic-gateway-methods-hosted-2 plan from the cached failed job: 105 include paths, both configurations, plan concurrency 1 and two workers. Final branch review used the standard restricted, credential-scanned autoreview helper with branch mode against 9e10397, Codex/high reasoning and default P0 scope. Native review-init, main/PR checkouts and review-guard passed on exact head 0844983.

Earlier controls and real Settings UI

Earlier managed controls proved omitted-class allocation, run --script-stdin, active fixed-ID replay, native expiry while the coordinator was stopped, retained expired state after restart, and later successful stop. Initial stop failures were retained. Restart replay returned the observed 409 lease_id_conflict, not a claimed byte-identical successful replay. These controls used a local development Crabbox receipt/TTL and SSH command/sync candidate; they do not prove that released CLI versions or the independently merged Crabbox cleanup repair contain those exact bytes. VNC/pond paths were not exercised.

Managed success is not direct-Daytona support: the native fixed-ID capability gate remains authoritative. OpenClaw keeps generic capability diagnostics and provider-specific setup in Crabbox documentation.

The real Settings UI test used two authorized isolated browsers against the installed candidate Gateway, without a mocked Gateway or application-state injection. One held a standard / 16m draft; the other saved a classless 20m profile through Advanced Raw. The stale save was visibly rejected without restoring the class or lifetime. Classless Edit opened Advanced. No page errors occurred.

Before: unsaved class-based draft.

Class-based draft with a pending 16-minute lifetime

After: stale save rejected; authoritative classless profile retained.

Stale profile save visibly rejected without restoring the removed class

Classless Edit opens Advanced.

Classless profile Edit reaches Advanced cloud-worker settings

Settings interaction recording (candidate before/after interaction, not pre-fix comparison):

classless-ui-532b68d.webm

Allocation → transfer failure/pending cleanup → ordinary reclaim (edited excerpts; no model turn):

classless-allocation-failure-reclaim-532b68d.mp4

@steipete
steipete marked this pull request as ready for review August 27, 2026 21:09
steipete added a commit that referenced this pull request Aug 27, 2026
Keep native fixed-ID backend rejection separate from obsolete-CLI flag errors. Classless unsupported profiles now report their actual backend incompatibility before enrollment, without an incorrect upgrade-only instruction.

Extend the existing boundary regression, replace the misleading Daytona success fixture, and clarify native coordinator routing in the docs. Follow-up for #131009 (class-optional Crabbox profiles).
@clawsweeper clawsweeper Bot added merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 27, 2026
steipete added a commit that referenced this pull request Aug 28, 2026
Apply the maintainer-approved documentation correction for PR #131009.
Keep OpenClaw's fixed-ID, setup, inspection, cleanup, and AWS instance-role
requirements while directing backend configuration and tutorials to Crabbox.

Require complete session-flow verification before relying on a new profile;
standalone readiness does not establish OpenClaw worker compatibility.
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 28, 2026
@steipete
steipete force-pushed the steipete/crabbox-class-omission-130966 branch from 435f1ab to a07dfb1 Compare August 28, 2026 19:10
steipete added a commit that referenced this pull request Aug 28, 2026
Keep native fixed-ID backend rejection separate from obsolete-CLI flag errors. Classless unsupported profiles now report their actual backend incompatibility before enrollment, without an incorrect upgrade-only instruction.

Extend the existing boundary regression, replace the misleading Daytona success fixture, and clarify native coordinator routing in the docs. Follow-up for #131009 (class-optional Crabbox profiles).
steipete added a commit that referenced this pull request Aug 28, 2026
Apply the maintainer-approved documentation correction for PR #131009.
Keep OpenClaw's fixed-ID, setup, inspection, cleanup, and AWS instance-role
requirements while directing backend configuration and tutorials to Crabbox.

Require complete session-flow verification before relying on a new profile;
standalone readiness does not establish OpenClaw worker compatibility.
steipete added a commit that referenced this pull request Aug 28, 2026
Treat known non-runnable Crabbox states as loss of a usable lease, so core
fences the worker and requests explicit teardown instead of assuming the
machine is gone. Stop renewing those leases and share the classification
with provisioning, including archived resources.

Only normal zero-exit stop results prove provider-owned cleanup. Preserve
failed release diagnostics even after an earlier missing-lease warning,
and reconcile AWS profile rejections through stop when recognition is lost.
Clarify the existing inspection contract without changing its SDK shape.

Preserves the optional-class and warm-image policy in #131009.
@clawsweeper clawsweeper Bot added the P1 High-priority user-facing bug, regression, or broken workflow. label Aug 28, 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: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed P1 High-priority user-facing bug, regression, or broken workflow. 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 29, 2026
@steipete
steipete force-pushed the steipete/crabbox-class-omission-130966 branch from 32b3973 to 2b1feb3 Compare August 29, 2026 06:13
Preserve class omission through provisioning, advertised machine choices, and
Advanced editing while requiring an effective class for warm-image reuse.
Keep explicit classes and placement overrides unchanged, reject stale rich
editor saves, and document the remaining managed-session acceptance boundary.

Fixes #130966.
Keep native fixed-ID backend rejection separate from obsolete-CLI flag errors. Classless unsupported profiles now report their actual backend incompatibility before enrollment, without an incorrect upgrade-only instruction.

Extend the existing boundary regression, replace the misleading Daytona success fixture, and clarify native coordinator routing in the docs. Follow-up for #131009 (class-optional Crabbox profiles).
Apply the maintainer-approved documentation correction for PR #131009.
Keep OpenClaw's fixed-ID, setup, inspection, cleanup, and AWS instance-role
requirements while directing backend configuration and tutorials to Crabbox.

Require complete session-flow verification before relying on a new profile;
standalone readiness does not establish OpenClaw worker compatibility.
Preserve cold classless omission while retaining warm defaults for known
configured or placement classes without forwarded setup environment names.
Explicit warm-image flags retain priority and warm provisioning requires a
known effective class before commands.

Share the pure policy across provision and teardown, using the successfully
enrolled class after reconstruction without resolving setup environment
values. Keep cold teardown from creating warm state and document the
conditional default without restoring backend-specific tutorials.

Reuse the existing lifecycle-timeout stop helper for normal teardown.
Treat known non-runnable Crabbox states as loss of a usable lease, so core
fences the worker and requests explicit teardown instead of assuming the
machine is gone. Stop renewing those leases and share the classification
with provisioning, including archived resources.

Only normal zero-exit stop results prove provider-owned cleanup. Preserve
failed release diagnostics even after an earlier missing-lease warning,
and reconcile AWS profile rejections through stop when recognition is lost.
Clarify the existing inspection contract without changing its SDK shape.

Preserves the optional-class and warm-image policy in #131009.
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 29, 2026
@steipete
steipete force-pushed the steipete/crabbox-class-omission-130966 branch from 2b1feb3 to 0844983 Compare August 29, 2026 06:26
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. labels Aug 29, 2026
@steipete
steipete merged commit b89c803 into main Aug 29, 2026
258 checks passed
@steipete
steipete deleted the steipete/crabbox-class-omission-130966 branch August 29, 2026 06:46
@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 30, 2026
…aw#131009)

* feat(crabbox): allow profiles without a default machine class

Preserve class omission through provisioning, advertised machine choices, and
Advanced editing while requiring an effective class for warm-image reuse.
Keep explicit classes and placement overrides unchanged, reject stale rich
editor saves, and document the remaining managed-session acceptance boundary.

Fixes openclaw#130966.

* fix(crabbox): preserve unsupported backend diagnostics

Keep native fixed-ID backend rejection separate from obsolete-CLI flag errors. Classless unsupported profiles now report their actual backend incompatibility before enrollment, without an incorrect upgrade-only instruction.

Extend the existing boundary regression, replace the misleading Daytona success fixture, and clarify native coordinator routing in the docs. Follow-up for openclaw#131009 (class-optional Crabbox profiles).

* docs(crabbox): keep backend setup in Crabbox documentation

Apply the maintainer-approved documentation correction for PR openclaw#131009.
Keep OpenClaw's fixed-ID, setup, inspection, cleanup, and AWS instance-role
requirements while directing backend configuration and tutorials to Crabbox.

Require complete session-flow verification before relying on a new profile;
standalone readiness does not establish OpenClaw worker compatibility.

* fix(crabbox): resolve warm defaults after effective sizing

Preserve cold classless omission while retaining warm defaults for known
configured or placement classes without forwarded setup environment names.
Explicit warm-image flags retain priority and warm provisioning requires a
known effective class before commands.

Share the pure policy across provision and teardown, using the successfully
enrolled class after reconstruction without resolving setup environment
values. Keep cold teardown from creating warm state and document the
conditional default without restoring backend-specific tutorials.

Reuse the existing lifecycle-timeout stop helper for normal teardown.

* fix(crabbox): require confirmed worker lease cleanup

Treat known non-runnable Crabbox states as loss of a usable lease, so core
fences the worker and requests explicit teardown instead of assuming the
machine is gone. Stop renewing those leases and share the classification
with provisioning, including archived resources.

Only normal zero-exit stop results prove provider-owned cleanup. Preserve
failed release diagnostics even after an earlier missing-lease warning,
and reconcile AWS profile rejections through stop when recognition is lost.
Clarify the existing inspection contract without changing its SDK shape.

Preserves the optional-class and warm-image policy in openclaw#131009.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation extensions: crabbox 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. P2 Normal backlog priority with limited blast radius. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Allow omitted Crabbox profile classes

1 participant