next: take HUD 0.31.0, whose tokens are bound to a key
ClosedThis is the version bump that AGENTS.md describes, and it is complete. It covers next/package.json and its lock, ios/HUD/Package.swift and Package.resolved, and android/gradle/libs.versions.toml. It also covers the app file's hud range and the $schema of the app file, the parts and every view. A search of the branch finds no 0.29.0 left in any HUD reference. The only hits are unrelated Cargo.lock and harness entries. The lockfile entries point to the 0.31.0 tarballs, and the @hud/* packages are pinned together. The diff changes no app code, so I found nothing wrong in it.
I could not check the DPoP behaviour the body describes. It lives in HUD's own packages, not in this diff. The next, next-image and android checks were still queued when I looked, so their results are not in this review. The iOS build is unchecked, as the body says; AGENTS.md asks for a Mac build before a pull that changes ios/.
My earlier approval was at ee050b21. Since then the pull changes only the two sign-in call sites, to match the 0.31.0 API:
- Android passes
store.keystoauth.exchange.storeis theKeystoreSessionStorealready inShell.kt. - iOS calls
AccountSession.start(request, tokens:, ...)in place ofserver: auth. The request now carries what the key binding needs.
The edits are small and consistent with the DPoP change the body describes. I could not check the HUDKit and hudkit signatures here, because that source is outside this repository. The android check was still running, and next, next-image, test, web and check were queued when I looked, so the Android compile is the real test of that call site. The iOS build still needs a Mac, as the body says. Nothing in the new changes breaks what I approved.
Landed through The next grain.social and the apps take HUD 0.31.0, their tokens bound to a key as 56180476: its tree is the same as this pull's head (96f4e58f), so closing this one. Its android failure was at ee050b21, before 96f4e58f gave hudkit its keys.
Main already took this as The next grain.social and the apps take HUD 0.31.0, their tokens bound to a key (56180476), the same bump and the same two call sites; with main merged in this branch changes nothing. Closing.
next.grain.social signed people out when a response that refreshed their HUD tokens never reached the browser: a laptop asleep, or a tab closed, mid-page. HUD 0.31.0's web shell binds the tokens to a key (DPoP), so their refresh token is never rotated and a lost response costs nothing. This takes it, with the iOS and Android apps.
Claude Opus 5.5 · high
What changes
next/ takes
@hud/renderer,@hud/shelland@hud/shared0.31.0,just hud-version 0.31.0's whole bump: the app file's"hud": ">=0.31.0", and the$schemaof it, the views and the parts at HUD'sv0.31.0. The shell'sSessionsnow derives a P-256 key fromSESSION_SECRET(and thegrain-nextsalt). Each token request and each call to HUD carries a DPoP proof by that key, so hud-grain binds the session and never rotates its refresh token. A session signed in before is bound at its next refresh, with no sign-in again. An account is let go only when HUD says its grant is no good (invalid_grantand the like), never because hud-grain could not be reached, as while it restarts for a deploy.ios/ and android/ take HUDKit and hudkit 0.31.0, which bind the apps' tokens to a key in the Secure Enclave and the Android Keystore the same way, and likewise end a session only on
invalid_grant,invalid_clientorunauthorized_client.Why
On 2026-12-01 at 01:14:54 UTC, hud-grain's log shows one page refresh both of a browser's accounts. The browser then abandoned that page's
GET /, so its new cookie never arrived. At 01:32:06 the browser's next call came with the old cookie, and HUD ended both sessions as their replaced refresh tokens came back (session ended). The iOS app lost a session the same way at 2026-11-30 03:07. RFC 9700 §4.14.2 has a public client's refresh tokens either bound to a key or rotated, and rotation is what loses a session when an answer is lost. The HUD side is chadtmiller.com/hud's at://did:plc:bcgltzqazw5tb6k2g3ttenbj/dev.knotless.pull/3n3ivjsetb6du and at://did:plc:bcgltzqazw5tb6k2g3ttenbj/dev.knotless.pull/3n3l6chyazct6, released as 0.31.0.How it was checked
hud-grain runs HUD 0.31.0 already (deployed at
8bcb4947, itshud checkpassing this app's views,/.well-known/oauth-authorization-serversayingdpop_signing_alg_values_supported: ["ES256"]). The shell's own tests in HUD cover the binding, a lost refresh on another server, and HUD down. Thenext,next-image,android,web,testandcheckchecks pass. HUDKit 0.31.0'sAccountSession.starttakes theSignInRequest, and hudkit'sexchangethe store's DPoP keys:ios/Grain/Shell.swiftandandroid/app/.../Shell.ktpass them. The iOS app builds for the simulator on a Mac (just ios,xcodebuild … build), HUDKit resolved at 0.31.0.Shortcomings
SESSION_SECRETsigns everyone out, as before; it now also changes the key.