Commit Graph

7 Commits

Author SHA1 Message Date
70792ddf1f BC7 rank 152: mode 3 measured by the ANCHOR status rule — pin (3, 21) with the partition still flagged inferred
The ANCHOR status rule rejects every mode-2 reading of every corpus chunk
whose lane-15 signature ranks at 152 (full 64-partition scan over the
retail ttdb_* pools), so its mode is 3, not the ordering's mode-2 guess.
Partition 21 is a colour-coherence top-1 among the status-clean mode-3
readings and stays a guess: 152 remains in BC7_CONFIG_INFERRED, so strict
decoding still refuses chunks that reference it. The override duplicates
rank 119's (3, 21) and drops (2, 38): if 119 is ever confirmed at (3, 21)
by its own signature, this entry or the mode-2 head order is wrong.
Measured effect in a retail story-load run: with a fitted profile, the
last standing dstorage_failure 0x89240030 refusal (a BC6H entry that the
profile gap alone explained) cleared once the sidecar carried corrected
rank configs; BC7 chunks using rank 152 stopped refusing as well.

Tests: the config bijection assertion becomes a structure assertion plus
test_bc7_rank152_override_deviation, pinning the duplicate, the dropped
entry, and that 152 stays inferred. docs/textures.md wording updated.
2026-11-26 23:42:01 -05:00
9c8c486ba5 bcpack: reject non-flush RANS_L stalls and BC6H/BC7 provisional bypasses 2026-11-23 23:02:33 +01:00
7e823eb4d5 tests/test_bcpack: guard _make_hdr >65,792 and test 16-bit fragment-length boundaries (TEST-881) 2026-11-22 23:56:17 +01:00
d944af2d04 bcpack: count a BC6H/BC7 block once against the provisional gate
The provisional gate allows up to _loose_limit(n) undetermined blocks. For BC6H and BC7 it summed,
per unknown history entry, the blocks whose endpoint root used it and the blocks whose index root
used it, so a block with both roots unknown counted twice: refusals read like "8/4 blocks", and
the gate was up to twice as strict as _loose_limit means. BC3 and BC5 already keep one flag per
block.

_unknown_blocks counts the blocks whose endpoint or index root is an unknown entry, once each;
BC6H (eroot/iroot) and BC7 (er/ir) both use it. The per-entry counts in the provisional notes are
unchanged.

Tests: _unknown_blocks on blocks with one, both or no unknown roots, and a 4-block BC7 chunk whose
endpoint and index all reach history entry 255, with the table check reporting it unknown: the
refusal must say 4/4 (main says 8/4).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:29:10 -03:00
5d5885559f Docs: RDS5 chunk tag to BCPack codec table and a strict BC7 fixture (#827)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 01:09:07 -03:00
03d1e118a6 bcpack: add BC6H and BC7 decoders with external runtime history loader (ASSET-5) 2026-11-21 18:27:01 -08:00
80fb7f2e41 Textures: add clean-room BCPack decoder (rANS + BC1/BC3/BC4/BC5) 2026-11-21 14:44:27 -08:00