Component: scripts/ — the guest-facing probes (wallpaper, modal-button,
window-drag) and the new scripts/lib/guest-display.sh they share.
`system_profiler SPDisplaysDataType | grep Resolution:` was how three probes
learned the desktop's size. On the macos-12 rail that report names the GPU and
**no display at all** — no `Displays:` section, no `Resolution:` line — so all
three exited 2 before doing anything, and `visual-gate --quick` reported
SETUP-FAILED with 0/3 probes green on a rail whose desktop, Dock and menu bar
were up and rendering. The same call has been observed hanging indefinitely on
macos-11, which an unattended harness cannot tell from a wedged boot.
`guest_display_size` asks with `screencapture` plus `sips` instead. Both ship
with every macOS, neither needs root, and the answer is the stronger form of
the question a two-observation probe is asking: not what the guest's
configuration claims the display is, but how many pixels its compositor just
produced. Verified on the macos-12 rail — 1920x1080, where system_profiler
returned nothing — and the wallpaper probe now reaches its trials there.
Second failure on the same rail, same cause class: `osascript -e 'tell
application "System Events" ...'` over ssh hangs forever when the session has
not been granted Automation access, because the consent prompt is raised on the
guest's own desktop and nobody answers it. Every System Events call in every
probe hung there. `guest_osa` bounds them host-side at 15 s (GUEST_OSA_TIMEOUT),
which is the difference between a probe that reports "this rail cannot be
scripted" and one that stalls a sweep. The bound does not kill the remote
osascript; it only stops us waiting on it.
Tests: no Rust change. `bash -n` clean on all four files. Verified live against
the macos-12 rail: the size read returns 1920x1080 where the old one returned
nothing.
Not verified: the macos-11, 14, 15 and 26 rails, and the arm64 pathway. The
Automation-consent gap on macos-12 is a guest provisioning matter and is not
fixed here — the probes now report it quickly instead of hanging on it.