Registry Mirror
Skip to content

Conversation

@avrabe

@avrabe avrabe commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Refs #1691

What was wrong

ARM objects silently computed wrong values whenever an if arm ended in a br, br_table, return or unreachable and code after the if read a value from beneath it. The build exited 0 with no warning.

The direct selector (select_with_stack, the only ARM selector) models the wasm operand stack. A value-carrying br lands its value in the target join but leaves it on that simulated stack: it is peeked, not popped. #1215 discards such dead leftovers at a plain block's end, but the if arms never applied that rule:

  • the End of an else-less if dropped nothing;
  • Else forgot that the then arm was dead;
  • the End of an if/else whose arms left different counts published the dead arm's values beside the live arm's results.

The code after the if then read a dead arm's register instead of the value beneath it.

The reporter's case. In cpetig's wasm-opt -O2 flight controller, func_2 builds biquad coefficients:

f32.const 1
block (result f32)
  ...
  if  f32.const 0  br 1  end
  ...
end
f32.sub

The f32.sub subtracted from the dead 0.0 instead of from 1.0. Step 3's motors came out about 1e-3 off.

Scope. The bug is not float-specific: the i32 twin returns 0 where wasmtime returns 99. It affects every ARM profile and rung, Thumb-2 and A32 alike. RV32 and AArch64 have their own selectors and are not affected.

Why the spec suite never caught it. When a dead arm happened to leave exactly the if's arity, its values acted as placeholders and the output was already correct. No spec function reads a value from beneath a dead arm's leftover.

The fix

The #1215 rule is applied to the if arms at their three join sites. A dead arm contributes nothing to the join, and the join publishes the live arm's results. Every case the old code already got right stays byte-identical. Dead code that consumed or rewrote a value below the if's entry height is refused loudly with a #1691: diagnostic. This is a fix, not a refusal: nothing in the spec suite or the tracked fixtures newly refuses.

Evidence

New wired oracle. scripts/repro/if_arm_dead_value_1691_differential.py, with fixture if_arm_dead_value_1691.wat, is wired in ci.yml next to the #1318 carried-float step. It runs through oracle_run.py with emulations >= 1392; the floor is derived from the leg rules and checked against the header (#1679 --floor-base: 1 new oracle, 0 floors raised or waived).

  • Shapes: 26 exports covering:

    • then-arm, else-arm and both-arm br;
    • a br from a nested block;
    • br_table and unreachable;
    • a return that leaves an operand behind;
    • a value unwound into a void block;
    • mismatched arm counts, with the then arm, the else arm or both dead;
    • the labels.wast loop-exit shape.

    These run at i32, i64, f32 and f64. There are two arity-held controls and one loud-refusal pin.

  • Legs: cortex-m4f, cortex-m7 and cortex-m7dp, each --relocatable and self-contained, plus cortex-r5 A32, relocatable and self-contained.

  • Execution: x in {0, 1, 5, 7}, zeroed and garbage machine state, bit-exact against wasmtime 48.0.0 under unicorn 2.1.4.

emulations failures
main 0d22baf 1008 of 1392 reachable 788 (15 exports wrong on every leg; 8 shapes refused; the refusal pin not declined)
this branch 1392 0

Both controls are correct on base too.

Mutants. Each was a source mutant, rebuilt and run; each turns the oracle red.

mutant result
the Else site reverted RED, 120 failures
the else-less End truncate removed RED, 604 failures
the if/else End publish reverted RED, 120 failures
the below-entry refusal removed RED: refuse_below falls to the old loud "stack underflow" on every leg. That shape was loud before this change, not a miscompile.

The reporter's module (local evidence only). cpetig's attachment is NOT committed; committing it needs the maintainer's consent. The files were fetched with approval and treated as untrusted:

file sha256
repro.zip f8cebc32f8ec2c3eac1211b7f7b6948442e3c7582fcda8a7844cc0c338d8e324
pruned-O2.wasm c859c78068ea826efc56e60a0d2cf14223351c4e6521fe68f7aadbe6e3074c87
pruned-plain.wasm c20fe49a79978b4e0755e283f9cd2f37c699029e323b1dbba48605cf8567c837
calls.txt 2d59823b0b70c9ccb1b22ef9db97b85baf3473ed18949b4276ad0e1e766f78be
shim.c dc44904f00023c54541348b0557caa99c248bdf3335376f056492cc93879207a
repro_main.c 5ff3dd55de541dfa43ff44ad9f1095189bb27142bb973a95cbe5ff8a8e8364a5

The harness compiles with the reporter's command and replays calls.txt under unicorn with shim.c's R9/R10/R11 contract and the data and global init. The reference is wasmtime-py 50.0.1, the reporter's version.

  • Step 3, main 0d22baf: 3f1649f3 3f175bbd 3f16c13d 3f17c5b2, the reporter's numbers bit for bit.
  • Step 3, this branch: 3f162d43 3f177b90 3f16ded6 3f17a4f7, equal to wasmtime. All 4 steps match.
  • Per-function differential (every function called directly from the replay's memory states, with traced and seeded arguments): 115 of 1468 calls wrong in 7 functions on main, 0 of 1468 on this branch.
  • pruned-plain.wasm's object is byte-identical.
  • Static ISA check: every VFP instruction in the O2 objects re-assembles under -mcpu=cortex-m7 -mfpu=fpv5-sp-d16 (unicorn's cpu model is inert). Control: an appended vadd.f64 is rejected.

The "nearby" #1426 was the same leak. The leaked f32 values hold VFP registers until function end. I regenerated the other optimisation levels from pruned-plain.wasm with the local wasm-opt 116, not the reporter's 133:

Byte identity, main vs branch. Seven legs: cortex-m4, cortex-m7dp with software bounds, cortex-m4/m7/r5 relocatable, RV32 and AArch64.

  • Spec suite + tests/wast (2453 modules, 17171 compiles): 5 differ, 0 rc changes. All 5 are labels.wast module 0 on the 5 ARM legs: loop1, loop2 and loop4. They return the spec's 5, 8 and 16 on both binaries; the branch only drops a dead mov at an unreachable join.
  • Tracked scripts/repro (233 files): only the new fixture moves.
  • RV32 and AArch64: identical everywhere.

Other gates.

check result
spec-exec (#1636) identical on main and branch: 49121 emulations, 35676 directives executed, failures exactly the 53 baseline entries, PASS
#1215 brvalue_operand_1215 and the control-flow oracles (#500, #507, #509, #538, #665, #930, #1189 join-alias/class/boot sweep, #1230, #1318, #1639, VCR-DEC-001) pass
determinism (#1291) 434 compiles, 0 differences

Pins moved, each with paired controls.

  • Home-alias audit: 7665 → 7743 functions, 9234 → 9312 homes, 242991 → 244147 instructions. With the new fixture held aside, main prints 242991 and the branch prints 242979. The −12 is the labels.wast dead mov, 3 functions × 4 legs; the fixture accounts for the rest. hits: 0 throughout.
  • selector_lines_code: 21715 → 21852, waived with a reason. 21852 holds here and 21715 reds here; the reverse holds on main.
  • selector_lines_total: 32576 → 32713, track only.
  • ARM: select on an i64-comparison condition with COMPUTED arms always returns the then-arm — reload clobbers the live else-arm register #973 ARM corpus sweep: the new fixture is on EXPECTED_DECLINES. On cortex-m4f its f64 exports need a double-precision FPU, and refuse_below is the refusal pin.

Gates run locally on head f3fc3b25 (signed). All runs were local, nothing was pushed, and the commands match CI's:

gate result
cargo fmt --check rc 0
cargo clippy --workspace --all-targets -D warnings rc 0
cargo test --workspace rc 0
--features riscv build + async_intrinsics_gate rc 0
--features verify build + its six tests rc 0
synth-verify --features z3-solver,arm rc 0
synth-memory thumbv7em clippy rc 0
Claim Check sweep (cc_sweep.py, GH_TOKEN set) 55 of 55 steps rc 0
claim_check.py 77/77 claims hold
oracle_wiring_check.py --floor-base 0d22bafe rc 0

One local-only red: macho_host_link_rq64_differential.py fails here with one check (ld.lld's refusal needle) identically on main 0d22baf's tree with main's binary, so it is this host's toolchain, not this change. Its byte-identity half is unchanged.

Record: artifacts/release-v0.91/RQ-91-O2FLOAT.yaml (issue: "#1691", issue-scope: closes).

🤖 Generated with Claude Code

https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L

…value behind

The direct selector leaves a value-carrying br's value on its simulated
operand stack (peeked, not popped). #1215 drops such dead leftovers at a
plain block's end, but the if arms never did: the else-less if End dropped
nothing, Else forgot the then arm was dead, and the if/else End published a
dead arm's values beside the live arm's results when the counts differed.
Code after the if then read the dead arm's register instead of the value
beneath it - cpetig's wasm-opt -O2 controller, silent, exit 0, and the i32
twin returns 0 for 99. Every ARM profile and rung; RV32/AArch64 unaffected.

Apply the #1215 rule at the three if join sites: a dead arm contributes
nothing and the join publishes the live arm's results; every case that was
already right (a dead arm that left exactly the arity) stays byte-identical;
dead code that reached below the if's entry height is refused loudly.

New wired oracle if_arm_dead_value_1691_differential.py (1392 emulations,
8 ARM legs, i32/i64/f32/f64): 788 failures on 0d22baf, 0 here; each of the
three sites reverted alone, and the refusal removed, reds it. The reporter's
module (local evidence, not committed): step 3 equals wasmtime, per-function
115/1468 -> 0/1468 wrong, pruned-plain byte-identical. Spec suite byte
census: only labels.wast loop1/2/4 move (dead mov dropped, values unchanged).
Record RQ-91-O2FLOAT; selector_lines_code waived 21715 -> 21852.

Refs #1691

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L
@codecov

codecov Bot commented Nov 10, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 76.34409% with 22 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...esis/src/instruction_selector/select_with_stack.rs 76.34% 22 Missing ⚠️

📢 Thoughts on this report? Let us know!

@avrabe
avrabe merged commit 0185ba0 into main Nov 10, 2026
80 of 81 checks passed
@avrabe
avrabe deleted the v091-o2float branch November 10, 2026 22:17
avrabe added a commit that referenced this pull request Nov 10, 2026
…json

Rebased onto main 0185ba0 (RQ-91-O2FLOAT, #1694). Both changes moved the
selector ratchets: O2FLOAT +137, this branch -677. claims.yaml now carries
both histories and the combined values (selector_lines_code 21852 -> 21175,
the whole-file count 32713 -> 32036), each equal to the live derivation
(claim_check 77/77). artifacts/status.json regenerated with
`claim_check.py claims.yaml --emit-status`.

Refs #1672

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L
avrabe added a commit that referenced this pull request Nov 11, 2026
…json

Rebased onto main 0185ba0 (RQ-91-O2FLOAT, #1694). Both changes moved the
selector ratchets: O2FLOAT +137, this branch -677. claims.yaml now carries
both histories and the combined values (selector_lines_code 21852 -> 21175,
the whole-file count 32713 -> 32036), each equal to the live derivation
(claim_check 77/77). artifacts/status.json regenerated with
`claim_check.py claims.yaml --emit-status`.

Refs #1672

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L
avrabe added a commit that referenced this pull request Nov 11, 2026
…provenance once, validate the emitted stream, delete the per-shape guards (#1682)

* v0.91 NPAMODEL (#1672, #1568, #1604, #1661): decide memory-0 address provenance once, validate the emitted stream, delete the per-shape guards

Under --relocatable --native-pointer-abi every memory-0 address is native
(R11 = 0). Which values are wasm statics is now decided ONCE per module by
Provenance::memory0_plan, an extension of the #1145 provenance pass in
synth-core (one graph walk). It names the constants to relocate at their
definition, or refuses the whole module with a named diagnostic:
npa-data-pointer (#1672), npa-dynamic-static-offset (#1568),
npa-static-observed, npa-static-unrelocatable, npa-region-straddle
(#1604), npa-double-relocation (#1580), npa-software-bounds (#1661).
arm_backend::npa_stream_validate checks the final instruction stream: a
compile-time-constant address in memory 0's static range with no
relocation is a compiler defect and fails the compile (npa-addr-validate).

Deleted from the selector: npa_local_const_plan, npa_const_addr_guard,
npa_region_straddle_guard, npa_dynamic_static_offset_accesses and their
helpers, the #1580 rewrite (moved to synth-core npa_offset_folds, read by
the decision and applied by the selector), the select_with_stack
pre-flight guards and the #1619 memory-0-side refusal; from the CLI the
shape-2 loop; from synth-core npa_static_region. fn npa_* 15 -> 5; the
selector's non-test region 21715 -> 21038 lines.

Also fixed: data placed BELOW the stack-pointer init was baked raw (new
record RQ-91-NPABELOWSP). The ABI rules R1, R2 and R3' are written into
docs/embedder-abi-relocatable-arm.md.

Evidence: scripts/repro/npa_model_differential.py (new, CI-wired; 25
emulations, PASS, 14 failures on eab6664); the five native-pointer
oracles and memk_bulk_oob_1619 exit 0, their rows that now compile are
executed, and every object they compiled on eab6664 is byte-identical;
the matrix moves 99/63/59 -> 158 ok / 4 refused / 0 wrong; the repo
census is 517/536 byte-identical under the flag (every moved row
executed or explained in RQ-91-NPAMODEL) and 536/536 without it.

Refs #739
Refs #1672
Refs #1568
Refs #1604
Refs #1661

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L

* v0.91 NPAMODEL (#1672, #1568, #1604, #1661): record the PR number in the six records

Records only: each landed field now cites PR #1682. No code change.

Refs #739
Refs #1672
Refs #1568
Refs #1604
Refs #1661

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L

* v0.91 NPAMODEL (#1672, #1604): the R1 boundary rule, gale's decision

On the split layout a constant one past the end of a memory-0 segment
resolves to the START of the region holding that address (gale's run-once
flag at the start of the segment after another; byte-identical). The same
constant as an operand of an i32 or i64 comparison - directly, through a
local or select, through i64.extend_i32_*, or as an equal i64.const - is
refused: npa-end-pointer-compare (#1604). Memory-k constants kept raw by
the #1145 layering are no longer counted as memory-0 statics, which keeps
the refusal off memory 1.

Also: RQ-91-NPABELOWSP cited closed #739 with issue-scope: outlives, which
reds the #1478 issue-closure gate; it now declares issue-scope: closes. The
summed --exact-emulation-floor moves 449389 -> 449451 (+62 = the new
npa_model oracle's 33, npa_const_addr +18, npa_multi_memory_1145 +11),
paired against eab6664.

Refs #1672, Refs #1604, Refs #1145, Refs #739

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L

* v0.91 NPAMODEL (#1672): cite the emulation floor's derivation, not its live value

The floor-prose gate (status_evidence_check) refuses a release record that
restates the live --exact-emulation-floor literal: that copy is outside
the ci.yml / claims.yaml lockstep and rots on the next move. RQ-91-NPAMODEL
now states the +62 from v0.90's value and cites oracle_wiring_check.py's
reported total.

Refs #1672

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L

* v0.91 NPAMODEL (#1684): refuse an i64.const naming a memory-0 static

i64 constants are never relocated under --native-pointer-abi, so an
i64.const inside memory 0's static window that reaches a memory-0 address,
or is compared with a pointer derived from a static (through
i64.extend_i32_*), stayed a raw wasm address beside native pointers: the
`i64.eq (i64.extend_i32_u p) (i64.const 0x2008)` walk faulted on eab6664
where wasmtime returns 0x3. The provenance pass now refuses the module:
npa-i64-static-const (#1684). An i64.const outside the window, used as a
plain scalar, compared with a host value, or as an i64 counter bound still
compiles, byte-identical to eab6664. Relocating i64 constants is the
follow-on.

npa_model_differential.py declares emulations >= 42 (33 before); the
summed --exact-emulation-floor moves +9, paired against f01c28c.
RQ-91-NPAMODEL now carries #1684 with issue-scope: closes, and records the
end-pointer refusal's cost (a walk whose end does start a segment).

Refs #1684, Refs #1672

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L

* v0.91 NPAMODEL (#1672, #1684): state the oracle floors in RQ-91-EMUFLOOR's per-oracle terms

Rebased onto main d2094ca, which retired the summed
--exact-emulation-floor pin (#1679). This branch's two edits to that pin
were dropped in the rebase; the oracles keep their own header floors
(npa_model_differential 42, new; npa_const_addr_differential 65, was 47;
npa_multi_memory_1145 62, was 51), and `oracle_wiring_check.py
--floor-base origin/main` reports 2 raised and 1 new, rc 0. RQ-91-NPAMODEL's
two sentences about the summed pin now say that instead.

Refs #1672, Refs #1684

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L

* v0.91 NPAMODEL (#1672): re-anchor the mutation ledger on the rebased head

`mutation_survey.py reanchor` at 60dcd15 (after the rebase onto d2094ca): 20 sites moved, 0 not found;
mutants, controls, ci_subset and classifications unchanged (34 / 3 / 10);
reanchored_at names the commit that carries the
recorded line numbers.

Refs #1672

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L

* v0.91 NPAMODEL (#1672, #1684): gale's three false-positive refusal classes

gale's census of 257f006 refused 7 of its real modules (14 rows), its v11
image among them, on three false-positive classes, each now reproduced by
a minimal fixture (refused on 257f006, executed equal to wasmtime here):

- npa-i64-static-const: the i64 provenance walk followed a shift count
  and memory 1's content node from a fmt argument packer to an unrelated
  memory-1 comparison. It now follows plain flows and the value-preserving
  conversions and i64 add/sub only, and stops at other scalar operands,
  memory content and globals (gale_fp1).
- npa-data-pointer in dead code: core::fmt pad_integral reachable only
  through the element table. The refusal applies to functions reachable
  from the exports and the start function; elem functions count once a
  reachable function executes call_indirect (gale_fp2a; the direct and
  call_indirect-only controls stay refused).
- npa-data-pointer on an index load: the bucket model ignored the memarg
  offset, so every `offset=N (i32.const 0)` access shared one bucket. A
  load's may-read set is now judged by value + offset, and a run-time
  index beside a static memarg base stays in the base's segment (R1, as
  the codegen already assumes) (gale_fp2b). This also refuses a pointer
  table read by scaled index and dereferenced, which eab6664 and
  257f006 compiled and faulted on (ptrtab_idx_neg).

Mutants for each relaxation turn the #1672/#1684 red rows red. Floors:
npa_model_differential 42 -> 51, npa_multi_memory_1145 62 -> 66.

Refs #1672, Refs #1684, Refs #1145

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L

* v0.91 NPAMODEL (#1672): re-anchor the mutation ledger after the false-positive fixes

`mutation_survey.py reanchor` at 06ca6b9 (the false-positive fixes): 7 sites moved, 0 not found;
mutants, controls, ci_subset and classifications unchanged (34 / 3 / 10);
reanchored_at names the commit that carries the
recorded line numbers.

Refs #1672

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L

* v0.91 NPAMODEL (#1672): give the MC/DC harness's NpaModule its start function

NpaModule gained `start_function` (a reachability root). The MC/DC
harness builds one too and is compiled only by the workspace builds
(clippy --workspace, cargo test --workspace), not by the CLI build.

Refs #1672

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L

* v0.91 NPAMODEL (#1672, #1604): a dead source loads no data word; one method on two statics is judged per base

gale's re-run on 85e5f20 refused 4 more of its modules on two classes,
each now reproduced by a fixture (refused on 85e5f20, executed equal to
wasmtime here):

- npa-data-pointer whose only data-word SOURCE was a load in an
  unreachable function (core::fmt pad_integral). A load or copy now puts
  a data word into flow only when its function is reachable (gale_fpA);
  the source reachable through a reachable call_indirect is still refused.
- npa-region-straddle on one method called on two statics in two
  segments: the check paired one caller's access with the other caller's
  base. An address whose possible values are exactly its relocated base
  constants is judged per element against its own base's region
  (gale_fpB); an instance straddling its segment end is still refused.

Mutants: a dead source counted, and the union check restored, each red.
npa_model_differential declares emulations >= 54 (51 before).

Refs #1672, Refs #1604

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L

* v0.91 NPAMODEL (#1672): re-anchor the mutation ledger after the source-reachability and per-base fixes

`mutation_survey.py reanchor` at c4914d3: 0 sites moved, 0 not found;
mutants, controls, ci_subset and classifications unchanged (34 / 3 / 10);
reanchored_at names the commit that carries the
recorded line numbers.

Refs #1672

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L

* v0.91 NPAMODEL (#1672, #1604): call/return-matched data provenance; the canonical-ABI realloc contract

gale's re-run on c928822 refused 3 more of its modules on two classes,
each reproduced by a fixture (refused on c928822, executed equal to
wasmtime here):

- A1, npa-data-pointer through a two-level call chain. Neither proposed
  cause applies (no closed-range attribution exists; the constant is
  carried through both calls, and a minimal fixture of that chain
  compiles on c928822). The diagnostic reproduces exactly when ANOTHER
  caller passes &Location through the same chain: the callee's shared
  parameters and returns made every call's result "maybe the Location
  word". Each call site now has its own result node, and the refusal
  needs a call/return-matched path from the dereference to a source load
  whose address, in that context, is a constant naming a pointer word.
  The search keeps the refusal whenever it cannot decide. The chain's
  `+128` sibling then needed the per-base straddle rule for `x + d`.
- A2, npa-data-pointer on a wit-bindgen cabi_realloc_* grow copy from
  old_ptr: the maintainer's option (a), the canonical-ABI realloc
  contract, now R4 of the ABI document. A memory.copy whose source is
  param 0 of an export named cabi_realloc / cabi_realloc_* with the
  signature (i32,i32,i32,i32)->i32, or of a wrapper that only forwards to
  one, reads no static.

Still refused: the Location caller's own dereference, a true straddle,
the realloc shape under another name or signature, a copy from a
pointer-bearing constant, a copy from a non-realloc export's param (R3').
Mutants for each relaxation are red. npa_model_differential declares
emulations >= 56 (54 before).

Refs #1672, Refs #1604

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L

* v0.91 NPAMODEL (#1672): re-anchor the mutation ledger after the matched-provenance and realloc-contract fixes

`mutation_survey.py reanchor` at 111f5485: 7 sites moved, 0 not found;
mutants, controls, ci_subset and classifications unchanged (34 / 3 / 10);
reanchored_at names the commit that carries the
recorded line numbers.

Refs #1672

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L

* v0.91 NPAMODEL (#1672): rebase onto RQ-91-O2FLOAT; regenerate status.json

Rebased onto main 0185ba0 (RQ-91-O2FLOAT, #1694). Both changes moved the
selector ratchets: O2FLOAT +137, this branch -677. claims.yaml now carries
both histories and the combined values (selector_lines_code 21852 -> 21175,
the whole-file count 32713 -> 32036), each equal to the live derivation
(claim_check 77/77). artifacts/status.json regenerated with
`claim_check.py claims.yaml --emit-status`.

Refs #1672

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L

* v0.91 NPAMODEL (#1672): re-anchor the mutation ledger after the rebase onto RQ-91-O2FLOAT

`mutation_survey.py reanchor` at 6f81cd4: 6 sites moved, 0 not found;
mutants, controls, ci_subset and classifications unchanged (34 / 3 / 10);
reanchored_at names the commit that carries the
recorded line numbers.

Refs #1672

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L

* v0.91 NPAMODEL (#1672, #1604): the real causes in gale's modules

gale's re-run on 3775050 printed the same two diagnostics: the previous
fixtures modelled guessed shapes. Traced on gale's real modules
(sha256-verified, not committed; hashes in RQ-91-NPAMODEL):

- fused v11 one-domain: the flagged source load reads `(p2 << 5) + p1 +
  192` (func_60 reassigns local 1), and p2 is a host value carrying the
  Location segment's escaped region (R3'). A static base plus a run-time
  delta is now judged by the base's segment (R1). The word then reached
  a REUSED local used as the index of `i32.load offset=7336`; a static
  memarg base now anchors, as HEAP + OFF does. The image's next refusal,
  npa-region-straddle, was local reuse again (one local is a fill and a
  copy destination plus its implicit zero); the per-base equality now
  compares in-window values only.
- gustos.loom: the realloc copy reads local 6 := param 0 (rustc's spill);
  R4 now follows values that are param 0 unchanged, an implicit zero
  being neutral.

All four modules now compile on cortex-m3 and cortex-m7dp, byte-identical
to base 0185ba0 (two-domain 4f91ec458025170f / 298a11362380d01b).
Minimal fixtures gale_gfA1, gale_gfA1_fill and gale_gfA2 reproduce gale's
diagnostic text on 3775050 and execute equal to wasmtime here; four new
negatives stay refused; one over-relaxation mutant per rule is red.
npa_model_differential declares emulations >= 62 (56 before).

Refs #1672, Refs #1604

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L

* v0.91 NPAMODEL (#1672): re-anchor the mutation ledger after the real-cause fixes

`mutation_survey.py reanchor` at fdf29e2: 0 sites moved, 0 not found;
mutants, controls, ci_subset and classifications unchanged (34 / 3 / 10);
reanchored_at names the commit that carries the
recorded line numbers.

Refs #1672

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L

* v0.91 NPAMODEL (#1672): re-anchor the mutation ledger after the rebase onto RQ-91-MPUENFORCE

`mutation_survey.py reanchor` at 097b77a (rebased onto 52add19): 7 sites moved, 0 not found;
mutants, controls, ci_subset and classifications unchanged (34 / 3 / 10);
reanchored_at names the commit that carries the
recorded line numbers.

Refs #1672

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant