Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.
Python calibrationclassificationdecision-modelhuggingfacejevmodernbertmultilingualnlppythonpytorchroutingtyped-decisionszero-shot
test(evals): pin the absent gate-policy path to a refusal that names the flag
Aashish7b7f19d6999e
diff --git a/tests/test_evals.py b/tests/test_evals.pyindex b35833bb..69e6fc10 100644--- a/tests/test_evals.py+++ b/tests/test_evals.py@@ -3473,6 +3473,16 @@ def test_cli_rejects_invalid_policy_json_and_version(monkeypatch, tmp_path, capsassert "Traceback" not in err, "exit 2 with a traceback is the shape this refuses"assert err.startswith("laya-evals: "), "a usage error, named as one: %r" % errassert "gate policy" in err, "and named as *which* usage error: %r" % err+ # A path that is not there is `OSError`, and `load_policy` names it as a gate policy on purpose:+ # `main`'s own `FileNotFoundError` arm would still exit 2, with a message that no longer says+ # which flag pointed at the missing file.+ missing = tmp_path / "absent-gates.json"+ assert evals_cli.main(["run", dataset, "--gate-policy", str(missing)]) == 2+ err = capsys.readouterr().err+ assert "Traceback" not in err, "exit 2 with a traceback is the shape this refuses: %r" % err+ assert err.startswith("laya-evals: ") and "gate policy" in err, (+ "the refusal still names the flag it came from: %r" % err)+ assert str(missing) in err, "and the path the caller typed: %r" % errassert not built