Scripts: hash the game folder name on the smoke block's title line #1482
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1482
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1482/head"
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?
@ORKHANALIYEV27 on GitHub · 2026-11-24 16:47 UTC · original
ORKHANALIYEV27:scripts/smoke-hash-title→main· +21 −3 · 1 files · 1 commits · closed without mergingScripts: 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
github-bot referenced this pull request2026-11-26 04:59:09 +00:00
@DavidM1911 on GitHub · 2026-11-24 18:53 UTC · original
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!
@ivall on GitHub · 2026-11-24 20:50 UTC · original
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.
@ -20,0 +29,4 @@try {$bytes = [System.Text.Encoding]::UTF8.GetBytes($leaf.ToLowerInvariant())$hash = $sha.ComputeHash($bytes)$titleLabel = ([BitConverter]::ToString($hash) -replace '-', '').Substring(0, 8).ToLowerInvariant()@gut0to on GitHub · 2026-11-24 18:51 UTC · original
This 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.Pull request closed