roundtable

Remote launch

The start_coding_session tool queues a Codex or Claude session on a connected machine. Supply machine_id, a unique request_id, provider, access, workdir and prompt. The target machine must enable remote_control and remote_launch. Content sharing roots do not authorize execution; every working directory needs consent through exec_roots.

Enabling remote_launch consents to daemon-created scratch and worktree leaves. The daemon grants only that launch’s exact leaf; never add shared state parents as execution roots. Project, existing-worktree and clone paths cannot contain or lie within the daemon state directory. Git preparation uses the hardened gate: hooks and fsmonitor are disabled, unapproved filters are refused, and Git metadata under an extra writable root or an uncontained live session is rejected. A live contained session can still supply a worktree source. An incomplete checkout is preserved for owner inspection. Preparation runs in a bounded worker; local launch_cancel fences provider startup while the current Git call finishes within its timeout. A prepared checkout is reused after a recoverable restart.

Optional model, effort and fast select launch settings. The server checks the machine's reported model catalog and allowed_models, and the daemon rechecks local policy. Codex model/list is paginated with a bound. Claude reports default, sonnet, opus and haiku aliases. Fast is Codex-only. Claude write requires allow_uncontained_write; Claude has no OS sandbox. Full access runs as the daemon user and can reach their files and credentials.

Restart recovery follows the durable journal. An exhausted launch proven never submitted reports failed; delivery that may have occurred remains uncertain and is never automatically replayed.

Choose narrow external project roots. Avoid home directories and roots containing provider, shell or service configuration.

Set local consent with roundtable launch-policy policy.json. The JSON file merges fields such as {"remote_control":true,"remote_launch":true,"exec_roots":["/projects/repo"],"allowed_models":["codex:default","claude:default"]}. Only explicitly named launch-policy fields change. Use external project roots; shared daemon directories are not launchable projects.

Cloud core images apply their workspace defaults with roundtable launch-policy --initialize policy.json. This initializes once per local server state and preserves subsequent owner policy, including disabled launches. Ordinary roundtable launch-policy policy.json explicitly updates the named settings and also prevents image initialization from overriding them. Policy and initialization state commit together; a failed setup remains retryable. Provider sign-in, launch grants and content consent stay separate.

To start work on a sleeping or stopped cloud VM, request monitor and cloud_manage as well as launch. The owner selects All sessions, including future sessions and Manage cloud VM in the access form. Discover it with list_cloud_computers, call control_cloud_computer with action: "wake", and wait for get_cloud_computer to report running and get_machine_health to report a healthy connection before launching. See Cloud VM controls for power, image updates and task archives.

Submit roundtable remote launch request.json --operator-token-file operator-token. The request file contains the tool payload above. The operator token file must be owned by you and mode 0600; machine sync tokens cannot call this endpoint. This command calls POST /api/tools/start_coding_session.

Remote Claude starts enforce --setting-sources user --strict-mcp-config --mcp-config '{"mcpServers":{}}': repository settings, hooks and MCP configuration are excluded. Codex starts use -c 'projects={"<path>"={trust_level="untrusted"},...}' overrides for the working directory and its ancestors so project config/MCP layers stay disabled, even when user config trusts that repository. The Codex override is one inline TOML table: paths are keys in its value, never quoted pieces of a dotted CLI key. Offline checks with Codex 0.165.0 exclude a repository MCP marker for trusted projects and linked worktrees, including dotted paths. No provider session was started.

The caller needs a machine-wide launch grant. Session-derived operators remain read-only. A repeated request_id returns the original command; changing its arguments is rejected. The local max_sessions and max_starts_per_hour limits bound remote and automatic daemon launches; owner-local sessions are exempt. The requested access must also fit two ceilings. The machine’s local max_access (default read) applies to every caller. A CLI operator is also held to its own access ceiling. An assistant or coding agent has no ceiling of its own: the owner’s explicit machine-wide launch grant admits it, and the machine’s local policy bounds it. Delegated child sessions never exceed the machine’s local ceiling or the access their launch requested. Launch leases allow up to 15 minutes for bounded preparation, queueing and startup, with fresh authorization before submission. Expired work is refused. Get the receipt with get_session_command. Launch status includes lifecycle and automation reason, attempt count and last error. Claude acknowledgements establish acceptance, not proof of a started turn. After a daemon restart, proven unsubmitted work retries at most once with a fresh journal ID. Unknown submission reports blocked with reason delivery_unknown and never resends.

Cancelled and degraded receipts use the accepted cancelled and degraded codes. Permanent receipt refusals are retained locally as receipt_rejected and are not uploaded repeatedly.

The machine reports execution roots and consented session directories, with Git root, remote, origin default branch and root commits when the gate can verify them. Unavailable metadata is null. Embedded remote credentials are removed and catalog output is redacted. Revoked and missing registry entries are pruned before the output limit; disabling remote_launch stops project export.

Linux acceptance uses fake providers and loopback HTTPS. Real providers, delegated write leases and actual macOS launches remain unverified.

Shared launch admission

Remote starts, remote resumes and automatic task starts share the same session and hourly start limits. Explicit owner sessions remain exempt. A completed task's retained provider counts again while it is active; reactivating it requires free session capacity. Machine pause preserves questions, approval stops and unknown-delivery guards even while automation is off.

Remote launch can use the operator selected by roundtable remote login or ROUNDTABLE_OPERATOR_TOKEN_FILE when --operator-token-file is omitted. Local offline session reads continue to read only durable state.

Before remote provider I/O, the daemon attests prepared workspace roots using its machine credential. The server commits lease activation before issuing the short authorization permit. A launch holds its folder until the machine proves nothing can still write there: while the lease is held, another launch into that folder or any folder inside it is refused with workspace_busy. A session keeps its folder after its turn finishes, so you can keep working in it. Close it once its code is merged or is no longer useful: run roundtable sessions stop <session_id> on that machine. On Linux, its Roundtable service then ends every process the session left in its own process scope, checks that the scope is empty and reports that to the server with its machine credential; the server frees the folder for the next launch. If the server cannot be reached, the report is retried. The same report is made when a launched session’s process exits by itself or the service restarts, so a session that is already stopped needs no command: sessions stop only accepts a session the service still runs. The report waits while the launch is still in flight, while an unfinished task on that machine holds the session, and while any validator on that machine that has no task, or that belongs to one of the session’s tasks, is still recorded as running (a record left by a failed cleanup keeps it waiting until the Roundtable service restarts). A session whose handoff was started keeps its folder like one that can’t prove a stop. The server accepts it only from the machine that holds the lease, for that lease’s current epoch, and only with that proof; a live session, idle or not, makes no report and keeps its folder. A session that ran outside that scope cannot give this proof and keeps its folder after it stops: a session on macOS, a Codex session launched with full access, or a session that was resumed, including a resume that failed while starting its provider. On a cloud computer a confirmed full stop or restart frees it, as described below. On any other machine nothing frees it; launch into a different folder. Until a folder is free, launch other work in a different folder. The proof covers the session’s own process scope, the same boundary a handoff relies on. A remote Codex launch still starts the MCP servers in the owner’s Codex configuration, outside Codex’s sandbox; a process started through one of them that moves itself to another scope is not seen by the proof and could keep writing after the folder is freed. This is an accepted limitation. get_session_command shows a refused launch's workspace_busy code with a next_step that says the same. On a cloud computer, a full stop (or a restart, which stops it first) that the provider confirms frees the folders of that computer's launched and resumed sessions; sleep does not, and an unfinished delegated task keeps its folder. Resumes use the same held-directory checks and project configuration isolation as starts. Legacy session credentials remain read-only. A delegated launch instead receives a task-derived credential through the authenticated daemon, scoped to its own session and descendants.

The Codex trust override also marks every project key in the effective user config as untrusted. This covers a prepared directory renamed onto a configured trusted path. Unreadable or invalid Codex config refuses the launch. Tests use synthetic CODEX_HOME fixtures only.

delegate_task accepts an optional launch object with the remote launch settings. Its goal supplies the prompt. Without launch settings the task remains blocked with launch_request_required. Cancellation withdraws queued launches and refuses further confirmation; it does not claim that an already executing provider has stopped. The daemon reports each terminal provider turn with its redacted final text, turn ID, generation and resulting workspace tree SHA. A completed child produces one immutable result. Parents wait for all children before their own recorded terminal result becomes done. A question becomes needs_input and reaches the owner; it never counts as a result.

Delegated tasks and child credentials

On Linux, contained Claude receives ROUNDTABLE_OPERATOR_TOKEN_FILE through a read-only mount of its task-only credential directory. Atomic credential renewals and revocation remain visible inside containment. The mount does not expose the daemon state directory, and the child environment remains explicitly limited.

Use roundtable remote delegate request.json with your remote login or ROUNDTABLE_OPERATOR_TOKEN_FILE. For example:

{
  "request_id": "review-parser-1",
  "project": "research",
  "goal": "Review the parser and summarize findings.",
  "launch": {
    "machine_id": "YOUR_MACHINE_ID",
    "provider": "codex",
    "access": "read",
    "workdir": {"project": "/absolute/path/to/repository"}
  }
}

Add parent_id to attach the new task to an active parent. Supply the machine, provider, access and workspace explicitly. Omitting launch creates metadata with launch_request_required; it does not select defaults or start a provider. Create a new request with explicit launch settings to run the work and cancel an unused metadata placeholder with task_cancel. Use task_status for progress and task_results for child results. In the dashboard, the Tasks tab on Coding sessions shows each task’s automation status and launch receipt (see Delegated tasks). Retry a request with the same request ID and identical arguments after an uncertain response.

The child inherits ROUNDTABLE_OPERATOR_TOKEN_FILE pointing to a private file with mode 0600 under the daemon state directory. The daemon renews its ten-minute credential while the task and initiating actor remain authorized. Capabilities are limited by the parent's current grants, the requested launch access and local Policy max_access. Control and reads are limited to the child session and its launched descendants on that machine; launch uses the existing local policy and write journal. Credentials cannot grant handoff or owner approvals. Parent revocation, task cancellation and completion revoke the credential chain. Tokens are excluded from events and result receipts.

task_cancel also stops a session the task’s launch already started. At the machine’s next sync, its Roundtable service cancels the task there and stops that provider process, freeing its max_sessions slot. The session stays listed, not live, with its events and transcript. Only the session the service launched for that exact task is stopped; discovered sessions, other tasks’ sessions and a session handed off to another machine are untouched. A machine running an older CLI ignores the request and keeps the session until its service restarts. Cancelling a finished task stops nothing; release its session with roundtable sessions stop.

A question is delivered to the owner through the owner notice path. Answer with roundtable sessions prompt SESSION_ID "your answer". The next provider turn may then complete the task. Owner stops and cancellation take precedence over a late report. Final result text stays on the machine until its workspace is shared in content_roots. A held result shows content_not_shared; granting export consent publishes the captured turn without another provider write. Questions still reach the owner privately. Results require a stable Git workspace tree; a missing repository or a changed workspace remains unreported rather than publishing an invented tree SHA. Synthetic Linux providers exercise this path; live providers and macOS runtime are not claimed verified.

macOS handoffs use an explicitly labelled macos_process_group stop proof. Managed providers have a recorded PID, process start time and own process group, bound to the device and holder. Before snapshot or copy, the daemon fences and drains validators, stops the provider through its interrupt/close path, kills the group and verifies it empty. The server requires the labelled, timestamped, bounded emptiness proof and the existing epoch, holder, device and restore checks. Missing or mismatched evidence refuses the handoff; legacy unproven processes must not be upgraded by inference.

macOS cannot freeze; a descendant that escapes the provider's process group (setsid/setpgid) is not detected; Linux uses cgroup freeze/kill/empty. This follows T3 Code 9bfecb8f: agentScope.ts:101-102, ClaudeAdapterV2.ts:375-393,11370-11434 and CodexAdapterV2.ts:7593-7672. Linux's wire format and containment checks are unchanged. Same-device macOS H1 is exercised offline with fake providers. Cross-device adapter coverage uses synthetic OS execution; native two-daemon transfer is not verified and its existing preflight requirements remain. Real-provider H1 acceptance remains deferred pending separate authorization.

Same-machine handoff on Linux

A running session created by the managed remote-launch path can hand off between Codex and Claude in a new worktree on the same machine. Linux needs delegated cgroup v2; Claude also needs bubblewrap with PID and cgroup namespaces. A missing delegation returns cgroup_v2_not_delegated. Bare Claude, full-access Codex, unmanaged sessions and macOS cannot provide an ownership-transfer stop proof.

The source machine owner or an independent CLI operator uses POST /api/handoff/commands. Start from an owned task lease with {"task":"task-id","epoch":1,"work":"snapshot","next":{"device":"device-id","session":"fresh-target-id"}}. The service advances the epoch. Existing quiescing leases use their current epoch and omit next. The daemon stops admission, drains owned validators and source descendants, then captures and verifies the snapshot. Legacy or uncontained validator history refuses proof. Validator admission remains closed across restart.

After the snapshot receipt, queue work:"target" at the new epoch with target:{provider:"claude",destination:"/absolute/new-worktree",access:"read"}. Provider is codex or claude; access is read or write. Optional model, effort and fast settings still require current operator ceilings, local launch Policy and provider support. The destination must pass execution and content consent and be outside reserved writable roots. The daemon restores and independently verifies the raw manifest and resulting Git tree, verifies the packet, drains the Git freezes, and starts the provider through the normal launch and write journal. Claude keeps network access and its own configuration directory inside containment; Roundtable does not copy or inspect its credentials.

Prompts queued for the source during the handoff are held and delivered to the target under the original sender's current permissions and control lease. The packet is the target's first turn. Held follow-ups stay queued until that turn is idle, then use the original sender's journaled delivery path. This pending drain survives daemon restart. A provider acknowledgement is required. Writing or unknown deliveries are never resent. Confirmation reconciles a lost response. A restart reconstructs an accepted snapshot and an unfinished restore from actual OS and Git checks; it never replays an uncertain target start.

Queue work:"stop" to stop and drain a submitted target and release the lease. Its proof includes the separately recorded target command, journal and actual OS scope. A source-only stop cannot release a submitted target. A fresh authorized stop may read an immutable completed launch receipt after launch authority expires. Incomplete or unknown OS proof keeps the roots fenced.

For an explicitly approved unfenced fork, work:"fork" prepares a populated independent clone and consumes the owner's one-use destination/revision/epoch approval. Supply the target destination and fork_approval:{revision:"exact-bound-worktree-sha"} as the owner. It uses newly packed objects, with no alternates, hardlinks or shared object directories, and does not release the source. Populated submodule clones are refused. An unfenced fork can duplicate external effects; it is not an ownership transfer.

Daemon handoff logs include RT_HANDOFF_STEP diagnostics: closed step names, completion or failure, and elapsed microseconds. These records contain no provider content, paths or account identifiers. They do not replace the required stop and containment proof. On a deadline, the live H1 harness reports the pending step, bridge state, daemon execution state and read-only cgroup flags.

Verification uses the real Linux server and daemon, private PostgreSQL, and fake Codex and Claude providers in both directions, including process crashes and restart. Live-provider and macOS runtime acceptance remain unverified. There is no dashboard handoff action or new handoff CLI command.

Cross-machine repository mapping

For an internal cross-machine handoff, each daemon needs an existing repository cache mapped to its exact HTTPS repository identity. Merge a local transfer_repositories object with roundtable launch-policy policy.json, for example {"transfer_repositories":{"https://example.test/team/project.git":"/home/user/projects/project-cache"}}. The path must be inside this machine’s execution roots and content consent. Both devices also need owner-confirmed enrollment and the initiating actor’s fresh handoff grants.

The recipient supplies its own repository, compatibility, free-space and base-cache facts. Packet and bundle artifacts are restricted to that recipient and removed on completion or expiry. Imports use a separate repository beside the configured cache and verify the staged index and worktree independently. Provider start uses the shared native EXEC admission and journal path after independently verified restore and grouped gate closure. A queued command or restored repository does not mean a provider has accepted the handoff.