Skip to content

DO NOT MERGE: point build-docs-006 at the tables access-control preview - #265

Draft
czenko wants to merge 4 commits into
evals/database-tables-guidefrom
scratch/tables-rls-preview
Draft

DO NOT MERGE: point build-docs-006 at the tables access-control preview#265
czenko wants to merge 4 commits into
evals/database-tables-guidefrom
scratch/tables-rls-preview

Conversation

@czenko

@czenko czenko commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Do not merge. Scratch branch for measuring an unmerged docs revision. Every change here gets reverted, not landed.

Why

build-docs-006-database-tables asks for a habit tracker database and points at Tables and Data. The published page never says to protect a table, so the central checks measure whether an agent gets to row level security unprompted.

supabase/supabase#50024 adds a "Securing your tables" section: enabling row level security, a first policy, a two-access-class worked example, and a verification step. This branch points the eval at that PR's preview to see whether the revision closes the gap.

Changes

evals/build-docs-006-database-tables/PROMPT.mdREFERENCE repointed to the preview. One line.

evals/build-docs-006-database-tables/EVAL.ts — the guide-read check matches the preview hostname, not the path alone. Without this a fetch of the published page satisfies the check, and an agent that ignored the preview reads as having used it.

packages/core/src/docs-results.tsisSupabaseApexUrl widened to accept docs-git-*-supabase.vercel.app. Without it a preview fetch is dropped from docsCalls, so the guide-read check fails on a run that did read the page. Lookalike hosts are still rejected and the core suite passes unchanged, 114/114.

What to look for

Read the agent read the Tables and Data guide the prompt referenced first. If it fails, the agent never reached the preview and the rest of the run says nothing about the revision.

The signal is the pair of catalog checks, row level security is enabled on every table in the public schema and every table with row level security enabled carries at least one policy, plus the two behavioral probes that a wide-open schema fails: a signed-out visitor cannot read anyone's routines and a signed-out visitor cannot create a routine.

The positive controls say whether a green is real. a signed-out visitor can browse the starter routine library and the signed-in owner reads their own routines and nobody else's both fail for a schema that enables row level security and writes no policy.

Running it

Label with run-evals-changed. Only build-docs-006-database-tables changed, so that is the only eval that runs.

Scratch, not for merge. Three changes, all reverted rather than landed.

PROMPT.md's REFERENCE points at the preview for supabase/supabase#50024.
EVAL.ts matches the preview host rather than the path alone, so fetching the
published page cannot satisfy the guide-read check. docs-results.ts accepts
docs-git-*-supabase.vercel.app, without which the preview fetch never reaches
docsCalls and the check fails a run that did read the page.
@czenko czenko added the run-evals-changed Add to a PR to refresh only the benchmark evals that have had changes label Sep 4, 2026
@vercel

vercel Bot commented Sep 4, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
evals Ready Ready Preview Sep 5, 2026 12:28am UTC

Request Review

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