Repository navigation
feat(auth): defer jose + lazy secretStore/stepUp for Ready density - #1403
Merged
Merged
Conversation
3 of 4 tasks
cursor
Bot
force-pushed
the
cursor/gateway-auth-ready-lazy-a621
branch
from
October 23, 2026 22:27
72a029e to
05d8ede
Compare
cursor
Bot
changed the base branch from
cursor/tools-auth-ready-lazy-a621
to
main
October 23, 2026 22:27
OIDC verify loads jose via createRequire on first use; tsup keeps jose external. createClawQLAuth exposes secretStore/stepUp as lazy getters so equal-arm apiKey/noAuth listen does not open SQLite or build TOTP layers. Gateway barrel exports stores from resolve/types only. Co-authored-by: Daniel Smith <danielsmithdevelopment@gmail.com>
Equal-arm catalog-on ~125.2 MB / catalog-off ~124.2 MB — noise vs tools-auth ~124.6 MB tip; structural defer for oidc-off Ready documented. Co-authored-by: Daniel Smith <danielsmithdevelopment@gmail.com>
Co-authored-by: Daniel Smith <danielsmithdevelopment@gmail.com>
Co-authored-by: Daniel Smith <danielsmithdevelopment@gmail.com>
cursor
Bot
force-pushed
the
cursor/gateway-auth-ready-lazy-a621
branch
from
October 26, 2026 06:24
841550b to
080cf1c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Next Ready density lever after tools/auth thin (#1402):
jose: loaded viacreateRequireon first OIDC verify; tsup marksjoseexternal so gateway chunks do not inline itcreateClawQLAuth:secretStore/stepUpare lazy getters (construct on first access) — equal-arm apiKey/noAuth listen does not open SQLite or build TOTP store layersclawql-auth/gateway: re-exports stores fromresolve/typesonly (avoids stores barrel side effects)Remasure (Bun
--smol, N=2k equal-arm)Noise band vs tools-auth tip (~124.6 MB). Structural win for oidc-off Ready and for avoiding SQLite/TOTP construct at listen.
Stack
Based on
cursor/tools-auth-ready-lazy-a621(#1402) so dashboard sources import + OSV body-parser/fast-uri bumps are included.Next (not in this PR)
createClawQLAuthstill statically imports./step-up+./api-keys(lazy getters defer construct only). Candidate:createRequire/ dynamic load for those modules.Test plan
npm run build -w clawql-auth— jose via createRequire in gateway chunkvitestclawql-auth — 194 tests passmemory-plateau.mdupdated