Known builds: list the build everyone runs (b99f876b) and warn on any other ("build unknown" for every dump today) #309

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

@⁠compaccount1-coder on GitHub · 2026-11-26 15:26 UTC · original
compaccount1-coder:fix/known-build → main · +33 −3 · 2 files · 1 commits · open

What and why

victory_game::KNOWN_BUILDS is still empty, with the comment "Empty until the executable is available". So victory run prints

build          unknown (b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93)

for the build the renderer patches and per-build offsets were made against: the one every crash report here names (victory-image-b99f876b74d4a77f.dll). It prints the same for any other build, so nothing tells a player that their dump is a different version. That matters because patches of the title's code are byte-checked, and a site whose bytes differ is silently left alone (descriptor_sites, resolution).

The change

  • KNOWN_BUILDS lists that build by its BLAKE3, labelled Series X|S, with its CodeView GUID/age in a comment. docs/asset-policy.md allows both ("build identities: BLAKE3 of an executable, CodeView GUID/age"), and nothing else of the executable is added.
  • An unknown build now also logs a warning: not a build VIctory knows (victory_game::KNOWN_BUILDS): patches of the title's code whose bytes differ here are left out, so expect some to be missing.
  • A small test checks identify (both letter cases, the length of each entry, an unknown hash, an empty string).

Tested

  • victory run <exe> (without --execute) on my own dump: build Series X|S (b99f876b74d4…).
  • On a scratch copy with one byte changed: build unknown (2b2f2059…) plus the warning.
  • cargo test -p victory-game passes. cargo clippy -p victory-game -p victory --all-targets (also --all-features) is clean once #241's one-line watch.rs fix is in, since victory-gpu's clippy error on main stops it otherwise.

If you label builds differently (a version number, "retail"…), the label is yours to change.

AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

**@⁠compaccount1-coder** on GitHub · 2026-11-26 15:26 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/309) `compaccount1-coder:fix/known-build` → `main` · +33 −3 · 2 files · 1 commits · open ### What and why `victory_game::KNOWN_BUILDS` is still empty, with the comment "Empty until the executable is available". So `victory run` prints ``` build unknown (b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93) ``` for the build the renderer patches and per-build offsets were made against: the one every crash report here names (`victory-image-b99f876b74d4a77f.dll`). It prints the same for any other build, so nothing tells a player that their dump is a different version. That matters because patches of the title's code are byte-checked, and a site whose bytes differ is silently left alone (`descriptor_sites`, `resolution`). ### The change - `KNOWN_BUILDS` lists that build by its BLAKE3, labelled `Series X|S`, with its CodeView GUID/age in a comment. `docs/asset-policy.md` allows both ("build identities: BLAKE3 of an executable, CodeView GUID/age"), and nothing else of the executable is added. - An unknown build now also logs a warning: `not a build VIctory knows (victory_game::KNOWN_BUILDS): patches of the title's code whose bytes differ here are left out, so expect some to be missing`. - A small test checks `identify` (both letter cases, the length of each entry, an unknown hash, an empty string). ### Tested - `victory run <exe>` (without `--execute`) on my own dump: `build Series X|S (b99f876b74d4…)`. - On a scratch copy with one byte changed: `build unknown (2b2f2059…)` plus the warning. - `cargo test -p victory-game` passes. `cargo clippy -p victory-game -p victory --all-targets` (also `--all-features`) is clean once #241's one-line `watch.rs` fix is in, since `victory-gpu`'s clippy error on main stops it otherwise. If you label builds differently (a version number, "retail"…), the label is yours to change. AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
KNOWN_BUILDS was still empty ("until the executable is available"), so
`victory run` printed "build unknown" for the build the renderer patches and
per-build offsets were made against (the image every crash report names,
victory-image-b99f876b74d4a77f.dll), and the same for any other build, with
nothing to tell them apart.

The build is now listed by its BLAKE3 (with its CodeView id in a comment;
both are allowed by docs/asset-policy.md), and an unknown build logs a warning
that the patches of the title's code whose bytes differ are left out.

Tried on the executable: "build  Series X|S (b99f876b…)"; on a copy with one
byte changed: "build  unknown (2b2f…)" and the warning.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 15:31:54 +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/309/head:github-bot/gh-309'
git switch 'github-bot/gh-309'

Merge

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