Repository navigation
feat: move attestation to /attestation/v1 and add readable link paths - #47
Merged
Merged
Conversation
- Attestation (challenge, register, verify, status) is now API-wide under /attestation/v1/, with code in src/attestation/. Notes Import, Buddies, and accounts all use the same purpose registry. - Old /notes-import/challenge, /attest, and /verify run the same handlers, adding Deprecation (@1792022400) and successor-version Link headers. They still count in the notes-import rate-limit bucket and log their use. - New attestation paths count in their own per-IP bucket. - Universal link pages get readable paths: /contacts, /buddies/invite, and /accounts/handoff. The short /c, /b, and /h stay routed and in the AASA, since old links are already in people's messages. Each page's og:url matches the path it was served on. - Update OpenAPI docs, README, AGENTS.md, and the verify-ww-api skill for the new paths.
This was referenced Oct 16, 2026
leviFrosty
force-pushed
the
refactor/split-attestation-endpoint
branch
from
October 18, 2026 07:12
59136f5 to
81e48ba
Compare
leviFrosty
added a commit
that referenced
this pull request
Oct 18, 2026
- feat: Supporter status on the server account, kept by RevenueCat webhooks (#51) - feat: account activity log and signed-in devices (#50) - feat: attested account sessions with bearer tokens for Buddies and Notes Import (#49) - feat: move attestation to /attestation/v1 and add readable link paths (#47) - feat: use readable payload and signature names in signed envelopes (#46) - docs: trim one-time setup steps from the agent guide (#48)
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
/attestation/v1/, shared by Notes Import and future protected routes. Handlers move fromsrc/notesImport/tosrc/attestation/.ATTESTATION_PURPOSESregistry (src/attestation/purposes.ts).attestation-verifyis verify's purpose, andnotes-import-verifyis still accepted there, so deployed apps keep working.POST /notes-import/challenge,/attest, and/verifyon the same handlers, addingDeprecationandLink: rel="successor-version"headers and adeprecated pathlog line.notes-import./contacts,/buddies/invite, and/accounts/handoff. The short/c,/b, and/hstay routed, and the AASA lists both. Each page'sog:urlis the path it was served on.verify-ww-apifeature docs to match.Testing
pnpm testpnpm exec tsc --noEmitwrangler deploy --dry-runwrangler deploy --env dev --dry-runpnpm test:e2e src/e2e/public.e2e.test.ts -t "universal links"pnpm test:e2e src/e2e/notesImport.e2e.test.tsnode scripts/verify/dev.mjs up, thendoctor, thendownsrc/attestation/route.test.tssrc/notesImport/route.appAttest.test.tssrc/notesImport/route.playIntegrity.test.tssrc/accounts/handoffPage.test.tssrc/buddies/invitePage.test.tssrc/contactLink.test.tssrc/sentry.test.ts/attestation/v1/*, with theDeprecationandLinkheaders.