Control Room execution and Project fulfillment
The canonical server operator can submit bounded OS commands through
POST /v1/control-room/host-commands. This uses the existing authenticated durable
host command/result channel. Tenant administrators and ordinary Project sessions
cannot use this capability. Commands have danger classification.
Read fresh host inventory before submitting a request. Supply a UUID requestId,
hostId, expectedService: {uid, gid, epoch}, exact argv, an absolute cwd,
purpose, and bounded timeout/output settings. A managing Control Room must also
supply its current manager: {sessionId, generation, providerSessionId}. Its owner,
purpose, native identity and enabled grant are checked again before execution.
No environment override, sudo or additional user authority is supplied.
executionNamespace: "host-agent-process" is the default. It uses the actual
host-agent process UID/GID and its existing filesystem/process namespace. Container
root is not evidence of physical-server access. executionNamespace: "host-tooling"
uses the existing private same-user host runner or namespace helper with explicitly
configured DEVCTL_TOOLING_UID/GID; it cannot select another user. Its expected
UID/GID come from devctl.host-command.tooling.uid/gid, with the daemon's
devctl.host-command.epoch. Missing tooling labels mean that transport is
unavailable. This retains the existing host/Docker Control Room settings.
A successful POST is acceptance. Poll
GET /v1/control-room/host-commands/:requestId for an authenticated actual exit
receipt. Receipts report real/effective UID/GID, execution epoch, selected namespace,
Linux namespace IDs where supported, actual exit observation, exit status, timestamps
and bounded redacted output. Successful exit alone does not establish requested file
or service state. Inspect the actual result separately.
The pre-execution claim is durably consumed before spawning argv. Reusing an identical request UUID is idempotent; changing its arguments is rejected. A lost claim response, consumed claim or uncertain crash outcome never replays the command. Inspect effects before authorizing a new request. Commands support 1–900 second limits, at most 64 KiB output and bounded stdin. Known secret patterns and sensitive service environment values are redacted, with a final output bound after redaction. This is not an OS sandbox around the operator's own commands.
Requesting fulfillment from a Project
An ordinary managed session uses request_permission with an exact typed
operatorExecution outcome and obtains approval of its selected actions and
constraints. Approval automatically admits a durable task through the existing
operator execution pipeline. The controller handles admission, execution tracking
and requester notification even when every client is closed. The session can use
get_control_room_availability() to inspect its owner-scoped route and
get_operator_execution_status({approvalId, requestId}) to inspect actual progress.
A chat message or checkpoint does not create a task. The supported outcomes are:
managed-service: provision an actual service, withrootlessDockerand optionalrunnerRepositoryproof requirements.diagnostic: investigate an existing operational blocker; provide a short, secret-freesummaryand optionalsubject: {serviceId, endpointId, runnerId}.repair: repair an existing granted service, with the same summary/subject format. A runner subject requires the exact ownedrunnerRepository.remote-tcp-access: verify an already declared resource and its exact appliedSERVICEgrant, host, address, port and alias. Protocol proof can require TCP, PostgreSQL or an unauthenticated HTTP CONNECT challenge. This does not claim successful application authentication or issue credentials.
Subject service/endpoint IDs must come from the requesting Project's current
granted dependencies. They do not grant access to another tenant's resources.
Poll get_operator_execution_status({approvalId, requestId}); requestId is the
idempotency UUID returned by submission. An in-flight request cannot be replaced.
After completion, a new UUID can reuse the same still-current permission while
the previous result remains readable by its request ID. These tools grant no
operator commands or credentials to the source Project.
Active requests are bounded to twenty per owner. Retained historical request
metadata is capped at ten thousand entries; reaching the cap stops new archived
work for operator maintenance rather than deleting proof or replay protection.
For a new operator authorization, attach the exact outcome to its requested action:
{
"title": "Repair the existing CI route",
"resource": "Existing CI service",
"actions": ["Restore the existing granted Docker endpoint"],
"purpose": "Run this Project's isolated tests",
"operatorExecution": {
"actionIndex": 0,
"outcome": {
"kind": "repair",
"rootlessDocker": false,
"summary": "Restore the existing managed CI route",
"subject": {"serviceId": "ci-service", "endpointId": "docker"}
}
}
}
This descriptor always requires manual danger approval; agent risk labels, automatic
approval and advisor results cannot lower that floor. The server appends its exact
operation/scope/subject to the bound action label so older clients show what they
approve. A service-wide subject has endpointId=* in that label. Duplicate bound
labels are rejected. Partial approval remaps the descriptor by the retained action
index or drops it; selecting an identical different action never grants execution.
An explicitly excluded descriptor cannot be recovered through fulfillment.
request_operator_execution remains available for an explicit request under an
existing approval; repeating the same admitted outcome returns the current task.
The descriptor grants no shell command, Project tool or completion receipt.
Canonical exact manual bindings reuse their existing authorization. Legacy prose,
tenant requests and basic service-use grants enter isolated TRIAGE instead of
inventing execution authority. The canonical operator resolves the exact original
hash and selected scope with a typed outcome; this requires no duplicate permission
approval. An excluded typed action cannot be recovered through TRIAGE.
Automatic work uses a separate, permanently read-only task chat, preserving the selected human conversation and messenger routes. Its initial task travels through the existing durable session launch. Only the exact managed MCP actor, current account/native identity and authenticated accepted launch can claim it. Quota, missing manager or unsupported effective model leaves an actionable durable pause; polling does not silently switch accounts/providers or restart a failed agent. Model selection uses the actual installed account/host catalog, including inherited Project/session settings. An explicit retained-session repair requires fresh proof that its previous provider stopped and preserves its native conversation and other settings. Existing manual decision/dispatch APIs remain available for reviewed work.
For those requests, the canonical operator reads /v1/operator-executions?review=true, reviews the
selected approved actions and explicitly chooses an existing authorized Control
Room chat through /v1/operator-executions/:id/decision. An approving decision
must include requestHash, chatId and explicit reviewedOutcome fields:
{kind: "managed-service", rootlessDocker: boolean, runnerRepository: string | null}.
The review hash binds the immutable source request, exact target and proof policy.
A repository-runner provisioning policy requires linked rootless engine/container
proof. Diagnostic/repair review retains its requested outcome kind.
POST /v1/operator-executions/:id/dispatch explicitly dispatches the reviewed
request using its requestHash. This can spend a native model turn. The pinned
account, native conversation, generation and grant remain fixed; quota exhaustion,
busy targets and changed identities are explicit. Existing durable chat delivery
receipts prevent duplicate prompts. Operational dispatch uses the typed native
notice queue, not timed chat paste/Enter. Queued or Enter-submitted notices are polled by their exact
receipt after restart, without sending more input. A legacy started delivery with
no typed receipt is uncertain and is not replayed. Source authorization is checked
before and after delivery. Only the exact native acknowledgement (confirmed),
not tmux Enter acknowledgement (submitted), advances actual execution. The
transport supports Claude/Codex Docker and host-native Control Rooms. Host-native
delivery uses the authenticated same-user private runner, with its current daemon
epoch and shared filesystem identity. Isolated Linux acceptance exercises actual
PTY input and native receipts using instrumented providers; production CLI and
physical-host rollout proof remain separate. Missing transport support never
selects a raw-byte fallback.
The operator attaches the real dedicated Project Service, endpoint and alias using
/v1/operator-executions/:id/service. The exact resource must be owned by that
Project's user, with an applied active grant and connected route where present.
An authenticated resource.test result must verify DNS/TCP for that exact grant.
Stale endpoint probes are refreshed through the same bounded read-only command.
Provisioning remains restricted to dedicated Project services. Repair may verify
an already granted global/shared subject only with its exact owned or explicitly
published resource, current dependency and applied source-workspace grant. Foreign
private resources are refused. A changed grant/endpoint/publication invalidates
in-flight proof rather than reusing another target's receipt. A service-use grant
alone never supplies operator repair authority.
/v1/operator-executions/:id/verify accepts references to authenticated host-command
receipts. Rootless engine proof requires exact Docker info argv for the selected
endpoint. Runner proof additionally requires exact isolated container inspection,
its native .runner configuration and the exact online GitHub repository runner
ID through an existing authorized credential reference. Output and credentials do
not project into the source session. Prose, labels, a listening port and prompt
submission do not establish runner readiness. Evidence uses observed timestamps,
not delayed delivery times; required proofs remain bounded to five minutes.
For diagnostics and repairs, publish the result with
POST /v1/operator-executions/:id/result, including requestHash, a bounded
secret-free summary and up to eight hostRequestIds. Those commands must have
the exact purpose Operator execution <approvalId> <requestHash>, the pinned
managing native session and the requesting host. Only fresh authenticated actual
exit receipts with exit code zero are accepted. Command stdout, private account
details and credentials are not returned to the Project. A diagnostic's applied
means verified findings were published, not that the service was repaired.
A repair also needs the exact granted endpoint probe and its reviewed proof policy.
An honest blocked or failed report records an unverified outcome; it does not
claim that an operation was applied. Remote TCP completion additionally requires a
fresh authenticated probe and a verified managed guide write for the exact grant.
Every terminal outcome creates a deterministic requester notification in the same durable task record. Completion and notification are independent: an attached terminal, compaction, inactive requester or missing native acknowledgement cannot erase the outcome or turn a queued notice into success. Reopening the controller and duplicate completion preserve the same notice ID. Notifications stay bound to the exact source account, generation and native conversation. A continuation to another account is eligible only through bounded immutable receipts from actual authenticated account-transfer launches; ambiguous or failed transfers stay held. After a send attempt the notification never retargets. A prior native receipt can still be reconciled read-only after a transfer or exit.
Progress distinguishes requested, approved, queued, executing, applied and failed.
completionScope: "managed-service-endpoint" limits applied to the reviewed
Service/endpoint and selected proof policy. It does not claim every arbitrary prose
action was independently verified. Existing approval polling/history and the shared
native/browser MCP Approvals view retain fulfillment progress separately from
permission-rule delivery. Private Control Room target identity remains operator-only.
Updating instructions in running sessions
New runtime guides include the current owner-scoped Control Room availability.
An existing room does not imply that every session has its MCP connection:
unavailableReason: session-mcp-unavailable identifies a missing managed binding.
requesterRole: operator-control-room is derived only from the exact enabled
canonical managing grant, owned session/workspace/project/account and current
devctl MCP snapshot exposing the operator tools. That actor's guide says to fulfill
administration directly; it does not recursively ask another Control Room for help.
Tenant administrators, a room-owned ordinary session and client-supplied purpose
never acquire this role or server authority.
On capable hosts, a bounded controller pass detects route enable/revoke, selected
chat, grant, host capability or current checkout changes. It queues one existing
session.files-synced command per session/generation/revision. The host updates
only the Operational help from Control Room section in every assigned checkout
and then sends one native notification to reread DEVCTRL.AGENTS.MD. Other
repositories' grants are never copied. Provider processes stay running.
Queue state, host-confirmed file update and verified native notification are
recorded separately. Unsupported hosts do not advertise control-room-guidance-v1;
a queued update is never reported as delivered. Busy native input waits through
the existing notification protocol rather than pasting another long message.
Source integration and harmless fixture validation are separate from deployment. A real physical-host namespace, live Service or paid provider must be verified in its actual deployment before reporting that operation complete.
Factual native notices
Use POST /v1/sessions/:id/notices with the exact current native conversation,
generation and a unique notice ID for an authorized factual update. Poll the same
notice ID: queued is waiting, typed: true means the owned text was pasted,
submitted means tmux acknowledged sending Enter, and confirmed requires the
exact native hook or canonical user-message acknowledgement. An intent persisted
before Enter prevents replay after a crash, but does not by itself report
submission. Pasting and terminal writes do not prove native acceptance. A missing acknowledgement never authorizes a new
notice ID or a second Enter.
Codex can render an owned long paste as [Pasted Content N chars]. The sender
accepts that display only during its own controlled paste attempt, with the
matching payload digest, Unicode scalar count, native process/generation and
unchanged detached tmux pane/session. A matching count alone proves nothing.
Attached input, edited drafts, changed targets and pasted drafts recovered after
restart remain pending, whether their text is visible or collapsed; matching text
or whitespace alone cannot restore controlled ownership. Their text is never
cleared or submitted by guess.
The shared automation input lock also excludes competing managed input writers.
An official hook acknowledgement can reconcile a delayed owned paste without
typing or submitting again. Terminal command failures remain historical failures;
they are not erased by replay. An older Codex Stop can remain valid when a fresh,
owned read of the exact live process's native rollout ends at task completion.
The sender binds that EOF to the selected thread and rechecks its unchanged file
anchor under the input lock before paste and Enter. The API reports
nativeIdleObservedAt for this read; it does not rewrite the original Stop time.
Later input, a working turn, compaction, a real question or an incomplete/changed
EOF stays queued. An empty terminal alone never refreshes native idle evidence.