Skip to content

Fleet: the fleet list and pairing #1761

Closed

Description

@JacobStephens2

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, replacing other_consoles. On reading the User config, any other_consoles addresses become link-only entries named after their host. Writing the config writes the new list and drops other_consoles. setup writes 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/whoami to 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 with fleet add fed through standard input. fleet list --json then shows the machine live, with its version and scopes.
  • fleet add with a bad token, an unreachable address, or a stand-in server answering whoami with 404 saves nothing and names the reason.
  • The token is in the Credentials (owner-only) and not in the User config. fleet remove deletes both.
  • A User config with other_consoles reads as link-only entries, and is rewritten without other_consoles. Existing other_consoles tests are updated accordingly.
  • The header lists fleet entries as links.
  • docs/guide.md gains a "Fleet" section on pairing and the list.

Activity

  1. added
    enhancement
    ready-for-agent
    on Nov 5, 2026
  2. JacobStephens2 commented on Nov 6, 2026

    @JacobStephens2
    OwnerAuthor

    Closed by #1814, merged into issue-1142 by a thirdshift Ticket run with Self-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions