Repository navigation
v0.12.0
IESC001 now applies the mount checks that inspect_ai's Docker sandbox enforces in releases after 0.3.279, so a Compose file the sandbox would refuse fails the lint first. This can fail a package that passed 0.11.0. Any writable host bind mount fails, even an allowlisted one, and so does any volumes_from. Before moving a pin, add :ro to bind mounts the sandbox only reads, or set the x-inspect_docker_sandbox.unsafe_allow_writable_host_mounts opt-out and allowlist it after review. The JSON report schema is unchanged. IETS008 now also accepts the packaged pytest_inspect_evals.metrics helper, and --explain works from a wheel without mdformat.
Changed
custom_metric_tests(IETS008) now accepts the packaged epoch helper by default. A test counts when it importspytest_inspect_evals.metricsor the deprecatedtests/utils/metric_epochs.pyshim. Before, onlymetric_epochscounted, so a test written the recommended way was still warned about.helper-modulenow takes a list as well as one name. A dotted name must appear as consecutive parts of the import path:pytest_inspect_evals.metricsmatchesfrom pytest_inspect_evals import metricsbut notfrom inspect_evals.foo import metrics. Before, a dotted name matched by its last part alone.sandbox_privileges(IESC001) now also reports the mounts that inspect_ai's Docker sandbox refuses by default in releases after 0.3.279: writable host bind mounts, read-only binds, configs or secrets in a service that could remount them writable, shared bind propagation, writable submounts, anyvolumes_from, and named volumes or mount types whose host access cannot be verified. These findings have no allowlist key, because an allowlist entry cannot make inspect_ai accept the mount. Upgrading can fail a package that passed before, including one whose writable bind mount orvolumes_fromis allowlisted. Fix the mount, usually by adding:ro, or set the top-levelx-inspect_docker_sandbox.unsafe_allow_writable_host_mounts: trueopt-out. The rule reports the opt-out for review under that key. A non-boolean opt-out value is an error, since inspect_ai refuses it too.
Fixed
--explainno longer fails withModuleNotFoundError: No module named 'mdformat'when the package is installed from a wheel. It ran the rule's page through mdformat, which is only a docs dependency. The page is now printed as written, which renders the same in the terminal; thedocfield of--output-format jsoncan differ fromdocs/rules/<code>.mdin whitespace and table rules.