Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-tool-model/blob/main/deployment/fast/finish_checks.py # omega-tool-model First-party Omega tool-use model source, serving harnesses, and verification records Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-tool-model / deployment / fast / finish_checks.py` 68 lines ยท 3946 bytes Raw Blame History 1 import os 2 """External negative controls and real disposable repair workflows.""" 3 from experiment import R,SOCK,start,stop,request,cases,expected 4 from pathlib import Path 5 import hashlib,json,socket,subprocess,sys,threading,time 6 C=(Path(os.path.expanduser('~')) / '/handoffs/omega-llm-`20261101`/omega-mv/seed/out/omc'.lstrip('/')) 7 P=(Path(os.path.expanduser('~')) / '/handoffs/tool-omega-`20261104`/round40'.lstrip('/')) 8 assert json.loads((R/'regression-results.json').read_text())['passed'] 9 # A corrupted cached byte must be rejected before that launch reaches the GPU. 10 s=(R/'server-rows-check.om').read_text() 11 a='fn cacheverify slot ulong to void\nn = get gbused 0' 12 assert s.count(a)==1 13 s=s.replace(a,'fn cacheverify slot ulong to void\nput cbytes mul slot 4096 xor get cbytes mul slot 4096 uchar 1\nn = get gbused 0') 14 (R/'cache-negative.om').write_text(s) 15 q=subprocess.run([str(C)],input=s.encode(),capture_output=True,timeout=60) 16 assert q.returncode==0,q.stderr 17 (R/'cache-negative').write_bytes(q.stdout);(R/'cache-negative').chmod(0o700) 18 p=subprocess.Popen([str(R/'cache-negative')],stdout=subprocess.DEVNULL,stderr=subprocess.PIPE) 19 try: 20 deadline=time.monotonic()+10 21 while True: 22 try: 23 request(cases[0]['prompt']);raise AssertionError('Mutant incorrectly returned a complete response') 24 except (FileNotFoundError,ConnectionRefusedError): 25 assert p.poll() is None 26 assert time.monotonic()