CRC-16/CCITT-FALSE (poly 0x1021, init 0xFFFF) per entry over the
blob, stored in the LZRS v1 reserved crc16 field and in a new u16
at LZPL entry-header offset 74 (LZPL v4 -> v5, header 78 -> 80
bytes, header_crc32 now covers 76 bytes). Readers verify after
error correction, before decompression; old files without a valid
CRC16 are rejected cleanly with a migration error, never
misdecoded.
New lzply_deep_repair tool: L0 standard decode to t, L1 Chase-1
flips of least-reliable bits, L2 Chase-2 pairs, L3 two-block
combine, all bounded (64 Chase-1 cands, 128 first elements,
256 blob tries, 120 s default budget). CRC16 is the oracle:
every beyond-t candidate is CRC-verified before SHA-256.
Per-level timing reported (time of arrival).
Measured on hot_newyork (tests/run_deep_repair_tests.sh):
t+1 recovered 10/10 (512B, 2KB) at L1 in 0.04-0.17 s; t+2 3/10
at L2 on 512B (4.4 s), 0/5 on 2KB; pinned-poly 600KB 9 errors
in one block 2/2 at L1 (0.13 s), 9+9 in two blocks 2/2 at L3
(16.7 s). False accepts: 1,162 candidates CRC-checked, 1,024
rejected, 0 accepts. bch_test 7975/0, rs_test 6243/0,
crc16_test 530/0, run_rs_tests 61/0, run_tests 149/0 in /tmp
(3 pre-existing mount failures under /opt), hyper 56/0.