vercel-labs/sandbox-v2-lifecycle
Vercel Sandbox v2 lifecycle expertise for vercel-openclaw: named persistent OpenClaw sandbox create/resume/stop/delete, persistent auto-save truth, manual snapshot diagnostics, short-lived worker sandboxes, hot spares, and SDK v2 semantics.
npx skills add https://github.com/vercel-labs/vercel-openclaw --skill sandbox-v2-lifecycle
Use this skill for vercel-openclaw sandbox lifecycle, restore, stop, reset, hot-spare, worker sandbox, and debug timing work.
Official Vercel Sandbox v2 docs are authoritative. Repo docs or agent guidance that assumes v1/manual snapshot restore is stale unless already updated.
Load references only as needed:
references/vercel-sandbox-v2-persistent.md — persistent sandbox auto-save/resume/name/session model.references/vercel-sandbox-v2-sdk.md — SDK calls, resume flags, delete, command behavior, and network policy notes.references/vercel-sandbox-v2-snapshots.md — manual Snapshot API semantics.references/vercel-openclaw-lifecycle-map.md — repo-specific invariants and owner files.stop() auto-saves filesystem state; no manual snapshot() is needed for normal stop.Sandbox.get({ name, resume: true }) through the repo controller.resume defaults false; use resume:false for observation/status reconciliation.stop() and update() do not.snapshot() is explicit/debug/checkpoint only. It shuts the sandbox down; do not call stop() afterward.delete() permanently removes the persistent sandbox and its sessions/snapshots.persistent:false.src/server/sandbox/controller.ts except documented raw SDK debug routes.snapshotId as the normal restore gate.resume:false during snapshotting/stopped observation.lat.md/sandbox-lifecycle.md, docs/lifecycle-and-restore.md, and relevant references from this skill.src/server/sandbox/lifecycle.ts, controller.ts, restore-attestation.ts, hot-spare.ts, and worker sandbox code.Run the narrowest covering test first, then broader gates for lifecycle changes:
node --import tsx --test src/server/sandbox/restore-attestation.test.ts
pnpm run test:lifecycle
pnpm run typecheck
pnpm run lint
lat check
When touching launch verification or preflight, also run pnpm run verify:observability-pass.
Take vercel-labs/sandbox-v2-lifecycle from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.