Check the second refill byte of a fixed-symbol BCPack lane #69
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/69"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by descent81 on 2026-11-21T15:05:33Z.
Related to #15.
What changed
The fixed-symbol BCPack probe already checks the first byte consumed by a lane after the 48-byte header. This change adds an optional
--next-maskargument for the immediately following refill round. For a lane participating in both rounds, the probe reports the second byte’s packet offset and whether its value matches the model’s prediction.Reproducible example
The regression test uses a synthetic 25,000-block input. Lane 4’s six header bytes are
DE 05 03 0C 86 4E, and the model predicts two refill bytes in consumption order:AC, then7D.With first-round mask
0x11, lanes 0 and 4 consume offsets 48 and 49. With second-round mask0x14, lanes 2 and 4 consume offsets 50 and 51. This gives a concrete prediction for lane 4: its second byte should be7Dat offset 51.AC,7DAC,7CChanging only the second byte leaves the first check intact. The test also checks that supplying a second-round mask without its required byte raises
ValueError.Validation and scope
Ran
python -B tests/bcpack_check.py -vwith Python 3.15. All three tests passed.This verifies a fixed-symbol prediction against synthetic data with explicitly supplied participation masks. Inferring the masks, decoding variable symbols, and comparing reconstructed BC7 block rows against an independent reference remain open.