Repository navigation
Description
Spec: 2.7-control-plane.md, revised into the broker's specification (chore below); the control plane is the broker's core. Neighbours: #449 Eventing and Telemetry owns the bus, the hook seam, the three signals and the sinks (2.8); #442 The Command Runner owns the runner daemons and the pool (6.2, 6.3); #520 Authorization owns the policy and #1116 the provider. Record: the gap analysis on #520, §§ 7–8.3.
Ruled 2026-10-21. The execution model is a pool of command-runner daemons, one per account, and a broker that unifies eventing, telemetry and the command runner. The broker is the one process a caller talks to: it authenticates the socket's peer (a Unix domain socket or a Windows named pipe locally; TLS with a token remotely), authorizes the account the caller asks for, selects or starts the runner standing for that account (a plug point), dispatches the exec, and forks what comes back: telemetry to the logger and the events stream, narration and output to the caller's console stream. HTTP/2, ruled the same day against HTTP/3. Calls may also go direct from a caller to its own user runner; the broker is in the path when policy or another account is.
What it is made of.
| Part | From | State |
|---|---|---|
| The listener: HTTP/2 over the socket and TLS, REST + SSE facade, a gRPC twin, addressing by run id | 2.7 § The wire | designed; the first cut fused command and event (#500) |
| The control point: pause, stop, step, from any connection | 2.7 | landed (the command surface) |
| The runner selector: account → a runner session; reuse, spawn on demand, capped pool, remote host | new, § 8.1 | not designed beyond the plug point |
| The fork: one exec's frame stream split by tag into the bus and the console | new, § 8.3 | not designed beyond the sequence |
Per-run buffers: an events file and a console file with their own seq, a memory ring each, SSE id: as the resume point |
2.7 seq; 6 § Reconnection; § 8.2 |
designed |
| Authorization at the socket: peer uid, the account policy, the token on the remote leg | #520, #1116 | the provider is the client side; the broker holds the policy |
| Cross-run subscriptions and actor authorization, for outside processes that watch and act | new | not specified; the two features that serve external watchers |
| The remote leg | 6 § Remote execution, retired onto this wire | designed as the same API over TLS |
Chores and features. The specification chore first; then the parts above as features, filed as the plan names them. #689, h2c, is this epic's first defect and moves here from #449.
Proof. The authz provider (#1116) and the shell provider (#799) are the two providers that prove the broker has landed: shell.run as a client of the broker on a runner under an account, and a System/ deploy from an unprivileged shell through the runner standing for root (David-Noble-at-work/personal#289).
Plan and design documents
| Kind | Document |
|---|---|
| Plan | Not yet opened |
| Design | 2.7-control-plane.md, revised by the specification chore |
Activity
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