xcl inspect: include the console verdict in --json output #268
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!268
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/268/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?
@NethminaYasas on GitHub · 2026-11-23 22:11 UTC · original
inspect-json-console-verdict→main· +71 −23 · 1 files · 1 commits · closed without mergingxcl inspect --jsonomitted the "Console game: yes/no" verdict the text output prints,so scripts consuming the JSON had to parse the PE again. The verdict is now computed once
from the imports
runalready reads and returned asis_consoleplusconsole_imports.The text path reuses the same verdict instead of re-reading the file.
What is in it
crates/xcl/src/inspect.rs: sharedconsole_imports_fromhelper,report()builder,the two new JSON fields, and two unit tests. No dependency or doc changes.
Tested
x86_64-pc-windows-msvc, debug build.cargo build --workspace: ok.cargo test --workspace -- --test-threads=4: 653 passed, 0 failed, 40 ignored(lib 613 passed / 20 ignored; e2e 3/3; gpu_compute_e2e 2/2; gpu_pso_e2e 7/7; rest passed).
cargo clippy --workspace: no new warnings in the changed file.coderabbit review --uncommitted --agent: 0 findings.cargo fmt(the tree is not rustfmt-clean; only changed lines were formatted).Not tested
XCL_SAMPLE_*unset), no release build.AI use
Commit carries
Assisted-by: OpenCode (Hy4 flash Free).GPL-2.0-only compatible: no new dependencies, no external code, no console SDK material.
@Kalmarv on GitHub · 2026-11-24 00:12 UTC · original
Tested head
2e6fdee6417362db6944fe3947108b2a4fa8047cmerged cleanly onto main85bdf2193e7a793d568485b35f9cae5e8159bc39at8fc54010eae3c2d6cfe0dbb740e797338089e778.The CLI correctly reports
is_console: trueandconsole_imports: ["kernelx.dll"]for a PE whose only console import is delay-loaded. Both new tests still passed when I made the CLI ignore delay-loaded libraries; the same fixture then reported false. Please add this case throughxcl inspect --json. Main omits both fields, and the PR unit tests use private helpers introduced here.Tested
RTX 5070 Ti (NVIDIA 610.74), Ryzen 9 9950X, Windows 11 build 26200, debug MSVC.
cargo build --workspaceandcargo test --workspace -- --test-threads=4through the GPU queue: 667 passed, 0 failed, 41 ignored. Runtime skips included in the pass count:gpu_geometry_wave32_prefix_count_over_a_mask(no wave64),gpu_wave32_program_in_wave64_hardware(no wave64). Both inspect unit tests passed on the merge. Three synthetic CLI cases passed: ordinary Windows imports, delay-only console imports, and mixed tables with a duplicate.Not tested
The retail game, Wine or other architectures. Sample-data variables were unset.
🤖 GPT-6.2 Astra
@MesshM on GitHub · 2026-11-24 04:33 UTC · original
Test run of
2e6fdee6417362db6944fe3947108b2a4fa8047con AMD RDNA4. I merged it onto currentmain64b3f35locally (clean merge) and tested that tree.Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 703 passed, 0 failed, 41 ignored, exit code 0;xcllib tests 662 passed, 0 failed, 21 ignoredSKIPPED; theinspecttests pass.Review: The verdict is computed once (
console_imports_from) and used by both the text and the JSON output, so they cannot disagree. I found nothing to change.Not tested: no retail title or regression run (I have no unpacked game), no
XCL_SAMPLE_*tests, release build; the PR's head on its old base was not run, only its merge ontomain.Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
Pull request closed