Repository navigation
rc-0.2.1 - #179
Merged
Merged
rc-0.2.1#179
Conversation
a_request_cancelled_while_its_images_encode_ends_and_frees_its_slot slept 50 ms after starting its three-image request and then cancelled the session through the cancel registry. Nothing tied that moment to the request. A generation drops any cancel already held for its session as it registers (one meant for the session's previous generation), so on a runner where the request's thread had not registered by then the cancel was lost and the request ran to its 4 tokens: the windows-2025 failure on rc-0.2.0 at 441c3ba. On a starved Mac the same sleep ended before the first encode in 40 runs of 40, where the test passed having cancelled a request that held no image. The test now reads the mock's encode log and cancels when the first encode is in it, holding the log's lock while the cancel goes in so no further encode begins meanwhile. It also checks that the request stopped encoding.
Updated installation script URL for Windows PowerShell.
…print uses basecompute.co/sf/install.ps1
…alls there On Windows, Command looks on PATH only for `<program>.exe`, so an agent npm installs as a `.cmd` (pi, codex, cline, openclaw) showed as installed but failed to start with "program not found". Launch now runs it by the path it was found at, which std runs through cmd.exe. Unix is unchanged. The install commands were curl | bash everywhere; on Windows they are now ones PowerShell runs: Claude Code's and Hermes Agent's install.ps1, and OpenCode from npm.
…e-clock tests: the image-cancel test cancels once the first encode has begun
launch: run npm-installed agents on Windows, and list PowerShell installs there
A node had no signal handling, so whatever supervised it could only kill it, cutting the requests it ran. Now `superfluid node join` hears the asks a server drains on: SIGUSR1 on Unix, and on Windows the event named for its process id that `superfluid stop --drain --pid` sets, and Ctrl+Break with a console. Asked, it dials no more, and each lane closes its link to the head once it has nothing running: an idle one at once, one running a generation once its last tokens are out. A closed link is how a head already learns a node left, so it sends the node nothing new and places new work elsewhere; no protocol is added. What still runs after --drain-timeout (new on node join, 60 s as on serve) is cut, the engines end, and the node exits 0. Asked before it has dialed its head, it exits 0 at once. It logs node.drain.start and node.drain.done.
llamacpp: tested with b12631
Fix installation script URL in README
…ing read after On Windows a node that starts again to follow its head runs as a child of the process its supervisor started, which waits for it (sys::replace_process); the drain event that `superfluid stop --drain --pid` sets is that first process's. The waiting process now passes a drain asked of it on to the child once the child listens for its own, when it made a drain event itself, so the id the caller knows keeps draining the node. The event stays asked, so one set just before the start again is passed on too. A lane asked to leave while blocked in a read could start a generation that read brought. It now looks at whether it is leaving after the read and before handling what it read, so such a generation finds the link closed unanswered and the head places it on another node.
…y it did not answer `superfluid launch --http <a LAN address>` probed the server, took any error for "nothing there", and started `superfluid serve` at that address, which can only fail on this machine, hiding why the probe failed. On macOS the usual why is Local Network privacy: a program started from a terminal app that is not allowed on the local network gets "No route to host" for every address there, while the system's own curl and nc are let through. A probe that finds no server now says why: what the system said to the connection (made first, since the HTTP client reports a timed-out connect as refused), or the status or body it got. At an address that is not this machine's (not loopback, unspecified, localhost, or an address of one of its interfaces) launch starts nothing and fails with `can't reach the server at <addr>: <why>`; on macOS, a "no route" to a local network address adds where the terminal app is allowed: System Settings › Privacy & Security › Local Network. This machine's addresses still get a server started, and --print still prints the plan.
…rd at once A node about to start again for the head's new model waited up to 30 s for what it ran, taking work all the while, and heard a drain only after that wait, its links' close and its engines' end. It now waits on its events, and a drain asked meanwhile drains it at once, as one asked at any other time does: it leaves the head, gives what runs its --drain-timeout, and exits 0 rather than start again.
… server is started The connection a probe makes first gave each address of the name 3 s, and the request after it 3 s more, so a name with several addresses that never answer could hold launch for many times the 3 s it took before. The connection attempts and the request now share one 3 s deadline, the attempts splitting what is left among the addresses left. docs/integrations/index.md said a server is started whenever none answers; it is started only at an address of this machine, as cli.md says.
`node join --log-format json` says both, and the events page enumerates the named events and their fields: reason and timeout_secs, then reason and links_cut, with the cases that say only node.drain.done.
…chine is what its interfaces hold The system's lookup takes no timeout, so a slow resolver held a probe past its bound; it now runs on a thread of its own, waited on until the probe's deadline, and a name not looked up by then is "resolving <host>: no answer within 3 s". Whether an address is this machine's was whether a socket could be bound to it, which Linux allows for any address with net.ipv4.ip_nonlocal_bind, so a remote address could be taken for this machine's and a server started at it again. It is now whether one of this machine's interfaces is assigned the address (if-addrs, already in the lock file through mdns-sd); loopback, unspecified and localhost are this machine's as before.
…n an interface holds it `--http [fe80::1234%7]:8453` names the zone the address is on, which an IP address does not parse with, so the machine's own link-local address was taken for another machine's and launch failed rather than start a server there. The zone is set aside before the address is compared with those this machine's interfaces hold, and before the Local Network hint looks at it.
…ain is heard up to the exec A lane read whether its node was leaving and then handled what it read, so a leave that landed between the two still let a generation start. The flag is now a lock the lane holds read from the look through the dispatch, which the leave takes to write: the leave waits for a dispatch under way, and none starts after it. The drain sets it before it keeps the lanes from dialing again. A node starting again for its head's new model looked at the drain asks once, before readying its events for the exec, which can take two seconds; an ask after that was heard by the listener and lost at the exec. The look and the listener now settle under one lock: the node looks last after readying its events, and an ask heard after that look ends the node on Unix, where the exec has not happened yet, or is left to the program run in its place on Windows, which replace_process passes it on to.
`--http [::ffff:127.0.0.1]:8453` names this machine's loopback, but as an IPv6 address it is neither loopback nor unspecified nor one an interface lists, so launch took it for another machine's and refused to start a server. An IPv4-mapped address is now read as its IPv4 address before those checks and before the Local Network hint looks at it.
llamacpp: tested with b12651
A lane held the leave lock read across its whole dispatch, which can block in a socket write (a tokenizer export, a tokenize answer) when the head stops reading. The drain then hung in node.leave() before its deadline started, so even --drain-timeout 0 could not cut the links. The lock is now held only where a generation, stage forward or state operation starts (admit), none of which sends; the post-read check reads it and lets go. A leave that lands mid-batch is caught at the next start: an idle lane closes without answering, as before.
…ess is local only on its interface The probe connected straight to the address before the request, so a server the HTTP client reaches through HTTP_PROXY or the like (a name only the proxy resolves, a network only it reaches) was reported unreachable. The direct connection is now made only when ureq would not use a proxy for the URL, deciding as it does (its proxy, less NO_PROXY). Locality kept only the bare address of each interface, so fe80::1%en1 counted as this machine's when en0 held fe80::1. A zoned address is now local only when the interface the zone names, by index or by name, holds it.
Open
…line does not wait on the leave forward() held the shared agent state while it sent a generation's finish. A head that stopped reading that link left the lock held; a lane starting a generation then waited on it while holding the leave off, and node.leave() never returned, so the drain never reached its deadline. The finish is now taken under the lock and sent after it, as every other send already was. drain_and_exit also starts its deadline at the ask and waits on the leave (on a thread of its own) no longer than that, so whatever else holds a lane up, links.stop() still cuts it when the deadline passes.
node join: drain when asked, as a server does
launch: never start a server at another machine's address, and say why it did not answer
GitHub renders a release body's newlines as line breaks, so a note hard-wrapped at 76 columns showed as a fixed, ragged column on the release page. Whitespace only.
release: 0.2.1 — changelog and release note
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.
Release candidate for 0.2.1, cut from
mainat v0.2.0 (3240988).Version bump (
7d61bb6): the workspace version, the path-dependency versions, the daemon's and the basert adapter'ssuperfluid-engine-ffirequirement, the llama.cpp tokenizer's requirement on its adapter,Cargo.lock, and the daemon'sexport-forked.traces.otlp.jsonlfixture move from 0.2.0 to 0.2.1.Train selection: the nightly picks the newest
rc-X.Y.Zby version sort, so its llama.cpp PRs come here without a change.Pairing: BaseRT 0.5.3 (ABI 1) is the engine released beside 0.2.0. BaseRT's next train is rc-0.5.4.
Moved here at the cut
Follow-ups from 0.2.0
windows-2025(a_request_cancelled_while_its_images_encode_ends_and_frees_its_slot): the fix is onfix/image-cancel-test-off-the-clockand comes here as a pull request.recipe.json: its newest pinned release is still 0.5.0. The offline fallback should take BaseRT 0.5.3, which has three engines and states ABI 1.docs/models/runtimes.mdsays that after a failed NPU job the engine serves the following requests on the GPU alone; since scheduler: a tick the engine calls fatal respawns the worker instead of failing every later request #177 a fresh worker builds the split again. One of the two wants correcting.