Make aggregate ONNX gates execute for real

Reference-count the process-global ONNX Runtime across embedder and routing-head sessions, make close idempotent, and require named proof that both aggregate routing gates executed rather than self-skipped (V-716). Owner explicitly requested direct commits to master.
This commit is contained in:
2026-08-13 03:03:25 +04:00
parent 8015fdbb79
commit 28c2ffb84f
13 changed files with 448 additions and 11 deletions
+1
View File
@@ -197,6 +197,7 @@ func TestONNXBaseline(t *testing.T) {
t.Skipf("onnx embedder unavailable: %v", err)
}
defer emb.Close()
recordONNXGateExecuted(t)
f, err := Load()
if err != nil {