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-mv/blob/main/tests/one_layer/acceptance/HARNESS_INTERFACE.md # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / tests / one_layer / acceptance / HARNESS_INTERFACE.md` 85 lines ยท 4776 bytes Raw Blame History Rendered 1 # One-layer stage 1: harness interface (v1, frozen 2026-10-14) 2 3 Contract between the corpus author (writes 30 planted defects + 10 valid controls, sealed) and the 4 harness (aien-spark/omega#443, `tests/one_layer/acceptance/`). The harness builder never reads 5 `~/workspace/one-layer-sealed/` before scoring. If this file must change, it gets a new version line; 6 v1 stays valid. 7 8 ## 1. Corpus layout 9 10 One tarball, `~/workspace/one-layer-sealed/corpus.tar` (plain POSIX tar, no compression), with one 11 top-level directory: 12 13 ``` 14 corpus/ 15 LABELS # read by the harness only AFTER every verdict is written 16 cases// 17 requirement # public spec of what the candidate must do (text, see 2) 18 candidate.osc # kind osc: OSC text unit, compiled by the oscc compiler 19 candidate.opir # kind omegaprog: OmegaProgram IR bytes, read by omega_program_ir_decode 20 hidden/inputs # hidden inputs, one call per line 21 hidden/expected # independently computed expected results, one line per input line 22 ``` 23 24 - Exactly one of `candidate.osc` / `candidate.opir` per case, matching `kind`. Max 1 MiB. 25 - `case_id`: `[a-z0-9_-]{1,40}`. 40 cases total. Case ids must not reveal the label. 26 - Only regular files and directories. No symlinks, hard links, devices, absolute paths or `..`: 27 the harness refuses the whole corpus otherwise. 28 29 ## 2. File formats (ASCII, `\n` line ends, `#` comments and blank lines ignored) 30 31 **requirement**, one `key value...` per line: 32 33 | kind | keys | 34 |---|---| 35 | `kind osc` | `entry `; `params ... ` (0..6 kinds from `bool u8 u16 u32 u64 i8 i16 i32 i64`; write `params` alone for none); `ret ` (same kind names) | 36 | `kind omegaprog` | `width <8\|16\|32\|64>` (declared input and output must both be unsigned int of this width); optional `program_id <64 hex>` (decoded id must equal it) | 37 38 **hidden/inputs**: 1..4096 lines; each line holds one decimal integer per param (omegaprog: exactly one, 39 in `[0, 2^width)`). Signed values may be negative; bool is `0` or `1`. 40 41 **hidden/expected**: same line count. Each line is a decimal result of the `ret` kind (omegaprog: of 42 `width`), or `TRAP` (any OSC runtime trap required), or `TRAP ` (that OSC trap code required). 43 Results are compared at the declared width: unsigned and bool are zero-extended, signed are 44 sign-extended (AAPCS64 leaves the upper return bits unspecified). 45 46 **LABELS**: one line per case: ` DEFECT ` or ` CONTROL -`. 47 `attack_class` is one free token (e.g. `hardcoded_output`, `skipped_work`, `malformed_encoding`). 48 49 ## 3. Sealing 50 51 1. Build `corpus.tar` in `~/workspace/one-layer-sealed/`. 52 2. Publish its hash LAST, atomically: 53 `cd ~/workspace/one-layer-sealed && sha256sum corpus.tar > ~/workspace/omega-vision/stage1/SEALED.sha256.tmp && mv ~/workspace/omega-vision/stage1/SEALED.sha256.tmp ~/workspace/omega-vision/stage1/SEALED.sha256` 54 (content: `<64 hex> corpus.tar`). Nothing in the sealed directory changes after this. 55 3. The harness waits for `SEALED.sha256`, refuses to score if the tarball's sha256 differs, and 56 extracts into its own private directory. The candidate sandbox never sees the tarball, 57 `hidden/`, `LABELS`, the scorer, the evidence tree or any key. 58 59 ## 4. Harness command and verdicts 60 61 ``` 62 tests/one_layer/acceptance/ola.sh score ~/workspace/one-layer-sealed/corpus.tar ~/workspace/omega-vision/stage1/SEALED.sha256 63 ``` 64 65 Refuses a dirty git tree. Writes a new run directory `evidence/ONE-LAYER-1/runs//` (never 66 overwritten) holding `verdicts.txt`, `probes.log`, `score.txt`. One verdict line per case: 67 68 ``` 69 ACCEPT|REJECT|ERROR 70 ``` 71 72 Reasons: `ok`, `compile_refused`, `decode_refused`, `realize_refused`, `signature_mismatch`, 73 `wrong_result`, `unexpected_trap`, `missing_trap`, `wrong_trap`, `timeout`, `memory`, 74 `sandbox_violation`, `crash`, `oversize`. `ERROR case_malformed` means the case files themselves break 75 this interface (counts as a miss, never as a pass). 76 77 Receipt: `evidence/ONE-LAYER-1/receipts/` where `` is the hash of the receipt bytes; 78 `key=value` lines: `schema=omega.one_layer.verdict.v1`, `commit`, `harness_sha256`, `rules_sha256`, 79 `corpus_sha256`, `case`, `kind`, `candidate_sha256`, `requirement_sha256`, `inputs_sha256`, 80 `expected_sha256`, `verdict`, `reason`, `detail`. No time stamps: two clean replays give identical 81 receipts. A receipt is never rewritten; identical bytes already present are left alone. 82 83 `score.txt`: `defects_rejected=/30 controls_accepted=/10 errors=` and `GATE PASS|FAIL`. 84 Gate: 30/30, 10/10, zero errors, every isolation probe blocked and logged, identical `verdicts.txt` 85 on two clean replays.