Skip to content

Controls runner: close two recorded gaps; macOS tests; reference-subject ratchet - #35

Merged
darklordVirtual merged 1 commit into
mainfrom
fix/runner-gaps-and-macos
Nov 10, 2026
Merged

darklordVirtual merged 1 commit into
mainfrom
fix/runner-gaps-and-macos

Conversation

@darklordVirtual

@darklordVirtual darklordVirtual commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

What

Three small, test-backed changes.

Two runner gaps that were recorded as expected failures are closed.

  • A JSON predicate over a file that is not JSON made the whole run abort with a traceback and no result record. It is now NON_VERDICT for that probe, with the parse position, like a missing file or region, and the other probes run.
  • Predicate ops were checked only when evaluated, after the path lookup. An unknown op over an absent path was read as NOT_OBSERVED and the run completed. load_binding now rejects an unknown op, so a typo is a binding error (exit 2) before anything runs.

tests/test_controls_adversarial.py: the two expectedFailure tests are ordinary tests.

macOS. tests/lab/test_nti_example.py compared an unresolved temporary path with a resolved one, which fails where /var is a symlink. Fixed, and validate-assessments.yml gains a tests-macos job that runs both suites.

Reference subjects. The README said each control ships with one. 17 of 38 do (those added in 1.3.0). The README now says so, and a ratchet test lists the 21 without and lets the list only shrink, so a new control cannot ship without one.

Verification

python -m unittest discover -s tests: 494 tests OK locally on macOS with requirements-dev.txt installed (was 1 failure and 2 expected failures). tests/lab: 250 OK. All committed bindings still load, so none used an unknown op.

Not done

No reference subjects were added for the 21 older controls, and the catalog is unchanged.

🤖 Generated with Claude Code

…ted at load; macOS tests

- eval_predicate turns a JSON parse error into NonVerdict for that probe.
- load_binding rejects a predicate op it does not know.
- The two expected-failure tests that recorded these gaps are ordinary tests.
- tests/lab/test_nti_example.py compares resolved paths; CI runs the suites
  on macos-latest.
- README: 17 of 38 controls have a reference subject; a ratchet test lists
  the 21 that do not.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Stian Skogbrott <36493828+darklordVirtual@users.noreply.github.com>
@darklordVirtual
darklordVirtual merged commit dac2871 into main Nov 10, 2026
12 checks passed
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