Repository navigation
Closed
Labels
Description
Parent
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
--fleetand--machine <name>tothirdshift plan-usage, defaulting to Fleet when paired or reported Fleet hosts exist, and keep--clearworking through authenticated Console actions as well as the CLI so CLI/API parity holds without exclusions. - Add
Plan usageto the Console navigation (data-jump="p"), serve/plan-usageand/api/v1/plan-usagein OpenAPI underreadscope, and keep9 Resourcesstrictly for per-host RAM, CPU and disk. - In Fleet view, group shared subscriptions across machines by account identity when known (
claudeorgId/email,codexaccountId,museaccountlabel), 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 thereportscope 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-usageand/plan-usage(data-jump="p",/api/v1/plan-usage) default to Fleet when Fleet peers or saved reports exist, and support--fleet,--machine <name>,--jsonand authenticated--clearwith 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 reportpushes deliver the reporting machine's local Plan usage snapshot under thereportscope without idle background polling. - The Console header displays a warning pill linking to
/plan-usagewhenever any configured route is exhausted or at/abovemax_utilization, while9 Resourcesremains 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.
Activity
JacobStephens2 commentedon Nov 14, 2026
Closed by #2204, merged into issue-583 by a thirdshift Ticket run with Self-merge.