Skip to content

sandbox: add per-environment host workspaces - #260

Open
Saiph77 wants to merge 1 commit into
yc-software:mainfrom
Saiph77:codex/host-multi-workspace
Open

sandbox: add per-environment host workspaces#260
Saiph77 wants to merge 1 commit into
yc-software:mainfrom
Saiph77:codex/host-multi-workspace

Conversation

@Saiph77

@Saiph77 Saiph77 commented Aug 7, 2026

Copy link
Copy Markdown

Summary

  • add a host sandbox backend with per-environment workspace, home, and temp directories
  • retain the existing single-directory HOST_WORKSPACE_ROOT behavior while adding HOST_WORKSPACES_ROOT
  • serialize commands within one environment while allowing separate environments to execute independently
  • preserve read-only workspace layers, background processes, and sandbox home migration

Configuration

SANDBOX_BACKEND=host
HOST_WORKSPACES_ROOT=/srv/qm/workspaces

HOST_WORKSPACE_ROOT remains supported for existing trusted single-workspace installations. Configuring both roots is rejected.

This backend provides directory routing for trusted users. It does not provide filesystem, process, network, CPU, or memory isolation from the host.

Validation

  • focused Host/config/migration tests: 40 passed
  • npm run typecheck
  • npm run lint
  • git diff --check
  • independent security and migration review

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant