Scripts: hash the game folder name on the smoke block's title line #1472
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1482"
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?
Imported from ivall/xcl. Originally posted by ORKHANALIYEV27 on 2026-11-24T16:47:23Z.
Scripts: hash the game folder name on the smoke block's title line
Fixes #677.
scripts/smoke.ps1printed the game folder's name on thetitle:lineof every
xcl-smokeblock, which leaked retail title names (and scene release tags)into public PR descriptions. Print the first 8 hex chars of SHA-256 of the folder's
leaf name (lowercased) instead. Add an optional
-Title <label>parameter for areadable label.
What is in it
scripts/smoke.ps1: hash-based title label; new-Titleparameter; updated usage commentTested
Not tested
smoke.ps1(no release build / title available in this environment)AI use
Imported from ivall/xcl. Originally posted by gut0to on 2026-11-24T18:51:18Z.
Review: COMMENTED
AI-assisted review; I checked the label construction and the stated privacy goal.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T18:53:24Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
Imported from ivall/xcl. Originally posted by gut0to on 2026-11-24T18:51:18Z.
Code review location:
scripts/smoke.ps1; line 32This is deterministic, unsalted, and only 32 bits, so a public smoke block can be matched against a dictionary of likely retail folder names and release tags. That makes the default label identifying despite the comment calling it non-identifying. Could the script emit a neutral label by default and leave readable labels to the explicit
-Titleoption, or use a per-user secret mapping? AI-assisted review; I verified the hash input and truncation.Imported from ivall/xcl. Originally posted by ivall on 2026-11-24T20:50:07Z.
Closing this as a duplicate of #689 (group D15 in #1607): both print a hash of the game folder's name on the
title:line and add-Title, and only one can land. #689 was opened first, validates the label, has a test and both checks green.This says nothing about the quality of the code here. If this PR covers a case the other one does not, or #689 is closed without being merged, say so and I'll reopen it.
Thank you for the work.
AI use: Claude Code (Claude Opus 5.5) read the diffs and the checks in #1607 and wrote this comment, on the maintainer's behalf.
Pull request closed