Files
reims-vgpu/scripts
Anees IqbalandClaude 30b035b9ec ✨ The loop around the app sweep, carrying the four rules a hand-run rail sweep has got wrong
Component: `scripts/app-sweep-probe/sweep-rails.sh`. Host-side harness only.

`app-sweep-probe` judges one boot. This is the loop across rails, and
everything it does beyond looping is an AGENTS.md rule that a hand-run sweep has
previously got wrong:

- the panic verdict outranks the probe's, because a guest kernel panic can land
  *after* the probe reports success — so the boot's own stdout is grepped for
  `guest kernel panic` after the probe, and reported per rail beside its exit;
- the wait is on the fail log and not on ssh, because the previous boot's QEMU
  outlives its script long enough to hold localhost:2222, and a new boot that
  loses that race dies on the hostfwd rule while ssh answers at once from the
  *old* VM — which attributes every number to the wrong guest;
- one character of the pkill pattern is bracketed, or the pattern matches the
  shell issuing it;
- every rail is authorized, because only macos-13 carries the ssh key and
  BatchMode turns a password rail into a silent 'not up yet';
- the Dock is waited for, because sshd answers well before the desktop
  composites and a probe started at port-open photographs the progress bar.

Verified: `bash -n`. Not verified: this commit is the runner only; its first
real sweep is the next commit's evidence.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-12 06:30:28 +03:00
..