Repository navigation
Closed
Labels
Description
This was generated by AI during triage.
Parent
#1142 (Spec: the Fleet in the Console). Built on #1753 (the Console API), released by #1760. Governing decision: ADR 0026.
What to build
The Day shift can list and pair the machines in a Console's Fleet from the CLI.
[console]gains one fleet list, each entry a name and an address, replacingother_consoles. On reading the User config, anyother_consolesaddresses become link-only entries named after their host. Writing the config writes the new list and dropsother_consoles.setupwrites the list out with the other[console]settings.- An entry is live when the Credentials hold a token for its name, and link-only otherwise. The Credentials gain a table of fleet tokens keyed by entry name, in the same owner-only file.
thirdshift console fleet add <name> <address>reads the token from standard input (no echo on a terminal, never an argument), calls that machine's/api/v1/whoamito check it, records its hostname, version and scopes, then saves the entry and the token. A failed check saves nothing and says why (unreachable, refused, too old).thirdshift console fleet list [--json]shows each entry's address, whether it's live, its scopes, thirdshift version and last contact, without the token.thirdshift console fleet remove <name>drops the entry and its token.- The Console header's links to other Consoles come from the fleet list, live and link-only entries alike.
- None of these is an API endpoint.
Acceptance criteria
- A test starts two Console binaries on 127.0.0.1 with separate fake homes, issues a token on one (
console token create), and pairs it on the other withfleet addfed through standard input.fleet list --jsonthen shows the machine live, with its version and scopes. -
fleet addwith a bad token, an unreachable address, or a stand-in server answeringwhoamiwith 404 saves nothing and names the reason. - The token is in the Credentials (owner-only) and not in the User config.
fleet removedeletes both. - A User config with
other_consolesreads as link-only entries, and is rewritten withoutother_consoles. Existingother_consolestests are updated accordingly. - The header lists fleet entries as links.
-
docs/guide.mdgains a "Fleet" section on pairing and the list.
Activity
JacobStephens2 commentedon Nov 6, 2026
Closed by #1814, merged into issue-1142 by a thirdshift Ticket run with Self-merge.