Skip to content

fix(evals): raise the RLS coverage judge's reasoning effort - #220

Closed
czenko wants to merge 2 commits into
mainfrom
fix/rls-coverage-judge-effort
Closed

czenko wants to merge 2 commits into
mainfrom
fix/rls-coverage-judge-effort

Conversation

@czenko

@czenko czenko commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Problem

build-docs-002-rls-guide scored 39 to 43 out of 43 across the nine preview runs recorded on supabase/supabase#49276. One check was the residual failure in most of them:

tests assert allow and deny per operation on the seeded tables, for anon and authenticated

It is flaky, not wrong. Its complaint changes run to run:

  • lives_ok on allowed writes
  • Missing update or delete coverage
  • Denied writes not proving the row survived

The suite it grades is stable at six files and 70 to 80 assertions, and run 7's notes read as a clean bill. Two of the three complaints name coverage the suite has.

Cause: judge() defaults to reasoningEffort: 'low'. This rubric asks that setting to verify seven compound conditions across every test file at once.

Solution

  • Pass reasoningEffort: 'high' at the one call site in tests.ts.

Rubric unchanged. Model unchanged. No check added or removed. The evals-scorers skill names this case: pass model and providerOptions when the rubric is hard, rather than making the rubric longer.

Limit: this reduces variance. It does not guarantee green. Higher effort could also surface a gap the low setting was missing, which would be a true red worth knowing about.

Manual testing

  1. Confirm the change typechecks and formats.

    pnpm typecheck && pnpm biome check evals
  2. Label this PR run-evals-changed to refresh results.

  3. Compare the coverage check across both attempts of the run. A stable verdict across attempts is the signal, not the score alone.

pnpm eval:solution cannot verify this locally. The eval has no solutions/ directory, so there are no test files for the judge to read.

🤖 Generated with Claude Code

The coverage check was the residual failure in most of the nine preview
runs on supabase/supabase#49276, and its complaint changed run to run
against a stable suite. Two of the three complaints named coverage the
suite has.

judge() defaults to reasoningEffort 'low'. This rubric is seven
compound conditions over six test files and 70-80 assertions, which is
the case the evals-scorers skill says to fix by raising the model
rather than lengthening the rubric.

Rubric and model unchanged.

Co-Authored-By: Claude Opus 5 <[email protected]>
@czenko
czenko requested a review from a team August 20, 2026 19:43
@vercel

vercel Bot commented Aug 20, 2026 •

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
evals Ignored Ignored Preview Aug 20, 2026 9:27pm

Request Review

Comment thread evals/build-docs-002-rls-guide/tests.ts Resolved
@mattrossman

Copy link
Copy Markdown
Collaborator

Mirroring here from Slack—I'd like us to try a newer model (5.6 Sol) and more balanced default reasoning (medium) before reaching for per-eval overrides.

@czenko

czenko commented Aug 20, 2026

Copy link
Copy Markdown
Contributor Author

Closed noting that the defaults will be changed instead.

czenko added a commit that referenced this pull request Aug 21, 2026
#222)

Closes AI-1112

## Problem

`judge()` defaults to `gpt-5.5` at `reasoningEffort: 'low'`. Those
defaults were set when 5.5 was the newest model. Judging is the part of
a scorer that needs the most reasoning, and `low` is below OpenAI's
recommended starting point of `medium`.

Per [Matt's
note](https://supabase.slack.com/archives/C051L8U2EJF/p1787267143937309?thread_ts=1787167849.852059&cid=C051L8U2EJF),
the fix belongs in the default rather than in per-eval overrides.

## Solution

- `DEFAULT_JUDGE_MODEL`: `gpt-5.5` to `gpt-5.6-sol`.
- Default `reasoningEffort`: `low` to `medium`.
- `textVerbosity` unchanged at `low`.

Supersedes [#220](#220), which set
`high` effort as a per-eval override on `build-docs-002-rls-guide`. That
PR should close in favor of this one.


## Manual testing

1. Confirm the change typechecks and formats.

   ```bash
   pnpm typecheck && pnpm biome check packages
   ```

2. Dispatch a full refresh from the Actions tab and compare judge-backed
checks against the previous nightly. The suites worth watching are the
ones whose only judge check is pass/fail on a report, such as
`investigate-security-001-public-table`.
@czenko czenko closed this Aug 21, 2026
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.

2 participants