dependency_paths exits successfully when the loader hash is unknown #208

Closed
opened 2026-11-21 18:26:40 +00:00 by raulmoracode · 0 comments
raulmoracode commented 2026-11-21 18:26:40 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by raulmoracode on 2026-11-21T18:26:40Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6532729761 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/211). Originally posted by [raulmoracode](https://github.com/raulmoracode) on 2026-11-21T18:26:40Z. --- ## 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._
Sign in to join this conversation.
No labels
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.

Reference
R0Y00/Xbox2Windows#208
No description provided.