chadtmiller.com/monolith
An atproto PDS
consent: permission sets shown as the reference's page shows them
MergedThis pull gives every include: on the consent page a row of its own, also beside transition:generic. The heading is the set's title or else its NSID. The sentence is the detail, or else the NSID when the set has a title. A closed Details holds the Call/Towards and Data/Create/Update/Delete tables. Untitled sets are no longer folded into rows 7 and 9.
What I checked:
- Spec, harness and pages agree.
spec/OAUTH-PAGES.mdrow 5 and "What it grants" match the harness'sconsentRows/grantDetailsandweb/src/lib/scopes.ts+Grant.svelte. They hold the same audience wording androwspan, put the same things in<code>(methods, collections and audiences said in no words), sort the same way, and agree on an empty sentence for a set with neither title nor detail. - The check is stricter, not looser. It now compares each set's
Detailscell for cell and checks that it is closed when the view appears. Dealing clients as a seeded deck (belowfromlib/random.mjs) makes sure every client is drawn in a run. "Seeing it all" no longer covers views whose set title or detail is over 60/140 characters. That follows from the spec dropping the cut, and the spec says so; it is not loosened to let the server pass. - Changeset and docs. The changeset is written for those who use the pages.
web/AGENTS.mdand the UI skill are updated to match. - Gates. The
gatesrun at the head passes, harness included.
Nothing needs to change before this merges.
On what I read: the whole diff was too long to show here, and I couldn't get its list of files. I read the diffs of spec/OAUTH-PAGES.md, harness/checks/pages.mjs, harness/lib/sets.mjs, harness/look.mjs, web/src/lib/scopes.ts, web/src/lib/words.ts, web/src/lib/molecules/Grant.svelte, web/src/lib/molecules/Permission.svelte, web/src/lib/atoms/Icon.svelte, web/AGENTS.md, .claude/skills/ui/SKILL.md and .changeset/consent-permission-sets.md. If the pull changes any file beyond these, I haven't reviewed it.
3 passed, 1 skipped
The consent page now shows a permission set as the reference's page does: every
include:scope gets a row of its own, headed by the set's title or else its NSID, with a closedDetailsthat lists what the set grants: its calls and where they go, and its collections with the actions asked.Claude Opus 5.5 · high
What changes
Spec. In
spec/OAUTH-PAGES.md, "Consent", row 5 now covers everyinclude:token, besidetransition:generictoo, titled or not. The heading is the set's title, or else its NSID. The sentence is the detail, or else the NSID when the set has a title. Both are shown whole: the 60/140 cut andFrom <authority>are gone. Each set's row has aDetailsdisclosure, closed at first. It holds the reference's sentence, aCall/Towardstable (audiences as the reference names them:Any service,Bluesky App services,Bluesky Chat services,A service controlled by <host>, or else the DID in<code>), and aData/Create/Update/Deletetable. An untitled set's grant is no longer folded into "Your data in …" and "Other services". "Seeing it all" leaves out views with a title over 60 or a detail over 140 code points.Harness.
consentRowsandcheckConsentinharness/checks/pages.mjshold each row, and each set'sDetailscell for cell, with itsrowspan. A new set,com.example.test.authBare, has no title, no detail and mixed-case NSIDs. A new client asks for sets towardsapi.bsky.app,api.bsky.chatand adid:plcaudience. The pages run now deals its clients as a shuffled deck, each before any again.look.mjshosts the harness's sets forinclude:scopes, and--detailsopens every disclosure.Pages.
web/src/lib/scopes.tsbuilds the new set rows. A newGrant.sveltemolecule draws the disclosure and its tables. The Icon atom gains Lucide'scheck, with an accessible name when it is given a label.Why
The reference's consent screen (
oauth-provider-ui'sscope-description.tsx, the same on main and on the spaces alpha) shows eachinclude:as its own card: its title or NSID, its detail or NSID, and a dialog of its calls and data. Ours named only titled sets, under a line of our own, and folded untitled ones into other rows.How it was checked
--pages --seed 1) against the old pages fails at step 1, "the consent list differs". A narrower plant, set rows hidden besidetransition:generic, first passed: seed 1 never drew that client. Hence the deck; with it, the same plant fails at step 2.npm run checkandnpm run buildpass, andlayers.mjsandcontrast.mjspass.just look consenton desktop light and phone dark, open and closed, and critiqued by a fresh agent. The one finding about this change was letter-by-letter wrapping of the action headers; it is fixed.Shortcomings
localeCompare, which depends on the browser's locale and differs only for mixed-case NSIDs.spacepermission in a set's grant.<details>namedDetails, styled asTechnical detailsis.Review
Start with
spec/OAUTH-PAGES.md, "Consent", row 5 and "What it grants". Then readconsentRows/grantDetailsin the harness.