Skip to content

v0.13.0

Latest

Choose a tag to compare

@github-actions github-actions released this 05 Nov 06:40
· 12 commits to main since this release
24d024c

Added

  • scorer_failure_scored (IEBP012) flags broad exception handlers that turn grader or sandbox failures into fixed results. It checks scorer functions and the package helpers they call. Grader failures are reported as errors and sandbox failures as warnings. The hints recommend letting errors propagate, with Score.unscored(...) reserved for grader replies without a usable verdict (#56).
  • grader_model_under_test (IEBP013) reports an error when scorer code uses get_model() to select the model under evaluation and generate a grading response. It covers omitted model arguments, state.model, and parameters that default to None. Reading model metadata is allowed, and calls with role= remain covered by IEBP002. The rule documentation lists supported forms and limitations (#61).
  • fence_tolerant_json (IECQ008) warns when json.loads, model_validate_json or validate_json parses a model completion generated in the same function without allowing code fences. Models can wrap JSON in fences even when asked for bare JSON or given a response schema. The hint recommends inspect_evals.utils.code.strip_json_fence, and the rule runs only where that helper is available (#92).
  • dockerfile_locking (IEBP007) accepts Git repository ADD instructions pinned to a full commit using #<commit> or --checksum=<commit>. Branches, tags and short hashes are reported as unpinned. The hint for an unpinned git clone now includes these BuildKit alternatives (#99).
  • verdict_parse_anchored (IEBP015) reports errors for verdict substrings and unanchored verdict regexes that can mistake text in a judge's reasoning for its final verdict. Word boundaries and lookarounds still allow matches anywhere in the response and are also flagged. The rule warns on whole-response searches for labelled numbers, which can match quoted text. Output read from state.output is excluded because it belongs to the model under evaluation (#57).

Fixed

  • dockerfile_locking (IEBP007) accepts a git clone followed in the same RUN by a checkout, switch or hard reset to a full commit in the cloned directory. It also accepts git clone --revision=<commit> and git checkout FETCH_HEAD after fetching a full commit. Branches, tags, short hashes and checkouts in a different directory still warn (#99).
  • Ruff pre-commit hooks use the project's locked development dependency, keeping them in sync with tests when Dependabot updates Ruff (#101).