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(cli): pin that a later success does not erase an earlier failure
Aashishb8e4aa64c70a
diff --git a/tests/test_cli.py b/tests/test_cli.pyindex 8f7f1c58..1e5a75b0 100644--- a/tests/test_cli.py+++ b/tests/test_cli.py@@ -130,6 +130,15 @@ class SecondRequestFails(AlwaysBrokenRouter):return StubDecision()+class FirstRequestFails(SecondRequestFails):+ def route(self, state, **kwargs):+ if self.count:+ self.count += 1+ return StubDecision()+ self.count += 1+ raise OSError("connection failed")++broken = AlwaysBrokenRouter()code, out, err, stub = run_session(["first request", "second request"], [], router=broken)check("interactive: a handled failure exits 2, not 0", code == 2, "got %r" % code)@@ -146,6 +155,11 @@ mixed = SecondRequestFails()code, out, err, stub = run_session(["ok", "bad"], [], router=mixed)check("interactive: one failed request is enough for exit 2", code == 2, "got %r" % code)+mixed = FirstRequestFails()+code, out, err, stub = run_session(["bad", "ok"], [], router=mixed)+check("interactive: a later success does not erase an earlier failure",+ code == 2 and mixed.count == 2, "code %r, %d calls" % (code, mixed.count))+code, out, err, stub = run_session(["quit"], [], router=AlwaysBrokenRouter())check("interactive: leaving the prompt before a request exits 0", code == 0, "got %r" % code)