Skip to content

fix(web): jump to real failures, not partial scores - #20

Merged
XuehaiWang merged 1 commit into
mainfrom
fix/next-failure-outcome
Nov 25, 2026
Merged

XuehaiWang merged 1 commit into
mainfrom
fix/next-failure-outcome

Conversation

@kiri603

@kiri603 kiri603 commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

What and why

"Next failure" treated any score below full marks as a failure, so on a continuous benchmark it landed on the same trial as "Next": trial .2 scoring 93.1/100 counted as a failure while the one invalid trial in the batch sat further along the order.

A failure is now a trial that actually failed — invalid or unknown evaluation, a solve run that did not complete, a missing score, or a zero score on a pass/fail benchmark. The benchmark's own score kind is passed in, so a zero on a continuous metric is not mistaken for a failure either.

Validation

Checked in Chrome against a real daemon on /bench/job-7f3a21/trials/job-7f3a21.1:

  • Before: Next failure → .2 (score 93.1, valid).
  • After: Next failure → .7, the only trial with evaluation: invalid (failure: agent_install); Next still goes to .2.

packages/web/test/conversation.test.tsx now asserts nextFailure is d rather than b for the same fixture, that a valid partial score is not a failure, that a zero is a failure on a binary benchmark, and that a non-completed solve counts as a failure.

"Next failure" treated any score below full marks as a failure, so on a continuous benchmark
it landed on the same trial as "Next" (93.1/100 counted as a failure while the one invalid
trial in the batch sat further along the order).

A failure is now a trial that actually failed: invalid or unknown evaluation, a solve run that
did not complete, a missing score, or a zero score on a pass / fail benchmark. The benchmark's
own score kind is passed in so a zero on a continuous metric is not mistaken for a failure
either.
@kiri603
kiri603 requested a review from XuehaiWang as a code owner November 22, 2026 08:45
@XuehaiWang
XuehaiWang merged commit 359bf31 into main Nov 25, 2026
1 check passed
@crepuscular-drizzle
crepuscular-drizzle deleted the fix/next-failure-outcome branch November 26, 2026 11:29
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