dependency_paths exits successfully when the loader hash is unknown #211

Closed
opened 2026-11-26 21:34:39 +00:00 by github-bot · 0 comments
Owner

@⁠raulmoracode on GitHub · 2026-11-21 18:26 UTC · original

Problem

tools/dependency_paths.py adds the conditional FidelityFX routes only when a reachable image's SHA-256 equals the pinned loader hash:

if images[image]["sha256"] == FFX_LOADER:
    ...

There is no else. With any other loader build the tool produces no conditional edges, no warning and exit code 0. #132 records this as a known weakness: "With another loader the tool reports no conditional edges and still exits 0."

A reader cannot tell "this loader has no conditional routes" from "this loader is a build the tool does not know". The reproduction command in docs/experiments.md writes the JSON to a file, so the difference is invisible unless someone compares hashes by hand.

Proposed change

When a reachable image has the loader's basename but a different hash, append a finding with problem: "unverified_loader_hash" that carries the observed and expected SHA-256. The conditional edges stay absent, so the result is not silently widened; it is visibly incomplete.

Verification path

A synthetic in-memory inventory, no game files:

  • pinned hash → the upscaler is reachable with the ffx:0x10000 reason and no finding;
  • different hash → the upscaler is not reachable and exactly one unverified_loader_hash finding names both hashes.

Removing the new branch makes the second case fail, which is the negative control.

Required environment

Python 3.11 or newer. No Windows, D3D12 or game files.

AI-assisted.

**@⁠raulmoracode** on GitHub · 2026-11-21 18:26 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/211) ## Problem `tools/dependency_paths.py` adds the conditional FidelityFX routes only when a reachable image's SHA-256 equals the pinned loader hash: ```python if images[image]["sha256"] == FFX_LOADER: ... ``` There is no `else`. With any other loader build the tool produces no conditional edges, no warning and exit code 0. #132 records this as a known weakness: "With another loader the tool reports no conditional edges and still exits 0." A reader cannot tell "this loader has no conditional routes" from "this loader is a build the tool does not know". The reproduction command in `docs/experiments.md` writes the JSON to a file, so the difference is invisible unless someone compares hashes by hand. ## Proposed change When a reachable image has the loader's basename but a different hash, append a finding with `problem: "unverified_loader_hash"` that carries the observed and expected SHA-256. The conditional edges stay absent, so the result is not silently widened; it is visibly incomplete. ## Verification path A synthetic in-memory inventory, no game files: - pinned hash → the upscaler is reachable with the `ffx:0x10000` reason and no finding; - different hash → the upscaler is not reachable and exactly one `unverified_loader_hash` finding names both hashes. Removing the new branch makes the second case fail, which is the negative control. ## Required environment Python 3.11 or newer. No Windows, D3D12 or game files. _AI-assisted._
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:34:39 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
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
github/R0Y00--Xbox2Windows#211
No description provided.