You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Route pkg/platform's inlined sudo -n through the elevation model #527
Reframed 2026-10-21 (schedule #1127, iteration 1): pkg/platform's runCommand(argv, sudo bool) and runWindowsCommand(command, elevated) go; each manager backend declares the account its commands need (root for apt, dnf, pacman, systemctl, port, system launchctl; the caller for brew and a user agent) and obtains its session through the broker's client interface (#1129), the stub in this iteration. NeedsSudo() becomes that declaration. 6.2 § Ruled, 6.1-authorization § Problem space.
pkg/platform/helpers_unix.go inlines exec.CommandContext(ctx, "sudo", "-n", "bash", "-c", command) when
a backend reports NeedsSudo(), under a TODO naming this task.
It bypasses pkg/process, the declared single bridge to os/exec — no narration, no dry-run, no
result pipeline.
It uses context.Background(), so cancelling a run never reaches a package install.
sudo -n also fails rather than elevates: an operator without cached credentials gets a hard failure
and no path forward — the gap a policy-governed session closes.
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