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
Fleet: start work and administer any fleet machine from one Console #1769
Follow-up to Spec B, the Fleet in the Console (#1142), and Spec C, starting work and administering a machine through the Console API (#1768). Governing decision: ADR 0026.
What to build
The Console's run and admin controls from #1768 work for every machine in the Fleet, not only the local one, so the Day shift can start work and administer any machine from one Console (#1142 Q1.3, Q2.1).
The Start form's repository list includes each fleet machine's known Launch directories, labelled by machine, and a start goes to that machine's /api/v1, naming the signed-in person.
"Run now" on a Pass, the User config page, and Update are offered for each fleet machine (with a machine picker, or the machine filter from Fleet: the Console's Inbox shows the Fleet #1763), going to that machine's API.
Each control appears only when the effective scopes that machine's whoami reports for this person include run or admin.
The CLI's start, config and update commands take --machine <name>, attributed there to the token's holder.
The owning machine starts the Command and writes its Activity log line "by from the Console on ". Nothing runs on the calling machine.
Acceptance criteria
Two-Console test (as in Spec: the Fleet in the Console #1142's Tickets): with a run token, a start from the caller's Console runs a fake-Harness Ticket run on the owning machine. Its Command appears in the caller's merged Inbox, and the owning machine's Activity log names the person and the caller.
With an admin token, the caller reads and sets a User config value on the owning machine, and the sign-in list stays refused.
Without run or admin there, the controls are hidden, and a forced request gets the owning machine's 403.
--machine works for start, config and update.
docs/guide.md's Fleet section covers starting work and administering a fleet machine.
Activity