BC7 rank 152: mode 3 measured by the ANCHOR status rule — pin (3, 21), partition still inferred #2434

Open
github-bot wants to merge 1 commit from github-bot/gh-2434 into main AGit
Owner

@⁠z3r0rc on GitHub · 2026-11-27 04:50 UTC · original
z3r0rc:bcpack-bc7-rank152 → main · +83 −23 · 4 files · 1 commits · open

Claimed as BCPACK-BC7-RANK152-MODE3 in #1608.

What. Rank 152 currently carries the ordering's mode-2 guess (2, 38, 0, 0). The
mode is testable against the corpus without confirming the whole table: the ANCHOR
status rule (spec-fixed anchor pixel indices per partition) rejects every mode-2
reading of every retail corpus chunk whose lane-15 signature ranks at 152 — a full
64-partition scan over the ttdb_* pools finds no status-clean mode-2 decode. So 152
is a mode-3 entry; this pins BC7_CONFIG[152] = (3, 21, 0, 0).

  • Mode 3: measured (the ANCHOR-status scan; exact both ways — every confirmed
    mode-3 rank admits no clean mode-2 reading, every confirmed mode-2 rank admits one).
  • Partition 21: inferred. Colour coherence cannot pick partitions (within-family
    top-1 is 0/12 on confirmed ranks); 21 is top-1 among ≥10 status-clean mode-3
    readings. It stays a guess: 152 REMAINS in BC7_CONFIG_INFERRED, strict decoding
    still refuses chunks that reference it, and the fitted-profile runtime path is
    unaffected either way.

Consequence: the override duplicates rank 119's (3, 21, 0, 0) and drops
(2, 38, 0, 0), so BC7_CONFIG is no longer a bijection — 284 unique configs — and
that is pinned by tests, not hidden. Falsifier: if 119 is ever confirmed at (3, 21) by
its own signature, this entry or the mode-2 head order is wrong.

Measured effect (Wine 11.22, NVIDIA 620.73.04, RTX 4090, retail story load): BC7
chunks using rank 152 stopped refusing, and with a fitted history profile the last
standing dstorage_failure 0x89240030 refusal in a deep run cleared (that one entry
was BC6H, explained by the endpoint gap — the rank fix removed every rank/config-class
refusal it gated).

Tests. tests/test_bcpack_tables_bptc.py: new
test_bc7_rank152_override_deviation pins the duplicate, the dropped entry, and that
152 stays inferred. tests/test_bcpack.py: the completeness test becomes a structure
assertion (286 entries, sentinel intact, 284 unique) and the inferred-rank mode
assertion pins 152's mode-3 reading. python -m unittest tests.test_bcpack tests.test_bcpack_tables_bptc → 48/48 OK; check_no_game_data.py clean over the
changed files; no game files in the diff.

Docs. docs/textures.md: the codec-tables paragraph and the BC7 table row now say
the 10 flagged inferred ranks include one (152) that is mode-measured and
partition-inferred. Overlaps #2427 (same paragraph, docs-only) — will rebase onto
whichever lands first.

AI-assisted (OpenCode agent on a private mirror; branch is one commit on
d1dff7949).

**@⁠z3r0rc** on GitHub · 2026-11-27 04:50 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2434) `z3r0rc:bcpack-bc7-rank152` → `main` · +83 −23 · 4 files · 1 commits · open Claimed as `BCPACK-BC7-RANK152-MODE3` in #1608. **What.** Rank 152 currently carries the ordering's mode-2 guess `(2, 38, 0, 0)`. The mode is testable against the corpus without confirming the whole table: the ANCHOR status rule (spec-fixed anchor pixel indices per partition) rejects every mode-2 reading of every retail corpus chunk whose lane-15 signature ranks at 152 — a full 64-partition scan over the `ttdb_*` pools finds no status-clean mode-2 decode. So 152 is a mode-3 entry; this pins `BC7_CONFIG[152] = (3, 21, 0, 0)`. - **Mode 3: measured** (the ANCHOR-status scan; exact both ways — every confirmed mode-3 rank admits no clean mode-2 reading, every confirmed mode-2 rank admits one). - **Partition 21: inferred.** Colour coherence cannot pick partitions (within-family top-1 is 0/12 on confirmed ranks); 21 is top-1 among ≥10 status-clean mode-3 readings. It stays a guess: 152 REMAINS in `BC7_CONFIG_INFERRED`, strict decoding still refuses chunks that reference it, and the fitted-profile runtime path is unaffected either way. Consequence: the override duplicates rank 119's `(3, 21, 0, 0)` and drops `(2, 38, 0, 0)`, so `BC7_CONFIG` is no longer a bijection — 284 unique configs — and that is pinned by tests, not hidden. Falsifier: if 119 is ever confirmed at (3, 21) by its own signature, this entry or the mode-2 head order is wrong. **Measured effect** (Wine 11.22, NVIDIA 620.73.04, RTX 4090, retail story load): BC7 chunks using rank 152 stopped refusing, and with a fitted history profile the last standing `dstorage_failure 0x89240030` refusal in a deep run cleared (that one entry was BC6H, explained by the endpoint gap — the rank fix removed every rank/config-class refusal it gated). **Tests.** `tests/test_bcpack_tables_bptc.py`: new `test_bc7_rank152_override_deviation` pins the duplicate, the dropped entry, and that 152 stays inferred. `tests/test_bcpack.py`: the completeness test becomes a structure assertion (286 entries, sentinel intact, 284 unique) and the inferred-rank mode assertion pins 152's mode-3 reading. `python -m unittest tests.test_bcpack tests.test_bcpack_tables_bptc` → 48/48 OK; `check_no_game_data.py` clean over the changed files; no game files in the diff. **Docs.** `docs/textures.md`: the codec-tables paragraph and the BC7 table row now say the 10 flagged inferred ranks include one (152) that is mode-measured and partition-inferred. Overlaps #2427 (same paragraph, docs-only) — will rebase onto whichever lands first. AI-assisted (OpenCode agent on a private mirror; branch is one commit on `d1dff7949`).
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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 04:52:56 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2434/head:github-bot/gh-2434'
git switch 'github-bot/gh-2434'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2434'
git switch 'github-bot/gh-2434'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2434'
git switch 'github-bot/gh-2434'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2434'
git switch 'main'
git merge --squash 'github-bot/gh-2434'
git switch 'main'
git merge --ff-only 'github-bot/gh-2434'
git switch 'main'
git merge 'github-bot/gh-2434'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.