Repository navigation
Conversation
…rary on cloud builds, and make slow starts and missing connections legible - A call to a program's route is passed to its worker in the request that made it: the dispatcher checks the caller, births the run and relays the call, the ticket riding a private header to the worker. The raw path and query reach the worker as sent. A call no worker got erases its run and entry slot at once. A browser socket still asks for a ticket URL first; the live door now only opens sockets. - Every staged package file carries one fixed date, so a package the builder base compiled from one checkout is reused by a build staged from another; cloud builds no longer recompile the whole standard library. - A scale-to-zero supervisor runs one pass at a time, so two wakes no longer run the same command twice. - An infra unit says what it is doing while it starts (machine being created, booting, images downloading); the machine's agent answers from boot, applies in the background, and reports a failed apply until the unit runs whole. `weft infra start` and the editor show it. - The GCP install waits for GitHub's sign-in grant to take effect; signing waits are shared. - `weft target export` asks the install's own activation check and lists the connections to fix; structured refusals print as lines; the deployer may store a project's own key from `.env` with `--set-env`. - Database pool connections stay open for the process's life (each process already holds one for its announcements). - The connect library gains `openLiveSocket`, which reconnects with a session id; docs and Tangle teach the one-hour connection limit and the reconnect pattern. Both extensions count the connect library toward their version bump, and both are bumped.
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 changes
Live calls in one request
/connect/<tenant>/<path>checks the caller, starts the run and passes the call to the worker in the same request. There is no more 307 and no morecurl -L./livenow only opens sockets.Cloud worker builds reuse the precompiled standard library. The compiler judges a package stale by file dates. A fresh checkout dates every file at checkout time, so the builder base (built from one checkout) and a cloud build (staging from another) always disagreed, and every cloud build recompiled all of it. Every staged package file now carries one fixed date. That is safe because each package compiles in a folder named after a hash of its exact files.
Infrastructure
weft infra startand the VS Code bar show these steps.Deploy flow
weft target exportruns the install's own activation check and lists the connections still to fix..envwith--set-env, never reading the value.weft frontend add --repoprints progress while it waits.Sockets beyond an hour
openLiveSocket, which reconnects with a session id. A program ends the conversation for good by closing with code 4000.packages/weft-connecttoward their version bump, and both are bumped.Tested
The cloud machine agent and the build-date fix only show their effect on a GCP deploy.
🤖 Generated with Claude Code