Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
This branch has not been deployed
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.
Closes DOCS-1736
Problem
Nothing measures whether the passwordless email guide leads an agent to sign-in by typed code. An app switches its sign-in email to a code, and people who already have an account get one. Someone signing in for the first time still gets a link, because Auth sends them the sign-up email instead of the sign-in email.
Evidence:
signInWithOtpsends a link, and how it handles new users.otp_expired, because first-time users go through a separate path.The ticket's claim was "a one-time code or link completes sign-in". The evidence is about apps that expect a code and get a link, so the eval measures codes only.
No existing eval covers this.
build-docs-018-redirect-urlscovers link redirects, andbuild-docs-021-email-templatesleaves codes unscored.Sources reached: Linear, Slack, agent-skills issues. Not reached: supabase/supabase issues, Hex, Supacademy.
Changes
Adds
build-docs-037-auth-email-passwordless. An app with no passwords asks for an email, then a 6-digit code. The prompt asks that every sign-in email carry a code and no link, including the first time someone types their email. The seed has the app's two client calls and thesupabase initconfig with email confirmations on, as on a hosted project. Turning confirmations off also passes.The scorer restarts the stack, sends one sign-in email to a returning person and one to a new address, and reads both from Mailpit. It finds the code by matching each 6-digit run against the hash Auth stored, then sends that code to Auth and requires a session.
Checks:
Expected signal: The guide says to add
{{ .Token }}to the Magic Link template. It does not say that a new user created by the sign-in call gets the Confirm signup email. A project built from the page alone fails the three first-time checks.What part of the guide this tests:
Verification
pnpm exec biome check evals/docs/build-docs-037-auth-email-passwordlesspasses.pnpm --filter @supabase-evals/framework typecheckpasses.pnpm eval:dry -- --suite docs --eval build-docs-037-auth-email-passwordlessplans one pair oncodex-gpt-6-luna-no-skills.codex-gpt-6-luna-no-skillsin therun-evals-changedrun. One run passed all eight checks. Two runs passed the stack and returning-person checks and failed the three first-time checks: the new person got the standard sign-up email with a verify link and no code. Every run read the guide. This matches the expected signal. Braintrust run.For new or changed evals (see Submitting evals for review):
run-evals-changedlabel or the Refresh eval results workflow (suite: regressionfor framework changes), and linked the Braintrust run here.