This repository was archived by the owner on Oct 7, 2026. It is now read-only.
Repository navigation
Commit 3a5196e
Fix Inspect importer treating eval-level errors as run-level errors (#1077)
## First issue
The Inspect importer was incorrectly reading from `EvalLog#error` and
applying it as a fatal error to all runs in an eval set. According to
the Inspect documentation, `EvalLog#error` is documented as "Error that
halted eval (if status=="error")" - meaning it's an eval-level error,
not a run-level error.
This change:
- Removes the fallback to `this.inspectJson.error` in `getFatalError()`
- Now only looks at sample-level errors (`this.inspectSample.error`)
- Updates the corresponding test to expect no fatal error when only
eval-level error exists
This ensures that samples that completed successfully are not
incorrectly marked as having fatal errors just because the overall eval
had an error.
Closes #1076
## Second issue
I (@tbroadley) also think it's incorrect to mark all samples in a
`cancelled` eval log file as killed. Only completed samples get logged
to the eval log file, so we can import these samples without marking
them as killed.
Evidence:
https://inspect.aisi.org.uk/CHANGELOG.html#v0.3.14-04-june-2024
> Stream samples to the evaluation log as they are completed (subject to
the new --log-buffer option). Always write completed samples in the case
of an error or cancelled task.
---
🤖 This PR was created with Mentat. See my steps and cost
[here](https://mentat.ai/gh/METR/vivaria/agent/6426e744-ab2f-4911-bfe5-f54f113e7708)
✨
- [ ] Wake on any new activity.
---------
Co-authored-by: MentatBot <160964065+MentatBot@users.noreply.github.com>
Co-authored-by: tbroadley <8731922+tbroadley@users.noreply.github.com>
Co-authored-by: Thomas Broadley <thomas@metr.org>1 parent 755c1c5 commit 3a5196e
2 files changed
Lines changed: 30 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
| 600 | + | |
607 | 601 | | |
608 | 602 | | |
609 | 603 | | |
| |||
613 | 607 | | |
614 | 608 | | |
615 | 609 | | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
616 | 630 | | |
617 | 631 | | |
618 | 632 | | |
619 | 633 | | |
620 | 634 | | |
621 | | - | |
622 | | - | |
| 635 | + | |
| 636 | + | |
623 | 637 | | |
| 638 | + | |
| 639 | + | |
624 | 640 | | |
625 | 641 | | |
626 | 642 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
341 | 338 | | |
| 339 | + | |
342 | 340 | | |
343 | 341 | | |
344 | 342 | | |
345 | 343 | | |
| 344 | + | |
346 | 345 | | |
347 | 346 | | |
348 | 347 | | |
| |||
0 commit comments