docs(guide): retain the Graphics image after the menu source review #2255

Merged
HumanBean merged 2 commits from dazemc/Longshot:docs/guide-source-review into main 2026-11-22 18:48:42 +00:00
Contributor

Summary

main (a2dc5385) fails the shared Guide screenshots check: scripts/check_guide_screenshots.py --review-sources reports 10 REVIEW REQUIRED inputs for settings-graphics.png (rx_nvn.h, device_policy.h, reshade.cpp, sprint.cpp, menu_i18n.h, vk_api.h, vk_internal.h, vk_menu.cpp, vk_menu.h, vk_texture.h).

None of the 10 changes a pictured Graphics row, label, default, help, order, top tab or navigation. The Simulated turf row and the Post-processing section are below the first unscrolled view; the Sprint and reset changes are on the Controls tab; the rest are internal declarations, comments, translations and device policy. The image is therefore retained, not recaptured.

This updates only reviewed_source.files, its content-derived revision and review.notes, and adds docs/user/images/guide/source-review-35be7b3d.md. The PNG, dimensions, SHA-256, capture date, version, captured_source and fixture_files are unchanged.

The second commit adds a .gitleaks.toml allowlist for docs/user/images/guide/manifest.json: the new gpu/vk/vk_api.h fingerprint trips gitleaks' generic-api-key rule because the path contains api and the value is a high-entropy hash. It is a hash, not a credential. Only that path is allowlisted.

Read first: docs/user/images/guide/manifest.json (settings-graphics.png), docs/user/images/guide/source-review-35be7b3d.md, scripts/check_guide_screenshots.py (check, hashes), .gitleaks.toml.

#2252 must merge first. It fixes the separate shared Website check (table/menu graphics coverage mismatch at Simulated turf); until it lands, this PR's Website job is red for that reason. The Guide check itself is independent and green with this change.

See also #2204 (WIP), which touches the same guide manifest and the website Graphics reader; if it lands, it should rebase and drop the guide/website hunks this PR and #2252 already cover.

Testing

Tested: game-free, Linux.

  • python -I -B scripts/check_guide_screenshots.py --review-sources → exit 0, 0 REVIEW REQUIRED for settings-graphics.png (10 before); only the expected Launcher NOT CHECKED notices remain.
  • python -I -B tests/test_guide_screenshots.py → 14 tests, OK.
  • python -I -B tests/test_launcher_capture.py → 4 tests, OK.
  • mise exec -- pre-commit run --from-ref main --to-ref HEAD → all hooks pass, including gitleaks with the allowlist.
  • The source review is a text/PNG inspection, not a fresh render, pixel comparison, game run or live GPU check. No new screenshot or game file was produced.

Still to test: None.

Measurements

Verdict: the Guide screenshots source check goes from 10 REVIEW REQUIRED to 0, with the image and capture provenance unchanged.

Setup: Linux, the repository's scripts/check_guide_screenshots.py and the two guide tests; no game, build or renderer run.

Before: main @ a2dc5385 After: this PR @ 8e893388
settings-graphics.png REVIEW REQUIRED 10 0
guide check exit 1 0
test_guide_screenshots.py — 14 pass
test_launcher_capture.py — 4 pass

Risks

  • The image is retained, not recaptured. If a pictured Graphics row, label, default, help or navigation changes later, this review's retention decision is wrong; the check will flag the source change again on the next input edit.
  • The version caption remains the original capture's, as before.
  • The .gitleaks.toml allowlist needs maintainer review. It allowlists only docs/user/images/guide/manifest.json; every other file is still scanned. Reverting it restores the false positive.
  • No game files, build output or new screenshots. A revert is enough.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit. (The gitleaks allowlist is the companion needed for the manifest update to pass lint.)
  • Tested on my own PC, in the game for a change the game runs, as Testing says. (Not a game change: game-free guide checks only, as Testing says.)
  • mise run test passes (any failure that also fails on main is named). (Not run: the focused guide checks and pre-commit pass, but the full game-free suite has not run for this docs/config-only change. The Website check remains red on main until #2252.)
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • Docs updated.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). (docs and scanner config only)
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold. (Website red until #2252)
## Summary `main` (`a2dc5385`) fails the shared **Guide screenshots** check: `scripts/check_guide_screenshots.py --review-sources` reports 10 `REVIEW REQUIRED` inputs for `settings-graphics.png` (`rx_nvn.h`, `device_policy.h`, `reshade.cpp`, `sprint.cpp`, `menu_i18n.h`, `vk_api.h`, `vk_internal.h`, `vk_menu.cpp`, `vk_menu.h`, `vk_texture.h`). None of the 10 changes a pictured Graphics row, label, default, help, order, top tab or navigation. The Simulated turf row and the Post-processing section are below the first unscrolled view; the Sprint and reset changes are on the Controls tab; the rest are internal declarations, comments, translations and device policy. The image is therefore retained, not recaptured. This updates only `reviewed_source.files`, its content-derived revision and `review.notes`, and adds `docs/user/images/guide/source-review-35be7b3d.md`. The PNG, dimensions, SHA-256, capture date, version, `captured_source` and `fixture_files` are unchanged. The second commit adds a `.gitleaks.toml` allowlist for `docs/user/images/guide/manifest.json`: the new `gpu/vk/vk_api.h` fingerprint trips gitleaks' `generic-api-key` rule because the path contains `api` and the value is a high-entropy hash. It is a hash, not a credential. Only that path is allowlisted. Read first: `docs/user/images/guide/manifest.json` (`settings-graphics.png`), `docs/user/images/guide/source-review-35be7b3d.md`, `scripts/check_guide_screenshots.py` (`check`, `hashes`), `.gitleaks.toml`. **#2252 must merge first.** It fixes the separate shared Website check (`table/menu graphics coverage mismatch at Simulated turf`); until it lands, this PR's Website job is red for that reason. The Guide check itself is independent and green with this change. See also #2204 (WIP), which touches the same guide manifest and the website Graphics reader; if it lands, it should rebase and drop the guide/website hunks this PR and #2252 already cover. ## Testing **Tested:** game-free, Linux. - `python -I -B scripts/check_guide_screenshots.py --review-sources` → exit 0, **0 `REVIEW REQUIRED`** for `settings-graphics.png` (10 before); only the expected Launcher `NOT CHECKED` notices remain. - `python -I -B tests/test_guide_screenshots.py` → 14 tests, OK. - `python -I -B tests/test_launcher_capture.py` → 4 tests, OK. - `mise exec -- pre-commit run --from-ref main --to-ref HEAD` → all hooks pass, including gitleaks with the allowlist. - The source review is a text/PNG inspection, not a fresh render, pixel comparison, game run or live GPU check. No new screenshot or game file was produced. **Still to test:** None. ## Measurements **Verdict:** the Guide screenshots source check goes from 10 `REVIEW REQUIRED` to 0, with the image and capture provenance unchanged. Setup: Linux, the repository's `scripts/check_guide_screenshots.py` and the two guide tests; no game, build or renderer run. | | Before: main @ a2dc5385 | After: this PR @ 8e893388 | |---|---|---| | `settings-graphics.png` REVIEW REQUIRED | 10 | 0 | | guide check exit | 1 | 0 | | `test_guide_screenshots.py` | — | 14 pass | | `test_launcher_capture.py` | — | 4 pass | ## Risks - The image is retained, not recaptured. If a pictured Graphics row, label, default, help or navigation changes later, this review's retention decision is wrong; the check will flag the source change again on the next input edit. - The version caption remains the original capture's, as before. - **The `.gitleaks.toml` allowlist needs maintainer review.** It allowlists only `docs/user/images/guide/manifest.json`; every other file is still scanned. Reverting it restores the false positive. - No game files, build output or new screenshots. A revert is enough. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. (The gitleaks allowlist is the companion needed for the manifest update to pass lint.) - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. (Not a game change: game-free guide checks only, as Testing says.) - [ ] `mise run test` passes (any failure that also fails on `main` is named). (Not run: the focused guide checks and pre-commit pass, but the full game-free suite has not run for this docs/config-only change. The Website check remains red on `main` until #2252.) - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). (docs and scanner config only) - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. (Website red until #2252)
`main`'s Guide screenshots check flags 10 reviewed UI inputs for
`settings-graphics.png`: rx_nvn.h, device_policy.h, reshade.cpp,
sprint.cpp, menu_i18n.h, vk_api.h, vk_internal.h, vk_menu.cpp,
vk_menu.h and vk_texture.h. None changes a pictured Graphics row,
label, default, help, order, top tab or navigation: the Simulated
turf row and the Post-processing section are below the first
unscrolled view, and the Sprint/reset changes are on Controls.

Update only `reviewed_source.files`, its content-derived revision and
`review.notes`, and add `source-review-35be7b3d.md`. The PNG,
dimensions, hash, capture date, version, `captured_source` and
`fixture_files` stay unchanged. No new capture, render, game run or
game file.

Assisted-by: opencode (DeepSeek V4.1 Flash 1017)
ci: allow the guide hash manifest in gitleaks
Some checks failed
CI / Website build and checks (pull_request) Blocked by required conditions
CI / Conventional Commit title (pull_request) Blocked by required conditions
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Blocked by required conditions
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Blocked by required conditions
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Blocked by required conditions
CI / Workflow lint (actionlint) (pull_request) Blocked by required conditions
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
Website / Website on Cloudflare (pull_request) Blocked by required conditions
Website / Website on Cloudflare (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Failing after 10s
8e8933885f
`docs/user/images/guide/manifest.json` records SHA-256 fingerprints of
UI and font sources. A new `gpu/vk/vk_api.h` fingerprint trips
gitleaks' generic-api-key rule because the path contains `api` and the
value is a high-entropy hex string. This is a hash, not a credential.

Allowlist only that manifest path; every other file is still scanned.
The guide source review's manifest update then passes the lint job.

Assisted-by: opencode (DeepSeek V4.1 Flash 1017)
dazemc changed title from WIP: docs(guide): retain the Graphics image after the menu source review to docs(guide): retain the Graphics image after the menu source review 2026-11-22 14:08:51 +00:00
Author
Contributor

Putting this back to WIP for an honesty correction: the full mise run test suite was not run, so the Ready-for-review mise run test box must not stay ticked. It is now unticked. The focused guide evidence is unchanged: check_guide_screenshots --review-sources exit 0 with 0 REVIEW REQUIRED, test_guide_screenshots.py 14/14, test_launcher_capture.py 4/4, and pre-commit passes. The PR stays open. #2252 still must merge first for the Website job, and the .gitleaks.toml allowlist still needs maintainer review.

Putting this back to WIP for an honesty correction: the full `mise run test` suite was not run, so the Ready-for-review `mise run test` box must not stay ticked. It is now unticked. The focused guide evidence is unchanged: `check_guide_screenshots --review-sources` exit 0 with 0 REVIEW REQUIRED, `test_guide_screenshots.py` 14/14, `test_launcher_capture.py` 4/4, and pre-commit passes. The PR stays open. #2252 still must merge first for the Website job, and the `.gitleaks.toml` allowlist still needs maintainer review.
dazemc changed title from docs(guide): retain the Graphics image after the menu source review to WIP: docs(guide): retain the Graphics image after the menu source review 2026-11-22 14:10:55 +00:00
HumanBean changed title from WIP: docs(guide): retain the Graphics image after the menu source review to docs(guide): retain the Graphics image after the menu source review 2026-11-22 18:48:30 +00:00
HumanBean deleted branch docs/guide-source-review 2026-11-22 18:48:43 +00:00
Some checks failed
CI / Website build and checks (pull_request) Blocked by required conditions
CI / Conventional Commit title (pull_request) Blocked by required conditions
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Blocked by required conditions
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Blocked by required conditions
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Blocked by required conditions
CI / Workflow lint (actionlint) (pull_request) Blocked by required conditions
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
Website / Website on Cloudflare (pull_request) Blocked by required conditions
Website / Website on Cloudflare (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Failing after 10s
Some workflows are waiting to be reviewed.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!2255
No description provided.