Managed Supervisor runner (not enabled)
The Supervisor screen continues to observe external actors. There is no launch button, launch endpoint, or install-script change. Do not deploy or enable managed launches on a live controller. PR 2 supplies controller-host infrastructure, not an operator control surface.
A run reserves the bound external actor across all its teams. A request UUID identifies a retry, not permission to start another process. The reviewed team lifetime keys, binding versions, resolved checkout and launch settings are immutable. Reconnect does not start a harness or register a second Mail identity. The managed credential is narrower than the external actor's ordinary token: it authenticates only a tagged report for this run and a currently matching team. Rotation, revocation and exit fence the grant. It cannot authorize operator recovery. Neither the run UUID nor a matching PID is a credential.
Only the controller initializes or migrates the database. The optional units are under scripts/product-factory/managed-supervisor/; they are not installed or enabled. The reconciliation worker runs as the controller account with no capabilities. Give only this worker a root-owned /etc/synth-supervisor-runner/database.conf with the absolute DATABASE_URL of the existing SQLite database. It refuses root, a missing database, or a file or directory owned by another UID. Do not repair a misconfiguration by changing permissions or running the worker as root.
The root helper has no database configuration. Systemd invokes it for a single request on a root-owned socket accessible to the controller's private group. It can verify a run's identity, check that its unit is gone, or retire the verified console of an exited child. It cannot launch, signal, read terminal output or accept input. Both services require a root-controlled installed backend in /opt/synth-supervisor-runner/venv, never a mutable development checkout.
Upgrade order: explicitly stop the reconciliation worker before stopping the controller, leave the run units alone, then migrate and start the controller. Wait for the upgraded controller to report ready before starting the matching worker. After= orders processes, not schema readiness. The templates use the shipped product unit albiex-synth-city-product.service and account deckproductctl. On other installations adapt After=, PartOf=, Requisite=, the worker user/group and the socket group to the actual controller. Do not add a dependency that stops individual runs with either service.
Each run gets its own system unit, dynamic unprivileged account, private runtime socket, PTY and 48 KiB in-memory output tail. The trusted system image must provide /usr/bin/python3, the read-only console.py at /usr/lib/synth-supervisor/console.py, the approved harness executable(s) under /usr/local/bin, and the managed reporting shim. The image must contain no controller or shared agent secrets. Only an explicitly approved, secret-free checkout is bound read-only at /workspace. Use administrator-controlled mount source parents. The system manager must support dynamic users, root images, disconnected private temporary directories and procfs isolation. Unsupported isolation is a launch failure, not a reason to run unsandboxed. Configure neither shared writable harness homes nor controller account mounts.
Runs also require the administrator-provisioned /run/netns/synth-supervisor-reporting network namespace. Its loopback address is not the host's loopback. Expose only the authenticated check-in route there; firewall the host API, database and management interfaces from the namespace, including through LAN/tailnet addresses. Allow only the required provider egress. Never bind-mount the host network namespace here. Without this boundary the system unit must not start.
The console is not a permanent transcript. A broker connects to the unit manager's main PID over a local socket, then checks the boot ID, child PID, kernel start ticks and exact cgroup. Unknown ownership holds the reservation and denies control. An uncertain spawn is reconciled, never retried. A child exit observed by its PTY owner is durably recorded before retiring the console; the actor is released only after the unit is gone. A missing socket/process alone is not proof of exit. A harness can disrupt its own unit; it must not be able to read a sibling's credential or replace an authenticated console endpoint. No automatic answer is sent to a harness prompt.
Open for PR 3: a launcher crash after reserving the actor but before starting its unit can strand the reservation. There is no automatic release: a missing unit cannot distinguish “never started” from “started and later collected.” The planned Director-only release must record independent evidence; it does not exist in this runner.
Before any live launch, use the non-production release gates in the approved plan. In particular, demonstrate restart and fault recovery with normal orphan cleanup enabled, and actual account/filesystem/process isolation using disposable credentials. Unit tests or an unprivileged PTY smoke test are not evidence that a deployment's image, mounts, service credentials or provider logins are safe. Resume, input grants, external-overlap acknowledgement and TUI controls belong to PR 3.
Privileged isolation gate: on a disposable systemd VM, prepare a root-owned, secret-free test image with Python, the console, and backend/tests/supervisor_runner/image_probe.py installed executable as /usr/local/bin/claude instead of a real harness. Create the isolated test network namespace (it needs no egress). From backend, run SYNTH_DISPOSABLE_PROBE_IMAGE=/absolute/protected/probe.raw python -m pytest -q tests/supervisor_runner/test_system_isolation.py as the VM administrator. The test starts two disposable units, verifies that each receives only its own grant and cannot access the synthetic controller database or the other unit's credential/process environment, then stops those units. Never use a production image for this test.