Repository navigation
Description
Specs: 6-execution-topology.md ·
6.1-privilege-elevation.md ·
6.2-process-pool.md
Plan: step 38
Three spawn paths exist today and agree on nothing — not narration, not dry-run, not cancellation. Two of
them bypass pkg/process, which declares itself the single bridge to os/exec, and one uses
context.Background(), so cancelling a run leaves apt-get install running to completion.
The answer is a lazily-allocated pool of execution hosts keyed by interpreter, privilege, pooling mode and
session — where elevation is an axis of host identity rather than a string prefixed to a command, and
concurrency comes from multiplexing rather than from more processes.
Open and gating: the PowerShell object-serialization boundary, and a spike on JEA to find out whether
headless Windows elevation exists at all.
Ruled 2026-10-21 (recorded in full on #520): the execution model is a pool of command-runner daemons, one per account it stands for, the same binary, holding no shell; each command is a fresh child by argv or by sh on a static script file (6.3); a runner runs many commands at once and never blocks a child on its originator. Calls may be brokered through a broker daemon that authenticates the socket's peer, authorizes the account (authz, #520, #1116) and routes to the runner by account, or go direct to the caller's own runner. Local transport a Unix domain socket or Windows named pipe, remote TLS, HTTP/2; frames tagged by channel and seq-numbered on the run's open event stream (2.7), narration a channel of its own. "How we elevate" is therefore: authz grants a session on the runner standing for root. For this epic: 6.2 absorbs document 6's § Approach, § Interface Shape and § Remote Execution onto the account axis and the daemon model (recommendation, for ruling); Execute(cmd string, elevated bool) is retired by 6.3's argv rule and the account; the JEA spike (#528) may dissolve, since a Windows service can start a process under another account headless (unverified on a host); the shell provider rewrite (#799) becomes a client of the runner, and #802's execve is the one action that stays in-process.
Ruled 2026-10-21: this epic is The Command Runner: 6.2 and 6.3, with 6.2 revised onto the account axis and the runner daemon (its specification chore is filed under this epic). Elevation is #520's; the wire and the remote leg are #1118's, the broker that selects a runner and dispatches to it. Document 6 keeps the problem, the policy triplet and the topology, and points at 6.1-authorization, 6.2 and 2.7 for what moved. The label is Epic:CommandRunner, renamed from Epic:ExecutionTopology.
Activity
[-]Epic: Execution topology: how we shell, and how we elevate[/-][+]Epic: The Command Runner[/+]David-Noble-at-work commentedon Nov 9, 2026
star github triage sweep added this issue to Triage: devlore, for the rule it breaks:
no-evidence: no Evidence of completion section