Run frontier MoE models on hardware you already own — pure C, zero deps, experts streamed from disk. Tiny engine, immense model. 🐦
C
build(release): ship check_ablate_evidence.py beside the harness it verifies
monotophicba2802a217ef
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex d0e95ee2..30d334bc 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -135,6 +135,11 @@ jobs:# run it -- the second half of #720.mkdir -p dist/toolscp c/tools/k3_tokenizer.py dist/tools/+ # check_ablate_evidence.py verifies the ABLATE evidence that eval_glm.py+ # (packaged above) produces. Nothing in the code names it -- its caller is a+ # person with argparse arguments -- so pack_python's import walk cannot reach+ # it, exactly like k3_tokenizer.py. Copied explicitly for the same reason.+ cp c/tools/check_ablate_evidence.py dist/tools/cp c/coli dist/# Windows has nothing to click otherwise: `coli` is an extensionless# Python script, and the .exe files are engines that exit at once@@ -189,6 +194,9 @@ jobs:# Kimi K3 needs tokenizer.json synthesized from tiktoken.model; without this# script in the archive the engine ships but cannot be driven by coli chat.test -f tools/k3_tokenizer.py || { echo "FAIL: k3_tokenizer.py missing from archive"; exit 1; }+ # Same position as k3_tokenizer.py: reachable only by a person, so only an+ # explicit gate can prove it shipped.+ test -f tools/check_ablate_evidence.py || { echo "FAIL: check_ablate_evidence.py missing from archive"; exit 1; }# E tutto cio' che coli raggiunge, import e sottoprocessi. Il controllo# qui sopra guarda l'unico file che il passo di copia aveva appena# scritto: conferma se stesso, ed e' il motivo per cui la v1.10.0 e'@@ -201,6 +209,8 @@ jobs:# fine. The check was wrong, not the artifact.python3 -c "import ast; ast.parse(open('tools/k3_tokenizer.py', encoding='utf-8').read())" \|| { echo "FAIL: packaged k3_tokenizer.py does not parse"; exit 1; }+ python3 -c "import ast; ast.parse(open('tools/check_ablate_evidence.py', encoding='utf-8').read())" \+ || { echo "FAIL: packaged check_ablate_evidence.py does not parse"; exit 1; }COLI_EXPECT="$SIBLINGS" python3 - <<'PYCHK'import importlib.machinery, importlib.util, json, os, sys, tempfilefrom family_registry import all_familiesdiff --git a/c/tests/test_pack_python.py b/c/tests/test_pack_python.pyindex fee5a4fd..e2f0375a 100644--- a/c/tests/test_pack_python.py+++ b/c/tests/test_pack_python.py@@ -259,5 +259,42 @@ class PackPythonDataFileTests(unittest.TestCase):self.assertIn("1 Python files and 1 data files", buf.getvalue())+class HumanOnlyToolsShipExplicitly(unittest.TestCase):+ """Tools that only a person invokes are invisible to the import walk.++ `pack_python.py` computes the archive from what `coli` reaches, imports and+ subprocesses alike. A script whose caller is a person typing argparse+ arguments is reached by nobody in the code, so static analysis cannot put+ it in the archive -- `k3_tokenizer.py` has always been in that position and+ `release.yml` copies it by hand. `check_ablate_evidence.py` joined it: it+ verifies the ABLATE evidence that the packaged `eval_glm.py` produces, so a+ release that ships the producer without the verifier is half a tool.++ This pins both halves of that decision on the real tree: the walk does NOT+ reach the file (if it ever does, the explicit copy became redundant and this+ test should be retired), and the workflow copies AND gates it, the way it+ does for the tokenizer helper. A copy without a gate is how v1.10.0 shipped+ four broken commands green (#1296)."""++ HUMAN_ONLY = ("k3_tokenizer.py", "check_ablate_evidence.py")++ def test_the_walk_does_not_reach_them(self):+ paths = PACK.needed(HERE.parent)+ for name in self.HUMAN_ONLY:+ self.assertTrue((TOOLS / name).is_file(), name)+ self.assertNotIn(TOOLS / name, paths,+ f"{name} is now reached by the walk; drop its "+ f"explicit copy from release.yml and this pin")++ def test_release_copies_and_gates_them(self):+ release = (HERE.parent.parent / ".github" / "workflows"+ / "release.yml").read_text(encoding="utf-8")+ for name in self.HUMAN_ONLY:+ self.assertIn(f"cp c/tools/{name} dist/tools/", release,+ f"release.yml no longer copies {name}")+ self.assertIn(f"test -f tools/{name} ||", release,+ f"release.yml copies {name} but does not gate on it")++if __name__ == "__main__":unittest.main()