feat: supabase-js SDK evals (auth flow, relational report, key migration) - #129
Open
mandarini wants to merge 7 commits into
Open
feat: supabase-js SDK evals (auth flow, relational report, key migration)#129mandarini wants to merge 7 commits into
mandarini wants to merge 7 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
mandarini
force-pushed
the
feat/supabase-js-sdk-evals
branch
from
July 27, 2026 15:44
f1b1b25 to
216ca87
Compare
mandarini
marked this pull request as ready for review
July 27, 2026 15:46
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.
Adds four evals for supabase-js: dedicated coverage for the SDK's two most-used surfaces (auth and the PostgREST query builder), a regression canary for the API key migration, and a second Data API scenario probing an SDK-adoption gap the first one turned up.
build-auth-001-email-password-flow(benchmark): signup/sign-in/profile flow against stubbed app code. Gates on agents reaching for@supabase/supabase-jsunprompted (thebuild-functions-005pattern); the profile display name only survives if sent as signup user metadata.build-dataapi-001-relational-report(benchmark): backend reporting script over a seeded relational schema (embedded relations, aggregation). Gates on using the SDK query builder via the Data API rather than psql or a raw Postgres driver.build-dataapi-002-restock-alert-report(benchmark): same shape asbuild-dataapi-001— bare prompt, emptypackage.json, no SDK named — but a different schema/domain (inventory restock alerts vs. a sales report). Added after refreshed results onbuild-dataapi-001showed every claude-code variant (4/4) reaching for@supabase/supabase-jsunprompted while every codex variant (0/4) hand-rolled raw HTTP instead, despite otherwise-correct, RLS-safe implementations. One scenario isn't enough to tell a real model tendency from an artifact of that specific prompt, so this companion checks whether the split generalizes.resolve-sdk-001-legacy-key-migration(regression): seeds a working app on the legacy demo JWTs; agents must migrate it tosb_publishable_/sb_secret_keys without breaking behavior or leaking the secret key into client code.All four were sanity-checked locally against a real stack on the pinned CLI (2.109.1): migrations apply, reference solutions pass every scorer check, and the checks discriminate (missing signup metadata, publishable-key impersonation, leftover legacy keys, and SDK vs. raw-HTTP implementations all fail as intended). A scoped
.gitignoreexception ships the key-migration eval's seeded.env, which holds only the well-known local demo keys.Fix along the way:
build-dataapi-001-relational-reportandresolve-sdk-001-legacy-key-migrationinitially failed 100% of agents identically — a harness bug, not an agent gap. Both had omittedgotruefrom theirservices:frontmatter, so the local stack's auth service never started andsupabase statuscouldn't emitPUBLISHABLE_KEY/SECRET_KEY. Fixed by addinggotruetoservices:(matchingresolve-dataapi-002-secure-default-grants's pattern); results refreshed and now produce real signal.build-dataapi-002-restock-alert-reportstill needs a live run (no API keys in this pass) to confirm whether the adoption split holds.