Skip to content

Show Plan usage by Harness above machine details - #2274

Merged
JacobStephens2 merged 2 commits into
mainfrom
issue-2229
Nov 18, 2026
Merged

JacobStephens2 merged 2 commits into
mainfrom
issue-2229

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

 Plan usage
+  By Harness: claude · codex · muse · agy · grok
+    Plan windows, restrictions, limited routes and observation age
   Intro and Machine selector
   Machines and full Login details
   Clear cooldowns

The summary uses the selected scope's existing Logins. Different account identities keep separate sub-rows; unidentified Logins show their freshest observation. CLI and API JSON retain their existing view.

Closes #2229

Test seams: Console HTTP page/API responses and the rendered /plan-usage browser flow, including Machine selection and responsive geometry.

Evidence

Execution evidence

  • Before: node --test console/tests/plan-usage.test.cjs
    not ok 2 - Fleet Plan usage groups a shared login, shows a pushed machine read-only and an offline one cached
    locator.waitFor: Timeout 5000ms exceeded.
    waiting for getByRole('region', { name: 'By Harness', exact: true }) to be visible
    # pass 1
    # fail 1
    
    After: the same command passed all three tests (# pass 3, # fail 0), including all five entries above the fold at 1280×720 and no horizontal overflow at 390px.
  • Review regression before: node --test /tmp/spec-2229-fold-repro.cjs failed with bottom=914.828125 for three machines with distinct Claude/Codex/Muse identities. After: the exact command passed (# pass 1, # fail 0). The regression is retained in console/tests/plan-usage.test.cjs as “three distinct Logins keep all five Harnesses above the fold”.
  • cargo test --test console plan_usage:: -- --nocapture: 9 passed, covering API/CLI parity, distinct identities, restrictions, escaped names, expired windows, freshness and scope.
  • npm run docs:check --prefix site: passed.
  • Final local validation: RUST_TEST_THREADS=3 scripts/affected-tests main passed the site suite, locked build and all 261 Console browser tests. Its duplicate Rust run was stopped after CI passed all four Rust shards and the complete test gate on the exact head ce75cc4036902d961ff1d6074c466e00059d36bc, reusing successful CI as the implementation skill and docs/testing.md direct. The local selector therefore was not a complete green run; Rust validation is supplied by that successful CI run. All PR checks are green.

Visual evidence

Paired captures were inspected at the same Fleet state and viewports. Publishing to a secret Gist failed because the available GitHub token lacks the gist scope (HTTP 404: Not Found; This API operation needs the "gist" scope). The exact local artifacts are retained in this Session; public image embeds are unavailable.

Before — Plan usage Fleet, desktop 1440×900

/tmp/before-desktop.UoWddz.png

After — Plan usage Fleet, desktop 1440×900

/tmp/after-desktop.atP9Vl.png

Before — Plan usage Fleet, mobile 390×844

/tmp/before-mobile.i4aLQQ.png

After — Plan usage Fleet, mobile 390×844

/tmp/after-mobile.nR5qmU.png

Before — three distinct Logins, desktop 1440×900

/tmp/before-desktop.d6EbDQ.png

After — three distinct Logins, desktop 1440×900

/tmp/after-desktop.N3Mmem.png

Before — three distinct Logins, mobile 390×844

/tmp/before-mobile.usNFmg.png

After — three distinct Logins, mobile 390×844

/tmp/after-mobile.wueSAg.png

Review coverage

Independent Standards and Spec reviews against refs/remotes/origin/main (e137ab54ec9758cc3b06b28f6e857bede4ac6281), including the final amendment in ce75cc40. Standards: 0 actionable findings. Spec: 1 finding, reproduced and fixed with its regression retained. Reviewers read all 10 changed files, including the generated manual HTML. Unread changed files: none. Generated-output exclusions: none.

Unaddressed findings

Standards

None.

Spec

None. The three-Login fold finding was reproduced and fixed in ce75cc40.

Security

None.

Security review outcome

No unaddressed introduced findings.

Merge Danger

Door: two-way

Reverting removes the page projection and its styles; no stored data changes.

Blast Radius: Console

Plan usage rendering and its documentation.

Built with codex codex-cli 0.167.2 · gpt-6.1-sol · xhigh

@JacobStephens2
JacobStephens2 merged commit b91e58a into main Nov 18, 2026
30 checks passed
@JacobStephens2
JacobStephens2 deleted the issue-2229 branch November 18, 2026 19:49
@JacobStephens2 JacobStephens2 mentioned this pull request Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ensure that above the fold on the /plan-usage console web ui page, usage for each plan is shown - separate from host

1 participant