Repository navigation
fix: findings of the reviews before 0.51.0 (node state in WSL, GPU annotations, share setup) - #594
Merged
Merged
Conversation
7schmiede
force-pushed
the
fix/review-0.51
branch
from
November 19, 2026 12:13
5856ef8 to
d00dd90
Compare
…notations, share setup) Code review: 1. A stop of the node agent in WSL ran `rm -rf` on its membership folder, where the agent keeps its state (`node/`: leases, kept slots, its secret): every stop (switch off with guests, a changed cap, a crash, a hub update) dropped the guests' lanes. Only the copied files go now. 3. A lane being forgotten held the daemon's stop for up to the services' 90 s and was then cut off. `down_all` no longer waits; the daemon waits for the forget afterwards, with a budget of its own (10 min). 4. An earlier hub's agent counted as dealt with at the first look, even when that round ended blocked; and an unknown guest count read as none, so a fresh hub without the coordinator stopped an agent with guests. The pool counts as seen once something was done, the agent is ended before the membership is copied, and an unknown count counts as some. 6. `wsl.exe` is asked for UTF-8 (`WSL_UTF8=1`): its UTF-16 lines were cut one byte off, so non-ASCII read as U+FFFD. 7. The setup dialog drops the answer of an earlier, slower check and does not show one distribution's findings as another's. 8. The forget test is named after what it checks. Security review: 1. A lane's `annotations` with a `cdi.k8s.io/` or `nvidia.com/` key are refused on a node: under the NVIDIA runtime as Docker's default (CDI mode) they handed a container every GPU past the lease (ADR-0112). 2. What the distribution prints reaches the coding agent's prompt as a short line of plain characters. 3. A distribution name from `node-host.json` is validated on every path, a stop's too. 5. The install command fetches the install script of that release. Bug-Class: state-removed-with-its-copy Bug-Class: unknown-read-as-none Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7schmiede
force-pushed
the
fix/review-0.51
branch
from
November 19, 2026 12:26
d00dd90 to
8a85a14
Compare
This was referenced Nov 19, 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.
What and why
The code and security reviews of
82ff69b..mainbefore 0.51.0 (internal reports, devstack / Reviews) found, besides two findings fixed in #592 and #593:rm -rfon its membership folder, where the agent keepsnode/(leases, kept slots, node secret): switching off with guests, a cap change, a crash or a hub update dropped the guests' lanesfind -maxdepth 1 -type f)down_allno longer waits; the daemon waits after the stop, up to 10 mindecidetakesOption)wsl.execut into lines one byte offWSL_UTF8=1on everywsl.exeannotationswithcdi.k8s.io/…handed a container all GPUs under the NVIDIA runtime as default (CDI)cdi.k8s.io/ornvidia.com/keysnode-host.jsonnot validated on the stop pathreleases/latestinstall.shNot changed: Security 4 (on Linux a guest's build may outlive the agent's stop: switching off drains, the guests' lanes go on by design) and the firewall rule's missing
-RemoteAddressin Security 5 (members reach the node from anywhere in the pool; older than this range).No review card: these restore what ADR-0112/0113 already decided.
Proof
Each fix has a test that was red before it (red run noted per finding):
nodehost::removing_the_membership_keeps_the_agents_state: red at "the state stays" (run undersh; Git'sshhere, Linux/macOS in CI)lanes::a_lane_being_forgotten_keeps_only_the_daemon: red with the old wait indown_all("the lanes' stop waited for the forget")confine::a_gpu_reaches_a_container_only_through_the_lease: red, the CDI annotation passedchecknodehost::a_distribution_is_judged_by_what_the_agent_needs: red without the filter (x<script>)ShareSwitch.test.ts"shows the check of the distribution chosen last…": red, the earlier verdict stayednodehost::an_earlier_hubs_agent_is_ended_or_kept_for_its_guests,the_switch_and_what_runs_give_the_step,words_for_sh_and_lines_of_wsl_exe: new cases (finding 4's old semantics:guests_or(None, 0) == 0→Stop)Local: clippy (workspace), fmt, unit tests compose 22, daemon 229, hub 176, node 129; ui typecheck, 295 tests, build.
WSL_UTF8=1checked against this machine'swsl.exe(UTF-8 instead of UTF-16).Not checked: a WSL node agent end to end (no distribution with an agent here), a node with the NVIDIA runtime in CDI mode.
🤖 Generated with Claude Code