Skip to content

feat(docs): add a passwordless email guide eval - #557

Draft
czenko wants to merge 1 commit into
mainfrom
docs/passwordless-email-guide-eval
Draft

czenko wants to merge 1 commit into
mainfrom
docs/passwordless-email-guide-eval

Conversation

@czenko

@czenko czenko commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

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:

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-urls covers link redirects, and build-docs-021-email-templates leaves 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 the supabase init config 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:

  • The local stack starts with the project settings.
  • A returning person's email carries a 6-digit code, carries no sign-in link, and the code signs them in.
  • A first-time person's email carries a 6-digit code, carries no sign-in link, and the code signs them in.
  • The agent read the passwordless email guide.

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:

Guide section Tested How
With OTP: the email carries the code Yes The code checks read both emails
With OTP: verify the code Yes, from the scorer The scorer sends the code the way the seeded client does
Automatic sign-up for new users Partly The first-time checks depend on it. Changing it is not scored
With Magic Link, redirect URLs, the token hash route No The prompt rules links out. A token hash link fails the no-link checks
Request limits and expiry No The prompt names neither
Client code in other SDKs No The client is seeded

Verification

  • pnpm exec biome check evals/docs/build-docs-037-auth-email-passwordless passes.
  • pnpm --filter @supabase-evals/framework typecheck passes.
  • pnpm eval:dry -- --suite docs --eval build-docs-037-auth-email-passwordless plans one pair on codex-gpt-6-luna-no-skills.
  • Baseline: three runs of codex-gpt-6-luna-no-skills in the run-evals-changed run. 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):

  • Ran the eval locally, and it completes without framework errors.
  • Ran it in CI with the run-evals-changed label or the Refresh eval results workflow (suite: regression for framework changes), and linked the Braintrust run here.

@czenko czenko added the run-evals-changed Add to a PR to refresh only the benchmark evals that have had changes label Nov 25, 2026
@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
evals Ignored Ignored Nov 25, 2026 7:52pm UTC

Request Review

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-evals-changed Add to a PR to refresh only the benchmark evals that have had changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant