Registry Mirror
Skip to content

Conversation

@avrabe

@avrabe avrabe commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

#1189 — an if/else join register could alias a local's home register (ARM direct selector): measured, oracle red-first, one-site fix, corpus byte-identical

Refs #1189 (do not close — closure is release-based). Artifact RQ-64-JOINALIAS.

What was wrong

On the ARM direct selector (select_with_stack: every --relocatable compile per #197, and every self-contained function the optimized path declines and hands down), local.get of a register-homed local pushes the home register itself, uncopied. When that is the then-arm's result of an if (result …) … else …, the #313 join mov R_then, R_else on the else path writes the local:

   c: mov  r0, r1     ; join writes r0 == local 0's home
   e: adds r2, r0, r0 ; local.get 0 + join, BOTH r0      ir0(0) = 18, wasmtime 9

Exit 0, no decline. The then path was right by accident (r0 already held the wanted value).

1. Blast radius, measured BEFORE fixing (main f4780608, 18 shapes × 4 legs, one case table)

shape arm-reloc arm-self rv32-reloc aarch64
ir0/ir1/ir2/ir3 — then-arm local.get of a param homed in R0/R1/R2/R3, re-read after WRONG (0x12 for 0x9 / 0xc) ok (*) ok ok
iboth — then local.get 0, else local.get 1 (both homes) WRONG (copies local 1 into local 0) ok (*) ok ok
isets — else arm local.set 0 then const; join overwrites the write WRONG WRONG (**) ok ok
inest — inner if inside the outer then-arm WRONG ×2 (both joins) ok (*) ok ok
i64p — i64 param homed R0:R1 WRONG (both halves moved) WRONG (**) declined #312 ok
bif — if inside a block WRONG ok (*) ok ok
iloop — if inside a loop body WRONG WRONG (**) ok ok
iloc — NON-param local as then result ok ok ok ok
ielse — only the ELSE arm reads the home ok ok ok ok
idead — home not re-read after the join ok ok ok ok
itee — then-arm local.tee 0 ok ok ok ok
bbrif / bfall — #509 block join (br edge / fall-through is the home) ok ok ok ok
lres — loop (result) ok ok ok ok
icall — function contains a call ok ok n/a n/a

(*) the optimized selector lowers a plain if/else itself. (**) it DECLINES these shapes (local.set inside an arm, an i64 param pre-gate, local.set of a param in a loop) and falls back to the direct selector — identical bytes, identical wrong answer.

Why the clean rows are clean (from the code, each pinned MATCH by the oracle so the boundary cannot move silently): RV32 copies a param on local.get (mv dst, a_n); AArch64 reconciles into a dedicated reserved slot (VCR-A64-CF-001); a non-param local is promoted only when every access is at control-flow depth 0, so a then-arm read is always a frame-slot reload into a fresh temp (same rule on RV32); a function with a call frame-backs its params (#204/#193); the #509 block join's result register is a fresh temp and the home is only a source; loop (result) has no join; local.tee pushes the tee'd temp.

The class is one site: the then-arm result of a value-carrying if/else being a live register-homed local on the ARM direct selector. Not block, not loop, not RV32, not AArch64, not non-param locals, not call-containing functions.

2. The oracle landed first, red

scripts/repro/join_alias_1189_differential.py (+ join_alias_1189.wat, _i64.wat, _call.wat, and the committed fixture join_alias_1189_red_main.json = main's own objects for the two ARM legs). One case table drives the wasmtime calls and the unicorn calls; expected values are wasmtime's, taken live; every unassigned register is seeded with a self-naming canary.

Red-first transcript on main's binary, through oracle_run.py:

  FAIL main/arm-reloc ir0(0,)[else] -> 0x12 (wasmtime: 0x9) — SILENT WRONG ANSWER
  FAIL main/arm-reloc ir1(0, 3)[else] -> 0x12 (wasmtime: 0xc) — SILENT WRONG ANSWER
  FAIL main/arm-reloc ir2(0, 0, 3)[else] -> 0x12 (wasmtime: 0xc) — SILENT WRONG ANSWER
  FAIL main/arm-reloc ir3(0, 0, 0, 3)[else] -> 0x12 (wasmtime: 0xc) — SILENT WRONG ANSWER
  FAIL main/arm-reloc iboth(0, 3)[else] -> 0x9 (wasmtime: 0x6) — SILENT WRONG ANSWER
  FAIL main/arm-reloc isets(0,)[else] -> 0x12 (wasmtime: 0xe) — SILENT WRONG ANSWER
  FAIL main/arm-reloc inest(0, 0)[outer-else] -> 0x12 (wasmtime: 0x9) — SILENT WRONG ANSWER
  FAIL main/arm-reloc inest(1, 0)[inner-else] -> 0xe (wasmtime: 0x8) — SILENT WRONG ANSWER
  FAIL main/arm-reloc bif(0,)[else] -> 0x12 (wasmtime: 0x9) — SILENT WRONG ANSWER
  FAIL main/arm-reloc iloop(0, 2)[else] -> 0x12 (wasmtime: 0x9) — SILENT WRONG ANSWER
  FAIL main/arm-self isets(0,)[else] -> 0x12 (wasmtime: 0xe) — SILENT WRONG ANSWER
  FAIL main/arm-self iloop(0, 2)[else] -> 0x12 (wasmtime: 0x9) — SILENT WRONG ANSWER
  FAIL i64/arm-reloc i64p(0,)[else] -> 0x12 (wasmtime: 0x9) — SILENT WRONG ANSWER
  FAIL i64/arm-self i64p(0,)[else] -> 0x12 (wasmtime: 0x9) — SILENT WRONG ANSWER
refusals: 1
silent-wrong vectors: 14 (of 14 pinned); fixture match vectors: 60
live vectors: 135 matched, 14 diverged (of 149)
RESULT: FAIL (14)
ORACLE-EVIDENCE ... mode=emulations floor=223 measured=223 emulations=223 wasmtime_calls=223 compiles=10 exit=1

Green on the fix: live vectors: 149 matched, 0 diverged (of 149), silent-wrong vectors: 14 (of 14 pinned) (main's bytes still return the recorded wrong values every run — the permanent proof the harness can see the defect), refusals: 1 (RV32's #312 i64-param decline, pinned as a decline), RESULT: PASS.

Wired as ci.yml job join-alias-1189-oracle with in-script floors + greps (refusals == 1, silent-wrong == 14, live == 149). Emulation floor re-derived by oracle_wiring_check.py (+223), ci.yml and claims.yaml in lockstep.

3. The fix, and proof of the new bytes

select_with_stack, at Else: a then-arm result that is a register-homed local's home (either half of an i64 pair), whose local is still read past the if's End (param_last_read, already loop-back-edge-extended by #663), is copied into a fresh temp on the then path immediately before the B end_label, so the join register is never a live local's home. A dead home keeps yesterday's bytes. Under exhaustion spilling a displaced copy declines honestly. No wildcard arm (the If→End pre-pass uses matches!; code-region wildcard count 55 → 55).

New ir0:

   2: cmp  r0, #0
   4: beq  a
   6: mov  r1, r0        ; then path: copy the home into the join temp
   8: b    10
   a: movw r2, #9
   e: mov  r1, r2        ; else path: reconcile into the temp, not r0
  10: adds r3, r1, r0    ; local.get 0 reads r0

Byte-identity, base vs fix, both ARM paths, two populations:

population path identical differing newly declined newly accepted
scripts/repro/*.wat (180) arm-reloc 117 2 (the new #1189 fixtures only) 0 0
arm-self 151 2 (same) 0 0
spec testsuite (257, pinned submodule) + tests/wast + tests/wat + fixtures + repro (467), per function under --allow-skipped-exports arm-reloc 248 2 (same) 0 0
arm-self 276 2 (same) 0 0

The only differing functions are the 10 i32 shapes measured WRONG on main (+2 B each: one 16-bit mov) and the i64 pair (+4 B); every clean fixture function (iloc/ielse/idead/itee/bbrif/bfall/lres) and the call module are bit-identical. The moved bytes are justified by execution: the oracle's 149/149 live vectors and the 18-shape probe on all four legs.

4. Allocator cost

Zero on every pre-existing module: no function grew, no spill or decline appeared, on either ARM path, across 467 modules. The temp is allocated only in the shape that was miscompiled and only while the home is live past the join. selector_lines_code ceiling moved by waiver (19227 → 19355) — the class had no handling to delete.

Not verified, stated: the 805-module real-world census corpus (#1017) is not on the lane machine, so "zero cost" is measured on the 467 local modules.

Gates on the lane tree

cargo test --workspace, clippy -D warnings, fmt, claim_check.py claims.yaml (62/62), oracle_wiring_check.py --exact-emulation-floor (re-derived), status_evidence_check.py (0 failures, live floor restated 0 times). rivet validate reports the same 40 pre-existing cross-repo traces-to errors with and without the new artifact.

Surprising

  • The self-contained path is affected only where the optimized selector declines — and its fallback reasons are ordinary (local.set inside an arm, i64 param, local.set of a param in a loop), so real self-contained modules reach the direct selector's join more often than "relocatable-only" suggests.
  • Promotion's depth-0 rule is what keeps non-param locals out of the class on both ARM and RV32 — a structural guarantee, pinned as MATCH rather than assumed.
  • RV32 has the same mv rd_then, rd_else join design and is clean only because its local.get copies params; a future "alias params on the vstack" byte win there would re-create this bug. The oracle's RV32 legs would catch it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L

avrabe and others added 3 commits September 7, 2026 16:35
…(14 silent-wrong), live four-leg half fails 14/149 on main

The oracle for the if/else join-register / local-home alias, landed
BEFORE the fix so its red transcript is on record:

  live half on main (f478060), ARM relocatable:
    ir0(0) -> 0x12 (wasmtime 0x9), ir1(0,3) -> 0x12 (0xc), ir2/ir3 likewise,
    iboth(0,3) -> 0x9 (0x6), isets(0) -> 0x12 (0xe), inest(0,0)/(1,0) ->
    0x12/0xe (0x9/0x8), bif(0) -> 0x12 (0x9), iloop(0,2) -> 0x12 (0x9),
    i64p(0) -> 0x12 (0x9); ARM self-contained: isets, iloop, i64p (the
    shapes the optimized path declines and hands to the direct selector).
  RV32 and AArch64: 0 diverged. RESULT: FAIL (14).

MEASURED BLAST RADIUS (one case table, 18 shapes x 4 legs): the class is
one site — the then-arm result of a value-carrying if/else being a LIVE
register-homed local on the ARM direct selector. Non-param locals (never
promoted at depth > 0), else-only home reads, dead-after-join, local.tee,
the #509 block join, loop results, call-containing functions (params
frame-backed), all of RV32 (local.get copies) and AArch64 (dedicated
reconciliation slot) are clean and pinned MATCH so the boundary cannot
move silently.

The committed fixture holds main's own objects for the two ARM legs; the
14 wrong vectors must return EXACTLY the recorded values every run — the
permanent proof this harness can see the defect.

Wired in ci.yml (join-alias-1189-oracle) with in-script floors + greps
(refusals == 1, silent-wrong == 14, live == 149). Emulation floor
RE-DERIVED by oracle_wiring_check.py: 324847 -> 325070, ci.yml and
claims.yaml in lockstep.

Refs #1189

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L
…hen path — the ARM direct selector no longer writes the local

MECHANISM. `local.get` of a register-homed local pushes the home register
itself (uncopied). When that is the then-arm's result of an
`if (result …) … else …`, the #313 join `mov R_then, R_else` on the else
path WROTE the local: ir0(0) returned 18 for wasmtime's 9 (`mov r0, r1`
then `adds r2, r0, r0`), exit 0, no decline.

FIX (one site, select_with_stack at `Else`): a then-arm result that is a
register-homed local's home (either half of an i64 pair), whose local is
still read past the if's End (`param_last_read`, #663-extended over loop
back-edges), is copied into a fresh temp on the THEN path immediately
before the `B end_label` — so the join register is never a live local's
home. A dead home keeps yesterday's bytes. Under exhaustion spilling a
displaced copy declines honestly. No wildcard arm added (If->End pre-pass
uses `matches!`; code-region wildcard count 55 -> 55).

EVIDENCE.
  oracle (join_alias_1189_differential.py): main 135/149 -> fix 149/149
    live vectors match wasmtime; the 14 pinned silent-wrong vectors from
    main's own bytes still reproduce every run; refusals 1 (RV32 #312).
  unit: if_result_join_never_targets_a_live_local_home_1189 — live home:
    one then-path copy, else path reconciles into it, nothing before the
    join writes R0; dead home: no copy.
  byte-identity base vs fix, both ARM paths: scripts/repro/*.wat (180)
    identical except the two NEW #1189 fixture modules; 467 modules (the
    pinned 257-file spec testsuite + tests/wast + tests/wat + fixtures +
    repro, per function under --allow-skipped-exports) likewise: 0 newly
    declined, 0 newly accepted, no pre-existing function grew.
  allocator cost: zero on every pre-existing module.

LEDGER. selector_lines_code 19227 -> 19355 by waiver (the class had no
handling to delete); tracked totals 30001 -> 30088 / 90 -> 91 (test
region). Artifact RQ-64-JOINALIAS (implemented) records the measured blast
radius and cites the floor derivation, not the number.

Refs #1189

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L
@avrabe
avrabe force-pushed the fix/join-alias-1189 branch from 0855f82 to 1e58471 Compare September 7, 2026 14:35
@codecov

codecov Bot commented Sep 7, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 86.71329% with 19 lines in your changes missing coverage. Please review.

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

📢 Thoughts on this report? Let us know!

@avrabe
avrabe merged commit e96d23f into main Sep 7, 2026
67 checks passed
@avrabe
avrabe deleted the fix/join-alias-1189 branch September 7, 2026 14:59
avrabe added a commit that referenced this pull request Sep 7, 2026
…93 — one then-result alias-copy mechanism, counters re-derived

Both lanes independently built the then-result alias copy at the if
join, with different scope: #1190 for EVERY if (liveness-gated on
`param_last_read` past the if's End, at `Else`), this branch for
parameter-taking ifs only (`canonicalize_then_results`). Resolved ON
main's mechanism, not beside it: main's inline `Else` block is lifted
verbatim into `copy_live_home_then_results` (returns the emitted count so
the control-flow accounting is identical) and called at both joins —
`Else` (every if) and the RQ-64 implicit-else join at `End` (else-less
parameter-taking if, `end_idx = idx`). This branch's helper and its unit
test are deleted. The If-arm keeps the checkpoint below the params plus
main's `if_start_idx.push`; the End arm keeps both pops.

#1189 NOT regressed, measured on the merged binary:
join_alias_1189_differential.py -> refusals: 1; silent-wrong vectors: 14
(of 14 pinned); fixture match vectors: 60; live vectors: 149 matched,
0 diverged (of 149); RESULT: PASS. The oracle was not touched.

Counters RE-DERIVED on the merged tree (never a side taken):
  exact emulation floor: oracle_wiring_check.py -> 325121 (ci.yml +
    claims.yaml in lockstep; neither 324898 nor 325070 — both comment
    blocks kept, plus a merge note).
  selector_lines_code: 19740 — BOTH lanes' waivers kept (19233/19530/
    19663 here, 19355 for #1189) plus a third at the merged value
    explaining it is two landed growths minus the deleted duplicate
    (below their deltas summed); wildcard code arms unchanged.
  selector_lines_total: 30565. claim_check 62/62; status_evidence_check
    0 failures, floor-prose 0; status.json REGENERATED, not hand-merged.

Also on the merged binary: #1097 oracle PASS (refusals 3, lowered 3 /
51 vectors); #973 ARM corpus sweep PASS (183 fixtures incl. #1189's,
167 compiled, 16 declined, 2936 vectors, 0 mismatches). Byte-identity,
main e96d23f vs this tree, scripts/repro/*.wat x 3 legs, whole-object:
364 identical / 0 differing / 0 newly-declined / 6 newly-accepted (the
six param-taking modules, arm-reloc only) — every parameter-free module,
#1190's fixtures included, carries main's bytes unchanged. Three-crate
tests + fmt + clippy green.

Refs #1093, #1097, #1189

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L
avrabe added a commit that referenced this pull request Sep 9, 2026
…me-register consumer on four legs; fix aarch64 rotl (#1221) and i64-param local.set (#1222) red-first; pin #1223 open

THE QUESTION. `local.get` of a register-homed local pushes THE HOME
REGISTER uncopied onto the operand stack; #677, #989 and #1189 were three
consumers that wrote it, each found as a silent wrong answer and fixed at
its own site. How many others exist, across arm-reloc, arm-self, RV32 and
AArch64? Answered mechanically, not by re-reading arms.

STATIC AUDIT (ARM direct selector). `synth_synthesis::home_alias`: an
exhaustive, wildcard-free register-writes table for all 222 ArmOp variants
(`gp_defs`/`vfp_defs`, #946-style source-scan pin) + a loop-back-edge-
extended liveness walk independent of the selector's own `param_last_read`,
hooked at the tail of `select_with_stack` under SYNTH_HOME_ALIAS_AUDIT. A
write to a live local's home that is not the local's own set/tee, and not
proven straight-line into an inline epilogue ON THE STREAM, is a loud
decline naming op, instruction, register and local. Byte-invisible
otherwise. Swept over the pinned spec suite + local corpus on {reloc,
self} x {cortex-m4, cortex-m4f}: 4628 functions, 2372 homes, 227150
attributed instructions, 0 unexplained hits; 16 hits pinned KNOWN-OPEN
against #1226 (home_alias_audit_corpus_1189.py, CI job
home-alias-audit-1189). Potency against the real history: built at the
pre-#1190 commit it flags exactly the 10 functions #1190 recorded wrong
and none of its 7 clean ones.

EXECUTION ORACLE (four legs). home_alias_class_1189_differential.py + 3
generated modules: 117 consumer-family functions re-reading their homes
after every op, expected values from wasmtime, declines pinned EXACTLY per
(module, leg), main's own objects kept as a permanent red half (10 pinned
wrong vectors). Red-first on main af81978: 990 matched / 9 diverged:
  #1221 aarch64 i32/i64.rotl negates the count IN PLACE — the #776 fix's
        "now-dead register" is a param home in a leaf function; every
        result exactly rotl + a - b (7 vectors).
  #1222 direct selector local.set/tee of a register-homed i64 PARAM writes
        only the lo half, at index_to_reg(i) not the AAPCS pair, with the
        #989 snapshot reserving only val_lo; every leaf function assigning
        an i64 param (spec suite: fac-opt, loop `while`, type-param-i64,
        the 64-bit bulk-memory checkRanges) was silently wrong.
  #1223 optimized path folds (x - x) + x to 0 — an IR defect, NOT this
        class; filed, pinned KNOWN_OPEN (the recorded wrong value must
        persist until the fix flips the pin).
  #1226 surfaced BY the #1222 fix in the audit sweep: the multi-module
        .wast merge hands a later module's function the representative
        module's param-width table (#1168 re-threads arg counts, not
        width masks), so an i64 param is homed as i32 and its pair
        overlaps the next param. A CLI-merge defect, NOT this class;
        filed, 4 spec-suite functions x 4 legs pinned exactly until fixed.
Green on the fixes: 999 matched / 0 diverged, 10/10 pinned wrong vectors
still reproduce from main's bytes, 1629 emulations. CI job
home-alias-class-1189-oracle; emulation floor 325121 -> 326750 (re-derived
by oracle_wiring_check.py; ci.yml and claims.yaml in lockstep).

FIXES, one site each. aarch64 rotl: a param count is negated into a
scratch chosen with n, k and dst held live; a temp count keeps the #776
bytes. ARM direct: `write_i64_param_home` moves both halves at the
`local_to_reg` home, ordered for partial overlap, both halves of val
reserved for the alias snapshot. Byte-identity pre vs post over 1419
compiles / 10725 functions (arm-reloc, arm-self, aarch64): 58 functions
changed, every one an aarch64 rotl function or an ARM i64-param set/tee;
0 newly declined / accepted, no skip-set moved.

STRUCTURAL PINS for the clean legs, as tests: RV32 params COPY on
local.get (the accident of implementation the artifact names) and a
promoted s8 is written only by its own set + the epilogue; AArch64 TEMPS
disjoint from x0..x7, 21 families never write a param home; the optimized
path's local vregs are never freed (18 families walked with gp_defs).

LEDGER. selector_lines_code 19740 -> 19917 by waiver (the class had no
handling to delete); tracked totals 30565 -> 30857, 91 -> 93 (two
`_ => None` in the new test). RQ-65-ALIASCLASS implemented; enumeration in
docs/analysis/HOME_REGISTER_ALIAS_CLASS_1189.md; CHANGELOG [Unreleased].

Refs #1189, #1221, #1222, #1223, #1226

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L
avrabe added a commit that referenced this pull request Sep 9, 2026
…me-register consumer on four legs; fix aarch64 rotl (#1221) and i64-param local.set (#1222) red-first; pin #1223 open

THE QUESTION. `local.get` of a register-homed local pushes THE HOME
REGISTER uncopied onto the operand stack; #677, #989 and #1189 were three
consumers that wrote it, each found as a silent wrong answer and fixed at
its own site. How many others exist, across arm-reloc, arm-self, RV32 and
AArch64? Answered mechanically, not by re-reading arms.

STATIC AUDIT (ARM direct selector). `synth_synthesis::home_alias`: an
exhaustive, wildcard-free register-writes table for all 222 ArmOp variants
(`gp_defs`/`vfp_defs`, #946-style source-scan pin) + a loop-back-edge-
extended liveness walk independent of the selector's own `param_last_read`,
hooked at the tail of `select_with_stack` under SYNTH_HOME_ALIAS_AUDIT. A
write to a live local's home that is not the local's own set/tee, and not
proven straight-line into an inline epilogue ON THE STREAM, is a loud
decline naming op, instruction, register and local. Byte-invisible
otherwise. Swept over the pinned spec suite + local corpus on {reloc,
self} x {cortex-m4, cortex-m4f}: 4628 functions, 2372 homes, 227150
attributed instructions, 0 unexplained hits; 16 hits pinned KNOWN-OPEN
against #1226 (home_alias_audit_corpus_1189.py, CI job
home-alias-audit-1189). Potency against the real history: built at the
pre-#1190 commit it flags exactly the 10 functions #1190 recorded wrong
and none of its 7 clean ones.

EXECUTION ORACLE (four legs). home_alias_class_1189_differential.py + 3
generated modules: 117 consumer-family functions re-reading their homes
after every op, expected values from wasmtime, declines pinned EXACTLY per
(module, leg), main's own objects kept as a permanent red half (10 pinned
wrong vectors). Red-first on main af81978: 990 matched / 9 diverged:
  #1221 aarch64 i32/i64.rotl negates the count IN PLACE — the #776 fix's
        "now-dead register" is a param home in a leaf function; every
        result exactly rotl + a - b (7 vectors).
  #1222 direct selector local.set/tee of a register-homed i64 PARAM writes
        only the lo half, at index_to_reg(i) not the AAPCS pair, with the
        #989 snapshot reserving only val_lo; every leaf function assigning
        an i64 param (spec suite: fac-opt, loop `while`, type-param-i64,
        the 64-bit bulk-memory checkRanges) was silently wrong.
  #1223 optimized path folds (x - x) + x to 0 — an IR defect, NOT this
        class; filed, pinned KNOWN_OPEN (the recorded wrong value must
        persist until the fix flips the pin).
  #1226 surfaced BY the #1222 fix in the audit sweep: the multi-module
        .wast merge hands a later module's function the representative
        module's param-width table (#1168 re-threads arg counts, not
        width masks), so an i64 param is homed as i32 and its pair
        overlaps the next param. A CLI-merge defect, NOT this class;
        filed, 4 spec-suite functions x 4 legs pinned exactly until fixed.
Green on the fixes: 999 matched / 0 diverged, 10/10 pinned wrong vectors
still reproduce from main's bytes, 1629 emulations. CI job
home-alias-class-1189-oracle; emulation floor 325121 -> 326750 (re-derived
by oracle_wiring_check.py; ci.yml and claims.yaml in lockstep).

FIXES, one site each. aarch64 rotl: a param count is negated into a
scratch chosen with n, k and dst held live; a temp count keeps the #776
bytes. ARM direct: `write_i64_param_home` moves both halves at the
`local_to_reg` home, ordered for partial overlap, both halves of val
reserved for the alias snapshot. Byte-identity pre vs post over 1419
compiles / 10725 functions (arm-reloc, arm-self, aarch64): 58 functions
changed, every one an aarch64 rotl function or an ARM i64-param set/tee;
0 newly declined / accepted, no skip-set moved.

STRUCTURAL PINS for the clean legs, as tests: RV32 params COPY on
local.get (the accident of implementation the artifact names) and a
promoted s8 is written only by its own set + the epilogue; AArch64 TEMPS
disjoint from x0..x7, 21 families never write a param home; the optimized
path's local vregs are never freed (18 families walked with gp_defs).

LEDGER. selector_lines_code 19740 -> 19917 by waiver (the class had no
handling to delete); tracked totals 30565 -> 30857, 91 -> 93 (two
`_ => None` in the new test). RQ-65-ALIASCLASS implemented; enumeration in
docs/analysis/HOME_REGISTER_ALIAS_CLASS_1189.md; CHANGELOG [Unreleased].

Refs #1189, #1221, #1222, #1223, #1226

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L
avrabe added a commit that referenced this pull request Sep 9, 2026
…me-register consumer on four legs; fix aarch64 rotl (#1221) and i64-param local.set (#1222) red-first; pin #1223 open

THE QUESTION. `local.get` of a register-homed local pushes THE HOME
REGISTER uncopied onto the operand stack; #677, #989 and #1189 were three
consumers that wrote it, each found as a silent wrong answer and fixed at
its own site. How many others exist, across arm-reloc, arm-self, RV32 and
AArch64? Answered mechanically, not by re-reading arms.

STATIC AUDIT (ARM direct selector). `synth_synthesis::home_alias`: an
exhaustive, wildcard-free register-writes table for all 222 ArmOp variants
(`gp_defs`/`vfp_defs`, #946-style source-scan pin) + a loop-back-edge-
extended liveness walk independent of the selector's own `param_last_read`,
hooked at the tail of `select_with_stack` under SYNTH_HOME_ALIAS_AUDIT. A
write to a live local's home that is not the local's own set/tee, and not
proven straight-line into an inline epilogue ON THE STREAM, is a loud
decline naming op, instruction, register and local. Byte-invisible
otherwise. Swept over the pinned spec suite + local corpus on {reloc,
self} x {cortex-m4, cortex-m4f}: 4628 functions, 2372 homes, 227150
attributed instructions, 0 unexplained hits; 16 hits pinned KNOWN-OPEN
against #1226 (home_alias_audit_corpus_1189.py, CI job
home-alias-audit-1189). Potency against the real history: built at the
pre-#1190 commit it flags exactly the 10 functions #1190 recorded wrong
and none of its 7 clean ones.

EXECUTION ORACLE (four legs). home_alias_class_1189_differential.py + 3
generated modules: 117 consumer-family functions re-reading their homes
after every op, expected values from wasmtime, declines pinned EXACTLY per
(module, leg), main's own objects kept as a permanent red half (10 pinned
wrong vectors). Red-first on main af81978: 990 matched / 9 diverged:
  #1221 aarch64 i32/i64.rotl negates the count IN PLACE — the #776 fix's
        "now-dead register" is a param home in a leaf function; every
        result exactly rotl + a - b (7 vectors).
  #1222 direct selector local.set/tee of a register-homed i64 PARAM writes
        only the lo half, at index_to_reg(i) not the AAPCS pair, with the
        #989 snapshot reserving only val_lo; every leaf function assigning
        an i64 param (spec suite: fac-opt, loop `while`, type-param-i64,
        the 64-bit bulk-memory checkRanges) was silently wrong.
  #1223 optimized path folds (x - x) + x to 0 — an IR defect, NOT this
        class; filed, pinned KNOWN_OPEN (the recorded wrong value must
        persist until the fix flips the pin).
  #1226 surfaced BY the #1222 fix in the audit sweep: the multi-module
        .wast merge hands a later module's function the representative
        module's param-width table (#1168 re-threads arg counts, not
        width masks), so an i64 param is homed as i32 and its pair
        overlaps the next param. A CLI-merge defect, NOT this class;
        filed, 4 spec-suite functions x 4 legs pinned exactly until fixed.
Green on the fixes: 999 matched / 0 diverged, 10/10 pinned wrong vectors
still reproduce from main's bytes, 1629 emulations. CI job
home-alias-class-1189-oracle; emulation floor 325121 -> 326750 (re-derived
by oracle_wiring_check.py; ci.yml and claims.yaml in lockstep).

FIXES, one site each. aarch64 rotl: a param count is negated into a
scratch chosen with n, k and dst held live; a temp count keeps the #776
bytes. ARM direct: `write_i64_param_home` moves both halves at the
`local_to_reg` home, ordered for partial overlap, both halves of val
reserved for the alias snapshot. Byte-identity pre vs post over 1419
compiles / 10725 functions (arm-reloc, arm-self, aarch64): 58 functions
changed, every one an aarch64 rotl function or an ARM i64-param set/tee;
0 newly declined / accepted, no skip-set moved.

STRUCTURAL PINS for the clean legs, as tests: RV32 params COPY on
local.get (the accident of implementation the artifact names) and a
promoted s8 is written only by its own set + the epilogue; AArch64 TEMPS
disjoint from x0..x7, 21 families never write a param home; the optimized
path's local vregs are never freed (18 families walked with gp_defs).

LEDGER. selector_lines_code 19740 -> 19917 by waiver (the class had no
handling to delete); tracked totals 30565 -> 30857, 91 -> 93 (two
`_ => None` in the new test). RQ-65-ALIASCLASS implemented; enumeration in
docs/analysis/HOME_REGISTER_ALIAS_CLASS_1189.md; CHANGELOG [Unreleased].

Refs #1189, #1221, #1222, #1223, #1226

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L
avrabe added a commit that referenced this pull request Sep 9, 2026
…me-register consumer on four legs; fix aarch64 rotl (#1221) and i64-param local.set (#1222) red-first; pin #1223/#1226 open (#1227)

* fix(selector): RQ-65-ALIASCLASS (#1189) — enumerate every uncopied home-register consumer on four legs; fix aarch64 rotl (#1221) and i64-param local.set (#1222) red-first; pin #1223 open

THE QUESTION. `local.get` of a register-homed local pushes THE HOME
REGISTER uncopied onto the operand stack; #677, #989 and #1189 were three
consumers that wrote it, each found as a silent wrong answer and fixed at
its own site. How many others exist, across arm-reloc, arm-self, RV32 and
AArch64? Answered mechanically, not by re-reading arms.

STATIC AUDIT (ARM direct selector). `synth_synthesis::home_alias`: an
exhaustive, wildcard-free register-writes table for all 222 ArmOp variants
(`gp_defs`/`vfp_defs`, #946-style source-scan pin) + a loop-back-edge-
extended liveness walk independent of the selector's own `param_last_read`,
hooked at the tail of `select_with_stack` under SYNTH_HOME_ALIAS_AUDIT. A
write to a live local's home that is not the local's own set/tee, and not
proven straight-line into an inline epilogue ON THE STREAM, is a loud
decline naming op, instruction, register and local. Byte-invisible
otherwise. Swept over the pinned spec suite + local corpus on {reloc,
self} x {cortex-m4, cortex-m4f}: 4628 functions, 2372 homes, 227150
attributed instructions, 0 unexplained hits; 16 hits pinned KNOWN-OPEN
against #1226 (home_alias_audit_corpus_1189.py, CI job
home-alias-audit-1189). Potency against the real history: built at the
pre-#1190 commit it flags exactly the 10 functions #1190 recorded wrong
and none of its 7 clean ones.

EXECUTION ORACLE (four legs). home_alias_class_1189_differential.py + 3
generated modules: 117 consumer-family functions re-reading their homes
after every op, expected values from wasmtime, declines pinned EXACTLY per
(module, leg), main's own objects kept as a permanent red half (10 pinned
wrong vectors). Red-first on main af81978: 990 matched / 9 diverged:
  #1221 aarch64 i32/i64.rotl negates the count IN PLACE — the #776 fix's
        "now-dead register" is a param home in a leaf function; every
        result exactly rotl + a - b (7 vectors).
  #1222 direct selector local.set/tee of a register-homed i64 PARAM writes
        only the lo half, at index_to_reg(i) not the AAPCS pair, with the
        #989 snapshot reserving only val_lo; every leaf function assigning
        an i64 param (spec suite: fac-opt, loop `while`, type-param-i64,
        the 64-bit bulk-memory checkRanges) was silently wrong.
  #1223 optimized path folds (x - x) + x to 0 — an IR defect, NOT this
        class; filed, pinned KNOWN_OPEN (the recorded wrong value must
        persist until the fix flips the pin).
  #1226 surfaced BY the #1222 fix in the audit sweep: the multi-module
        .wast merge hands a later module's function the representative
        module's param-width table (#1168 re-threads arg counts, not
        width masks), so an i64 param is homed as i32 and its pair
        overlaps the next param. A CLI-merge defect, NOT this class;
        filed, 4 spec-suite functions x 4 legs pinned exactly until fixed.
Green on the fixes: 999 matched / 0 diverged, 10/10 pinned wrong vectors
still reproduce from main's bytes, 1629 emulations. CI job
home-alias-class-1189-oracle; emulation floor 325121 -> 326750 (re-derived
by oracle_wiring_check.py; ci.yml and claims.yaml in lockstep).

FIXES, one site each. aarch64 rotl: a param count is negated into a
scratch chosen with n, k and dst held live; a temp count keeps the #776
bytes. ARM direct: `write_i64_param_home` moves both halves at the
`local_to_reg` home, ordered for partial overlap, both halves of val
reserved for the alias snapshot. Byte-identity pre vs post over 1419
compiles / 10725 functions (arm-reloc, arm-self, aarch64): 58 functions
changed, every one an aarch64 rotl function or an ARM i64-param set/tee;
0 newly declined / accepted, no skip-set moved.

STRUCTURAL PINS for the clean legs, as tests: RV32 params COPY on
local.get (the accident of implementation the artifact names) and a
promoted s8 is written only by its own set + the epilogue; AArch64 TEMPS
disjoint from x0..x7, 21 families never write a param home; the optimized
path's local vregs are never freed (18 families walked with gp_defs).

LEDGER. selector_lines_code 19740 -> 19917 by waiver (the class had no
handling to delete); tracked totals 30565 -> 30857, 91 -> 93 (two
`_ => None` in the new test). RQ-65-ALIASCLASS implemented; enumeration in
docs/analysis/HOME_REGISTER_ALIAS_CLASS_1189.md; CHANGELOG [Unreleased].

Refs #1189, #1221, #1222, #1223, #1226

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

* fix(selector): RQ-65-ALIASCLASS (#1222) — gate the i64 pair-write on the DECLARED width; the fuzz harness was right and the fix over-applied

Salvaged and completed by the coordinator after the lane hit a session rate
limit mid-diagnosis. Three CI reds on #1227, all found only after the rebase.

RED 3 — the substantive one, and the fuzz target was CORRECT.

`i64_lowering_doesnt_clobber_params` asserted that nothing may write R1 while
`LocalGet(1)` still reads it, and caught:

  Mov { rd: R0, op2: Reg(R4) }, Mov { rd: R1, op2: Reg(R5) }

The convenient reading was that the harness encoded the pre-#1222 register
model and should move with the fix. It did not. `i64_locals` carries
body-INFERRED widths (`infer_i64_locals`), not only declared ones — so a param
the signature calls i32, or whose width nobody declared (a direct
`select_with_stack` caller, #1226's stale multi-module width table, invalid
wasm), is homed NARROW by `aapcs_param_layout` and its "hi half" IS the next
param's home. The #1222 pair-write fired there and genuinely clobbered local 1.

So the fix was over-applied, not the harness stale. `declared_wide_params`
now gates the pair arm on the declared width AND the layout having homed it
as a pair; anything else keeps the single-move arm — yesterday's bytes.

Regression test covers both configurations, which is the discrimination that
was missing: undeclared widths write R0 only with nothing touching R1 before
`local.get 1`; declared `(i64 i32)` writes the pair R0:R1 with local 1 in R2.

RED 1 — the audit oracle ran VACUOUSLY in CI. `ROOT` was
`Path(__file__).parent.parent`, which from `scripts/repro/` resolves to
`scripts/`, so it looked for the suite at `scripts/tests/spec-testsuite`,
found nothing and exited 1 having audited 0 functions. Now
`.parent.parent.parent`, matching the working sibling
`selector_parity_197_differential.py` in the same directory. Its FATAL message
also stops guessing ("submodule not checked out?" — it was) and prints the
path it actually looked at plus whether that path exists.

RED 2 — `arm_corpus_sweep_973.py` auto-sweeps every `scripts/repro/*.wat`, so
the new i64 fixture joined the corpus and legitimately declines its 10 `c_*`
exports (i64 compare feeding `i64.extend_i32_u`, #952). Registered in
EXPECTED_DECLINES with that reason; the other 38 exports compile and execute
equal to wasmtime.

Verified: fmt, clippy -D warnings clean, synth-synthesis 760 + suites 0
failed, exact-emulation-floor re-derived 346751 on the rebased tree,
status_evidence and claim_check green.

Refs #1189, #1221, #1222, #1226

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

* fix(gate): RQ-65-ALIASCLASS (#1222) — move the selector ratchet and regenerate status.json for the declared-width guard

The previous commit changed select_with_stack.rs without moving the pins, and
I pushed it because my `&&` chain guarded the `echo`, not the `git push` —
the exact "captured the exit code, didn't gate" trap the standing rules name.
The gate said FAIL and the push ran anyway as a separate statement. This
commit is chained through to the push so it cannot repeat.

Two real failures behind that FAIL, both re-derived, never hand-computed:

  selector_lines_code   19917 -> 19945  ceiling, must FALL -> waived
  selector_lines_total  30857 -> 30943  tracked, no direction -> value only
  artifacts/status.json                 stale -> regenerated with --emit-status

The waiver is bound to 19945, so a further regression needs its own waiver.
Its reason records that this +28 is a CORRECTION to the same artifact's own
+177, not new capability: the #1222 pair-write was gated on `i64_locals`,
which carries body-inferred widths, so it fired on params homed narrow and
clobbered the next param's home. Narrowing the arm cannot be done by
deleting — the correct behaviour needs the declared-width test the original
arm lacked.

Refs #1189, #1222

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

* fix(oracle): RQ-65-ALIASCLASS (#1189) — re-pin the home-register audit to the REAL corpus; the 12 first-full-corpus hits were the walk, fixed in the walk

The corpus sweep's first run WITH the suite submodule and the corrected
ROOT (previous lane: suite-only, 4628 functions) read 8317 functions /
8776 homes and `hits: 12 (unexplained: 12)` plus 16 pinned #1226 hits that
did not occur — RESULT: FAIL (3). Classified one by one, nothing silenced:

SHAPE A (8) — AUDIT FALSE POSITIVE, walk fixed. `Pop { regs: [R4..R8, PC] }`
at a mid-function `Return` (cabi_arena_{bind,realloc}.wat func_0, m4/m4f
self) and at a function-level `BrIf(0)` (home_alias_class_1189_promo.wat
p_brif, 4 legs), "writes R4 = home of local N, read again at op M". The
inline epilogue restores a promoted local's r4 and RETURNS in the same
instruction, so op M is unreachable from it. `write_is_terminal` scanned
only PAST the writer (next instruction = another op's, or the br_if's own
skip label) and never asked whether the writer IS the terminator. It does
now; `Pop` has no conditional form in `ArmOp` and both encoders emit it
unconditionally. The existing terminal test planted the home at R0, never
at the register the pop restores — that is why the unit test did not see
it; the new test plants R4.

SHAPE B (4) — LEGITIMATE-BUT-SAFE, proven on the stream instead of pinned.
`F32Load { sd: S0, addr: [SP, #24|#28] }` at op `Call(11)` (f32_ops_719.wat
xhome/xcall2, m4f-reloc/-self): `vstr s0, [sp, #0x18] … bl … vldr s0, [sp,
#0x18]` — the caller-save RESTORE of the f32 home from the slot the same op
saved it to. The audit had not stated the AAPCS VFP caller-saved clobber
(s0–s15) on calls, so the `bl` that makes the restore necessary was
INVISIBLE and its restore surfaced as the write; a MISSING restore was
invisible too. `vfp_defs` now lists s0–s15 on Bl/Blx/Call/CallIndirect
(re-swept with it stated: 0 new hits — every VFP home live across a call
on this corpus is saved and restored), and `write_is_bracketed_by_save_
restore` discharges the round trip only when save and restore name the
identical register and static slot, the save precedes every other write of
the home in the op, and nothing between them touches the slot, its base or
control flow. Unit-tested: the exempt shape (incl. an argument marshalled
INTO the home between save and restore) and 9 broken variants — no
restore, other slot, overlapping store, disjoint store (fine), SP move,
stale save, split op, label — as still-flagged. Executed: the CI-wired
f32_ops_719_differential.py runs xhome/xcall2 on m4f under unicorn,
238/238 bit-exact vs wasmtime.

Each exemption's negative-control build reproduces exactly its own shape
and nothing else: pop check off -> the 8 pop hits, 0 other; round trip off
(clobber stated) -> the 4 VFP functions, now reported at the `Bl`, 0 other.
The fixed walk sweeps the IDENTICAL population (1045 pairs / 8317 / 8776 /
261440 attributed) to 0 hits.

SHAPE C — the 16 #1226 pins stopped occurring because `declared_wide_params`
(c14f53a) reads the SAME stale width table #1226 describes, so on
`checkRange` the pair-write no longer fires and nothing lands on `$to`'s
R1. Verified on the bytes: the gate removed the HIT, not the MISCOMPILE —
`checkRange` still compares `$to` at R1:R2 (`cmp r0, r1; it eq; cmpeq r1,
r2`; AAPCS passes it in R2:R3), `local.set $from` is back to the
single-half `mov r0, r5` (the `adc r6` hi half dropped), and the `i64.const
-1` return sets R0 only. #1226 stays OPEN (bytes on the issue); the pins
are removed here because no sweep line can see the defect any more, and
the script says so.

Pins re-derived on the rebased tree with the submodule present (never
carried textually): in-script FLOORS 1045/8317/8776/261440, the `ci-checks:
stdout` header >= 8317, ci.yml greps `functions audited: 8317`, `homes
watched: 8776`, `hits: 0 (known-open: 0 [none], unexplained: 0)`; exact
emulation floor re-derived by oracle_wiring_check.py: 346751, unchanged;
selector ratchets unchanged (home_alias.rs is outside the ceiling;
claim_check --metric 63/63, status.json no drift). Artifact verified-by,
docs/analysis table (the VFP call-clobber row was WRONG: "no home exists
to alias" is true of core registers only), CHANGELOG and the waiver prose
now state what was measured.

Verified: cargo fmt --check, clippy --workspace --all-targets -D warnings,
synth-synthesis 766 + suites 0 failed, CI-form sweep via oracle_run with
the four exact greps ALL MATCH, home_alias_class_1189_differential.py 999
matched / 0 diverged / 1629 emulations PASS, f32_ops_719 238/238,
status_evidence_check green, duplicate-key-strict YAML parse of ci.yml,
the artifact and claims.yaml.

Refs #1189, #1222, #1226, #1227

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

* fix(oracle): RQ-65-ALIASCLASS (#1189) — wire the audit's potency (plant probe, 192 exact) and pin #1226 red-first on its REAL mechanism: the .wast path threads no width tables

Coordinator review of #1227: the sweep's `hits: 0` proved the sweep RAN
(work floors), not that the DETECTOR FIRES — and after the walk was
relaxed to clear 12 false positives that was the property under
suspicion. Two additions, and one correction the second one forced.

POTENCY, wired. `SYNTH_HOME_ALIAS_AUDIT=verbose,plant` makes
`home_alias::plant_probe` plant ONE synthetic write of a watched home at
op 0 of every function that has a home still read later (`mov <home>,
r12` / `F32Const` into the S-slot, on a COPY of the stream; shipped bytes
untouched). The corpus script's self-test phase runs first and requires,
per (fixture, leg), EXACTLY the pinned number of declines carrying the
needle at `op 0` — i32 params r0-r3 58/7/58/7, promoted locals r4-r8
11/9/11/9, VFP homes 0/0/11/11 (soft-float m4 has none) — and 0 declines
without the plant: 192 planted writes reported, through the same decline
/ needle / parse path the sweep relies on. ci.yml greps `POTENCY: PASS
(192 …)` exactly. (I first wrote 172 by hand; the script's derived total
is 192 — the pin is the derived number.) The selector's audit hook
collapsed to one call into `home_alias::selector_hook` (63 -> 12 lines;
`selector_lines_code` 19945 -> 19896, a FALL, waiver bound to the value
as the engine requires; `selector_lines_total` 30943 -> 30894).

#1226, STATED PLAINLY — and corrected. The walk is correct and #1226 was
never a home-register WRITE: it is a mis-HOMING, which this audit cannot
see because it trusts the selector's home table by construction; the 16
hits it carried were the #1222 pair-write (fired by body inference)
landing in the neighbour's wrongly assigned R1, removed by the
declared-width gate changing the EMISSION, not the walk — no coverage of
home writes was lost. Trying to pin it exposed that the issue's mechanism
is wrong: the two-module repro MERGED and the same functions STANDALONE
as `.wast` are equally wrong; the discriminator is the extension. The
synth-cli `.wast` driver path returns `Vec::new()` for EVERY declared-
width table (func/type ret_i64, params_i64/_f32/_f64, the f32/f64 return
masks — each annotated "WAST fixture suite is i32-only"), so on ANY
`.wast`, single-module too, an i64/f32/f64 param or result whose width
body inference cannot recover is homed as i32. Measured: the same module
text as `.wat` gives `second3` homes=4 and `mov r0, r2; mov r1, r3`; as a
`.wast` homes=2 and `mov r0, r1`; `fac-opt` is rescued by inference.
Static upper bound: 1393 exported spec-suite functions in 74 files carry
a wide param or result. Pinned RED-FIRST in the same self-test: one
fixture (`home_alias_width_1226.wast`), its last module derived at run
time as a single `.wast` and as the identical `.wat`; `homes=` must be
`wast < wat` on every leg — (7, 6, 8) relocatable, (4, 4, 8) self-
contained; ci.yml greps `WIDTH-1226: known-open (... on 4 legs)`; a fix
makes them equal and must flip the pin.

CONSEQUENCE for #1222, recorded in CHANGELOG / artifact / docs: the
pair-write is gated on the DECLARED width, so on `.wast` input it never
fires — the spec-suite functions the #1222 entry named as fixed (fac-opt,
loop `while`, type-param-i64, the 64-bit bulk-memory `checkRange`s) are
NOT fixed; they are wrong for #1226's reason until #1226 is fixed. #1222
holds for `.wat`/`.wasm` input (its own fixtures, executed).

Verified: fmt --check, clippy --workspace --all-targets -D warnings,
synth-synthesis 766 + suites 0 failed (16 home_alias unit tests incl.
the probe and S_REGS inverse), CI-form sweep via oracle_run with all SIX
exact greps matching (POTENCY 192, WIDTH-1226 known-open, 8317 / 8776 /
hits 0 / RESULT: PASS), exact emulation floor re-derived 346751
(unchanged: the self-test is stdout-declared), claim_check 63/63 with
status.json regenerated, status_evidence_check green, duplicate-key-
strict YAML on ci.yml / artifact / claims.

Refs #1189, #1222, #1226, #1227

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

* fix(oracle): RQ-65-ALIASCLASS (#1226) — flip the width pin to CLOSED; #1232 landed the fix this pin was waiting for

Rebased onto main after RQ-65-MVPCORE (#1232) merged, which is the fix this
pin's own rule anticipated: "a fix makes (b) == (c), this goes red, and the fix
flips the pin (known-open -> closed) in its own PR."

RE-DERIVED on the merged tree with `--print-self-test`, not asserted. Every leg
(merged-wast, single-wast, same-text-wat):

  before   m4-reloc (7, 6, 8)   m4-self (4, 4, 8)   wast < wat, open
  after    all four legs (0, 8, 8)                  wast == wat, merged refused

Two independent routes, both now clean: the single-module `.wast` path threads
declared widths so `wast == wat`, and the multi-module merge REFUSES an
i64-param module so `merged == 0`. The assertion becomes EQUALITY plus that
refusal, which is strictly stronger than the old inequality — a narrower `wast`
OR the merge silently accepting again now goes red.

POTENCY is untouched: 192 planted writes, 0 without the plant, across 3 fixtures
x 4 legs. Self-test RESULT: PASS on the rebased tree.

Artifact prose corrected where it had become FALSE rather than merely dated:
"#1226 stays OPEN" and "not fixed here" were true when written and are not now.
The spec-suite functions the artifact said were "NOT fixed by #1222 and stay so
until #1226 is fixed" ARE now correct, because #1226 is fixed. What remains of
#1226 is a REACH note, not a correctness one: the merge refuses i64-param
modules it previously accepted and mis-compiled — decline-honesty with the
acceptance cost stated.

Emulation floor re-derived on the rebased tree: 346751, unchanged.

Refs #1189, #1226, #1232

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

* fix(oracle): RQ-65-ALIASCLASS (#1189) — re-derive the audit's corpus floors after #1232; the population fell because modules are now REFUSED

CI on the rebased tree reported the pin flip working — `WIDTH-1226: closed`,
`POTENCY: PASS (192 planted writes, 0 without the plant)`, `hits: 0` — and then
failed on the population floors, correctly:

  VACUOUS — declared floor stdout >= 8317, measured 7191

That is the floor doing its job. The cause is not scan rot: RQ-65-MVPCORE
(#1232) merged first and makes the multi-module `.wast` merge REFUSE modules it
would mis-handle (i64 params, data segments, accessed globals) instead of
silently mis-compiling them. A refused module audits no functions, so this
oracle's corpus shrank with them:

  modules compiled   1045 -> 940     (-105 refused)
  functions audited  8317 -> 7191    (-13.5 %)
  homes watched      8776 -> 8100
  attributed instrs  261440 -> 219807

Re-derived from CI's own run on the merged tree, not computed. The floors move
DOWN exactly once, here, with that reason written beside them in the script, the
artifact and ci.yml; a further fall without a reason is scan rot and stays red.

This is worth stating plainly rather than quietly re-pinning: it is the
ACCEPTANCE COST of decline-honesty, measured. #1232 traded reach for
correctness, and one place the bill lands is that a correctness oracle now
watches 13.5 % fewer functions.

Emulation floor unaffected (this oracle declares `stdout`, not `emulations`) and
re-derived at 346751 on the rebased tree.

Refs #1189, #1226, #1232

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

---------

Co-authored-by: Claude Opus 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