From 37269dcbd810ce4910577a4adb185adbb3c5b12b Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Thu, 1 Oct 2026 03:44:18 -0500 Subject: [PATCH] r16: retarget mutant c7_bind_refuses_unauthenticated; run mutants in CI (Lane 28) omega #139 (d717af3) split the bind-time guard in rx_world_bind_callers over two lines (it now skips removed reactions), so the mutant's literal no longer matched (35/36 killed, 1 broken). The guard is intact; not a regression. The mutant now disables the same guard condition ("if (0 && ...)"), and the existing G4 probe "C7 P3: bind with an unauthenticated reaction registered" turns red. 36/36 killed, R16_G4_GUARDS_LOAD_BEARING=PASS (Spark 4.3 min). host-suites-2 runtime job now runs test-r16-negative-mutants. Co-Authored-By: Drake Stapleton Co-Authored-By: Claude Opus 5.5 --- .github/workflows/host-suites-2.yml | 14 ++++++++------ tests/r16_negative/mutate.sh | 3 ++- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/host-suites-2.yml b/.github/workflows/host-suites-2.yml index db3dd68df..ffdc8432d 100644 --- a/.github/workflows/host-suites-2.yml +++ b/.github/workflows/host-suites-2.yml @@ -22,7 +22,8 @@ name: Host suites 2 # test-ma-digital-bottom 3.5 min # path : test-path 30 s; crumbline : test-crumbline 1 s # runtime : test-r15-instr test-r15-receipt test-r16-inventory -# test-r16-negative test-r16-surface 1 min +# test-r16-negative test-r16-surface +# test-r16-negative-mutants 5 min (Spark: 4.3 min) # argus : test-argus-runtime test-machine-identity-argus # numeric2 : test-numeric-reduce-cpu test-divsqrt-host 6 s # Pinned dependencies are read from physics.lock, aienos.lock and argus.lock. @@ -50,11 +51,6 @@ name: Host suites 2 # the build. On the Spark (X925/A725) native resolves to generic armv8-a and # it passes (Spark -j1: 3.8 min, PASS); # test-numeric-sweep, test-numeric-e1-exhaustive (too long for CI); -# test-r16-negative-mutants: FAILS on main, not an environment issue. Since -# omega #139 (4aa71bf, d717af3) rewrote the caller-generation guard in -# src/runtime/rx_world.c, mutant c7_bind_refuses_unauthenticated no longer -# applies (BROKEN; 35/36 killed, gate R16_G4_GUARDS_LOAD_BEARING=FAIL). -# Add it here once tests/r16_negative/mutate.sh is updated by its owner; # test-turing-yield, test-turing-energy (already in turing-yield.yml); # every *-silicon target and test-m5..test-m19 (GB10 chip). @@ -345,6 +341,12 @@ jobs: PHYSICS_DIR: ${{ github.workspace }}/physics-src AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src run: make test-r16-surface + - name: R16 G4 every guard load-bearing (36 mutants, each must turn the G4 test red) + if: ${{ !cancelled() }} + env: + PHYSICS_DIR: ${{ github.workspace }}/physics-src + AIENOS_R7_DIR: ${{ github.workspace }}/aienos-src + run: make test-r16-negative-mutants argus: needs: changes diff --git a/tests/r16_negative/mutate.sh b/tests/r16_negative/mutate.sh index a7a209ca1..e474be525 100755 --- a/tests/r16_negative/mutate.sh +++ b/tests/r16_negative/mutate.sh @@ -181,7 +181,8 @@ mutant c7_revoke_serialized $W 1 'const int serialize = 1;' 'const int serialize mutant c7_prebind_check $W 1 \ 'if (w->callers_bound || d->caller.generation != 0) {' 'if (w->callers_bound) {' mutant c7_bind_refuses_unauthenticated $W 1 \ - 'if (w->reactions[i].desc.caller.generation == 0) rc = RX_ERR_IDENTITY;' '(void)0;' + 'if (!w->reactions[i].removed && w->reactions[i].desc.caller.generation == 0)' \ + 'if (0 && !w->reactions[i].removed && w->reactions[i].desc.caller.generation == 0)' mutant c7_mutate_object_bound $G 1 \ 'if (store_bound(store)) return RX_GEN_ERR_IDENTITY;' '(void)0;' mutant c7_set_evidence_bound $G 2 \