Skip to content

Schedule: the execution model, iteration 1 #1127

Description

@David-Noble-at-work

Deliverable

Before: writ cannot deploy a System/ tree from an unprivileged shell; sudo -n is inlined at every privileged call site in pkg/platform; nothing authorizes anything; no broker and no runner exist. The specifications landed in devlore-cli#1125: 2.7 the broker, 6.2 the command runner, 2.8 the fork, 6.1-authorization.

After, iteration 1 of four: the authz provider (#1116) and the command provider (#799) are written against an in-process stub of the DevLore Broker (#1118) whose client interface is fixed and never moves; the stub runs commands through pkg/process for the caller's account and through one sudo -n behind the interface for root, retiring every inlined sudo -n; the console side of the fork reaches writ's Narrator; a System/ deploy from an unprivileged shell succeeds through the stub (David-Noble-at-work/personal#289). Iterations 2 to 4, the broker remoted, the runner, the bus, are later schedules.

Next, in order (the owner, 2026-10-24)

The specifications took the rulings of 2026-10-23 and 2026-10-24 in #1173 (#1159). Work resumes in this order:

  1. Done 2026-10-24, feat(op): the console stream never drops a frame: a slow subscriber receives every frame, late, and the child never waits #1176. Lane 3, The console stream never drops a frame: a slow subscriber receives every one, late, and the child is never blocked on it #1131, rescoped to one thing: the console stream never drops a frame; a slow subscriber receives every one, late, and the child is never blocked on it. Its branch and worktree, feature/1131-console-spool at ~/Workspace/NobleFactor/devlore-cli.1131-console-spool, hold the plan written before the rulings, wrong where it touches narration (c6a059b). That plan is rewritten to the rescoped task on the same branch, not closed and reopened.
  2. Lane 12, A narration frame is the child's stderr bytes, written into the caller's narration sink unaltered: no level, no line splitting #1151, narration frames as stderr's bytes, written into the caller's narration sink unaltered. It corrects what lanes 1 and 2 merged (feat(op): the broker's client interface: Exec and Post by account, the console and events streams, commands by run id, and its test double #1140, feat(op): the in-process broker: the caller through pkg/process, root through one sudo -n, the platform and the shell provider through it #1143), and lanes 13 and 14 (The command provider's actions return (string, error): stdout as the result, a non-zero exit as an error carrying its code #1153, The command provider emits each exec's start and end, with its exit code and duration, as events for observers #1154) and the command provider build on it.
  3. The outstanding design questions of docs/plans/chore/1159-stream-rulings.md, whenever the owner takes them: 2, the remote events channel; 4, root for a package command written without an account; 5, the SSH client; 6, the local leg; 7, file descriptor 3. Question 4 is the one blocking code: The platform's leaves stop choosing an account: a manager's command runs as its logon's account, and the broker elevates #1168 waits on it.

Lanes

Executed in this order; one pull request may close several. Committed 2026-10-21: no lane is split and none is added; work found along the way is filed as a lane on a later schedule (docs/issue-standards.md, Schedules). A lane in progress names its worktree under Next. The tree: feature #1128 under epic #1118 The DevLore Broker; feature #1116 under epic #815 Providers, the authz provider; feature #799 under #815, the command provider; task #527 under feature #526 of epic #520 Authorization; the acceptance in personal.

Rulings in the Waits on column are from 2.7 § Open and 6.1-authorization § Open; a lane that waits on one does not start until it is taken.

The steps are on Schedule: devlore, under Schedule "the execution model, iteration 1". Ruled 2026-11-03: the board replaces the table that was here.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions