Repository navigation
Controls runner: close two recorded gaps; macOS tests; reference-subject ratchet - #35
Merged
Merged
Conversation
…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>
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.
What
Three small, test-backed changes.
Two runner gaps that were recorded as expected failures are closed.
NON_VERDICTfor that probe, with the parse position, like a missing file or region, and the other probes run.NOT_OBSERVEDand the run completed.load_bindingnow rejects an unknown op, so a typo is a binding error (exit 2) before anything runs.tests/test_controls_adversarial.py: the twoexpectedFailuretests are ordinary tests.macOS.
tests/lab/test_nti_example.pycompared an unresolved temporary path with a resolved one, which fails where/varis a symlink. Fixed, andvalidate-assessments.ymlgains atests-macosjob 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 withrequirements-dev.txtinstalled (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