~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

The docs say what the host does after the README rewrite

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/group-host:docs/readme-followup

What changes

The diagrams' check. harness/diagrams.mjs is formatted as oxfmt leaves it, so web passes, and docs/diagrams/network.svg is drawn again from the script: the committed one said signed in to as "hikers", the script signed in as hikers. Excalifont's licence (SIL OFL 1.1, its copyright from the font's own name table) now sits beside it in harness/Excalifont-OFL.txt.

The design pages, against the code. The rewrite that landed from GitHub (bluesky-social/group-host#4) got some things wrong, each fixed here: the inbox scope an app asking for invites keeps; app-password session tokens being JWTs, not stored random bytes; the group's own spaces hearing of its writes at once, internally; getActorGroups never showing a switched-off group; the order leaveGroup and ejection end access in; reports, appeals and querySelfHistory needing no role, and the latter showing appeals and ejections; account labels outside the members space and a takedown there; who may eject; a request left waiting under invite.

Facts the rewrite dropped, put back. Mechanisms on their design pages: how an inbox is made, the invite exception to the write lock, how a space repo arriving in a move is checked and how the group's handle is set, the import bringing the account's repos in others' spaces, members' DID documents kept 5 minutes and read to 256 KiB. Limits, checks and fields in docs/reference/api.md: the host's checks on writes as the group (which collections meta and members take, display name, website, avatar, join policy, rules at a TID with a title, their order, files freed), which groups.md and api.md had each left to the other; the OAuth client rules (loopback client, native apps public, jwks_uri, same key for the grant's life, DPoP); the admin role's permissions; the queue's answer fields and the labeler's filters; requestJoin per join policy and RepoDeactivated; the 15 minutes of a console sign-in under way; and the move and import handle rules.

Why

#4 landed from GitHub as it was, so that the pull shows merged there; this is the follow-up it needed. Four agents read each rewritten page against crates/ (and atproto-client for DID documents), and four more made the fixes, each checked again against the code.

How it was checked

just docs (25 pages, no problems), oxfmt --check web harness docs-site, and node harness/diagrams.mjs drawing the same SVGs as committed. The DPoP algorithms and DID-document limits were checked in the atproto and atproto-client crates.

Shortcomings

The errors of revokeGroupToken and the four migrate* lexicons don't list what the methods answer, and now api.md names them; that's a lexicon change, left for its own pull. Some edited paragraphs wrap raggedly, as nothing reflows Markdown under docs/.

Approved

This is a docs-only follow-up. It fixes and restores facts on the design pages and in docs/reference/api.md. It also reformats harness/diagrams.mjs, redraws one line of network.svg, and adds the Excalifont OFL text. I read all ten files. The diagram change is a single label that now matches the script, and the licence file is the standard OFL 1.1 text.

I spot-checked one claim against the code: the leaveGroup order. put_out in crates/group-host/src/group_members.rs calls cut_off (credentials, grants, app passwords) before it deletes the membership, which matches the new text. The ejection half is less clear. members_written in member_writes.rs calls cut_off as a whole, grants and app passwords included, once the membership delete is among the writes. The new text says an ejection "revokes credentials before the membership goes and ends the grants and app passwords after". That reads correctly only if a credential revocation also runs earlier in the eject path, and I didn't trace that. The author says each fix was checked against the code, so I leave it as a note.

I checked nothing else against crates/. The docs check was still running when I read the pull.

Approved

Only one line changed since the approved commit. The migrateActivate row in docs/reference/api.md now says that a DID document it can't read fails with SourceUnreadable. This fits the neighbouring migrateReceive row, and the change breaks nothing I approved. I didn't verify the error name against crates/. My earlier note about the ejection ordering still stands as a note, not a blocker.

Merged as aa2bb17