chadtmiller.com/group-host
atmosphere group host
A site keeps its members' records in the host's published space type
MergedThis adds the published fyi.opensocial.siteSpace type. It also adds an optional key to a site's #space and #write. The sign-in scopes (&skey=), the CLI and MCP parsing (type/key), and the shell's names check all carry the key.
I read the code files in the diff: sites.rs, shell.ts, site.json, siteSpace.json, and the CLI and MCP changes. The scope strings are consistent with the shell config. A keyless entry still covers every space of the type. (kind, key) is the right dedupe key, so a whole type beside one of its keys is allowed, as the body says. config.spaces is read in one place only, sync, and that place is updated to the new object shape. I did not read the tests, the docs pages or the web/src/lib Svelte and settings files. Both the host's tests and the CLI's tests are listed as passing in the body. The docs pages and Svelte files follow the code and carry no logic I could judge.
No changes needed. As the body says, siteSpace has to be published on the network before a deployed site can use it.
Since my approval, the only change is one line in crates/group-host/src/lexicons.rs. It adds fyi/opensocial/siteSpace to FILES, the list of lexicons the host publishes. The lexicon file was already in the pull, so this registers it with the host's other lexicons, as the pull body says it should be. Nothing I approved is affected. No changes needed.
A site on a group host can now keep what its members write without publishing any lexicons of its own. The host ships one published space type,
fyi.opensocial.siteSpace, and a site names each of its spaces by that type and a key, so members' PDSes grant it and each grant covers only the spaces the site names.Claude Opus 5.5 · high effort
What changes
A space type for sites,
fyi.opensocial.siteSpace. It's published with the host's other lexicons, lists no collections, and is keyedany. A group makes one space of it for each part of its site (board,calendar) withspace create … --skey <key>, as with any other type.A site names one space by its key.
fyi.opensocial.site's#spaceand#writetake an optionalkey. Without one, an entry covers every space of the type, as before. The host refuses the same type and key named twice, and allows a type named whole beside one of its keys. Each visitor's sign-in asks forspace:<type>?authority=<group>&skey=<key>&action=readand, for each write,…&skey=<key>&collection=<c>&action=create&action=update&action=delete. The host also tells the kit each space's key, and the kit checksos.space(uri)and every write against it.How a person names them.
opensocial site publish --spaces <type>[/<key>],… --writes <type>[/<key>]:<collection>,…, the same in thesite_publishMCP tool, and the console's site form reads and shows the same lines.Docs.
docs/design/sites.mdgains "A space for a site", with why and how.spaces.md,site-kit.md,cli.md,mcp.mdandapi.mdfollow.Why
Before a member's PDS grants a site any
space:permission, it fetches that space type's schema (the reference PDS's OAuth provider,getSpacesFromScope). If the schema isn't found, it refuses the sign-in withinvalid_scope. So a site with space types of its own needed a domain, a_lexiconTXT record and published schemas before anyone could sign in. That's too much for someone who just wants their group's site hosted. Collections never needed publishing, since a write permission names its collection and neither the PDS nor the host looks collections up. So one published space type removes the whole burden. Keys keep each grant to the spaces a site names, so two sites in one group don't read each other's.Other ways considered: the host publishing each group's own types under its address, which needs per-group DNS; and documenting the domain setup, which leaves the burden where it was.
How it was checked
just lint: rustfmt, oxfmt, clippy, the console's layers and dialogs, the SDK's check, and svelte-check.just lexandnode harness/docs.mjs.cargo test -p group-host --test sites, with new cases for a keyed space and a keyed write (in the shell's config and in the client's scope) and for the same type and key named twice.cargo test -p opensocial --test commands, with new cases for a keyed space, a keyed write and an empty key.examples/kicker-site-space): its 9 flows in Chromium over the reference PDS on the spaces alpha. Members sign in through the PDS's consent page, which granted the keyedfyi.opensocial.siteSpacescopes, then read and write the room and the calendar, upload pictures, report and appeal.Shortcomings
fyi.opensocial.siteSpacemust be published on the network (as acom.atproto.lexicon.schemarecord under_lexicon.opensocial.fyi's account) before a deployed site can use it. Publishing is a step after this lands.Review
Start at
crates/group-host/src/sites.rs(spaces_of,writes_of,client_metadata,shell), thenweb/shell/shell.ts(names).