Files
reims-vgpu/scripts
Anees Iqbal 3779bad897 ✨ A rail that stopped at the login window read as a rail with no desktop, and every signal a harness checks said it was healthy
`scripts/app-sweep-probe/wait-for-desktop.sh`, new. Host-side x86 harness.

macos-12 was reported NO-DESKTOP by a four-rail sweep. It had booted. Its serial
log repeats `IOConsoleUsers: ... lin 0, llk 1` and `gIOScreenLockState 3` — the
login window, with nobody logged in — while sshd answered, `guest-authorize.sh`
installed its key and reported Apple Events already consented, and the device
presented a first frame at 1921x1079. Every signal the sweep reads says the guest
is fine, because it is. The rail simply has no autologin, and `pgrep -x Dock`
cannot tell "still booting" from "waiting for a password".

The console user separates them for one ssh round trip: `stat -f%Su /dev/console`
is `root` at the login window and the account name once a session owns the
console. This waits on the Dock as the old inline loops did, and when it finds
the console owned by root it types the password at the login window through QMP,
host-side, because the guest cannot log itself in. Two attempts at most — the
second leads with a Return for the case where the window is showing the user list
rather than a focused password field — and a timeout now names which of the two
states it timed out in, which the inline loop could not.

The password default is the one `vm/guest-authorize.sh` already documents for
these throwaway rails, overridable with `REIMS_GUEST_PASSWORD`.

Verified: `bash -n`. Not verified against a live guest — macos-12 is the rail it
was written for and the machine is running an unrelated bisect. `sweep-rails.sh`
and `hang-bisect.sh` are not yet wired to it; that is deliberate, since editing a
running bash script corrupts it and the bisect is mid-flight. No Rust changed.
2026-08-12 06:57:49 +03:00
..