Repository navigation
feat(pool)!: remove the share switch; the hub offers the pool nothing - #169
Merged
Merged
Conversation
A lane is a Linux container with a Linux devstack in it (ADR-0028), which a Windows machine cannot run yet: its share switch only reported capacity that nobody could use, and the pool showed it as shared. On Windows the hub now offers nothing and reports `sharing: false`, refuses to switch sharing on (409 with the reason), and tells the dashboard why (`unavailable` in /hub/pool/share), which disables the switch and links #168. The machine still starts its own lanes in the pool. Refs #168 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The share switch reported capacity but never started a node agent, so no member could start a lane on a machine that only switched it on, on Linux neither; on Windows none can run at all (#168). It is gone from the dashboard (sidebar tile, pool area). The hub still reports the machine (online, what it has, GPUs, its devstack) and offers nothing; `PUT /hub/pool/share` is gone, `GET` keeps the report's state and says why (`unavailable`). A machine runs other members' lanes with `devstack node agent`, granted by an admin; a switch that starts the agent is #171. ADR-0031 point 3 is amended. Refs #168, #171 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7schmiede
added a commit
that referenced
this pull request
Oct 21, 2026
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>
7schmiede
added a commit
that referenced
this pull request
Oct 21, 2026
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>
7schmiede
added a commit
that referenced
this pull request
Oct 21, 2026
* feat(pool): show lanes of other members that run on this machine 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> * refactor(ui): guest lanes in their own sidebar tile, not the share tile 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> * docs(adr): ADR-0045 amended for guest_lane, not rewritten Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # crates/devstack-hub/src/share.rs # crates/devstack/tests/hub.rs # ui/src/api/mock/index.ts # ui/src/components/Sidebar.vue # ui/src/views/PoolView.vue
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.
Replaces the first version of this PR, which only disabled the switch on Windows. As decided, the share option is removed from the UI entirely: it did not work in either case.
Problem
The share switch only reported capacity; it never started a node agent. No member could start a lane on a machine that only switched it on:
devstack node agent, granted by an admin. The switch did not start one.The pool still showed such machines as offering capacity ("6.6 CPU · 11.2 GB").
Change
ShareSwitch.vue,setShareand the mock's switch.share.rs):sharing: false).PUT /hub/pool/shareis gone (405).GETkeeps what the pool area needs (the coordinator's version, the last report) and says why nothing is offered (unavailable).pool.md,dashboard-api.md, SECURITY.md, CHANGELOG (Removed).Unchanged: nodes with an agent (servers) offer and run lanes as before; machines still start their own lanes in the pool.
Follow-ups
Tested
tests/hub.rs:the_hub_offers_the_pool_nothing_and_says_why.unavailablenames The share switch makes the machine a node: it runs the node agent (Linux in the hub, Windows via #168) #171 with no double spaces,settingsandofferare gone, andPUTgives405.cargo fmt --check,clippy -D warnings, hub tests,npm run typecheck,npm test.🤖 Generated with Claude Code