Skip to content

docs: correct BCPack BC1 history status and pin it in CI - #3877

Open
sds-228 wants to merge 2 commits into
ItsNotRexed:mainfrom
sds-228:asset291-bc1-history
Open

sds-228 wants to merge 2 commits into
ItsNotRexed:mainfrom
sds-228:asset291-bc1-history

Conversation

@sds-228

@sds-228 sds-228 commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: ASSET-291

What and why

docs/textures.md still described the BC1 256-slot predictor window as an open blocker and listed pre-660b7fab counts (248 confirmed / 7 provisional). The shipped tables have all 255 reachable slots (252 confirmed / 3 provisional), and the BC4/BC5 counts had also moved. A counts-only local check found no missing or unknown BC1 history references; the three remaining provisional entries still lack exact evidence and are unchanged here.

This PR corrects the status text and table rows, and adds a standard-library test that pins those rows to the shipped tables so a future table update cannot leave stale status. That test also runs in the docs-only CI path.

Tested

  • python -I tests/test_docs_bcpack_status.py: 3/3 (counts, BC1 provisional keys and BC4/BC5 unfitted notes; a doctored note fails the test)
  • python -I tests/test_bcpack_tables.py: 34/34; python -I tests/test_bcpack.py: 16/16
  • python -I tests/test_docs_links.py: 5/5; python -m compileall -q make_game.py tools tests: clean
  • CPU only; no runtime or GPU change.

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed.

AI-assisted (OpenCode)

Commit 660b7fa updated the BC1-BC5 history tables but left docs/textures.md
at the old counts, making the recovered 256-slot BC1 window look like an open
blocker. Update the status rows, mark the historical research gap as resolved,
and add a standard-library test that pins those rows to the shipped tables.
The test also runs on docs-only CI changes.

AI-assisted: yes
@shdann

shdann commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Tested 49a8086 on Windows, CPython 3.14.7, CPU only (no GPU, no game files): pass.

  • python -I tests/test_docs_bcpack_status.py: 3 OK. With docs/textures.md from the merge base (aa2988c) it fails with (248, 7) != (252, 3), so the test does pin the row. tests/test_docs_links.py and tests/test_ci_registration.py: OK.
  • The numbers the test does not pin, checked against tools/bcpack_tables.py on this head: BC1's provisional entries are exactly 6, 71 and 122, with entry 0 in neither set (252 + 3 = 255); BC4 has 172 entries (84 of 256 unfitted) and BC5 214 (42 unfitted), as the new notes say; the confirmed and provisional sets do not overlap in any of the four.

No contradiction found. AI-assisted.

@tupacfan04

Copy link
Copy Markdown
Contributor

Checked at the head on Windows 11 / Python 3.13.0: the new test 3/3, test_bcpack_tables 34/34, test_bcpack 16/16, all docs/text tests pass, and the merge is clean with main, #3876 and #3879.

Every fact matches the code: BC1 252/3 with the provisional {6, 71, 122}, 255 reachable entries and entry 0 unreachable (tools/bcpack_tables.py, tools/bcpack.py:386-417); BC3 0/35, BC4 2/170 (84 unfitted), BC5 5/209 (42 unfitted). The CI pin runs on docs-only and full paths, and reverting the BC1 row fails it (248, 7 != 252, 3).

One gap: tests/test_docs_bcpack_status.py:54-63 pins the counts but not BC1's three provisional entries or the BC4/BC5 unfitted notes, so those parts of the row can change silently. Pinning them too would match the intent.

Ready. AI-assisted review, docs only.

Review feedback on the docs status test: the four rows pinned the confirmed/provisional counts but could still drift in the BC1 provisional keys and the BC4/BC5 unfitted-slot notes. Parse the notes cell and derive those claims from the shipped tables, with a negative control for both note forms.

AI-assisted (OpenCode)
@sds-228

sds-228 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

Addressed @tupacfan04's gap: the test now derives the BC1 provisional keys and the BC4/BC5 unfitted-slot notes from the shipped tables too, with a negative control for each note form. 3/3 pass; doctored notes fail. AI-assisted (OpenCode).

@openmubr

Copy link
Copy Markdown

Code read (CPU only). I did not run the tests, but I checked the numbers against tools/bcpack_tables.py on main (aa2988c) by parsing the source with ast, without importing it.

  • BC1: 252 confirmed / 3 provisional, provisional keys {6, 71, 122}, union of 255 slots without entry 0. BC4: 2 / 170, 84 slots unfitted. BC5: 5 / 209, 42 unfitted. BC3 is unchanged at 0 / 35. All of it matches the new rows and notes.
  • bcpack_tables.py has no imports, so the new test is fine under python3 -I in the docs-only job.
  • Only the rows at lines 935-938 match the test's regex, and no other stale count (248 confirmed, 7 provisional) is left in docs/. Lines 734 and 746 still call the 256-slot window a blocker, but they describe the initial probe, so they read correctly as history.

Minor, not blocking: the BC3 note ("All 256 colour-quadrant and 64 alpha-pair rank entries populated") sits next to a history table with 35 entries. I assume "rank" is a different table, but the note is not pinned by the test, so it could drift unnoticed.

I did not run tests/test_docs_bcpack_status.py or the other tests listed in the description.

AI-assisted (Claude Code). No game files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants