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 / tests / one_layer / acceptance / HARNESS_INTERFACE_V2.md

136 lines · 8791 bytes Raw Blame History Source

One-layer stage 2: harness interface (v2, frozen 2026-10-14)

Contract between the sealed author (writes 60 held-out experiment tasks and at least 10 planted OSC binary IR defects, sealed) and the harness (tests/one_layer/acceptance/, aien-spark/omega#445, stage 2 of the one-layer plan). It EXTENDS v1 (HARNESS_INTERFACE.md, sha256 pinned in RULES): v1 stays valid and unchanged, ola.sh score keeps its v1 meaning, and everything v2 does not restate (file formats, member rules, sealing steps, sandbox, verdict reasons, receipt keys, no time stamps, receipts never rewritten) is exactly as in v1. The harness builder never reads ~/workspace/one-layer-sealed-445/ before scoring. If this file must change it gets a new version line; v2 stays valid.

1. New candidate kind oscir

kindcandidate filerequirement keyswhat the harness does
oscircandidate.oscir: OSC binary IR bytes (spec/one-layer-format.md), raw binary, not hexthe kind osc keys: entry, params, ret (v1 section 2)osc_ir_decode (src/compiler/osc_ir.h), then exactly the kind osc path: entry lookup, signature check, back end, native run

2. Planted-defect corpus (kind oscir cases)

Same tarball layout, member rules and LABELS format as v1 section 1, with candidate.oscir added to the allowed candidate files (exactly one candidate per case, matching kind). Cases of kinds osc and omegaprog stay allowed. Counts are no longer fixed: the harness counts from LABELS.

3. Experiment task corpus (held-out tasks)

One tarball, ~/workspace/one-layer-sealed-445/tasks.tar (plain POSIX tar, no compression), with one top-level directory and NO candidates and NO LABELS:

tasks/
  cases/<task_id>/
    requirement               # public: kind task + the signature (below)
    prompt                    # public: the plain-English task text shown to every model
    hidden/inputs             # hidden inputs (v1 format, kind osc rules)
    hidden/expected           # independently computed expected results (v1 format)
    hidden/reference.osc      # the author's own OSC text solution; must ACCEPT (section 3.3)

3.1 Sealing

As v1 section 3, with the task tarball and its own hash file, published LAST and atomically: cd ~/workspace/one-layer-sealed-445 && sha256sum tasks.tar > ~/workspace/omega-vision/stage2/TASKS.sha256.tmp && mv ~/workspace/omega-vision/stage2/TASKS.sha256.tmp ~/workspace/omega-vision/stage2/TASKS.sha256 (content: <64 hex> tasks.tar). Nothing in the sealed directory changes after this.

3.2 Public view for the driver

tests/one_layer/acceptance/ola.sh tasks-public <tasks.tar> <TASKS.sha256> <outdir> checks the seal and the whole layout, then extracts ONLY requirement and prompt of every case into <outdir>/tasks/cases/<task_id>/. This is all the generation driver and the models ever see.

3.3 Experiment mode (merge generated candidates, score without LABELS)

tests/one_layer/acceptance/ola.sh experiment <tasks.tar> <TASKS.sha256> <candidates_dir>

<candidates_dir>/<set_id>/<task_id>/candidate.osc or .../candidate.oscir: one directory per candidate set (set_id [a-z0-9_-]{1,40}, e.g. a-structured-1 = config A, arm structured, attempt 1), at most one candidate file per task. Only regular files and directories; a task_id that is not in the corpus, a second candidate file, or any other file refuses the whole run. A task with no candidate file (directory absent or empty) gets REJECT no_candidate.

Refuses a dirty git tree. Steps: seal check; private extraction (never inside the repo, never visible to a candidate); every task's hidden/reference.osc scored as set references; for each set, each task's candidate merged into a private copy of the case (the requirement's kind task takes the candidate's kind: candidate.osc = osc, candidate.oscir = oscir) and scored exactly as a v1/v2 case; a second clean extraction and execution of every set (verdicts must be byte-identical); the v1 isolation probes (the read_labels probe aims at a hidden/reference.osc).

Evidence: evidence/ONE-LAYER-2/runs/<run_id>/ (never overwritten) with meta.txt, probes.log, score.txt, sets/<set_id>/verdicts.txt and sets/<set_id>/replay/verdicts.txt (including references). Verdict lines and receipts exactly as v1 section 4 (kind = osc or oscir), plus the reason no_candidate (its receipt has candidate_sha256=-). Per-case result is ACCEPT or REJECT (ERROR only for a malformed case, which also invalidates the run). No LABELS exist and no gate is computed here: success statistics are the experiment protocol's job.

score.txt, one line per set in name order, then three lines:

set=<set_id> accepted=<a>/<n> rejected=<r> errors=<e> no_candidate=<k>
references_accepted=<x>/<n>
replay_identical=yes|no probes=PASS|FAIL clean_tree=yes|no
RUN VALID|INVALID

RUN VALID requires every reference accepted, zero errors in any set, identical replays, every probe PASS and a clean tree.

3.4 Reference check before generation

tests/one_layer/acceptance/ola.sh tasks-check <tasks.tar> <TASKS.sha256> is experiment mode with no candidate sets: only references, replay and probes. Run it once after sealing; a task whose reference is not accepted is reported (by id and reason, nothing hidden is printed).

4. Public dev tasks

The experiment's public dev tasks live in the repo (tests/one_layer/exp445/dev/) in exactly the section 3 layout with ids starting dev, are packed and sealed by a script there with a local hash file, and run through the same commands. They are never held-out evidence.