interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / evidence / RUNTIME-R3-RECOVERY-L636 / check-review-claims.py

22 lines · 1262 bytes Raw Blame History
1#!/usr/bin/env python3
2"""External documentary oracle for L637 findings; not production runtime."""
3from pathlib import Path
4import csv, json, sys
5root=Path(__file__).resolve().parents[2]
6rows={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')}
7cases={
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}
15results=[]
16for 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))
21print(json.dumps(results,indent=2))
22sys.exit(0 if all(r['pass_check'] for r in results) else 1)