Skip to content
Back to skills

Hosted Sandbox Workspaces

ASecurity

Title: Hosted Sandbox Workspace Conformance Keywords: sandbox, workspace-allocation, vercel-sandbox, daytona, e2b, modal, agent37, upstash, recovery, journal, cleanup, credential-rotation, verify-hosted Agents: integration-reliability-engineer, infrastructure, lobby-architect, finops-steward When to use: When implementing, debugging, or testing disposable cloud workspace providers (Vercel Sandbox, Daytona, E2B, Modal, Agent37, Upstash, or Shell) and `WorkspaceAllocationRecovery` in `packages/...

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 5, 2026
ai-agentsshelltestingdebuggingapi

Works with

  • api

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add ronnikc/agent-os-protocol --skill hosted-sandbox-workspaces --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Hosted Sandbox Workspaces?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Hosted Sandbox Workspaces
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ronnikc-hosted-sandbox-workspaces/badge)](https://www.skillsdirectory.com/skills/ronnikc-hosted-sandbox-workspaces)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
Title: Hosted Sandbox Workspace Conformance
Keywords: sandbox, workspace-allocation, vercel-sandbox, daytona, e2b, modal, agent37, upstash, recovery, journal, cleanup, credential-rotation, verify-hosted
Agents: integration-reliability-engineer, infrastructure, lobby-architect, finops-steward
When to use: When implementing, debugging, or testing disposable cloud workspace providers (Vercel Sandbox, Daytona, E2B, Modal, Agent37, Upstash, or Shell) and `WorkspaceAllocationRecovery` in `packages/lobby-server/src/hosted/`.
Version: 1.0.0
Last updated: 2026-12-05

Enforce crash-safe provisioning, lost-response reconciliation, credential rotation, and confirmed billable cleanup across all hosted workspace sandbox providers using `WorkspaceAllocationRecovery` and `WorkspaceAllocationJournal`.

---

## Workflow

### Step 1 — Bind durable attempt identity before create
- Record `beginCreate()` in `WorkspaceAllocationJournal` before calling any remote provider create API.
- Tag every remote sandbox with a deterministic, attempt-scoped external identity so `find(signal)` can rediscover it if the HTTP create response is lost or the process restarts mid-flight.

### Step 2 — Enforce discovery-only retry on uncertain create
- In `WorkspaceAllocationRecovery.provision(signal)`: if `beginCreate()` returns false (a prior create was started without confirmation), call `find(signal)` only — NEVER issue a blind second `create()` that leaks orphaned billable sandboxes.
- Bind the discovered `providerId` into the journal before returning.

### Step 3 — Verify confirmed billable cleanup (`destroy`)
- On teardown, resolve `providerId` (from journal or `find(signal)`), call `remove(providerId, signal)`, and confirm the resource is no longer billable (`confirmed: true`).
- If `find(signal)` returns nothing after an unacknowledged create, call `confirmAbsent(signal)` to prove a delayed sandbox cannot still materialize.

### Step 4 — Test failure modes across providers
Exercise provider fixtures for:
1. Lost create response followed by recovery (`find` succeeds, zero duplicate creates).
2. Process restart between create and bind.
3. Credential rotation / auth failure mid-lifecycle.
4. Teardown cleanup confirmation and cost/budget tracking.

### Step 5 — Run hosted verification suites
Run `npm run verify-hosted` and `npx tsx agent-os/scripts/verify-hosted-controls.ts`.

---

## Input Schema

```yaml
input:
  provider:
    type: string
    required: true
    enum: [vercel-sandbox, daytona, e2b, modal, agent37, upstash, shell, all]
  scenario:
    type: string
    required: false
    enum: [provision, lost_create_response, restart_recovery, credential_rotation, destroy_cleanup]
    default: lost_create_response
```

## Output Schema

```yaml
output:
  provider: { type: string }
  duplicate_creates: { type: integer }
  cleanup_confirmed: { type: boolean }
  fixture_gaps: { type: array }
  verify_hosted_passed: { type: boolean }
```

## Quality Gate

- `WorkspaceAllocationJournal` written before remote create; zero duplicate creates on lost-response retry.
- `destroy()` confirms billable resource removal (`confirmed: true`) or proves absence (`confirmAbsent`).
- Fixture evidence clearly separated from live provider verification.
- `npm run verify-hosted` and `verify-hosted-controls.ts` pass cleanly.

## Chain Metadata

```yaml
chain_metadata:
  skill_slug: "hosted-sandbox-workspaces"
  stage: "S1"
  suggested_next:
    - slug: "hosted-app-integrations"
      stage: "S1"
      reason: "Verify Apps tab workspace controls and provider credential sealing"
    - slug: "chaos-testing"
      stage: "S3"
      reason: "Inject timeouts and restarts to verify zero orphaned billable sandboxes"
```

## Error Handling

- `find(signal)` returns undefined after uncertain create → throw unconfirmed creation error and require `confirmAbsent` before releasing allocation state.
- Provider API rejects rotated credentials → surface explicit operator recovery step without deleting journal history needed for cleanup.
- Cleanup returns `confirmed: false` → retain `providerId` in journal and alert FinOps / Incident Responder so billable resources are never silently abandoned.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.