# =============================================================================
# DISC CENSUS — what each disc declares, and the drive's read cap with it
# =============================================================================
#
#   Run it:   Tools -> Advanced -> Run tests..., then Disc census on the
#             pre-built tab, once for each disc you want counted. Put the next
#             disc in BETWEEN runs, never during one (the owner's rule,
#             2026-11-04).
#   Costs:    about two minutes a disc. NOTHING IS RIPPED.
#
# -----------------------------------------------------------------------------
# WHY THIS EXISTS (round 44, the owner's word of 2026-12-01: test everything open
# that a run can settle)
# -----------------------------------------------------------------------------
# One `cyanrip -I` per disc reads the disc's table and prints what the disc
# carries, and its -j record keeps what the drive declared. It answers, per disc:
#
# * THE DRIVE'S READ CAP (TASKS R255). The cap was 14x in some runs and 40x in
#   others, on one drive. If it follows the disc, a census of several discs in
#   one sitting shows it; `compare-drive-speed` sets each disc beside the last
#   disc probed.
# * THE MCN (R176, R208, docs/eac-parity.md H.4 `CATALOG`): the reference disc
#   has none, so nothing has yet shown one being read.
# * CD-TEXT (R206): the `CD-TEXT:` lines, kept as test data for the fallback.
# * WHAT KIND OF DISC: a CD-R, a pre-emphasised disc, a data track, a disc
#   AccurateRip does not know (R124 part 6, the "awkward cases" sample).
#
# A MEASUREMENT, NOT A VERDICT. Every step records; nothing is graded except the
# comparison's floor (a disc whose cap could not be read is said, not passed).
# Pioneer's settings reply is a read (READ BUFFER; the owner's word of
# 2026-11-05, TASKS R137); nothing is written to the drive and no speed is set.
# -----------------------------------------------------------------------------

log =============================================================
log DISC CENSUS - one disc, about two minutes, nothing ripped
log =============================================================

snapshot atstart

log --- A. identity ---
cyanrip --version
expect-exit 0
expect-cyanrip platterpus-fork

log --- B. the disc and the drive's declarations ---
cyanrip-timeout 600
cyanrip -N -d (device) -I --read-vendor-settings (consumer) (diagnostics)
record-drive-speed census
record-kernel-log census
compare-drive-speed
snapshot census

log =============================================================
log DONE. Send the ONE .tar.gz named on the "SEND THIS ONE FILE"
log line in the app log - it is under
log ~/.local/share/platterpus/bundles/
log Say with it which disc this was. Then put in the next disc
log and run it again.
log =============================================================
