diff --git a/evidence/MERGE-DESK-API-PORTABILITY-20261024/README.md b/evidence/MERGE-DESK-API-PORTABILITY-20261024/README.md new file mode 100644 index 00000000..ce5cadeb --- /dev/null +++ b/evidence/MERGE-DESK-API-PORTABILITY-20261024/README.md @@ -0,0 +1,7 @@ +# Merge desk: portable runtime API fixtures + +The existing L639 patch a91726c was applied unchanged to current main c196256. The new executable source is 7678607. Only the existing shell negative-fixture builder changes; no runtime, device, compiler, or model source changes. + +The focused runtime API gate passes, and the existing independent refusal oracle rejects both a failing sed command and a no-op sed command across all nine controls. The required full host run exits 2 because the existing Blackwell engine emits AArch64 `dsb sy` on this x86_64 host. Its already-started mutation target finishes with all 49 controls killed. The failure is retained and not waived. This candidate is suitable for a draft update and still needs the required complete host qualification on a supported build environment before merge. + +See receipt.json for exact source identities, commands, outcomes and hashes. No GPU, Spark service, or remote branch was changed. diff --git a/evidence/MERGE-DESK-API-PORTABILITY-20261024/fixture-refusals.json b/evidence/MERGE-DESK-API-PORTABILITY-20261024/fixture-refusals.json new file mode 100644 index 00000000..470c8508 --- /dev/null +++ b/evidence/MERGE-DESK-API-PORTABILITY-20261024/fixture-refusals.json @@ -0,0 +1,22 @@ +{ + "source": "7678607", + "original_oracle": "origin/fix/runtime-api-portable-controls-L639:evidence/API-NEGATIVE-PORTABILITY-L639/test_fixture_failures.py", + "adaptations": [ + "root=Path.cwd()", + "scratch=/tmp" + ], + "results": [ + { + "case": "edit-failure", + "exit": 1, + "stdout": "NEGATIVE CONTROL removed-function: BROKEN (fixture edit failed)\nNEGATIVE CONTROL missing-version: BROKEN (fixture edit failed)\nNEGATIVE CONTROL changed-signature: BROKEN (fixture edit failed)\nNEGATIVE CONTROL changed-struct: BROKEN (fixture edit failed)\nNEGATIVE CONTROL changed-constant: BROKEN (fixture edit failed)\nNEGATIVE CONTROL version-doc-mismatch: BROKEN (fixture edit failed)\nNEGATIVE CONTROL stable-without-doc: BROKEN (fixture edit failed)\nNEGATIVE CONTROL wrong-quoted-signature: BROKEN (fixture edit failed)\nNEGATIVE CONTROL signature-inside-another: BROKEN (fixture edit failed)\nRESULT: FAIL (a negative control was not caught)\n", + "stderr": "" + }, + { + "case": "edit-noop", + "exit": 1, + "stdout": "NEGATIVE CONTROL removed-function: BROKEN (the edit changed nothing)\nNEGATIVE CONTROL missing-version: BROKEN (the edit changed nothing)\nNEGATIVE CONTROL changed-signature: BROKEN (the edit changed nothing)\nNEGATIVE CONTROL changed-struct: BROKEN (the edit changed nothing)\nNEGATIVE CONTROL changed-constant: BROKEN (the edit changed nothing)\nNEGATIVE CONTROL version-doc-mismatch: BROKEN (the edit changed nothing)\nNEGATIVE CONTROL stable-without-doc: BROKEN (the edit changed nothing)\nNEGATIVE CONTROL wrong-quoted-signature: BROKEN (the edit changed nothing)\nNEGATIVE CONTROL signature-inside-another: BROKEN (the edit changed nothing)\nRESULT: FAIL (a negative control was not caught)\n", + "stderr": "" + } + ] +} diff --git a/evidence/MERGE-DESK-API-PORTABILITY-20261024/focused.log b/evidence/MERGE-DESK-API-PORTABILITY-20261024/focused.log new file mode 100644 index 00000000..7c30369b --- /dev/null +++ b/evidence/MERGE-DESK-API-PORTABILITY-20261024/focused.log @@ -0,0 +1,13 @@ +CC="cc" tools/runtime_api_check.sh docs/runtime/omega_runtime_api.manifest . build/runtime-api/real docs/runtime/API.md +RESULT: PASS (runtime API 0.1: 91 functions, 28 structs, 236 fields, 159 constants match the headers) +CC="cc" tools/runtime_api_negative.sh docs/runtime/omega_runtime_api.manifest . build/runtime-api docs/runtime/API.md +NEGATIVE CONTROL removed-function: FAILED as it must (header disagrees with manifest: fn omega_gpu_session_alloc_code) +NEGATIVE CONTROL missing-version: FAILED as it must (version macro missing: OMEGA_RUNTIME_API_VERSION_MAJOR) +NEGATIVE CONTROL changed-signature: FAILED as it must (header disagrees with manifest: fn omega_gpu_session_free) +NEGATIVE CONTROL changed-struct: FAILED as it must (manifest says `struct OmegaGpuLaunch ) +NEGATIVE CONTROL changed-constant: FAILED as it must (manifest says `const OMEGA_GPU_SESSION_MAX_ARGS ) +NEGATIVE CONTROL version-doc-mismatch: FAILED as it must (must contain the line "Omega Runtime API version:) +NEGATIVE CONTROL stable-without-doc: FAILED as it must (STABLE entry omega_gpu_session_launch has no) +NEGATIVE CONTROL wrong-quoted-signature: FAILED as it must (signature quoted in) +NEGATIVE CONTROL signature-inside-another: FAILED as it must (signature quoted in) +RESULT: PASS (every negative control was caught) diff --git a/evidence/MERGE-DESK-API-PORTABILITY-20261024/full-host.log b/evidence/MERGE-DESK-API-PORTABILITY-20261024/full-host.log new file mode 100644 index 00000000..21b69d74 --- /dev/null +++ b/evidence/MERGE-DESK-API-PORTABILITY-20261024/full-host.log @@ -0,0 +1,61 @@ +mkdir -p build/desk-portability +gcc -std=gnu11 -O2 -Wall -Wextra -Werror -Isrc -o build/test_omega_gpu_code_alloc tests/test_omega_gpu_code_alloc.c +gcc -std=gnu11 -O2 -Wall -Wextra -Werror -Isrc -DOMEGA_NUMERIC_CPU_ONLY -o build/test_omega_gpu_engine_compile tests/test_omega_gpu_engine_compile.c src/omega_gpu_engine.c +gcc -std=gnu11 -O2 -Wall -Wextra -Werror -Isrc -DOMEGA_NUMERIC_CPU_ONLY -o build/test_omega_gpu_engine tests/test_omega_gpu_engine.c src/omega_gpu_engine.c +sh tools/gpu_engine_mutations.sh +gcc -std=gnu11 -O2 -Wall -Wextra -Werror -D_GNU_SOURCE -Isrc -I./m16 -I./nvrm -I./third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I./third_party/nvidia-open-580.173.02/kernel-open/common/inc -I./third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I./third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c -o build/omega_blackwell_engine_syntax.o src/omega_blackwell_engine.c +src/omega_blackwell_engine.c: Assembler messages: +src/omega_blackwell_engine.c:573: Error: number of operands mismatch for `ds' +src/omega_blackwell_engine.c:408: Error: number of operands mismatch for `ds' +make: *** [mk/omega-gpu-engine.mk:46: build/omega_blackwell_engine_syntax.o] Error 1 +make: *** Waiting for unfinished jobs.... +VALIDATE_SKIPPED KILLED MUT:VALIDATE_SKIPPED (harness exit 139 (crash or abort)) +VALID_PROGRAM KILLED MUT:VALID_PROGRAM (harness exit 139 (crash or abort)) +VALID_LAYOUT KILLED MUT:VALID_LAYOUT (1 failing case(s), first: VALID_ARGS_LAYOUT) +VALID_COUNT_ZERO KILLED MUT:VALID_COUNT_ZERO (1 failing case(s), first: VALID_ARGS_ZERO_ELEMENTS) +VALID_ALIGN KILLED MUT:VALID_ALIGN (1 failing case(s), first: VALID_ARGS_OUTPUT_ALIGNMENT) +VALID_POISON_COUNT KILLED MUT:VALID_POISON_COUNT (harness exit 139 (crash or abort)) +VALID_FLAGS KILLED MUT:VALID_FLAGS (1 failing case(s), first: VALID_ARGS_UNKNOWN_FLAG) +VALID_TIMEOUT_MARKER1 KILLED MUT:VALID_TIMEOUT_MARKER1 (1 failing case(s), first: VALID_ARGS_ZERO_MARKER_TIMEOUT) +VALID_TIMEOUT_MARKER2 KILLED MUT:VALID_TIMEOUT_MARKER2 (1 failing case(s), first: VALID_ARGS_ZERO_MARKER2_TIMEOUT_WITH_C3) +BLOCK_CHECK_SKIPPED KILLED MUT:BLOCK_CHECK_SKIPPED (2 failing case(s), first: CERTAIN_BLOCKS_NEXT_JOB_NO_BACKEND_CALL) +BACKEND_CHECK_SKIPPED KILLED MUT:BACKEND_CHECK_SKIPPED (harness exit 139 (crash or abort)) +OPEN_NOT_TRACKED KILLED MUT:OPEN_NOT_TRACKED (20 failing case(s), first: CCESS_FULL_RUN) +ALLOC_NOT_TRACKED KILLED MUT:ALLOC_NOT_TRACKED (20 failing case(s), first: CCESS_FULL_RUN) +CLEANUP_SKIPPED_CHANNEL KILLED MUT:CLEANUP_SKIPPED_CHANNEL (1 failing case(s), first: IL_CHANNEL_CREATE) +CLEANUP_SKIPPED_ALLOC KILLED MUT:CLEANUP_SKIPPED_ALLOC (1 failing case(s), first: IL_ALLOC) +CLEANUP_SKIPPED_COPY_IN KILLED MUT:CLEANUP_SKIPPED_COPY_IN (1 failing case(s), first: IL_PREPARE_COPY_IN) +CLEANUP_SKIPPED_SUBMIT KILLED MUT:CLEANUP_SKIPPED_SUBMIT (2 failing case(s), first: IL_SUBMIT_IS_NOT_UNCERTAIN) +FREE_UNALLOCATED KILLED MUT:FREE_UNALLOCATED (3 failing case(s), first: IL_DEVICE_OPEN) +FREE_SKIPPED KILLED MUT:FREE_SKIPPED (20 failing case(s), first: CCESS_FULL_RUN) +CLOSE_SKIPPED KILLED MUT:CLOSE_SKIPPED (20 failing case(s), first: CCESS_FULL_RUN) +CLEANUP_OVERWRITES_FIRST KILLED MUT:CLEANUP_OVERWRITES_FIRST (3 failing case(s), first: EANUP_FIRST_CLEANUP_FAULT_KEPT) +CLEANUP_FLAG_NOT_SET KILLED MUT:CLEANUP_FLAG_NOT_SET (5 failing case(s), first: EANUP_FREE_FAILS_AFTER_GOOD_RUN) +POISON_FILL_SKIPPED KILLED MUT:POISON_FILL_SKIPPED (18 failing case(s), first: LL_ORDER_FULL_RUN) +STATE_PREPARED_SKIPPED KILLED MUT:STATE_PREPARED_SKIPPED (3 failing case(s), first: ATE_ADVANCES_STEP_BY_STEP) +STATE_SUBMITTED_SKIPPED KILLED MUT:STATE_SUBMITTED_SKIPPED (4 failing case(s), first: ATE_ADVANCES_STEP_BY_STEP) +STATE_GPU_COMPLETE_SKIPPED KILLED MUT:STATE_GPU_COMPLETE_SKIPPED (3 failing case(s), first: ATE_ADVANCES_STEP_BY_STEP) +STATE_OUTPUT_VISIBLE_SKIPPED KILLED MUT:STATE_OUTPUT_VISIBLE_SKIPPED (5 failing case(s), first: CHANGED_NOTHING_WRITTEN) +STATE_OUTPUT_PRODUCED_SKIPPED KILLED MUT:STATE_OUTPUT_PRODUCED_SKIPPED (4 failing case(s), first: ATE_ADVANCES_STEP_BY_STEP) +STATE_SUCCESS_SKIPPED KILLED MUT:STATE_SUCCESS_SKIPPED (4 failing case(s), first: CCESS_FULL_RUN) +SUCCESS_AFTER_CLEANUP_FAIL KILLED MUT:SUCCESS_AFTER_CLEANUP_FAIL (3 failing case(s), first: EANUP_FREE_FAILS_AFTER_GOOD_RUN) +MARKER1_WAIT_SKIPPED KILLED MUT:MARKER1_WAIT_SKIPPED (10 failing case(s), first: LL_ORDER_FULL_RUN) +MARKER1_TIMEOUT_WRONG KILLED MUT:MARKER1_TIMEOUT_WRONG (1 failing case(s), first: R_STEP_TIMEOUTS_FROM_JOB) +MARKER1_RESULT_IGNORED KILLED MUT:MARKER1_RESULT_IGNORED (2 failing case(s), first: CERTAIN_MARKER_TIMEOUT) +UNCERTAIN_FREES_MARKER1 KILLED MUT:UNCERTAIN_FREES_MARKER1 (1 failing case(s), first: CERTAIN_MARKER_TIMEOUT) +MARKER2_WAIT_SKIPPED KILLED MUT:MARKER2_WAIT_SKIPPED (7 failing case(s), first: LL_ORDER_FULL_RUN) +C3_FLAG_IGNORED KILLED MUT:C3_FLAG_IGNORED (1 failing case(s), first: _C3_SKIPS_MARKER2_ONLY) +MARKER2_RESULT_IGNORED KILLED MUT:MARKER2_RESULT_IGNORED (1 failing case(s), first: CERTAIN_MARKER2_UNKNOWN_STATE) +UNCERTAIN_FREES_MARKER2 KILLED MUT:UNCERTAIN_FREES_MARKER2 (1 failing case(s), first: CERTAIN_MARKER2_UNKNOWN_STATE) +RELEASE_WAIT_SKIPPED KILLED MUT:RELEASE_WAIT_SKIPPED (7 failing case(s), first: LL_ORDER_FULL_RUN) +RELEASE_RESULT_IGNORED KILLED MUT:RELEASE_RESULT_IGNORED (1 failing case(s), first: CERTAIN_RELEASE_DRIVER_FAULT) +UNCERTAIN_FREES_RELEASE KILLED MUT:UNCERTAIN_FREES_RELEASE (1 failing case(s), first: CERTAIN_RELEASE_DRIVER_FAULT) +BARRIER_SKIPPED KILLED MUT:BARRIER_SKIPPED (6 failing case(s), first: LL_ORDER_FULL_RUN) +BARRIER_RESULT_IGNORED KILLED MUT:BARRIER_RESULT_IGNORED (1 failing case(s), first: IL_VISIBILITY_BARRIER) +RETAINED_FLAG_NOT_SET KILLED MUT:RETAINED_FLAG_NOT_SET (3 failing case(s), first: CERTAIN_MARKER_TIMEOUT) +NO_BLOCK KILLED MUT:NO_BLOCK (4 failing case(s), first: CERTAIN_MARKER_TIMEOUT) +WAITED_NOT_A_DIFFERENCE KILLED MUT:WAITED_NOT_A_DIFFERENCE (3 failing case(s), first: CERTAIN_MARKER_TIMEOUT) +POISON_INDEX_FIXED KILLED MUT:POISON_INDEX_FIXED (4 failing case(s), first: CHANGED_NOTHING_WRITTEN) +UNCHANGED_COUNT_SATURATES KILLED MUT:UNCHANGED_COUNT_SATURATES (3 failing case(s), first: CHANGED_NOTHING_WRITTEN) +UNCHANGED_CHECK_SKIPPED KILLED MUT:UNCHANGED_CHECK_SKIPPED (6 failing case(s), first: CHANGED_NOTHING_WRITTEN) +mutants: 49 total, 49 killed, 0 survived as redundant, 0 survived as test gaps (receipt /tmp/mutrun.rXzsDw/out.json) diff --git a/evidence/MERGE-DESK-API-PORTABILITY-20261024/receipt.json b/evidence/MERGE-DESK-API-PORTABILITY-20261024/receipt.json new file mode 100644 index 00000000..f6a53bc8 --- /dev/null +++ b/evidence/MERGE-DESK-API-PORTABILITY-20261024/receipt.json @@ -0,0 +1,43 @@ +{ + "recorded_at": "2026-10-24T06:15:10.714300+00:00", + "candidate_source": "767860788cfeb51f35058e372ba36f1ffb0a9ae4", + "main_base": "c196256acd56fb76a7f34430b2c0028f5d11deac", + "original_patch": "a91726cd24dbff5a6f67a1246fea0ddf1422f93a", + "scope": "Existing portable shell fixture repair transplanted to current main; no runtime or GPU code changed", + "environment": { + "system": "Linux", + "machine": "x86_64", + "compiler": "cc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0" + }, + "checks": [ + { + "command": "make test-runtime-api", + "exit": 0, + "result": "PASS; API manifest and all nine negative controls" + }, + { + "command": "existing L639 test_fixture_failures.py oracle, with only cwd and /tmp path adaptations", + "exit": 0, + "result": "PASS; edit error and no-op refuse all nine controls each" + }, + { + "command": "git diff --check origin/main HEAD", + "exit": 0, + "result": "PASS" + }, + { + "command": "make -j2 OUT_DIR=build/desk-portability test", + "exit": 2, + "result": "FAIL; AArch64 dsb sy assembly in src/omega_blackwell_engine.c:393 and :558 on x86_64; independent started mutation target finished49/49 killed" + } + ], + "native_omega_tests": "NOT_RUN; native compiler targets AArch64, no AArch64 emulator available in this workspace", + "gpu": "NOT_RUN", + "deployment": "NOT_RUN", + "merge_qualification": "NOT_QUALIFIED; focused repair passes, full mandatory host gate failed", + "sha256": { + "focused.log": "60855f5460d3a644f4941983668f7f09542bf34e360328c85113c485c0118a60", + "fixture-refusals.json": "9e09a9eea8982a2e12aa90030345cf7d82b71717c4c02acdeecf750c548f6342", + "full-host.log": "d0262aa774c3549c216702d0f1113897f88d508384ea498be8436426f16ed2bd" + } +} diff --git a/tools/runtime_api_negative.sh b/tools/runtime_api_negative.sh index 911b3f1f..f55b4522 100755 --- a/tools/runtime_api_negative.sh +++ b/tools/runtime_api_negative.sh @@ -31,10 +31,20 @@ control() { name=$1; expect=$2; file=$3; expr=$4 d=$WORK/neg-$name; rm -rf "$d"; mkdir -p "$d/src"; cp "$ROOT"/src/omega_*.h "$d/src/"; cp "$APIMD" "$d/API.md" case $file in - API.md) sed -i "$expr" "$d/API.md" ;; - *) sed -i "$expr" "$d/src/$file" ;; + API.md) target=$d/API.md ;; + *) target=$d/src/$file ;; esac - if cmp -s "$ROOT/src/$file" "$d/src/$file" 2>/dev/null && [ "$file" != API.md ]; then echo "NEGATIVE CONTROL $name: BROKEN (the edit changed nothing)"; bad=1; return; fi + # POSIX sed has no -i. Generate a private replacement, then verify the mutation + # before moving it over the scratch fixture; never edit the real headers/docs. + if ! sed -e "$expr" "$target" > "$d/edit.tmp"; then + echo "NEGATIVE CONTROL $name: BROKEN (fixture edit failed)"; bad=1; return + fi + if cmp -s "$target" "$d/edit.tmp"; then + echo "NEGATIVE CONTROL $name: BROKEN (the edit changed nothing)"; bad=1; return + fi + if ! mv "$d/edit.tmp" "$target"; then + echo "NEGATIVE CONTROL $name: BROKEN (fixture replacement failed)"; bad=1; return + fi out=$("$HERE/runtime_api_check.sh" "$MANIFEST" "$d" "$d/work" "$d/API.md" 2>&1); rc=$? if [ $rc -ne 0 ] && printf '%s\n' "$out" | grep -qF "$expect"; then echo "NEGATIVE CONTROL $name: FAILED as it must ($expect)" else echo "NEGATIVE CONTROL $name: NOT CAUGHT (rc=$rc, wanted \"$expect\")"; printf '%s\n' "$out" | head -5; bad=1; fi