Skip to content

Fix Inspect register task path loading - #4

Merged
emmepra merged 1 commit into
devfrom
fix/3-inspect-register-task-path
May 13, 2026
Merged

Fix Inspect register task path loading#4
emmepra merged 1 commit into
devfrom
fix/3-inspect-register-task-path

Conversation

@emmepra

@emmepra emmepra commented May 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes direct file-path loading for the Inspect task command generated by the Inspect Evals register, e.g. uv run inspect eval src/ahb_inspect/tasks.py@ahb.

The task and scorer modules now use absolute package imports so they work both through the package entrypoint (ahb_inspect/ahb) and through the file path used by register-generated docs.

Closes #3

Verification

  • uv run --python 3.11 --extra test python -m compileall ahb_eval scripts src tests
  • uv run --python 3.11 --extra test python -m pytest
  • uv run --python 3.11 --extra test inspect eval src/ahb_inspect/tasks.py@ahb --model mockllm/model --model-role grader=mockllm/model --limit 1 --no-log-realtime
  • uv run --python 3.11 --extra test inspect eval ahb_inspect/ahb --model mockllm/model --model-role grader=mockllm/model --limit 1 --no-log-realtime

@emmepra
emmepra merged commit adab2d7 into dev May 13, 2026
1 check passed
@emmepra
emmepra deleted the fix/3-inspect-register-task-path branch May 13, 2026 18:12
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.

Fix Inspect register task path loading

1 participant