Skip to content

fix(core): default the judge to gpt-5.6-sol at medium reasoning effort - #222

Merged
czenko merged 1 commit into
mainfrom
core/default-judge-model-effort
Aug 21, 2026
Merged

czenko merged 1 commit into
mainfrom
core/default-judge-model-effort

Conversation

@czenko

@czenko czenko commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

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, 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, 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.

    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 requested a review from a team August 21, 2026 00:15
@vercel

vercel Bot commented Aug 21, 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 Aug 21, 2026 12:15am

Request Review

@mattrossman mattrossman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sanity checked running claude-code-sonnet-5 × investigate-security-001-public-table and judge still worked as intended

@czenko
czenko merged commit 41c7af6 into main Aug 21, 2026
7 checks passed
czenko added a commit that referenced this pull request Aug 21, 2026
)

Ref DOCS-1274

## Problem

`build-docs-002-rls-guide` measures whether the RLS guide produces good
RLS. Tests are the bonus. The coverage judge graded test *craft*, and it
was the eval's only unreliable check.

An eval passes only when every check passes, so one bonus check turned
the whole doc red while all 40 RLS checks were green.

Four runs against the [#49276
preview](supabase/supabase#49276):

| Sample | Judge config | Score | Judge verdict on audit |
| --- | --- | --- | --- |
| 1 | 5.5, high | 43/43 | Correct. Thorough suite, passed it |
| 2 | 5.5, high | 42/43 | Correct. `lives_ok` with no state checks |
| 3 | 5.6-sol, medium | 41/43 | Correct. Same, plus a broken assertion |

The judge was right every time. Its verdict tracked whichever suite the
agent wrote that run, which varies.
[#222](#222) raising the default
model and effort did not change that, because the variance was never in
the judge.

## Solution

Keep the check. Scope the rubric to what the bonus is worth.

The bar is now one assertion against an application table, one allowed
case, one denied case, and a role or identity set at least once. Ties go
to a pass.

Every craft requirement that produced the reds is dropped, and each is
named in the rubric as explicitly acceptable:

| Was required | Now |
| --- | --- |
| All six tables, by name | Covering only some is fine |
| Allow and deny for each of select, insert, update, delete | One
allowed and one denied anywhere |
| Allowed write must be shown to change state | `lives_ok` alone is fine
|
| Both `anon` and `authenticated` | One role is fine |
| Switch role and identity per case | At least once |
| `using`-filtered row asserted intact | Not required |

Renamed to `the pgTAP tests exercise access control on the application
tables rather than standing in as placeholders`, since the old name
claimed far more than the rubric now asks.

## What it still catches

A suite that tests nothing. Eight `select ok(true)` placeholders,
assertions that never touch the application's tables, or a suite with no
allowed case or no denied case anywhere. That floor is the reason to
keep a judge here rather than delete the check.

## Manual testing

1. Confirm the change typechecks and formats.

   ```bash
   pnpm typecheck && pnpm biome check evals
   ```

2. Label this PR `run-evals-changed` and confirm the coverage check
passes on suites that previously failed it. Samples 2 and 3 above are
the cases to beat: both were rejected only for `lives_ok` and partial
coverage, which the rubric now accepts.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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