chadtmiller.com/monolith
An atproto PDS
The OAuth authorization pages as a Svelte app, checked in a browser beside the reference's
MergedThe title and the changes are about the OAuth authorization pages. The body describes a different change, pds.js joining the compatibility check, and the diff holds none of that.
- Title and diff: the pull adds
web/, a Svelte 5 app. It embeds the app's Vite build inpds-serverthroughbuild.rsandoauth/assets.rs, and serves it at/oauth/assets/{name}. It adds--pagesto the harness (checks/pages.mjs,look.mjs,contrast.mjs,layers.mjs),spec/OAUTH-PAGES.mdand spec edits, and gate and workflow changes. - Body vs. diff: the body's
spec/COMPAT.md"One account", theaccountssetting, the OAuthissueradapter option, the pds.js Dockerfile,compat/RESULTS.mdandresults.jsonare all missing from the 72 changed files. The onlybench/impls.jsonchange is spec-pds's build command, now buildingweb/first. The pds.js table and thejust quick/just gatesresults belong to another pull. Either that work is missing from this branch, or the body was pasted from the other pull. - What to do: rewrite the body to describe the pages, what was checked, and the gate results for this head. If the pds.js work was meant to be here, push it, with its
spec/COMPAT.mdchange, since.knotless/review.mdasks that every behaviour change be inspec/.
For the pages themselves, the README, spec/OAUTH-PAGES.md and spec/OAUTH.md are updated together with the code. I found no atproto or MCP crates added: build.rs only adds serde_json, which is already a workspace dependency. I did not read the Svelte components, pages.mjs, look.mjs, the lockfiles or the spec pages line by line. Once the body matches the pull, I'll review those.
The body now describes this pull, which answers my earlier review. It adds the Svelte 5 pages in web/, build.rs and oauth/assets.rs embedding and serving the Vite build at /oauth/assets/{name}, a CSP hashed over the one inline data script, --pages with its layers/contrast/look tooling, and spec/OAUTH-PAGES.md.
I checked this against .knotless/review.md:
- Spec:
spec/OAUTH-PAGES.md,OAUTH.md,OPERATIONS.md(asset route label) andPDS.md(index) move with the code.- The README describes what exists, not how it was built.
- The headers and CSP in
page.rs, the asset headers, the 404 for other methods, and the Deny-sends-token and Back-to-list behaviours in the Svelte views all match the spec text.
- Harness: the changes add checks (
--pages, the route label inobserve.mjsandoperations.mjs). I found no loosened check. I saw no change toconformance.yaml. - Server code: I found no new atproto or MCP crates.
build.rsadds onlyserde_jsonas a build-dependency, which is already a workspace dependency.base64andsha2were already used bypds-server.
I did not read the other Svelte components, the lockfiles, pages.mjs or look.mjs line by line.
The gates on ede1264 were still running when I read them, and the run on the earlier head failed on a merge conflict that has since been merged away. Merge only once they pass.
I read what changed since the approval at ede1264. It replaces the one-row-per-token consent list with merged rows, and keeps the actions in view.
- Spec:
spec/OAUTH-PAGES.mdnow gives the rows in order, the account, record, upload and service clauses, and a "Seeing it all" rule.web/src/lib/scopes.ts(rowsOf) follows it. - Harness:
consentRowsinpages.mjsis the same merge, written separately from the server's. It makes the check stricter: merged rows, extra scopes that merge and cover each other, and Allow, Deny and Back in the window with no scroll at six rows or fewer. Nothing is loosened. - Server code: the other changes are CSS tokens and layout, with no new crates.
- Gates: the
gatesrun one243f2fwas still running when I looked. Merge only once it passes, since it holds the two--pagesruns that exercise the new rows. - Edge case, not blocking: a malformed
repo:token with no collection would give a bare.sentence. Anaccount:token with an action other thanreadormanageis read differently byconsentRowsandscopes.ts. The spec doesn't cover either case.
I read what changed since the approval at e243f2f. The consent rows are now in plain words: no NSID, method or DID shows outside Technical details. Records becomes All your data plus one Your data in <app> row per app. Services becomes Other services, listed by host. The verbs are add, change and remove. Your identity becomes Who you are.
- Spec:
spec/OAUTH-PAGES.mdhas the new row table, the clauses for apps, things, kinds and services, and the harness bullet.web/src/lib/scopes.tsandconsentRowsinpages.mjsboth follow it. I compared the two by reading and found no difference in order, merging, covering by*, or wording. - Harness:
pages.mjsstill writes its own merge rather than copying the server's. It gains one scope with several apps, camel-case names,did:plcanddid:webaudiences, and non-image blobs. Nothing is loosened. - Server code: no crates added. The other changes are web code and a CSS gap.
- Gates: the
gatesrun onf4d449bwas still running when I looked. Merge only once it passes, since it holds the two--pagesruns that exercise the new words. - Edge case, not blocking: an
rpc:token with noaudis skipped byservicesRowinscopes.ts. InconsentRows,p.q.get('aud')would be null andstartsWithwould throw. The spec doesn't cover this case, and the pages run's scopes always give anaud.
I read what changed since the approval at f4d449b. It touches only web/src/lib/templates/Card.svelte. The action row now has a top border and a bottom-only negative margin, and a comment is reworded. This is layout only. It changes no behaviour, spec text, harness check or crate, so what I approved stands.
The gates run on 49a5a62 failed at the test step (exit 101, the crates' tests), so build and harness were skipped. I couldn't read the log, so I don't know why it failed. A CSS change shouldn't affect the Rust tests, so it may be a flake or something already on the branch. Re-run the gates, and merge only once test and the two --pages runs pass. The border and spacing change is what --pages checks at 360×740 and 1200×900 (actions in view without scrolling, no overflow), so that run matters here.
The OAuth authorization pages as a Svelte app, built from a new spec page, embedded in
pds, and checked in a real browser beside the reference's.Spec:
spec/OAUTH-PAGES.mdsays what a person sees and does on each view:app.bsky.feed.postis bsky.app), things by the NSID's last segment, and services by host. No NSID, method or DID appears outside Technical details. Allow and Deny are always in view, and six rows or fewer fit without scrolling, at 360×740 and 1200×900. An app's own words belong to permission sets (include:), a follow-up./oauth/assets/<name>, cached as immutable.Running the pages against the reference changed five behaviours, now in the spec as the reference does them:
login_hintopens Sign in with the identifier read-only, before the account list./oauth/assets/{name}(spec/OPERATIONS.md).Pages (
web/):web/src/tokens.css, light and dark following the browser.web/AGENTS.mdand theuiskill (.claude/skills/ui) carry knotless's house rules, the states to look at, and the critique step.pds-server'sbuild.rsembedsweb/dist, andoauth/assets.rsserves it. The old inline page script is gone.Harness:
compare.mjs --pages: flows from a PAR to the client's redirect URI in Chromium (Playwright), the same on both sides, each choice drawn before either side is driven:login_hint;It compares each page's API calls, where it landed, and the tokens for its codes. The server alone is held to the rest of the spec: views and words, the consent list, focus, busy buttons, headers and HTML, assets, console, origins asked, width at 360 px, axe-core's WCAG A/AA rules, and the asset route's metrics.
layers.mjsandcontrast.mjs: the components' layers, and every text colour at 4.5:1 in light and dark. They run in the code gates withsvelte-check.look.mjs(just look <state>): draws any view as pictures, desktop light and phone dark.Proof the checks bite:
--pagesfails on main's server: the HTML and headers.X-Frame-Optionsfails against the spec.Results:
--pagespasses on seeds 1 to 19 at 30 flows each.just gatespassed ond203fb2: the 7 code gates (fmt,clippy,deny,code.mjs,layers.mjs,contrast.mjs,svelte-check), the crates' tests (pds-server317 passed), and all 17 harness runs, the two--pagesruns among them.svelte-check, the layer and contrast checks and--pages(seeds 1 to 4 at 30 flows on the merged rows, 1 and 2 on the last wording change). The new consent checks fail on the build before each change. The merge of main only changedgates.yml's paths, the README and the compatibility check.Gates and builds:
gates.mjsgains the pages runs (quickandcompare) and the pages' source checks (code).gates.ymlandnightly.ymlbuildweb/first, andgates.ymlinstalls Chromium.gates.yml's paths, from main, now includeweb/**and the two new checks.just buildand the bench setup build the pages beforepds.Not yet: