mirror of
https://github.com/msoedov/agentic_security.git
synced 2026-11-25 19:43:29 +01:00
baselines.json records what the bundled OneClassSVM answers. That model
is three .joblib files committed to the repo, pickled with scikit-learn
1.9.1, so the recorded sets only hold under that release. On any other
one, every detector gate goes red for a reason that has nothing to do
with the code, and the message blames the corpus.
Three checks now run before the gates:
- the three .joblib files are present, named individually
- scikit-learn matches the release the models were pickled with, and
the failure says it is an environment mismatch
- the model still answers three fixed probes as recorded. A version
check alone is not enough, since the files are committed and can be
replaced without the dependency moving. One probe answers False, so
a model degenerated to a constant is caught too
Pins that the ML plugin returns numpy.bool_ while annotated -> bool.
Harmless through the manager's any(), wrong for any caller using
`is True`.