Skip to content

feat(spark): add multi-user todo app eval - #534

Draft
rjgtav wants to merge 2 commits into
rjgtav/spark-evals-math-originalsfrom
rjgtav/spark-evals-multi-user-todo
Draft

rjgtav wants to merge 2 commits into
rjgtav/spark-evals-math-originalsfrom
rjgtav/spark-evals-multi-user-todo

Conversation

@rjgtav

@rjgtav rjgtav commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #526.

What

A new spark eval, build-database-002-multi-user-todo-app-spark. The agent wires up app/src/todos.mjs (sign up, sign in, todo CRUD) against an empty Spark project, so it has to create the todos table and its row-level security itself. The prompt mentions neither RLS nor the SDK.

Scorer (17 checks)

  • todos table exists
  • Two users: A creates and lists their own todos, B sees none of A's, B can't update or delete A's, A signs back in unchanged
  • Update and delete land in the database; renaming, ticking and unticking each leave the other field alone
  • A client that never signed in can't list, add, change or delete, and a signed-out Data API read returns nothing (RLS is judged by behavior, not introspection)
  • A signed-in user's own client (not the app module) can't read, change or delete another user's todo through the Data API, and neither that client nor a signed-out one can insert a todo owned by someone else
  • No secret key in app code
  • Gating check: the code imports @supabase/supabase-js
  • No raw SQL from app code

Ids are accepted as integers or uuids, since the agent picks the schema.

Verification

  • pnpm --filter @supabase-evals/framework test:spark: 42/42 pass (stub-backend scenarios for the reference, integer ids, leaky isolation, policies that let signed-in users touch each other's rows, missing RLS, missing SDK, done not stored, sticky session, etc.)
  • Live, codex-gpt-6-luna, 5 runs: 4 pass 17/17; run 3 fails only the @supabase/supabase-js gate (it never imported the SDK). Results: Braintrust experiment

@rjgtav rjgtav self-assigned this Nov 19, 2026
@vercel

vercel Bot commented Nov 19, 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 Preview Nov 26, 2026 3:54pm UTC

Request Review

@rjgtav
rjgtav force-pushed the rjgtav/spark-evals-multi-user-todo branch from 5cb84d0 to 776e9b7 Compare November 19, 2026 17:24
@rjgtav
rjgtav marked this pull request as ready for review November 19, 2026 17:44
@rjgtav
rjgtav requested a review from a team as a code owner November 19, 2026 17:44
@rjgtav
rjgtav force-pushed the rjgtav/spark-evals-math-originals branch from 11a91da to 8e97815 Compare November 20, 2026 17:53
@rjgtav
rjgtav force-pushed the rjgtav/spark-evals-multi-user-todo branch from 776e9b7 to c2c0b8b Compare November 20, 2026 18:19
@rjgtav
rjgtav marked this pull request as draft November 23, 2026 19:02
@rjgtav
rjgtav force-pushed the rjgtav/spark-evals-math-originals branch from 8e97815 to 87c0417 Compare November 26, 2026 11:43
@rjgtav
rjgtav force-pushed the rjgtav/spark-evals-multi-user-todo branch from c2c0b8b to 54022b9 Compare November 26, 2026 11:43
The agent builds a per-user todo list on an empty Spark project: it has to
create the todos table with row-level security and drive supabase-js from
client-side code. The scorer checks that two users cannot see or change each
other's todos, that a signed-out client reads nothing, and that the SDK is used.
@rjgtav
rjgtav force-pushed the rjgtav/spark-evals-math-originals branch from 87c0417 to d6b379b Compare November 26, 2026 15:54
@rjgtav
rjgtav force-pushed the rjgtav/spark-evals-multi-user-todo branch from 54022b9 to 418dbe7 Compare November 26, 2026 15:54
@rjgtav
rjgtav force-pushed the rjgtav/spark-evals-math-originals branch 2 times, most recently from 508cdc4 to 400c010 Compare November 26, 2026 18:43

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant