BC7 rank 152: mode 3 measured by the ANCHOR status rule — pin (3, 21), partition still inferred #2434
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!2434
Loading…
Reference in a new issue
No description provided.
Delete branch "bcpack-bc7-rank152"
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?
Pull request successfully merged and closed
Claimed as
BCPACK-BC7-RANK152-MODE3in #1608.What. Rank 152 currently carries the ordering's mode-2 guess
(2, 38, 0, 0). Themode 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 152is a mode-3 entry; this pins
BC7_CONFIG[152] = (3, 21, 0, 0).mode-3 rank admits no clean mode-2 reading, every confirmed mode-2 rank admits one).
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 decodingstill 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), soBC7_CONFIGis no longer a bijection — 284 unique configs — andthat 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 0x89240030refusal in a deep run cleared (that one entrywas BC6H, explained by the endpoint gap — the rank fix removed every rank/config-class
refusal it gated).
Tests.
tests/test_bcpack_tables_bptc.py: newtest_bc7_rank152_override_deviationpins the duplicate, the dropped entry, and that152 stays inferred.
tests/test_bcpack.py: the completeness test becomes a structureassertion (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.pyclean over thechanged files; no game files in the diff.
Docs.
docs/textures.md: the codec-tables paragraph and the BC7 table row now saythe 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).#2434 | head 70792ddf1f244626b3f341b0c4ff25d97d07ae8f (merged cleanly with main 02f71ccfe) |
python -I tests/test_bcpack.py && python -I tests/test_bcpack_tables_bptc.py| red on main: test_bcpack FAILED (failures=1) in 20 tests; test_bcpack_tables_bptc FAILED (failures=3) in 28 tests | green on PR+main: test_bcpack 20 tests OK; test_bcpack_tables_bptc 28 tests OK | Windows 11, Python 3.12.10 | AI-assisted: yesDiff reviewed across all 4 touched files (rank 152 stays in
BC7_CONFIG_INFERREDso strict mode still refuses it, andruntime/CMakeLists.txtgenerates C++ tables directly fromtools/bcpack_tables_bptc.pyat build time so no checked-in generated file drifts). Also verified on mergedPR+main:test_bcpack_history_calib.py(19/19 OK),test_bcpack_tables.py(34/34 OK),test_bcpack_tool.py(18/18 OK, skipped=1),test_docs_links.py(17/17 OK),test_docs_table_rows.py(2/2 OK),test_runner_calls_all_tests.py(3/3 OK),test_text_write_line_endings.py(3/3 OK),git diff --check, andscripts/check_no_game_data.py(clean).Tested
70792ddf1merged (no commit) withmainaa918e5d9: Python 3.12.4, Windows 11 10.0.26300, CPU only.check_no_game_data.pyis clean.test_bcpack.py(20 tests) andtest_bcpack_tables_bptc.py(30 tests) pass.tools/bcpack_tables_bptc.pyback tomain,test_bcpack_tables_bptc.pyfails 3 tests ((2, 38, 0, 0) != (3, 21, 0, 0)) andtest_bcpack.pyfails 1.No blocker from my side.
AI-assisted (Claude Code).
Merged after TheGeogeo's red/green check (check) (Windows, Python tests, no GPU needed) and a local re-check here. Merged after local re-verification: this PR merged onto
mainfa2fd0a99 without conflict, and its test file(s) (tests/test_bcpack.py,tests/test_bcpack_tables_bptc.py) pass there. Earlier today the same tests failed onmainwithout the PR (red/green) and a bundle with other open PRs showed no new failures.check_no_game_data.pyis clean. Windows 11, Python 3.14; no GPU needed for these tests.AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes.