Commit Graph

5 Commits

Author SHA1 Message Date
c2d7dea381 gamedata_graph: keep scanning after an unsupported XML encoding (#6765)
Squash-merged after diff review of PR #6765 - gamedata_graph: keep scanning after an unsupported XML encoding
2026-11-23 10:05:27 -06:00
6a2273c916 Merge pull request #1206 from Lucy 2026-11-22 03:37:49 -05:00
78193fb931 gamedata_graph: follow parentPath inheritance inside its own document
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>
2026-11-22 08:17:53 +00:00
f239c61c8a Docs: the 40 parentPath locators resolve inside their own document
All 40 parentPath sites in common.rpf are XPath steps of the form
../Item[@key='K'] on CDoorInteractionDataList data sets, and every K is a
sibling item's key: single inheritance with depth up to 4 and no cycles. Only
the 3 parentFile sites need a file name. Corrects the gamedata.md sentence
that said the 40 cannot be resolved without the table of contents.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:15:45 +00:00
b262056ac7 Tools: measure the common.rpf content-set graph
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.
2026-11-21 22:47:26 +00:00