Skip to content

fix: verify_eval_log works against current Inspect logs (0.3.1) - #21

Merged
sk8ordie84 merged 1 commit into
mainfrom
fix-verify-eval-log-current-inspect
Jun 29, 2026
Merged

fix: verify_eval_log works against current Inspect logs (0.3.1)#21
sk8ordie84 merged 1 commit into
mainfrom
fix-verify-eval-log-current-inspect

Conversation

@sk8ordie84

Copy link
Copy Markdown
Contributor

Inspect 0.3.x stopped recording eval.dataset.sha (and scores[].name is the scorer name, not the metric), so the from-log path raised MalformedLogError on every modern log. Adds dataset_hash= / metric= overrides (back-compatible), a clearer error, +2 tests, and an offline mockllm showcase. 34 tests green locally. Bumps 0.3.1.

Inspect 0.3.x no longer records eval.dataset.sha, and results.scores[].name
carries the scorer name, not the metric -- so the from-log verification path
raised MalformedLogError ("missing fields: ['dataset_hash']") on every modern
log. A real user calling verify_eval_log would have hit this.

- verify_eval_log now accepts dataset_hash= and metric= overrides; both default
  to whatever the log carries, so logs that include those fields are unaffected.
- the MalformedLogError now names exactly which fields to supply.
- +2 tests: override round-trip PASS, and helpful error when omitted.
- examples/offline-mockllm/: a fully offline, deterministic showcase running a
  real Inspect eval with mockllm (no API key/network), PASS + a TAMPERED
  model-swap via verify_live.
- bump 0.3.0 -> 0.3.1, CHANGELOG.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@sk8ordie84
sk8ordie84 merged commit ac500a9 into main Jun 29, 2026
3 checks passed
@sk8ordie84
sk8ordie84 deleted the fix-verify-eval-log-current-inspect branch June 29, 2026 10:22
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