Repository navigation
feat(pool): show lanes of other members that run on this machine - #167
Merged
Merged
Conversation
This was referenced Oct 21, 2026
Whoever sits at a machine that runs the pool's lanes sees that someone else's code runs on it. The hub reads the pool's leases after each share report (every 15 s per pool); those whose node is this machine and whose owner is someone else are its guest lanes. They go to the dashboard on /hub/events (`guests`): - a banner below the top bar on every page, with a link to the pool area; it can be hidden until a lane comes or goes, - the share tile in the sidebar: how many, whose, what they reserved, - "On this machine" in the pool area: lane, repository, owner, state, since when, what it reserved. A guest lane that starts running notifies the desktop (ADR-0045, new kind `guest_lane`, on by default); a click opens the pool area (`devstack://open?page=pool`). What runs when the hub first reads a pool is the baseline. Per-lane usage and ending a guest lane from the machine it runs on are not part of this. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The share switch goes away (#169); the guest lanes get a tile of their own, shown only while there are any. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7schmiede
force-pushed
the
feat/guest-lanes
branch
from
October 21, 2026 12:20
2a9ca0e to
15e71bd
Compare
This was referenced Oct 21, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
**Builds on #161** (desktop notifications); the base isfeat/notifications, so this diff only shows what is new here. Once #161 is merged, GitHub retargets this PR tomain.## WhatA machine that runs the pool's lanes shows that someone else's code runs on it ("guest lanes": leases whose node is this machine and whose owner is someone else):| Tile in the sidebar (only while there are guest lanes) | number of guest lanes, whose they are, what they reserved; a click opens the pool area || **Pool area → "On this machine"** | lane, repository, owner, (pool), state (running/starting), since when, what it reserved || Desktop notification (ADR-0045) | new kindguest_lane, on by default: "anna's lane feat-cart runs on this machine"; a click opens the pool area |## How- The hub reads the pool's leases after each share report: every 15 s, per pool. It reads the member list (for names) only when a lease names this machine. The coordinator already lists every lease to every member.-/hub/eventscarries{"type":"guests","guests":[…]}.- A pool's first reading is its baseline. A lease is told once, when it isrunning. A pool that cannot be reached keeps its last list.-devstack://open?page=poolopens the pool area (the click on a notification). The link and/auth?next=stay limited to dashboard routes.## Not part of this (as agreed)- Usage per guest lane: the node agent reports only a total. The section shows what the lanes *reserved*.- Ending a guest lane from the machine it runs on: that needs an amendment of ADR-0033.## Tested- Rust:-guests::of: only other members' leases on this machine; an owner without a name is shown by id.-seen: the baseline is per pool;offered→runningis told once; an unreachable pool keeps its last list.-Targetanddevstack://open?page=pool.- UI: the hub store followsguests; label, sum and signature helpers.- Mock mode in headless Edge: banner, sidebar tile, pool section.-cargo fmt --check,clippy -D warnings, tests for the hub crate andtests/hub.rs,npm run typecheck,npm test.🤖 Generated with [Claude Code](https://claude.com/claude-code)Note: the share switch is removed in #169; the guest lanes therefore have their own sidebar tile (
GuestTile.vue). If #169 is merged first,Sidebar.vueconflicts trivially (keep<GuestTile />, dropShareSwitch).`