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 / seed / qualification / security673 / repairs / README.md
| 1 | # Native authority repair controls |
| 2 | |
| 3 | This supplements #685–#688; it does not qualify production concurrent effects. |
| 4 | `native.json` records the editing-host native run and exact compiler/source/binary |
| 5 | hashes. The original cleanup compile error is retained as INVALID, not a mutant. |
| 6 | The corrected cleanup fixture checks the identical result, trace and descriptor |
| 7 | assertions through a register-bounded helper. |
| 8 | |
| 9 | Use an otherwise clean disposable Linux AArch64 checkout of this branch. Rebuild |
| 10 | with the existing `sh seed/omega-from-seed.sh`; require the compiler SHA-256 that |
| 11 | the seed pins on this branch, currently |
| 12 | `7a8b84fcc07808a52e6cbb65aa7450c754b3ad62eeddf9ec64cc0edd0938b2de`. |
| 13 | The original replay used the older reconstructed compiler |
| 14 | `66b4cf34e5cd2c8ff003bd142e7309f52178b66c2380f78ac313b6eb8b67471b`; never repin a |
| 15 | consumer to that old compiler: omnet's self-exec descriptor protocol requires its |
| 16 | own newer compiler. |
| 17 | |
| 18 | `replay-7a8b84fc.json` records the 2026-10-31 replay with the current compiler |
| 19 | after merging #688 at 101823e5: every gate, mutant and mutator source and |
| 20 | executable SHA-256, exit and stdout equals `native.json`. The pre-`cbadcase` |
| 21 | cleanup gate from 08bd7aa7 still fails with `omc: line 274: error 12`, so the |
| 22 | register-bounded helper remains required. The mutator also refused, exit 93 with |
| 23 | no output, an unexpected gate, an already-mutated cleanup gate and an |
| 24 | already-mutated dispatch-order gate, and an unknown mode with exit 90. The full |
| 25 | coordinator `gate669.om` was run separately at that head: exit 0, `GATE669 PASS`. |
| 26 | |
| 27 | For each row, compile the gate using `seed/out/omc`, require compiler exit 0, |
| 28 | mark the resulting executable, and run it in a separate empty working directory. |
| 29 | These shell commands are interactive reproduction instructions, not a new runner: |
| 30 | |
| 31 | ```sh |
| 32 | mkdir -p build/repair-replay/order |
| 33 | seed/out/omc < seed/authority/dispatch-order-gate.om > build/repair-replay/order-gate |
| 34 | chmod +x build/repair-replay/order-gate |
| 35 | (cd build/repair-replay/order && ../order-gate) |
| 36 | ``` |
| 37 | |
| 38 | | Gate | Positive assertion | Mutation mode | Negative assertion | |
| 39 | |---|---|---|---| |
| 40 | | dispatch-order | 3 checks, fails=0 | 0 | acquired-record refusal (also read/acquisition error cleanup) | |
| 41 | | store-exact | 4 checks, fails=0 | 1 | trailing-record refusal | |
| 42 | | lock | 8 checks, fails=0 | 2 | missing/directory unlink error accumulated by the gate | |
| 43 | | store-cleanup | 18 cases, fails=0 | 3 | `cbadcase`: result, ordered effects and descriptor identity | |
| 44 | |
| 45 | Build `mutate.om` with the same compiler. It reads a gate from stdin, writes its |
| 46 | mutant to stdout, and takes the table's mode as its sole argument. It requires |
| 47 | one exact source match (four in mode 3), refusing an unexpected source with 93 |
| 48 | before emitting any bytes. Argument/input/output errors are 90/91/92/94. |
| 49 | |
| 50 | ```sh |
| 51 | seed/out/omc < seed/qualification/security673/repairs/mutate.om > build/repair-replay/mutate |
| 52 | chmod +x build/repair-replay/mutate |
| 53 | build/repair-replay/mutate 0 < seed/authority/dispatch-order-gate.om > build/repair-replay/order-mutant.om |
| 54 | seed/out/omc < build/repair-replay/order-mutant.om > build/repair-replay/order-mutant |
| 55 | chmod +x build/repair-replay/order-mutant |
| 56 | mkdir -p build/repair-replay/order-negative |
| 57 | (cd build/repair-replay/order-negative && ../order-mutant) |
| 58 | ``` |
| 59 | |
| 60 | Require each preceding command to succeed before executing its output. Each |
| 61 | negative executable must finish normally with exit 1 from its intended assertion. |
| 62 | A signal, timeout, malformed executable or compiler failure is INVALID. Lock and |
| 63 | cleanup failures have no stdout; inspect their explicit aggregate-assertion |
| 64 | return sites, not merely any nonzero exit. Store-exact mode 1 deliberately does |
| 65 | not remove the generation probe, so it proves only record-probe sensitivity. |
| 66 | |
| 67 | Dispatch-order uses an acquisition schedule double; cleanup uses handwritten |
| 68 | write-side effect doubles. Exact-input and lock gates exercise real filesystem |
| 69 | operations in disposable directories. None qualifies arbitrary filesystem |
| 70 | interference, production revocation fencing, stale-pid ABA safety, power loss or |
| 71 | aggregate durable accounting. Replay the full existing coordinator separately; |
| 72 | its status is not inferred from these four fixtures. |
| 73 | |
| 74 | `clean-replay.json` records the independent clean-checkout replay of these four |
| 75 | fixtures and four compiled controls. `regression-replay.json` additionally records |
| 76 | unchanged action219, delegate74, reuse74, store77 and dispatch37 checks passing. |
| 77 | The store fixture requires a pre-existing `build/` parent in its working directory; |
| 78 | the first isolated invocation omitted it and failed70 checks. That invocation is |
| 79 | retained, followed by the corrected setup with the identical executable. Dispatch |
| 80 | also needs `seed/authority/effect-ok` built from its existing source inside the |
| 81 | working directory. No compiler or production-source change was needed for these |
| 82 | additional regressions. This still does not substitute for the full coordinator. |