omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / evidence / RUNTIME-R3-RECOVERY-L636 / check-review-claims.py
| 1 | #!/usr/bin/env python3 |
| 2 | """External documentary oracle for L637 findings; not production runtime.""" |
| 3 | from pathlib import Path |
| 4 | import csv, json, sys |
| 5 | root=Path(__file__).resolve().parents[2] |
| 6 | rows={r['file']:r for r in csv.DictReader((l for l in (root/'docs/runtime/portability_table.tsv').read_text().splitlines() if not l.startswith('#')),delimiter='\t')} |
| 7 | cases={ |
| 8 | 'src/omega_gpu_matmul_api.h':('OMEGA_GPU_MATMUL_TILE_M 16','tile'), |
| 9 | 'src/omega_gpu_moe_api.h':('col0 % 8 == 0','packing'), |
| 10 | 'src/omega_gpu_platform.h':('one GPFIFO entry','GPFIFO'), |
| 11 | 'src/omega_gpu_session.h':('QMD default (1024)','QMD'), |
| 12 | 'src/omega_gpu_serving.h':('GB10 serving buffers','GB10'), |
| 13 | 'src/omega_gpu_serving.c':('omega_gpu_matmul_reserve','omega_gpu_matmul_reserve'), |
| 14 | } |
| 15 | results=[] |
| 16 | for file,(source_anchor,reason_anchor) in cases.items(): |
| 17 | assert source_anchor in (root/file).read_text(),f'source evidence changed: {file}' |
| 18 | r=rows[file] |
| 19 | ok=r['class']=='CHIP_SPECIFIC' and reason_anchor.lower() in r['reason'].lower() |
| 20 | results.append(dict(file=file,source_anchor=source_anchor,expected_class='CHIP_SPECIFIC',actual_class=r['class'],reason_anchor=reason_anchor,pass_check=ok)) |
| 21 | print(json.dumps(results,indent=2)) |
| 22 | sys.exit(0 if all(r['pass_check'] for r in results) else 1) |