Skip to content

Console /plan-usage, Fleet shared-login grouping, console report push, and header warning pill #2182

Closed

Description

@JacobStephens2

Parent

#583

What to build

Extend thirdshift plan-usage with --fleet and --machine <name> (defaulting to Fleet when Fleet peers or saved reports exist), serve the Console /plan-usage page and /api/v1/plan-usage API with full CLI/API parity, group shared subscription logins across Fleet machines, push local Plan usage snapshots in post-Command console report, and show a Console header warning pill when configured routes are exhausted or at/above max_utilization.

Specifically:

  • Add --fleet and --machine <name> to thirdshift plan-usage, defaulting to Fleet when paired or reported Fleet hosts exist, and keep --clear working through authenticated Console actions as well as the CLI so CLI/API parity holds without exclusions.
  • Add Plan usage to the Console navigation (data-jump="p"), serve /plan-usage and /api/v1/plan-usage in OpenAPI under read scope, and keep 9 Resources strictly for per-host RAM, CPU and disk.
  • In Fleet view, group shared subscriptions across machines by account identity when known (claude orgId/email, codex accountId, muse account label), displaying the freshest observation across those hosts and naming the machines sharing that login, while keeping distinct logins and unknown-identity Harnesses (agy, grok) separate per machine.
  • Cache last-seen peer Plan usage snapshots when fetching reachable Fleet hosts so offline peers still show their last known state with age/reachability noted, and include the reporting machine's local Plan usage snapshot in console report's best-effort post-Command push under the report scope so NATted hosts keep the Fleet Console fresh.
  • Show a warning pill in the Console header beside host resources whenever any configured route is exhausted or at/above max_utilization, linking to /plan-usage.

Acceptance criteria

  • thirdshift plan-usage and /plan-usage (data-jump="p", /api/v1/plan-usage) default to Fleet when Fleet peers or saved reports exist, and support --fleet, --machine <name>, --json and authenticated --clear with full CLI/Console API parity.
  • Fleet view groups shared logins across machines by account identity (claude, codex, muse) using the freshest observation and listing participating hosts, while keeping distinct accounts and unknown-identity Harnesses (agy, grok) separate.
  • Reachable Fleet reads persist last-seen peer snapshots for offline fallback, and post-Command console report pushes deliver the reporting machine's local Plan usage snapshot under the report scope without idle background polling.
  • The Console header displays a warning pill linking to /plan-usage whenever any configured route is exhausted or at/above max_utilization, while 9 Resources remains per-host RAM/CPU/disk only.
  • Console HTTP, Fleet, console report, parity and Playwright browser tests verify local and Fleet rendering, shared-login grouping, offline fallback, pushed NATted reports, header warning pill visibility, and clearing cooldowns.

Blocked by

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