Skip to content

armgit / laya

Public Imported from GitHub
0

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.

test(agent): keep the totality check's failure message readable

Aashish9a52a2241a65
diff --git a/tests/test_predict_long.py b/tests/test_predict_long.py
index 1ba54c84..59d280da 100644
--- a/tests/test_predict_long.py
+++ b/tests/test_predict_long.py
@@ -196,7 +196,8 @@ check("total/no path leaves the key out",
[r["usage"].get("windows", "<absent>") for r in (short_all, scanned_all, hook_all)],
[1, len(scan_agent._calls["batch_states"]), 0])
check("total/0 separates a hook answer from a single-window one",
- (hook_all["usage"]["windows"], short_all["usage"]["windows"]), (0, 1))
+ (hook_all["usage"].get("windows", "<absent>"), short_all["usage"].get("windows", "<absent>")),
+ (0, 1))
# 11. the page that teaches this key teaches the value the code actually writes