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/patches/3e05ddc999ddd2be # 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 ## GitHub aien-dev/omega-mv#209 (code only) closed derived `3e05ddc999ddd2be` #209 Imported from GitHub aien-dev/omega-mv#209 (code only) GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed). Base `e6298806f1c7ccd874d123350d639ad8bba6edc7` · Head `8765ff04b4fa1049c11888b2ae1cc4faddb9bb4f` ### Apply it ``` git checkout -b patch-3e05ddc999ddd2be e6298806f1c7ccd874d123350d639ad8bba6edc7 curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/3e05ddc999ddd2be.patch | git am ``` Raw patch (mbox) · Diff ### Provenance This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record: ``` github-import 1 aien-dev/omega-mv 209 8765ff04b4fa1049c11888b2ae1cc4faddb9bb4f ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"omega-mv","number":209,"url":"https://github.com/aien-dev/omega-mv/pull/209","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:36:47Z","metadata":"unavailable","state_derived":true} ``` ### Changes ``` diff --git a/tests/test_c4_requal_mutants_conversion_equiv.sh b/tests/test_c4_requal_mutants_conversion_equiv.sh new file mode 100755 index 000000000..b3910b15a --- /dev/null +++ b/tests/test_c4_requal_mutants_conversion_equiv.sh @@ -0,0 +1,112 @@ +#!/bin/sh +# Conversion proof: tools/c4_requal_mutants.sh (now an adapter over +# tools/mutation_runner.sh) must behave exactly like the pinned old script +# (commit e6298806f1c7ccd874d123350d639ad8bba6edc7, omega#216, the newest main +# commit that still holds the unconverted script with M03 retired and the +# rewritten M13). Host only, CPU only. PREREQUISITE: build/aienos-authority +# must exist (run 'make test-c4-requal' first); both sweeps build 15 mutants +# (M01 to M16 minus the retired M03), so this is slow. Env ONLY="M01 M05" +# narrows both sweeps to the same ids. +# +# Compared: stdout, exit code, the JSON receipt (byte for byte), and the +# per-mutant verdict list (id + KILLED/SURVIVED*/ERROR from the stderr lines). +# Normalised (volatile only): the receipt path in the stdout summary line +# (each sweep writes to its own file) and /tmp/c4mut.* or /tmp/mutrun.* scratch +# directory names. +# +# ONE more field is masked, the failing-case COUNT: the N in a KILLED note +# "N failing case(s), first: ..." becomes in BOTH old and new, in the stderr +# lines and the JSON receipt, and only when N is an integer >= 1. Evidence that +# the count is not stable even for the OLD script alone: the C4 harness has 24 +# SIGKILL cases (tests/runtime/rx_c4_requal.c:645 kill_sweep(24); the kill delay +# and nanosleep/kill are at :305-308) whose outcome depends on timing. Forge +# diagnostic log test-queue-logs/DEEP6-conv-c4-diag-light-072723.log lines +# 21-36: raw harness fail counts per run were 9 10 10 9 9 (old-style dir) and +# 10 10 9 12 12 (runner-style dir), old script M06 gave 10 and 10 while the +# converted one gave 11 and 8, and the sorted non-kill FAIL lines were identical +# in all 10 runs. The count is descriptive: KILLED is decided by the exit code +# and nf>0 (tools/mutation_runner.sh lines 150-155), never by the value of N. +# A 0 count, a missing count, a non-number and a changed first failing case stay +# visible differences; so does every other field (status, id, file, checks text, +# order, row count, exit code, summary line). The negatives below prove it. +set -u +root=$(cd "$(dirname "$0")/.." && pwd) +cd "$root" || exit 2 +old=tools/_c4_requal_mutants_old.$$.sh +tmp=$(mktemp -d "${TMPDIR:-/tmp}/c4equiv.XXXXXX") || exit 2 +trap 'rm -rf "$tmp" "$root/$old"' EXIT INT TERM +git show e6298806f1c7ccd874d123350d639ad8bba6edc7:tools/c4_requal_mutants.sh > "$old" || { echo "FAIL cannot extract pinned old script"; exit 2; } +chmod +x "$old" + +norm() { # file -> normalised on stdout + sed -e "s#$tmp/[A-Za-z0-9_.]*json#OUT.json#g" -e 's#/tmp/c4mut\.[A-Za-z0-9]*#TMP#g' \ + -e 's#/tmp/mutrun\.[A-Za-z0-9]*#TMP#g' "$1" +} +# stdin -> stdout: the one masked field. The count must follow ( or " or a space +# (stderr "(9 failing case(s), first: " and JSON "note": "9 failing case(s), first: "), +# start with 1-9 (so 0, an empty count and a non-number are not masked) and be +# followed by ", first: " (the KILLED-with-FAIL-lines note shape). +mask() { + sed -e 's/\([(" ]\)[1-9][0-9]* failing case(s), first: /\1 failing case(s), first: /' +} +verdicts() { # stderr file -> "id STATUS" per mutant + sed -n 's/^\(M[0-9][0-9]*\) \(KILLED\|SURVIVED_REDUNDANT\|SURVIVED_GAP\|SURVIVED\|ERROR\) .*/\1 \2/p' "$1" +} +# same