chadtmiller.com/group-host
atmosphere group host
Scaffold the host: workspace, console shell, lexicons and checks
MergedThis sets up the Cargo workspace, a host that answers _health and returns 501 MethodNotImplemented for every other method, and the SvelteKit console shell. It also adds the lexicons, the checks and the docs. All four workflows (check, test, web, lexicons) pass at the head commit.
I read the Rust crates, the web data layer and hooks, and the test workflow, and found nothing that must change. The host's config parsing, its graceful shutdown, and the way the console forwards XRPC calls and the session cookie only to GROUP_HOST all look right.
One thing to remember for later. web/src/routes/+page.ts turns any listGroups failure into an empty list. That fits the scaffold, as its comment says. Once the host answers listGroups, only a "method not implemented" reply should count as empty, so real errors show up on the page.
I did not read these files:
AGENTS.mdat the base branch: it does not exist there, and the pull adds it.- The 100-odd lexicon JSON files,
Cargo.lock,web/package-lock.jsonand the docs. The lexicons, the layer checks and thelexiconsworkflow cover them, and that workflow passed.

What changes
The workspace. Four crates, as knotless lays its own out:
crates/atprotofor the primitives (empty yet),crates/group-hostfor the server,crates/group-host-mcpfor the MCP server (empty yet), andcrates/opensocialfor the client and theopensocialcommand. The host reads its config from the environment (docs/reference/config.md), answersGET /xrpc/_health, refuses every other method asMethodNotImplemented(501), and stops gracefully on SIGTERM.The console. A SvelteKit app in
web/with knotless's structure: atoms, molecules, organisms and templates, tokens intokens.css, types made from the lexicons by @atproto/lex, and XRPC asked of the host through#lib/data.tsand the server hook. One page so far, the groups on the host, which shows its empty state untillistGroupsis answered. Components are plain on purpose.The lexicons. The prototype's core alone: the
fyi.opensocial.*methods and records itspackages/group-hostserves, the two upstream methods it answers (com.atproto.managedspace.checkUserAccess,com.atproto.moderation.createReport), and the schemas they reference. Nothing of the sites module: the inbox lists only invites, and the permission sets name only core methods. @atproto/lex is the space alpha's build, as opensocial's, since the schemas use itsspacetype andspace-refformat.The checks.
check(fmt and clippy),test(every test under a 100% gate of lines and functions),web(layers, svelte-check, build) andlexicons(goat's lint and knotless'sharness/lexicons.mjs). The prototype's schemas came with 152 findings; all of ours are fixed here rather than kept. Procedures that answered nothing now say so; strings people write have lengths; arrays hold small objects that can grow (roleRef,audience,scopeRef,collectionRef,accountRef,languageRef,topicRefinfyi.opensocial.defs); fields namedtypeandidarespaceType,kindandclientId;provisionGroup'sclient_*fields are camelCase; group tokens' sessions and activity have views instead ofunknown. The check holdsfyi.opensocial.*to the guide and lets off only what the space alpha brings and goat (now 0.2.8) does not know yet:space-refand permissions over aspace. Upstream schemas copied for references are others' and only checked to grow.The docs. AGENTS.md for agents, and
docs/design/README.mdwith the order the rest of the host comes over in: atproto primitives, accounts and repos, groups and spaces, membership and roles, signing in, the console, moderation and moving, then MCP and the command.Why
To build a group host that does what the opensocial.fyi prototype's core does, in Rust and Svelte with knotless's practices from the first commit: coverage held at 100%, the console's layers and tokens, lexicons checked, work landed by pull. The prototype is what we learned from, not a spec: each part takes the shape that is right here, and its pull says what changed.
How it was checked
Locally:
cargo llvm-covat 100% of lines and functions, clippy with warnings denied,harness/layers.mjs,harness/lexicons.mjs, andnpm run checkandnpm run buildinweb/. This is the first run of the workflows on the runner.Shortcomings
No method is answered yet beyond
_health. The schemas are fixed to the guide but otherwise the prototype's; a part's pull reshapes them further where building it shows they should be.