Skip to content

Align runtime posture with openclaw: process-first default, sandbox as opt-in #42

Closed

Description

@melvincarvalho

jsclaw already aligns with openclaw on terminology (agentId, #36), wire shape, identity files, skills, and bindings. The remaining divergence is runtime posture:

default other mode
openclaw host process opt-in Docker sandbox (per agent/session)
nanoclaw Docker only —
jsclaw today Docker opt-in containerRuntime: "local" (#38)

jsclaw inherited nanoclaw's container-first default; openclaw is process-first with sandboxing as the explicit hardening step. Now that local mode exists, the question is whether jsclaw should flip to openclaw's posture.

Proposed alignment

  1. Default to local/process mode when no container engine is detected (or outright, like openclaw) — npx jsclaw gateway works on a clean machine with zero setup.
  2. Adopt openclaw's sandbox config shape rather than our runtime-flavored naming: something like sandbox: { mode: "off" | "all" | "non-main", runtime: "docker" | "podman" } per agent or global, replacing/wrapping containerRuntime. Per-agent sandboxing (main trusted on host, others contained) is openclaw's most useful pattern and jsclaw can't express it today — ours is all-or-nothing.
  3. Onboard wizard asks the sandbox question explicitly, with the trade-off spelled out, instead of assuming docker.

The trade-off to decide deliberately

Flipping the default trades nanoclaw's safety posture for openclaw's convenience. An autonomous agent (heartbeat, scheduled tasks, untrusted input) on the host runs as the user — that's the no-isolation warning from #38 becoming the default experience. Mitigation: per-agent sandbox config (point 2) means the dangerous configurations (autonomous + untrusted) can still demand a container, and docs/wizard push that hard.

Breaking changes are still cheap (v0.0.x, no users). Depends on #38 (shipped). Related: jsclaw/docs#2 should document whichever posture wins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions