Repository navigation
Activate the site deploy gate's container with a request the page server answers - #430
Closed
leaf-agent wants to merge 1 commit into
Closed
leaf-agent wants to merge 1 commit into
leaf-agent wants to merge 1 commit into
Conversation
…ver answers The release gate left the edge by asking for /api/data with no query, a request the canonical server refuses with 400 whatever the deployment did. Activate on the projection route instead, carrying the revision and log boundary the passive edge state names, and pin that shape from both sides of the boundary.
Collaborator
Author
|
Superseded by #432, which is approved and green. It carries the same |
This was referenced Sep 8, 2026
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.
publish-sitedeployed release2f6819f4…successfully and then failed its own verification for fifteen minutes, retryingRuntimeError: https://leaf.page/api/data returned 400until the deadline (run 34180994050). The deployment was healthy; the gate was asking for something the canonical server refuses by contract.The gate needs one private request to move a reader off the edge and onto a container, because
GET /api/stateis answered by the Worker while a reader stays passive. It usedGET /api/datawith no query. That route requiresdata_revision,source, andkey(http.pyviadata_fragment), so a bare probe is 400 on every release, on every page, forever — the step could never have gone green.This activates on
/api/viewinstead, carrying the revision and log boundary the passive edge state already names: the projection a tab asks for when it travels to a revision it has observed, a read with no write behind it. Reading that passive state first also gives the gate theLeaf-Session: passiveassertion it was missing — until now the edge path was only checked indirectly, through the absence of activation cookies.The failure existed because nothing on either side of the container boundary exercised the gate's activating request, so the fix pins it from both:
tests/test_website_server.pydrives the URLverify-site.pybuilds against the real page server, andworker/test/index.test.tscovers the Worker branch the gate depends on — a passive reader's non-state API read reaching a container. The Python test reproduces the exact production failure whenactivation_urlis reverted toapi/data(HTTP Error 400: Bad Request).Verification, including against the live deployment
The full fixed sequence, run by hand against
leaf.pageon the release this run deployed, for both activated pages:The subsequent
/api/stateread returnsleaf-session: active, the deployed release, andpublication.kindofproductfor/andexamplefor/examples/design-decision/— every assertion the gate makes after activation. Note that/api/datareached the container too: the container was serving the right release the whole time, and only the request's own status failedactivation_response.ok.Locally:
tests/test_website_server.py(7 passed),npm run typecheckandnpm testinworker/(41 passed), and pre-commit over the changed files.