Repository navigation
feat(website): a session cookie per site, the clock's rate, conformance levels and models= (FD-4683) - #444
Open
williamloo-scale wants to merge 19 commits into
Open
feat(website): a session cookie per site, the clock's rate, conformance levels and models= (FD-4683)#444williamloo-scale wants to merge 19 commits into
williamloo-scale wants to merge 19 commits into
Conversation
williamloo-scale
marked this pull request as ready for review
November 3, 2026 00:24
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
…'s websites as its MCP servers (FD-4683) A website env, and a multi env's websites, get the harness treatment MCP servers get: sync_env_clock syncs them (and tells them main's timezone), snapshot_env exports each through its data plane and fails on a site whose card can't be read, and an apply_server_config broadcast reaches them; a site without the clock, a data plane or the config extension is skipped. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…server the env card lists, at its own route (FD-4683) The servers behind an env's gateway come from its card's children_environments, each at its own /svc route, through new protocol helpers (ChildEnv, children, child_at, child_named, serves), not from the env's definition: a website sharing an MCP server's name is its own server, and a card without data/get in its operations serves no v1 data plane. The definition is read only for servers that serve no card, and for a record whose card can't be read, logged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…tract, and a conformance check tests any server (FD-4683) This PR's change, rebased as one commit onto #427. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
williamloo-scale
force-pushed
the
wloo/website-gateway-auth
branch
from
November 3, 2026 21:50
8dcebd1 to
4c1fcc1
Compare
williamloo-scale
force-pushed
the
wloo/website-sdk-followups
branch
from
November 3, 2026 21:50
8090f3e to
2d64812
Compare
… keep older sites and shared names working (FD-4683) - The gateway answers 503 on a site's route while its card can't be read, rather than forwarding with nothing reserved. - A plugin's MultiEnv record looks each child up by its kind, so a website and an MCP server may share a name. - The state verifier reads a site its definition names but its card doesn't list at /svc/<name>/go, deprecated. - The clock script is put in streamed HTML holding only what comes before <head>. - Conformance fails a website/v1 ready that answers an HTTP error, whatever its body says. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
williamloo-scale
force-pushed
the
wloo/website-gateway-auth
branch
from
November 3, 2026 22:52
4c1fcc1 to
22947c3
Compare
williamloo-scale
force-pushed
the
wloo/website-sdk-followups
branch
2 times, most recently
from
November 3, 2026 23:47
0ef31b9 to
615d6a0
Compare
williamloo-scale
force-pushed
the
wloo/website-gateway-auth
branch
from
November 3, 2026 23:47
22947c3 to
253eaec
Compare
…ver HTTP client the test client uses (FD-4683) After a sign-out the client's jar keeps the site's signed-out cookie under testserver.local, and setting the forged one adds a second cookie of the same name. httpx2, which Starlette's TestClient uses when it is installed (as on CodeBuild), sends the forged one first, so the site reads the valid signed-out cookie and the test fails; httpx sends them the other way round. Clearing the jar first sends the forged cookie alone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
williamloo-scale
force-pushed
the
wloo/website-sdk-followups
branch
from
November 4, 2026 03:37
718dbb1 to
65a1c8e
Compare
williamloo-scale
force-pushed
the
wloo/website-gateway-auth
branch
from
November 4, 2026 03:37
253eaec to
18b1b98
Compare
…op /go, the state op and website_state_verifier (FD-4683) - The SDK serves no `/go`, no `params.state.path` and no `website/v1` `state` op; `STATE_PATH`, `WebsiteState`, `website_state`, `website_sites` and `website/state.py` are gone, and the default store keeps no initial state or diff. - Conformance runs the data plane's round trip on every server, with no skip for a state that shows changes. - The gateway reserves the card's `url` and every advertised endpoint, no longer a state path. - `website_state_verifier` is removed from the framework; grading against a site's state belongs outside it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
williamloo-scale
force-pushed
the
wloo/website-gateway-auth
branch
from
November 4, 2026 03:56
18b1b98 to
d95702e
Compare
williamloo-scale
force-pushed
the
wloo/website-sdk-followups
branch
from
November 4, 2026 03:56
65a1c8e to
0f672be
Compare
… items in OpenAPI, and find the clock's sync_time by name (FD-4683) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ses the conformance check (FD-4683) This PR's change, rebased as one commit onto #428. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…s, and adds a note once per submit (FD-4683) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…sign-in fails, and reloads itself at its slash-ending address (FD-4683) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…hrough data/get, not /go (FD-4683) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…s, settles a save the server accepted, and reloads itself on its own origin (FD-4683) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…gers by route (FD-4683) This PR's change, rebased as one commit onto #429. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… conformance levels and models= (FD-4683) This PR's change, rebased as one commit onto #443. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… so its own export loads back (FD-4683) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…rents first, so its export loads back (FD-4683) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…dels= sites; data/get alone (FD-4683) - The store keeps no sessions: no `?sid=`, no `agentenv_sid_<name>` cookie, no `changed_sessions`; `self.store` is the site's one store, which the data plane loads, exports and resets. - A models= site keeps no initial state and no diff; its data plane is its database's. - Conformance runs the round trip with no skip for changed state or sessions. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…hole and restores enum columns as their members (FD-4683) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
williamloo-scale
force-pushed
the
wloo/website-gateway-auth
branch
from
November 4, 2026 04:40
d95702e to
8389f76
Compare
williamloo-scale
force-pushed
the
wloo/website-sdk-followups
branch
from
November 4, 2026 04:40
0f672be to
3184f79
Compare
…ength parents first, without recursing (FD-4683) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
earakely-scale
force-pushed
the
wloo/website-gateway-auth
branch
from
November 5, 2026 06:42
8389f76 to
c7f214b
Compare
This branch has not been deployed
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.
Stacked on #443.
Website SDK follow-ups.
agentenv_session_<name>, named on the card, so two sites under one gateway host don't overwrite each other's. The sharedagentenv_sessionis still read for one release./clock/timealso answersvirtual_seconds_per_real_second, whichUniverseClockfollows instead of inferring it.X-Universe-Now, clock, forwarded headers and cookies warn;--strictfails on a warning.@website(models=...). An object with load/export/reset, or SQLAlchemy models. With models the site getsself.dbonDATABASE_URL, and the data plane reads those tables, so the GUI and the MCP tools share rows.Before merging
models=adds an optionaldbextra (sqlalchemy>=2.0), included indev, and updatesuv.lock. SQLAlchemy is imported only when a site uses models.Test
Unit suite: 12,625 passed; the
models=tests (6) also pass with SQLAlchemy installed.🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge with the warning-handling fix from PR #446.Summary
Adds per-site cookies, explicit clock rates, required and recommended conformance checks, and database-backed sites through
models=.Reviews (16) · Last reviewed commit: "fix(website): a models= site orders a se..." · Reviewed by Greptile