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 / research / om-bench / CONTRACT.md

195 lines · 14539 bytes Raw Blame History Source

om-bench measurement contract v1 (omega-mv #653)

Status: FROZEN at the commit that adds this file. manifests/contract.sha256 holds the sha256 of this file; it is committed before any held-out candidate is scored. A change after that is a new version (v2) with a new hash, and results under v1 stay labelled v1. Owner and judge: OmegaEval. Candidate lanes (OmegaIntent, OmegaMind, OmegaCorpus, OmegaFast3) never grade themselves under this contract.

Every number published under this contract carries one label on the same line: MEASURED (with an evidence path), MODELED (with the formula or Wolfram query) or NOT_RUN.

1. Question

Can a model write working Omega (.om) for small, fully specified stdin/stdout tasks without a person fixing the code by hand, and does it get the answer right? Compared with the same model writing Python and C.

2. Task set

splitfamiliestasksvisibilityuse
train832publicexamples and corpus material
dev416publicdriver development, smoke tests
heldA1664sealed: aggregates only, task ids as opaque hashesthe scored set for v1
final1664sealed, untouchedone-time final test of a later version

3. Arms

All arms use the same subject model, the same reference card (REFERENCE-CARD.md, sha256 in manifests/splits.json), the same task statement, the same common I/O sentence and the same 2 visible examples. Only the language and the loop differ.

armwhat the model getsattemptsstatus in v1
aplain generation, Omega1, greedyRUN
ba + compiler feedback: after a refusal the model sees the omc error line, the meaning of the error number and the offending source line, then tries againup to 1+3, greedyRUN
aeqequal-attempt baseline for b: up to 4 independent samples at temperature 0.8 (seeds 654-657), first one that compiles is kept, no feedbackup to 4RUN on heldA if time allows
cstructured construction through OmegaIntent's omq (#838): the model fills ?? holes and omq answers each-NOT_RUN (omq not merged; needs an agent loop)
dconstrained decoding (OmegaMind)-NOT_RUN (not delivered)
etrained Omega specialist-NOT_RUN (does not exist yet)
fpythe same model writes Python 31, greedyRUN
fcthe same model writes C11, built with gcc -O2 -std=gnu11 -lm1, greedyRUN
pilot A / pilot BOmegaIntent agent-loop pilot (section 9)-NOT_RUN (cloud model unfunded)

Arm b's attempt 0 uses the same prompt and greedy decoding as arm a and is charged in full to b. Whether it is byte-identical to arm a's reply is reported as a reproducibility measurement, not assumed.

4. Subject model and environment profile

5. Judging

6. Outcome classes (one per task)

classmeaningcounts as
passevery case correctsuccess
wrong_outputbuilds and runs cleanly, some answer wrongcorrectness failure
compile_refusedthe compiler refused the final programmechanical intervention
no_codeno code block in the replymechanical intervention
runtime_mechanicalcrash, Omega runtime trap (exit 100-114), signal, timeout, other non-zero exit or empty output on some casemechanical intervention
authz_violationthe program reaches outside stdin/stdout/stderr: Omega host words (ids >= 100 in seed/omc/genkw.awk) or read/write on other descriptors; Python: any import outside the allowlist sys math collections itertools functools heapq bisect string re fractions decimal operator array statistics typing dataclasses copy, or calls to open exec eval compile __import__ breakpoint globals vars, or .system .popen .fork .remove .unlink (parsed with ast); C: file, process, network or dynamic-load callsauthorization violation, never executed
NOT_RUNno generation recordednever a pass, stays in the denominator

7. Metrics (all reported together; none alone)

8. Statistics and predeclared verdicts

All computed in Wolfram; queries and outputs filed with the results.

9. Pilot task set (OmegaIntent agent loop, ADRs aien-architecture-mv #340/#341)

Families: fixed-point log2 to micro-bits, PRNG plus hash train/eval split, mean and variance, histogram entropy, dot product. Arms: A = plain .om authoring with final omc feedback; B = A plus omq answers at each ?? hole. Measures: first-try success, fixes per task, tokens, wall time, runtime as % of OmegaReview's measured X925 ceiling. Tasks, oracles, splits and verdicts belong to OmegaEval under this contract. The cloud model run is NOT_RUN in v1 (no funded account); the family definitions are added as a separate task set with its own hashes when built.

10. Controls (must pass before any result is published; controls/run-controls.sh)

Pre-freeze fixes found by these controls (control run 1, controls-r1.txt; reruns controls-r2.txt and, from the published copy in this directory, controls-r3.txt: CONTROLS FAILS=0):

Reproduction: bench/materialize.py PUB SEALED manifests/splits.json regenerated every public file byte-identically and every sealed file byte-identically (diff -r empty, run from this directory). Scored runs use run-arms.sh RUNROOT SPLIT ARM... (generate, judge, gate.om cross-judge for Omega arms, summary).

11. Tools outside the Omega closure (disclosed)

tooldoesOmega replacement
Python 3.12.3: materialize.py, families_*.pywrites tasks and expected outputsport oracles to .om, cross-checked against the Python oracle
Python: ombench.pyprompts the model, extracts code, runs authorization scan, host comparatorgate.om already judges Omega; port the scan to .om using genkw word ids
Python: leakcheck.pysimilarity screen.om text tokenizer + set overlap
llama.cpp llama-serverruns the subject modelout of scope (model runtime)
gcc 13.3.0builds arm fcnone needed: it is the C baseline

gate.om is the only judge in the Omega closure. Nothing here is "verified by CI": everything was run on the Spark, not in CI.