tooling: report an unrecognized loader hash in dependency_paths #212
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!212
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/212/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?
@raulmoracode on GitHub · 2026-11-21 18:26 UTC · original
raulmoracode:tooling/unverified-loader-hash→main· +69 −1 · 6 files · 1 commits · merged 2026-11-21 18:42 UTCChange
tools/dependency_paths.pyapplied the conditional FidelityFX routes only when the loader image matched the pinned hash, and said nothing otherwise. A different loader build produced no conditional edges and exit code 0, which is indistinguishable from a loader that has no conditional routes.A reachable image whose basename is
amd_fidelityfx_loader_xbox.dlland whose SHA-256 differs now adds a finding:The conditional edges remain absent, so the graph is not widened; the report now states that it is incomplete for that image.
tests/dependency_paths_check.pyruns both cases from a synthetic inventory and is registered asdependency_paths_controlsand in the Linux Python job.Fixes #211
Verification
Commit
55d4af7, Python 3.12.10.Result:
Negative control: replacing the new branch with
elif False:makes the same test fail withEvidence and follow-up
The inventory is built in memory: two images (
pkg/amd_fidelityfx_loader_xbox.dllandpkg/amd_fidelityfx_upscaler_xbox.dll) and no imports. The pinned case usesFFX_LOADERfrom the module; the changed case uses 641characters. The upscaler lists every name inFFX_EXPORTS, so the pinned case exercises the full conditional route rather than a partial one.dependency_paths_controlsis registered in the Python gate inCMakeLists.txtand added to the Linux job's command list. It needs no Windows-specific module.The existing
conditional_import_pathscontrol (tests/intake/paths_check.py) asserted that an unknown loader hash produced no findings. That assertion encoded the silent-success behaviour this change removes. It now asserts theunverified_loader_hashfinding with both hashes and that the conditional route stays absent.All eight pure-Python checks from the Linux job pass locally:
script_state_check,bcpack_check,resource_ranges_check,dxcontainer_part_offsets_check,layout_chunks_check,intake/paths_check,dependency_paths_checkandshader_probe_check.Not covered: a loader image that is reachable only through a forwarder, and a second loader build that has a different basename. Both are outside this change.
Checklist
AI-assisted.