Skip to content

feat: admins see a machine that asks to run lanes (ADR-0116) - #605

Merged
7schmiede merged 1 commit into
mainfrom
feat/599-grant-requests
Nov 20, 2026
Merged

7schmiede merged 1 commit into
mainfrom
feat/599-grant-requests

Conversation

@7schmiede

Copy link
Copy Markdown
Member

What and why

A member that switches sharing on (ADR-0113) waits for an admin's grant to run the pool's lanes, and the admins saw nothing of it: no request in the Admin tab, no notification, no mark among the machines. Seen on 2026-11-19, together with a second member entry of the same machine that already had the grant. ADR-0116 records what was built; ADR-0045 is amended with the new notification kind.

Review card

Approved by the owner in the conversation on 2026-11-20, points 1 to 5.

# Category Point Beats Reversing costs
1 term A machine that reports with sharing on and has no grant shows under Admin as "Asks to run lanes" next to the join requests: name, offer (CPU, memory, GPUs), last report, a "Grant" button. The admin learns of it only when told Low: display only
2 contract The dashboard derives "asks" from the pool overview (report.sharing && !member.node), no new API field. A new field in the coordinator Low
3 concept Such machines count in the pool's and the Admin tab's badge and are marked "asks to run lanes" in Machines. A badge that counts join requests only Low
4 trust An admin's hub notifies the desktop (new kind machine_asks, switchable) when a machine starts asking. No notification Medium: a kind the pool's stream triggers
5 term Another member with the same address or the same name with a suffix (<name>-wsl) is pointed out: "same machine as X?" Granting the wrong entry Low; a heuristic

Decided on my own (also in the ADR):

  • "Last report" instead of "since when": the coordinator keeps no time of a first report without a grant.
  • An offline machine does not ask (its last report may be days old).
  • The hub reads members for this only on a change of members or nodes in the pool's stream, and only gets results where this machine is an admin.

Verification

  • Hub: asks unit tests (who asks, admins only, baseline, told once per start and again after a grant was taken back), notify tests; clippy, fmt.
  • Dashboard: asks.test.ts (who asks, same-machine hint); 300 tests, typecheck, build.
  • Mock dashboard in this worktree's lane: Admin tab shows gpu-desk with "14.2 CPU · 6.7 GB · 1 GPU free" and "same machine as gpu-desk-wsl? That one may run lanes already."; badge Admin 3 (request, ask, alarm); Machines marks it "asks to run lanes"; Grant removes it and the badge drops to 2.
  • Not seen: the desktop notification itself (needs a real pool with a waiting machine).

Closes #599

🤖 Generated with Claude Code

A member that switches sharing on waits for an admin's grant to run the
pool's lanes; the admins saw nothing of it.

- Admin tab: "Asks to run lanes" with the machine's offer, last report
  and a Grant button, derived from the pool overview
  (`report.sharing && !member.node`).
- Such machines count in the pool's and the Admin tab's badge and are
  marked in Machines.
- An admin's hub notifies the desktop when a machine starts asking
  (`machine_asks`, on by default; ADR-0045 amended).
- A second member entry of the same machine (same address, or a name
  with a suffix such as `-wsl`) is pointed out.

Closes #599

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede
7schmiede force-pushed the feat/599-grant-requests branch from 8535a38 to 49a2c09 Compare November 20, 2026 16:55
@7schmiede
7schmiede merged commit 2452d4f into main Nov 20, 2026
14 checks passed
@7schmiede
7schmiede deleted the feat/599-grant-requests branch November 20, 2026 17:04
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.

Admins learn of nothing when a machine switches sharing on and waits for its grant

1 participant