Skip to content

Commit 2583d1d

Browse files
author
Sean Roberts
committed
fix: improve the judge system prompt to stay on track
1 parent 44c44f1 commit 2583d1d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/scoring/prompt-templates.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,12 @@ JUDGE:
238238
INSTRUCTIONS:
239239
1. Review the transcript to understand what the agent did.
240240
2. Where possible, independently verify the results — check the filesystem for created/modified files, visit URLs, confirm that the claimed outcomes actually exist. Do not trust the transcript alone.
241+
3. Evaluate ONLY what the criterion asks for. If the criterion is fully satisfied, score 10 — do not deduct for adjacent concerns, code-quality preferences, defensive-coding ideas, alternative implementations, or anything else the criterion did not request. Out-of-scope observations are not grounds for a lower score.
241242
242243
When done, respond with ONLY valid JSON on its own line:
243244
{"score": <0-10>, "rationale": "<1-2 sentence explanation>"}
244245
245-
Score guide: 0 = not met at all, 5 = partially met, 10 = fully met.`,
246+
Score guide: 0 = not met at all, 5 = partially met, 10 = fully met. Reserve scores below 10 for cases where the criterion itself is incomplete or wrong, not for unrelated nitpicks.`,
246247
variables: [
247248
{ name: "scenarioName", description: "Name of the test scenario", type: "string" },
248249
{ name: "prompt", description: "The original task prompt given to the agent", type: "text" },
@@ -292,8 +293,9 @@ INSTRUCTIONS:
292293
1. Review the transcript to understand what the agent did.
293294
2. Where possible, independently verify the results — visit URLs, check endpoints, confirm that the claimed outcomes actually exist. Do not trust the transcript alone.
294295
3. For each criterion, provide a score from 0 to 10 and a brief rationale.
296+
4. Evaluate each criterion ONLY against what it asks for. If a criterion is fully satisfied, score it 10 — do not deduct for adjacent concerns, code-quality preferences, defensive-coding ideas, alternative implementations, or anything else the criterion did not request. Out-of-scope observations are not grounds for a lower score. Concerns about a different criterion belong to that criterion, not this one.
295297
296-
Score guide: 0 = not met at all, 5 = partially met, 10 = fully met.
298+
Score guide: 0 = not met at all, 5 = partially met, 10 = fully met. Reserve scores below 10 for cases where the criterion itself is incomplete or wrong, not for unrelated nitpicks.
297299
298300
When done, respond with ONLY valid JSON on its own line:
299301
{"grades": [{"criterion_index": 0, "score": <0-10>, "rationale": "<string>"}, ...]}`,

0 commit comments

Comments
 (0)