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/qualify.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 / qualify.py` 92 lines ยท 5938 bytes Raw Blame History 1 import os 2 """External exact-output regression and service isolation checks.""" 3 from experiment import R,SOCK,start,stop,request,expected,cases 4 from pathlib import Path 5 import concurrent.futures,hashlib,json,socket,struct,subprocess,time,sys 6 P=(Path(os.path.expanduser('~')) / '/handoffs/tool-omega-`20261104`/round40'.lstrip('/')) 7 D=(Path(os.path.expanduser('~')) / '/.local/share/omega-tool-model/round40'.lstrip('/')) 8 allrows=[];pins={} 9 def addfile(name,mode): 10 path=P/name;pins[str(path)]=hashlib.sha256(path.read_bytes()).hexdigest() 11 for index,row in enumerate(json.loads(path.read_text())): 12 assert row['pass'],(name,index) 13 if mode=='jobs': 14 for stage,t in enumerate(row['turns']):allrows.append(dict(source=name,index=index,stage=stage,prompt=t['prompt'],expected=t['raw'])) 15 else:allrows.append(dict(source=name,index=index,prompt=row['prompt'],expected=row['raw_output'])) 16 for name in ['final-selected.json','step600-retention-jobs.json','step600-target-jobs.json']: 17 addfile(name,'jobs') 18 for name in ['step600-regression.json','step600-copy.json','step600-correction-probes.json']: 19 addfile(name,'rows') 20 unique={} 21 for row in allrows: 22 key=row['prompt'];old=unique.get(key) 23 if old:assert old['expected']==row['expected'],row 24 else:unique[key]=row 25 rows=list(unique.values()) 26 (R/'regression-inputs.json').write_text(json.dumps(dict(raw_count=len(allrows),unique_count=len(rows),pins=pins,rows=rows),indent=2)+'\n') 27 def check_protocol(p): 28 receipts=[] 29 def healthy(label): 30 q=request(cases[0]['prompt']);assert q['stdout']==expected['read_request'];assert p.poll() is None 31 receipts.append(dict(label=label,healthy_after=True)) 32 for label,data,code in [('zero-length',b'\0\0',2),('oversize',struct.pack('