Guard the remaining unguarded os.link() calls in test_awc_names.py, test_gamedata_graph.py, test_navmesh_decode.py, test_restofworld_index.py, test_rtti_scan.py, test_save_keys.py, test_swizzle_search.py, and test_tex_headers_report_paths.py with try/except (OSError, NotImplementedError) so only the hard-link subtest/check is skipped when hard links are unavailable and the rest of each test still runs.
hw_oracle's vcvars script is fixed on main by #2667 (UTF-8 + chcp 65001), so this
branch takes main's runner.py and drops its own 8.3-name version. Two of main's
new hw_oracle tests decoded that UTF-8 script as ASCII, which fails when %TEMP%
holds a non-ASCII user name; they now decode it as UTF-8.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A full run with the temp folder in a profile named in Cyrillic found:
- tools/hw_oracle/runner.py wrote build_hw_oracle.cmd with encoding
"ascii", so any non-ASCII path (the temp work folder, Visual Studio,
the source) raised UnicodeEncodeError before hw_oracle compiled
anything. Non-ASCII paths now go in as their 8.3 short names, the file
in the OEM code page cmd.exe reads it with (UTF-8 elsewhere). New check
in test_hw_oracle: a work folder named "Пользователь".
- test_spirv_metal_set0_extra: its subprocess stubs didn't take the
errors= argument this branch added to tools/spirv_metal_set0.py.
- test_user_sgpr_census, test_anim_index, test_awc_manifest,
test_gamedata_graph, test_manifest_verifier, test_world_build: they
decoded the Python child's output as UTF-8, but the tool writes in the
locale encoding (the ANSI code page on Windows), so a non-ASCII temp
path never matched; test_awc_manifest's reader thread died (no errors=).
AI-assisted (Claude Code).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A parentPath of the form ../Tag[@attr='value'] is resolved against the
siblings of the element that carries it (exact match) and reported under
parent_path_inheritance: resolved, ambiguous and unresolved sites, chain
depths and cycles. Existing counts and edges are unchanged. On common.rpf
all 40 sites resolve, depth 1-4, no cycles. Synthetic tests cover chains,
both quote styles, case, a non-matching form, a duplicate key, a cycle and
a locator whose parent list lacks the key.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The docstring promises a target node for every <filename>, but
scan_document() only read <filename> inside a top-level or content-set
<fileList>, so a filename anywhere else (e.g. <group><filename>) was
dropped. Remaining filenames are now added as document-owned references
(owner "", like loadPath), each element counted once. The docstring line
for <loadPath> is corrected: only those in <includedChangesets> are read.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add gamedata_graph.py, which rebuilds the XML payloads from a carve and measures document -> content-set -> target edges. Include ids are joined only on exact equality; missing ids stay dangling and common:/ is not normalized to $(common)/.
Add synthetic tests for includes, a cycle, reachability, prefix classification, unparsed payloads and output redaction. Add a measured docs page linked from the index.