# --- U2. THE DRIVE'S READ CAP AT THE END, AND WHERE IT CHANGED (TASKS R255) ---
# The same probe as U, after the last rip, then the comparison: every rip's -j
# record this run wrote, in start order, with both probes, and the previous
# run's last probe from the history kept in the app's data folder. It says where
# the cap changed: within the run after a named step (ours, or the drive
# reacting to it), or between runs: across a restart, with another disc, a SATA
# link that stepped down, or with nothing in between that we can see (the drive
# itself, or another program). `record-kernel-log` keeps this boot's kernel
# messages about the drive since the run began (journalctl, read-only; the
# owner's word of 2026-12-02), so a SATA reset between probes shows. This run's probes then go into the history, so
# the next run compares its start with this end.
#
# WHY HERE, AFTER THE LAST RIP AND BEFORE P4: its probe opens the drive, so it
# comes after every rip, and P4's pregap comparison must stay after every step
# that reads the disc.
#
# INFO, BY DECLARATION (docs/testing.md, Acceptance severity, U2), with one
# floor: a run that read the cap fewer than twice compared nothing, and fails.
log --- U2. the drive's read cap at the end, and where it changed ---
run-size full
cyanrip -N -d (device) -I --read-vendor-settings (consumer) (diagnostics)
record-drive-speed end
record-kernel-log fullrun
compare-drive-speed
