Repository navigation
refactor(relay): retire Clerk authentication compatibility - #1704
incognitojam wants to merge 7 commits into
Conversation
Upstream divergenceBoth sides are compared with upstream at the in-order tip
Upstream files whose difference changes (40)
|
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
e3c0d5a to
71a8bd0
Compare
e14170b to
1fe0a3a
Compare
Android previewVersion: 2.3.0-pr.1704.1658 Installs as styal Preview, beside the styal app, on arm64 phones. Android will not install an older preview over a newer one, so uninstall styal Preview first when switching back to an earlier build. Push notifications are not set up in preview builds. No GitHub sign-in is needed. The download stays available until this PR closes or the preview label is removed. |
Note
Draft: merging this PR to main is a production cutover. It automatically triggers the production relay deployment, then development; hosted web and mobile production pipelines also run. Keep this draft until all three owners have confirmed relay sessions on every device and server home, and the Fable review is complete. GUI Clerk removal has landed in #1703.
Clerk compatibility remains after email sign-in is live. This retires bearer verification, both legacy exchange routes, obsolete OAuth discovery, external user/email validation and deletion, the completed import tooling, and Clerk bindings/inputs in relay deployment workflows. It also removes server/CLI startup adoption, deferred here so #1703 cannot silently disconnect a headless server upgrading from a pre-email build. Stored accounts, ids, email mappings, relay sessions, mobile registrations and environment links remain. No relay database migration or schema is edited.
/v1/client/dpop-tokenor/v1/auth/clerk-exchangeclerkUserIdJSON field retains its protocol spelling and carries the stable relay id.The accompanying client release performs one-time cleanup of named desktop Clerk token files, the mobile SecureStore client JWT, and same-origin Clerk browser storage. Relay credentials, proof keys and unrelated data remain. Failures retry. #1703 deliberately retains these old credentials for downgrade; deleting them here is not undone by reverting code. HttpOnly/cross-origin cookies require Clerk session retirement later.
No transition exchange contract or client adapter remains. The desktop cleanup runs in the SDK-free app-link startup; server refresh configuration, public build inputs, and the shared publishable-key helper are removed.
Validation: local HTTP tests accept a live account-scoped DPoP session and reject missing proof, wrong scope, revoked sessions, bearer credentials and a correctly signed sessionless legacy token. Both retired exchange routes return 404. Local HTTP composition also confirms both obsolete OAuth discovery routes return 404. Email verification keeps an imported account id; deletion still waits for successful environment teardown; T3 Chat uses the stored relay email and refuses a missing mapping. Cleanup tests cover exact-file deletion, symlink refusal, preservation of unrelated/current relay storage, retry after a locked keychain and idempotence. No production data, settings or credentials were accessed, no import was run, and no deployment was requested.
Merge-triggered deployments and publication:
deploy-relay.ymldeploys production (prod) first, then shared development (dev) after production succeeds, subject to the existing environment approvals. Its path filter includesinfra/relay,packages/client-runtime,packages/contracts,packages/shared,patches, the lockfile and root package/workspace/deployment files. refactor(auth): remove Clerk from styal clients #1703 also triggered a production relay deployment through these shared-path rules; a client-only title does not prevent one.deploy-web.ymlindependently deploys the hosted production web app, because this PR changesapps/weband shared packages. It does not wait for the relay workflow.mobile-eas-production.ymlstarts production mobile reconciliation. With its configured credentials, matching native runtimes can receive production OTAs; missing fingerprint/version builds can start iOS TestFlight and Android APK releases. Public App Store release remains manual.Fork CIcan feed automatic desktop/CLI nightly publication throughfork-nightly.yml. Stable promotion remains manual. Main may also warm development-client and Android-preview caches.Maintainer checklist (the detailed read-only SQL, scopes and rollback steps live in the existing operations runbook):
Upstream still uses Clerk at
1ffa099e7fbf0037dbffb6fb72b7585c933be24a. The fork ledger and user overview record the difference; intake must discard upstream bearer verification, exchange handlers, Clerk directory/import tooling and relay bindings.Written by
codex/gpt-6.1-sol, reviewed bycodex/gpt-6-astra, in styal 🧵.