Skip to content

Run frontier MoE models on hardware you already own — pure C, zero deps, experts streamed from disk. Tiny engine, immense model. 🐦

C

test(tools): write the synthetic JSONL authorities with LF on every platform

monotophic8cb03c2b32be
diff --git a/c/tests/test_mw_ur3_raw_adapter.py b/c/tests/test_mw_ur3_raw_adapter.py
index d30769da..692e383c 100644
--- a/c/tests/test_mw_ur3_raw_adapter.py
+++ b/c/tests/test_mw_ur3_raw_adapter.py
@@ -169,15 +169,18 @@ def _build_synthetic_authorities(directory):
"historical_delta_boundary": adapter.BOUNDARY,
}
+ # The adapter treats these authorities as byte-exact JSONL and rejects a
+ # CRLF record as noncanonical, so write LF regardless of platform
+ # (newline="" stops text mode from translating "\n" on Windows).
corpus_path = directory / "synthetic_corpus.jsonl"
comparisons_path = directory / "synthetic_comparisons.jsonl"
policy_path = directory / "synthetic_policy.json"
corpus_path.write_text(
"\n".join(json.dumps(row, sort_keys=True) for row in corpus_rows) + "\n",
- encoding="utf-8")
+ encoding="utf-8", newline="")
comparisons_path.write_text(
"\n".join(json.dumps(row, sort_keys=True) for row in comparison_rows) + "\n",
- encoding="utf-8")
+ encoding="utf-8", newline="")
policy_path.write_text(json.dumps(policy, sort_keys=True), encoding="utf-8")
return corpus_path, comparisons_path, policy_path