Two harness defects, both of which make a measurement silently not happen.
qmp.py resolved only the arm64 socket
-------------------------------------
`SOCK` defaulted to `vm/guest/run/qmp.sock`, which is boot-arm64.sh's run
directory. boot-x86.sh publishes the same stable symlink in `vm/disks/run/`, so
on the x86 pathway every unqualified `qmp.py` call died with a bare
`FileNotFoundError` on a path belonging to the other host.
That matters more than a wrong default usually would, because AGENTS.md makes
QMP the *preferred* way to drive a guest — it is the one route that works on all
six rails with no guest tooling, no Apple Events consent and no ssh, and the
rails with open defects are exactly the ones where the guest-side alternatives
do not build. A driver script that reaches for it on x86 got a traceback, and a
harness that ran the probe anyway recorded a boot that was never driven.
Now resolved from the two known run directories, whichever is live. A boot
removes its own symlink on the way out, so at most one exists during a boot and
"whichever is there" is unambiguous; the ordering only makes the both-present
case deterministic, and that case is a stale symlink outliving its boot, where
connecting to a dead socket raises rather than driving the wrong VM. `QMP_SOCK`
still overrides. `sustained-animation-probe.sh` already set `QMP_SOCK`
explicitly and is unaffected.
perf-ab did not pin its QEMU
----------------------------
It rebuilt on every boot, so a `--rounds 3 --arms "a b"` run was six builds off
whatever the Rust tree said at each moment. Nothing forced the arms to be the
same tree, and an edit landing mid-run split the sweep into two arms nobody
declared — invisibly, since the results table has no column that could show it.
The last session's journal recorded the same defect in `sweep-rails.sh` as owed.
Builds once up front and exports `QEMU_BIN` for the whole run. Two constraints
are written into the comment because both have already cost a boot here: the pin
must live in the build tree, because QEMU resolves its BIOS datadir relative to
its own path and a copy in /tmp dies on `kvmvapic.bin` before the guest starts;
and it must cross as an exported variable rather than argv, because any command
line naming `qemu-system-x86_64-...` is matched by the
`pkill -f 'qemu-system-x86_6[4].*reims-vgpu'` the next boot issues, which kills
the runner instead of the previous VM. An explicit `QEMU_BIN` in the environment
still wins, so an existing pin can be handed in.
Verified: `bash -n` on perf-ab.sh; qmp.py parses and resolves to the x86 socket
path on this host. NOT verified: no A/B run has completed on this change yet —
the pin path is exercised by the next perf-ab invocation, not by a test.
Co-Authored-By: Claude <noreply@anthropic.com>