Check the second refill byte of a fixed-symbol BCPack lane #69
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!69
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/69/head"
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?
@descent81 on GitHub · 2026-11-21 15:05 UTC · original
descent81:contribution/bcpack-second-refill→main· +36 −4 · 2 files · 2 commits · merged 2026-11-21 15:22 UTCRelated 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.