Files
reims-vgpu/scripts
Anees IqbalandClaude Opus 5 08b3c2dbe0 repro: the scoring metric was disabled by an alpha channel, and its self-test could not have four channels
Component: menu-close probe (scripts only). Pathway: x86 macOS / Linux Vulkan,
rail macos-15. No product code and no guest-visible behaviour changes.

RETRACTION FIRST: `smoke-ctl` reported `VERDICT=BLACK_RECTANGLE` on the control
binary with `new_black_frac=0.917071` on all six trials. That verdict is void.
Re-scored with the metric below, all six of its frames score exactly 0, and all
six are photographs of a fully open menu. Nothing about the black-rectangle
defect was measured.

Two independent defects produced it.

1. The score was the mask's own mean, not an intersection. The host captures are
   `srgba` -- four channels -- and `-negate` negates every channel, alpha with
   the rest. The thresholded frame came out fully transparent, so compositing it
   over the mask left the mask untouched and `%[fx:mean]` read back the mask:
   0.917071, the same number for every frame of every trial, and large enough to
   trip the 0.10 threshold. The third constant this probe has reported as a
   measurement.

   The metric now flattens with `-alpha off -colorspace Gray` before thresholding
   and intersects with `-evaluate-sequence min`. Darken *is* min, but as a
   composite it is an alpha-aware blend of a source onto a destination, which is
   not the operation wanted; as a sequence operator it cannot be turned into a
   no-op by an alpha channel arriving from a different capture helper. Both
   changes are needed and each fixes the case alone.

   The self-test could not have caught this: it built its images with `xc:` and
   no alpha, so the one channel that broke the metric was the one channel the
   test did not have. It now builds `PNG32:` four-channel images, and it darkens
   the reference's top half against the frame's left half so the answer is the
   0.25 quadrant while *both* operands measure 0.50. The old half-black case
   expected 0.50, which is also what returning either operand untouched produces
   -- the expected value coincided with the failure. On the new images the old
   pipeline scores 0.75 and this one scores 0.25.

2. The aim's tolerance was a flat 3 and the desktop is noisier than that. The
   open menu measured 193.06 at calibration and 199.697 seconds later with no
   input in between. Every later capture of a static open menu therefore read as
   "neither settled state", the aim declared the animation found at its very
   first offset, and all six trials photographed that static menu.

   Each settled state is now captured twice, 0.5 s apart with no input, and the
   tolerance is 2x the larger drift plus 3. A run whose two states are not
   separated by three times that noise floor ends METRIC_BLIND rather than
   scoring the noise. Against this boot's measured values the drifted open menu
   classifies as not-MID, which is what lets the aim keep scanning to the
   offsets where the grab lands after the dismiss.

Verified: bash -n; both metric transitions demonstrated on four-channel images
(0.75 -> 0.25) and on this boot's real frames (0.917071 -> 0); the tolerance
transition checked against this boot's measured settled means.

Not verified: still no boot has produced a menu-close verdict that means
anything, on either binary. The A/B remains unrun.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-30 23:56:47 +03:00
..
2026-08-30 23:38:42 +03:00
2026-08-30 23:38:42 +03:00
2026-08-30 23:38:42 +03:00