Add Inspect AI evaluation package - #2
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an installable Inspect AI package for AHB, including dataset mapping, the ahb @task entrypoint, the public safe/unsafe scorer, tests, README usage for OpenAI/OpenRouter providers, CI test coverage, and ignored Inspect log outputs.
Why
AHB needs an upstream Inspect-ready package before it can be submitted through the Inspect Evals Register. This keeps icaro-lab/ahb as the canonical public repo and avoids a separate ahb-inspect repository.
Linked Issue
Closes #1
Verification
Auto-Merge Eligibility
Not requested. This is a normal PR to dev; local checks and one real OpenRouter smoke pass, and the PR is left open for user review before merge.
Blueprint Updates
No versioned blueprint update. The repo has no .project/blueprint and .project remains local-only for this public repo; the change follows AGENTS.md public release constraints.
Risks / Rollback
The scorer depends on current inspect-ai APIs and is pinned at inspect-ai>=0.3.220. OpenAI-compatible providers require openai>=1.50.0, now included. Rollback is a normal revert of this package layer; no dataset publication or private methodology is changed.
Follow-ups
After merge, replace the placeholder SHA in the local Register YAML draft and open a separate PR to UKGovernmentBEIS/inspect_evals under register/ahb/eval.yaml. Larger paid model validation can be run only after explicit approval.