Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Engine reference — generated from the canonical engineering source. Do not edit this page by hand.

Tenancy posture (single-org per Sol, single-tenant per worker)

Status: DECIDED (2026-11-06) — `` /. Owner: product/architecture. This page is the published posture matrix; the enforcement is in sol_tenancy.erl (scope_opts/2, ready_verdict/1) and GET /api/v1/infra/status (tenancy).

The decision

ZERG ships one organization per Sol and one tenant per worker. It does Not claim shared-worker multi-tenancy: a worker is a trusted registration principal (its operator can read every task prompt and workspace it is told to use). Confidential/attested multi-tenant workers remain a separate, unfunded decision — the target design is ADR-0011.

`` is DECIDED: the single-org branch, with the ADR-0011 no-regret enforcement leg. No tenant_id token claim, store backfill or shared-worker claim is authorized by this decision.

Posture matrix

DeploymentTenancy unitSolWorkerShared worker allowed?Claim
Local / devone trusted principal (or a few on one host)single-org per Solsingle-tenant; the dev ack levers are explicit and CRITICAL-loggedonly with SOL_ALLOW_SHARED_WORKER=true and no isolation claimno SaaS/multi-tenant claim
WILDZERG (self-hosted)the operator’s organizationsingle-org per Solsingle-tenant per enrollment; provision one worker per trust domainonly with the explicit ack; not a supported isolation boundaryno shared-worker multi-tenant claim
ZERGnot launchedsingle-org per Sol until a funded program landssingle-tenantnono shared-worker multi-tenant claim

What is enforced (not prose)

  1. Server-derived workspace scope. Every task crossing the HTTP/local-worker dispatch boundary is stripped of client-supplied workspace_root and tenant_id, then stamped with <workspace_root>/users/<server-scope>/. The scope is derived from the authenticated user_uuid (never a request field); unsafe characters are hashed so a crafted principal cannot traverse into another user’s subtree. Two users sharing one worker therefore never share the worker’s default PWD/config workspace. The HTTP workspace API is scoped by the SAME rule: a non-admin caller is rooted at <workspace_root>/users/<server-scope>/ (a member cannot read/write another member’s task workspace); an admin keeps the global root and may cross. The control-plane ./.. principals hash like any unsafe principal. The drill is tests/integration/test_tenancy_shared_worker.py (two real users, one registered worker, the real wire frames).
  2. Shared-worker declaration refusal. A READY frame that declares tenancy: "shared" (or shared_worker: true) is refused with shared_worker_requires_declaration unless the deployment has explicitly acknowledged it with SOL_ALLOW_SHARED_WORKER=true (allow_shared_worker). The refusal is counted in sol_zmq_registration_refused_total{reason="shared_worker_requires_declaration"} and, only when the delivering pipe is already the identity’s READY-bound pipe, delivered as a typed error frame (details carry the remediation). A first-registration refusal (no binding exists yet) and a refusal arriving on a foreign pipe are log + counter only — WIRE-01’s pre-auth addressing rule; Sol never routes a refusal by a declared identity. Even with the ack, no multi-tenant isolation is claimed.
  3. Posture is API truth. GET /api/v1/infra/status carries tenancy: {mode: single_org, tenant_unit: sol, worker_tenancy: single_tenant, shared_worker_supported: false, shared_worker_allowed: <bool>} in both the public (booleans/status only) and admin views.

What is not claimed

No tenant_id in Mango tokens or Sol stores; Mango orgs are not consumed by Sol. No isolation between users that share a worker host from the worker operator’s perspective; the worker operator is trusted. No per-tenant quotas, streams, spend partitioning or backup boundaries. No shared-worker SaaS mode. A future multi-tenant program must follow ADR-0011 option 2 plus the spine/durability decisions and the cross-tenant-read test.

Operator guidance (provisioning)

Provision one enrollment key per worker and one worker per trust domain (per organization, or per security boundary inside it). Do not attach shared hardware to a Sol unless the operator accepts that the hardware operator can read every task/workspace on it. If a worker must be shared for a lab/dev deployment, set SOL_ALLOW_SHARED_WORKER=true explicitly and record that the deployment has no multi-tenant isolation. The boot/registration path still refuses a declaration without the ack, so a shared worker cannot appear silently. The zmq.allowed_workspace_roots Luna allowlist remains a defense-in-depth control; Sol already stamps a server-derived root.

See also

ADR-0011 — tenant/worker isolation Worker integration — READY fields and refusals Security — worker trust plane Configuration reference — allow_shared_worker