Files
ARTEX/docs/sandbox-runtime-evaluation.md

5.9 KiB

Sandbox runtime evaluation: current decision and historical research

Reconciled 2026-12-02 against main 8f91643. Current execution backend: Docker, already integrated upstream. Companions: scope/audit status and backend decision.

Evidence and scope

The earlier 2026-11-27 research compared SRT, Go/bubblewrap and other runtime or orchestration options. It preceded upstream's current Docker task execution architecture and selected a new bubblewrap adapter. That selection is superseded; it must not be presented as an outstanding implementation prerequisite.

The detailed, dated research is preserved in the previous evaluation. Its package/release numbers, vendor feature claims and Windows limitations are a historical snapshot, not current version recommendations or new qualification. This revision checks ARTEX source/PR state; it does not repeat every vendor survey, install an alternative runtime or run new cross-platform containment benchmarks.

Why the decision changed

Main already provides an authenticated Go runner, per-task Docker workers and networks, scope-enforcing proxies, isolation defaults, image packaging and lifecycle cleanup. #764 is now merged. Building a parallel bubblewrap supervisor/private gateway bridge would duplicate substantial delivered work and introduce another lifecycle/support contract.

The remaining work is primarily policy consistency, trusted evidence, investigation, revocation and qualification. Changing the containment primitive does not by itself supply those features. The useful comparison is therefore whether an alternative closes a concrete measured gap, not whether it matches the old plan or happens to use Go.

Docker is not declared universally superior, and existing integration is not proof of complete security qualification. Keep hardening the current implementation against its stated guarantees. The exact distinction between main and pending #596 is maintained in the completion matrix.

Four different portability claims

  1. The ARTEX controller compiles/runs on a host OS.
  2. Its client can contact a runner or sandbox service from that OS.
  3. A backend actually creates and enforces an execution boundary there.
  4. That boundary executes the required guest/tool OS and tool set.

A Go API or Windows ZIP does not establish native Windows isolation. Docker Linux containers execute Linux tools even when the controller is elsewhere. Build artifacts, source availability and a successful startup are not runtime acceptance. Preserve Linux amd64/arm64, macOS amd64/arm64 and Windows amd64 controller builds; qualify the actual executor platform separately. An x86_64 cc01 test does not certify ARM64, Desktop/WSL, nested containers or arbitrary remote runners.

Alternatives retained for a demonstrated need

  • A lightweight local adapter, including the former bubblewrap direction, could be reconsidered if a supported deployment genuinely cannot use the Docker contract. It needs its own lifecycle, policy transport, capabilities and tests.
  • A native macOS/Windows backend must meet actual host credential, process, file, network and tool requirements. Do not inherit a qualification claim from an SDK, helper's presence in an archive or the Linux implementation.
  • Stronger VM/runtime profiles can be evaluated for an explicit threat model. They are not substitutes for policy, prompt boundaries or evidence provenance.
  • Fleet platforms and orchestration systems become relevant when scheduling, snapshots or remote pools are concrete requirements. They are not required just to update this design or finish the existing Docker audit path.

No new dependency on bwrap, Node/SRT, Fence, a VMM or an orchestration service is introduced by this design revision. Existing frontend and tool dependencies keep their own requirements. Any future selection must recheck the candidate's current official sources and supported artifacts rather than reuse the historical survey as a present-day security endorsement.

Acceptance for any supported execution profile

  • Name the runtime/image/platform/capability versions, maintenance owner, supported installation path and compatible upgrade/rollback procedure.
  • Test admission failures and unsupported capabilities without silent host or privileged fallback. Configuration values alone do not prove effective limits.
  • Verify task separation, environment/credential boundaries and actual execution ownership. State whether concurrent workers within one task share the boundary.
  • Check final-dial scope, redirects, DNS/address rules, upstream proxies, live revocation and long-lived channels across all declared managed paths.
  • State TLS visibility and compatibility explicitly. Inspecting HTTPS does not itself implement URL/method policy, and opaque traffic cannot supply a URL path.
  • Exercise capture-off metadata, attribution, retries/restart, bounded loss, durability semantics and investigation from reported destination to action.
  • Verify timeout/cancel/delete cleanup, retained retry state and aggregate resource accounting. Preserve existing scheduler budgets and approval semantics.
  • Use inert prompt-injection/deception and A→B fixtures. Distinguish observations from target claims and remote effects; do not promise model immunity, automatic honeypot recognition or complete prevention of allowed-channel callbacks.

These criteria remain applicable to Docker. Delivered runtime mechanics and unmet product/security contracts must be assessed separately. The old fixed four-PR plan is not an implementation checklist for today's upstream.