Skip to content

Tell the tester when to use the decision model - #250

Merged
DavertMik merged 2 commits into
mainfrom
judge-tool-guidance
Sep 27, 2026
Merged

DavertMik merged 2 commits into
mainfrom
judge-tool-guidance

Conversation

@DavertMik

@DavertMik DavertMik commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Why

On today's CI regression run (2026-09-25) (29 tests, 124 Jev calls on langfuse.testomatio.work), the tester never called the judge tool. Every call came from the built-in call sites in Navigator, Pilot and the multiple-elements fallback. The tool's description was a single line, no tester rule mentioned it, and several rules send quick "did it already happen?" checks to see(), which uses a screenshot.

What

  • judge-tool.ts: the description now says what Jev sees (page_aria + recent steps, no screenshot or HTML, no test code), what it is for (in-flow judgements: did the last action take effect, which of several similar elements is meant, is this the expected page), and where it stops (final assertions go to verify/finish, visual state to see).
  • tester.ts: a <judge_rule> block is added to the system prompt only when judge is in the tester's toolset, so prompts without the decision model are unchanged.

Prompt-only change. bun test tests/integration/ passes (153 pass, 1 skip).

Measuring it

The effect only shows up with real models: a regression run with the decision model on should show judge tool calls from the tester and fewer see() calls. Not started; apply the regression label if wanted.

🤖 Generated with Claude Code

DavertMik and others added 2 commits September 25, 2026 15:32
The judge tool was never called by the tester: its description was one
line and no rule mentioned it, while several rules route quick page
checks to see(). The description now states what the judge sees, what
it is for and where it stops; the tester's system prompt gains a
judge_rule when the tool is in its toolset.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DavertMik
DavertMik merged commit f412285 into main Sep 27, 2026
2 checks passed
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