Skip to content

feat(crabbox): opt-in profile warm images for cloud workers - #130087

Merged
steipete merged 7 commits into
mainfrom
steipete/intelligent-antonelli-e6f6b0
Aug 26, 2026
Merged

steipete merged 7 commits into
mainfrom
steipete/intelligent-antonelli-e6f6b0

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Cloud worker placements are all-or-nothing: while a session is placed the leased machine bills continuously, and stopping it destroys everything — the next dispatch pays the full cold path again (allocation, Node/setup, registry fetch of the openclaw package, bundle push, workspace sync; several minutes). Competing hosted products (Hermes Agent's Modal/Daytona backends, Codex cloud's container cache, Claude Code on the web's post-setup snapshot) park a sandbox at near-zero idle cost and resume warm. docs/plan/cloud-workers.md had already named "image snapshot after bootstrap" as the v2 fast-start path.

Why This Change Was Made

Maintainer-accepted design (committed here as docs/plan/worker-hibernation.md): of the three evaluated directions — dormant stop-with-disk leases, checkpoint-based warm start, and serverless backends — checkpoint warm start wins because it maps onto capability Crabbox already ships (checkpoint create/fork with native provider snapshots), needs zero core, SDK, schema, or protocol changes, and preserves every identity/authority invariant by construction: each dispatch still provisions a fresh lease with fresh enrollment. Phase 1 is plugin-only profile warm images; per-session hibernation (SDK capability + additive table) and dormant leases remain explicitly gated in the plan doc.

Mechanics (all in extensions/crabbox/): on teardown of an enrolled worker whose profile opts in via settings.warmImage, the provider scrubs the box's ~/.openclaw/cloud-workers root (node identity, device token, bundles, all workspace bytes) and initiates a native checkpoint (--wait=false; EBS snapshots complete after termination). Records live in the plugin KV store keyed by a profile-settings hash; single-flight reservation dedupes concurrent teardowns. The next provision forks the checkpoint into the deterministically derived fixed lease id (new Crabbox contract, see companion PR) and rejoins the normal setup/enrollment flow — setup is contractually idempotent and now hits its guards. Any miss, staleness, verify-failure, older crabbox binary, or fork error falls back to cold warmup with one warning; capture failures never fail or block teardown. 14-day unused GC deletes the provider snapshot before its index entry.

During development this branch surfaced a latent origin/main doctor-contract-closure-guard failure (memory-core's doctor closure statically reaching kysely via dreaming.ts); we healed it locally, and #129963 landed the equivalent upstream fix in parallel, so this branch rebases onto that and carries no memory-core changes.

User Impact

Opt-in per profile (cloudWorkers.profiles.<id>.settings.warmImage: true); nothing changes for existing configs. With it enabled, repeat dispatches on a profile skip machine setup and the openclaw package install, at the cost of one provider-account snapshot per profile (storage-priced). Docs: profile-field row + troubleshooting entry in Cloud workers, including the honest current limits (needs the fixed-ID-fork Crabbox release; coordinator-brokered native capture is admin-token-gated upstream today and degrades to cold with one warning).

Evidence

Live proof on an isolated dev gateway (state-dir + own port), dev Crabbox build with the fixed-ID fork contract:

  • Local-container backend, full loop: cold dispatch → active in 101s; reclaim ran scrub + checkpoint create (docker-commit) inside a 37s teardown, checkpoint available; warm dispatch → active in 40s (2.5× faster). Fork proven by container image ancestry (worker container ran the exact checkpoint-commit image crabbox-checkpoint-openclaw-…), preinstalled CLI reused (OpenClaw 2026.8.1 from the image), zero fallback warnings in the gateway log. Second reclaim skipped capture (fresh image exists — single-flight/dedupe), leaving exactly one checkpoint. Scrub boundary verified by inspecting the captured image: ~/.openclaw/cloud-workers absent (no identity/token/workspace bytes).
  • AWS via managed Crabbox coordinator: two cold dispatches to active (221s, 311s) through real EC2 allocation + outbound-node enrollment over a cloudflared public origin; teardown capture correctly degraded to cold-only with one warning at the upstream coordinator admin gate (see follow-ups) and teardown still completed. All leases, checkpoints, and checkpoint images deleted afterwards; zero orphans (crabbox list empty).
  • One capture-budget finding from live testing was folded back: 60s starved the scrub/create round trip under coordinator latency; now 180s (fix(crabbox): budget warm-image capture…).
  • Tests: pnpm test extensions/crabbox — 193 passing (mocked-command-runner coverage of key stability, opt-in gating, scrub content, capture eligibility incl. failed-provision cleanup, exact-fixed-lease forks, cold fallback, pending→available promotion, missing-checkpoint cleanup, 14-day GC, concurrent single-flight). node scripts/check-changed.mjs fully green (including the healed closure guard and all dead-code scans). pnpm build green.
  • LOC (task scope): production ≈ +390/−31, all in extensions/crabbox (new capability, plugin-owned; zero core src/ changes), tests ≈ +580, docs +48 (including the committed design/plan doc).

Companion PR: openclaw/crabbox — checkpoint fork --lease-id with checkpoint-identity-bound replay adoption (fail-closed on intent drift, native-only) and --json on checkpoint create/fork.

Follow-ups (named in the plan doc): upstream owner-scoped native checkpoint capture on coordinator-brokered leases (today admin-token-gated → AWS warm images degrade to cold); upstream fresh-AWS-lease early-reboot window that can kill the first post-warmup run; phase 2 (per-session snapshots) and phase 3 (dormant leases) remain design-gated.

Evaluates dormant leases, checkpoint-based warm start, and serverless
backends for a worker-environment hibernation tier; proposes a plugin-only
phase 1 (Crabbox checkpoint fork warm images) with SDK/store phases gated
on maintainer acceptance.
The 60s command bound starved the scrub and checkpoint-create phases under
coordinator latency, silently degrading every teardown to cold-only.
Live-measured on AWS.
Phase 1 live-proven: local-container full loop (cold 101s vs warm fork 40s,
scrub boundary verified) and AWS cold provisioning with graceful degrade at
the coordinator admin gate; named upstream follow-ups.
@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.

@steipete
steipete marked this pull request as ready for review August 26, 2026 11:20
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime extensions: crabbox size: L maintainer Maintainer-authored PR labels Aug 26, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. 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, 8:41 AM ET / 12:41 UTC.

ClawSweeper review

What this changes

This PR adds an opt-in settings.warmImage Crabbox profile setting that captures a scrubbed worker checkpoint at teardown and forks it for a later worker lease.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep open: the warm-image lifecycle can orphan billed checkpoints during stale-reservation recovery, and desktop browser state is outside the checkpoint scrub boundary.

Priority: P1
Reviewed head: e537819a5a8ef6f1e651ed297497d163b29aa176

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The feature has substantial real-flow evidence, but two concrete lifecycle and isolation defects block merge.
Proof confidence 🌊 off-meta tidepool Not applicable: The trusted-member contributor-proof gate does not apply; the PR body supplies supplemental live evidence, but it does not demonstrate the desktop scrub or timeout-boundary recovery cases.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The trusted-member contributor-proof gate does not apply; the PR body supplies supplemental live evidence, but it does not demonstrate the desktop scrub or timeout-boundary recovery cases.
Evidence reviewed 8 items Recovery race: A reservation is reclaimable after two 180-second command budgets, but capture awaits those two commands sequentially; an original capture can still promote after a restarted manager has reclaimed and replaced its reservation.
Unconditional promotion: The completed capture overwrites the current index entry with register rather than conditionally promoting its own reservation, leaving a displaced provider checkpoint unreachable by retention cleanup.
Store supports conditional mutation: The plugin-state sync contract exposes an atomic update callback, but this lifecycle only uses conditional deletion before an unconditional promotion.
Findings 2 actionable findings [P1] Scrub desktop browser state before checkpointing
[P2] Prevent live capture recovery from orphaning a checkpoint
Security Needs attention Desktop browser profile survives checkpoint scrub: The checkpoint scrub removes the enrolled-node state root but not the desktop browser profile created under the worker home cache, so later forks may receive browser state from the prior lease.

Live Verification

Command: pnpm openclaw --help

Result: PASS (completed)

$ node scripts/run-node.mjs --help
[openclaw] Building TypeScript (dist is stale: missing_build_stamp - build stamp missing).
[openclaw] Building bundled plugin assets.
[canvas] build: node scripts/bundle-a2ui.mjs
[log] ‹DIR›/a2ui.bundle.js  chunk │ size: 399.96 kB
[log] ‹DIR›/a2ui-v0.9.bundle.js  chunk │ size: 615.66 kB
[log]
[success] rolldown v1.2.0 Finished in 113.00 ms
[diffs] build: node --import tsx ../../scripts/build-diffs-viewer-runtime.mts curated
[diffs-language-pack] build: node --import tsx ../../scripts/build-diffs-viewer-runtime.mts full
[discord] build: node --import tsx ../../scripts/build-discord-activity-sdk.mts
[tsdown-build] invocation 1/2 finished in 0.7s
node_modules/playwright-core/lib/coreBundle.js (65821:28) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
       ╭─[ node_modules/playwright-core/lib/coreBundle.js:65821:29 ]
       │
 65821 │               const value = eval(ˋ(${expr})ˋ);
       │                             ──┬─
       │                               ╰─── Use of direct ˋevalˋ here.
       │
       │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
───────╯

node_modules/playwright-core/lib/coreBundle.js (65828:28) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
       ╭─[ node_modules/playwright-core/lib/coreBundle.js:65828:29 ]
       │
 65828 │               const value = eval(ˋ(${expr})ˋ);
       │                             ──┬─
       │                               ╰─── Use of direct ˋevalˋ here.
       │
       │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
───────╯

node_modules/web-tree-sitter/web-tree-sitter.js (2343:30) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
      ╭─[ node_modules/web-tree-sitter/web-tree-sitter.js:2343:31 ]
      │
 2343 │           ASM_CONSTS[start] = eval(func);
      │                               ──┬─
      │                                 ╰─── Use of direct ˋevalˋ here.
      │
      │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
──────╯

node_modules/web-tree-sitter/web-tree-sitter.js (2366:32) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
      ╭─[ node_modules/web-tree-sitter/web-tree-sitter.js:2366:33 ]
      │
 2366 │           moduleExports[name] = eval(func);
      │                                 ──┬─
      │                                   ╰─── Use of direct ˋevalˋ here.
      │
      │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
──────╯

[tsdown-build] invocation 2/2 finished in 12.9s
[plugin-control-plane-loads] verified 35 built modules with native require and checked doctor closures
runtime-postbuild: 11 phases completed in 3755ms (slowest: built plugin control-plane loads 2985ms)

OpenClaw 2026.8.1 (e537819) — All your chats, one OpenClaw.

Usage: openclaw [options] [command]

Options:
  --container ‹name›   Run the CLI inside a running Podman/Docker container named ‹name› (default: env OPENCLAW_CONTAINER)
  --dev                Dev profile: isolate state under ~/.openclaw-dev, default gateway port 19001, and shift derived ports (browser/canvas)
  -h, --help           Display help for command
  --log-level ‹level›  Global log level override for file + console (silent|fatal|error|warn|info|debug|trace)
  --no-color           Disable ANSI colors
  --profile ‹name›     Use a named profile (iso
… output truncated …

Assertions:

  • PASS expect_output: Usage:

How this fits together

Cloud-worker profiles drive Crabbox allocation, setup, node enrollment, and teardown. The new plugin-owned image index sits between teardown and later allocation, while each restored worker still performs fresh enrollment.

flowchart LR
A[Cloud worker profile] --> B[Allocate lease]
B --> C[Warm checkpoint fork or cold setup]
C --> D[Fresh node enrollment]
D --> E[Worker session]
E --> F[Scrub and checkpoint]
F --> G[Warm image index]
Loading

Before merge

  • Scrub desktop browser state before checkpointing (P1) - Desktop setup places the lease browser profile under ~/.cache/openclaw/worker-browser/&lt;lease>, but this new scrub only removes ~/.openclaw/cloud-workers. A checkpoint after browser use can therefore carry cookies, downloads, or other browser state into a later session. Remove that state before capture or reject desktop warm images until the complete desktop boundary is proven clean.
  • Prevent live capture recovery from orphaning a checkpoint (P2) - The stale threshold equals the two sequential 180-second scrub/create budgets. A restarted manager can delete an active reservation, create its own one, and then the first creator unconditionally overwrites that record at promotion. Its successful provider snapshot is no longer indexed or reachable by 14-day GC. Promote only if the reservation owner still matches, delete a losing checkpoint, and cover this timeout-boundary interleaving.
  • Resolve security concern: Desktop browser profile survives checkpoint scrub - The checkpoint scrub removes the enrolled-node state root but not the desktop browser profile created under the worker home cache, so later forks may receive browser state from the prior lease.
  • Resolve merge risk (P1) - The implementation depends on Crabbox fixed-lease checkpoint fork and JSON-output behavior, but direct inspection of the merged companion contract was unavailable; verify the released upstream contract before merge.

Findings

  • [P1] Scrub desktop browser state before checkpointing — extensions/crabbox/src/crabbox-worker-warm-image.ts:54
  • [P2] Prevent live capture recovery from orphaning a checkpoint — extensions/crabbox/src/crabbox-worker-warm-image.ts:301-308
  • [high] Desktop browser profile survives checkpoint scrub — extensions/crabbox/src/crabbox-worker-warm-image.ts:54
Agent review details

Security

Needs attention: The desktop warm-image path can preserve prior browser-profile data across worker sessions.

PR surface

Source +422, Tests +591, Docs +314. Total +1327 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 3 450 28 +422
Tests 1 591 0 +591
Docs 2 319 5 +314
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 1360 33 +1327

Review metrics

Metric Value Why it matters
Production versus tests production +450/-28; tests +591; docs +319/-5 The feature materially expands the bundled provider while preserving a zero-core-runtime change.
Configuration surface 1 added setting settings.warmImage is opt-in but changes worker lifecycle behavior and depends on an external Crabbox capability.

Stored data model

Persistent data-model change detected: persistent cache schema: extensions/crabbox/src/crabbox-worker-warm-image.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Repair checkpoint ownership and desktop scrub (recommended)
    Make stale-reservation recovery compare-and-promote by owner generation, delete a losing checkpoint, and prevent desktop browser data from crossing image reuse.
  2. Accept the opt-in risks
    Land with explicit acceptance that enabled profiles can leak desktop browser state and leave an unindexed provider snapshot after a restart race.

Technical review

Best possible solution:

Keep the feature plugin-local, but make reservation promotion owner-conditional with cleanup for a losing creator, and either scrub all desktop browser state or reject desktop warm images until that boundary is proven safe.

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

Yes for the review findings: a controlled two-manager test can hold the first capture past the 360-second recovery threshold and show its later promotion displacing the second record; a desktop profile can assert the browser-cache path is absent before checkpointing.

Is this the best way to solve the issue?

No: plugin-local checkpointing is the right boundary, but the present recovery and scrub implementations do not preserve the claimed single-flight and cross-session isolation invariants.

Full review comments:

  • [P1] Scrub desktop browser state before checkpointing — extensions/crabbox/src/crabbox-worker-warm-image.ts:54
    Desktop setup places the lease browser profile under ~/.cache/openclaw/worker-browser/&lt;lease>, but this new scrub only removes ~/.openclaw/cloud-workers. A checkpoint after browser use can therefore carry cookies, downloads, or other browser state into a later session. Remove that state before capture or reject desktop warm images until the complete desktop boundary is proven clean.
    Confidence: 0.9
  • [P2] Prevent live capture recovery from orphaning a checkpoint — extensions/crabbox/src/crabbox-worker-warm-image.ts:301-308
    The stale threshold equals the two sequential 180-second scrub/create budgets. A restarted manager can delete an active reservation, create its own one, and then the first creator unconditionally overwrites that record at promotion. Its successful provider snapshot is no longer indexed or reachable by 14-day GC. Promote only if the reservation owner still matches, delete a losing checkpoint, and cover this timeout-boundary interleaving.
    Confidence: 0.96

Overall correctness: patch is incorrect
Overall confidence: 0.94

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P1: The new desktop checkpoint path can retain browser-profile data across later worker sessions.
  • add merge-risk: 🚨 security-boundary: The checkpoint scrub omits the desktop browser-profile directory created for the prior lease.
  • remove P2: Current review triage priority is P1, so this older priority label is no longer current.

Label justifications:

  • P1: The new desktop checkpoint path can retain browser-profile data across later worker sessions.
  • merge-risk: 🚨 compatibility: Enabled profiles require specific Crabbox checkpoint flags and otherwise change to cold-fallback behavior.
  • merge-risk: 🚨 security-boundary: The checkpoint scrub omits the desktop browser-profile directory created for the prior lease.
  • merge-risk: 🚨 other: A recovery race can make a provider snapshot unreachable by the image-index retention cleanup and continue storage billing.
  • 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: The trusted-member contributor-proof gate does not apply; the PR body supplies supplemental live evidence, but it does not demonstrate the desktop scrub or timeout-boundary recovery cases.

Evidence

Security concerns:

  • [high] Desktop browser profile survives checkpoint scrub — extensions/crabbox/src/crabbox-worker-warm-image.ts:54
    The checkpoint scrub removes the enrolled-node state root but not the desktop browser profile created under the worker home cache, so later forks may receive browser state from the prior lease.
    Confidence: 0.9

What I checked:

Likely related people:

  • steipete: Authored the current warm-image lifecycle commit and the overwhelming majority of available Crabbox worker history. (role: feature owner and recent area contributor; confidence: high; commits: e537819a5a8e, 3c7143d65040, 45e6784338ad; files: extensions/crabbox/src/crabbox-worker-warm-image.ts, extensions/crabbox/src/crabbox-worker-provider.ts, extensions/crabbox/src/crabbox-worker-desktop-setup.ts)

Rank-up moves

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

  • Add a desktop warm-image proof that verifies browser-profile removal before checkpoint creation.
  • Add a cross-manager timeout-boundary regression proving only the reservation owner can publish and that a losing checkpoint is deleted.
  • Verify the exact released Crabbox checkpoint fork/create JSON contract used by this branch.

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 (2 earlier review cycles)
  • reviewed 2026-08-26T11:27:21.872Z sha e6eb51b :: needs changes before merge. :: [P2] Prevent index eviction from orphaning snapshots | [P2] Recover empty capture reservations after interruption | [P2] Preserve the effective class across restart teardown | [P2] Correct the documented warm-image key policy
  • reviewed 2026-08-26T12:09:32.314Z sha e6eb51b :: found issues before merge. :: [P2] Delete snapshots before evicting their index | [P2] Reclaim empty capture reservations after interruption | [P2] Persist the effective class across restart teardown | [P2] Make the documented image-key policy match code

Delete least-recently-used provider snapshots before image index admission.

Recover stale empty capture reservations without breaking single-flight.

Persist effective machine classes across restarts and revert heartbeat coupling.

Align the hibernation plan with the exact-class warm-image key policy.
@steipete

Copy link
Copy Markdown
Contributor Author

All four review findings are addressed in e537819a5a8 (fix(crabbox): make warm-image lifecycle recovery-safe):

  • Index eviction orphaning snapshots — capture admission now makes room explicitly: at capacity it deletes least-recently-used images provider-snapshot-first (reusing the ordered deleteImage invariant), skipping live reservations; store eviction is no longer reachable in practice and remains only a backstop. Capacity regression test added (129th key deletes the LRU provider snapshot, never silently drops a row).
  • Stale empty reservations — an empty-checkpointId record younger than 2× the capture budget means a capture is in flight (return); older records are reclaimed via a compare-and-delete (deleteIf on the same empty+stale predicate) so recovery cannot race a completing capture. Restarted-manager regression test added.
  • Effective class across restart — replaced the in-memory heartbeat coupling with a persisted plugin-KV fact (warm-leases): written at provision success, read for capture eligibility + class at destroy, deleted only after a successful lease stop. The heartbeat changes are fully reverted to main. Restart-shaped regression test added (fresh provider instance still captures with the correct class key).
  • Plan/key policy mismatch — the plan doc now states the implemented policy (exact machine class, no region/arch hashing; cross-class reuse is named future work).

On the remaining merge-risk note about the uninspectable Crabbox contract: the companion PR landed — openclaw/crabbox#1526 (checkpoint fork --lease-id with checkpoint-bound replay adoption + --json on create/fork), and this PR's live proof ran against a build of exactly that contract (fork verified by container image ancestry).

pnpm test extensions/crabbox 196 passing; node scripts/check-changed.mjs fully green; fresh structured autoreview clean. (pnpm docs:check does not exist as a script; the docs lanes of check-changed cover the acceptance intent.)

@clawsweeper clawsweeper Bot added merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. and removed P2 Normal backlog priority with limited blast radius. labels Aug 26, 2026
@steipete
steipete merged commit a82042f into main Aug 26, 2026
136 checks passed
@steipete
steipete deleted the steipete/intelligent-antonelli-e6f6b0 branch August 26, 2026 12:58
@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
…#130087)

* docs(plan): add worker hibernation design note

Evaluates dormant leases, checkpoint-based warm start, and serverless
backends for a worker-environment hibernation tier; proposes a plugin-only
phase 1 (Crabbox checkpoint fork warm images) with SDK/store phases gated
on maintainer acceptance.

* feat(crabbox): add opt-in profile warm images

* fix(crabbox): preserve warm image machine class

* refactor(crabbox): tighten warm-image seams after review

* fix(crabbox): budget warm-image capture for real snapshot round trips

The 60s command bound starved the scrub and checkpoint-create phases under
coordinator latency, silently degrading every teardown to cold-only.
Live-measured on AWS.

* docs(plan): record worker-hibernation acceptance and live proof

Phase 1 live-proven: local-container full loop (cold 101s vs warm fork 40s,
scrub boundary verified) and AWS cold provisioning with graceful degrade at
the coordinator admin gate; named upstream follow-ups.

* fix(crabbox): make warm-image lifecycle recovery-safe

Delete least-recently-used provider snapshots before image index admission.

Recover stale empty capture reservations without breaking single-flight.

Persist effective machine classes across restarts and revert heartbeat coupling.

Align the hibernation plan with the exact-class warm-image key policy.
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 extensions: crabbox gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. 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. 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