script: finish validating sibling links before reporting ambiguity in resolve_script_path #145
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/146"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by Vonsek on 2026-11-21T17:08:03Z.
Change
Keep validating the remaining attributes and sibling links on the current level in
tools/script_path_host.cpp(resolve_script_path) before returning-2(ambiguous).Previously,
resolve_script_pathreturned-2as soon as a second matchingstateidwas encountered. Any malformed link or attribute later on the same level (such as a brokenpreviousSibling, a mismatchedparent, a cycle innextSibling, or a duplicateidattribute on the second match) was skipped and masked as-2instead of returning-3(malformed).resolve_script_pathnow recordsambiguous = trueand finishes checking the full sibling chain for that level before returning-2.tests/script_path_check.pyaddstest_broken_link_after_ambiguous_siblings, which:ambiguous;previousSibling,nextSiblingcycle, andparent) and requires-3(malformed) to be reported.Verification
Tested on Windows 11 x64, VS 2022 Build Tools 17.14 (MSVC 19.44.35230.0), Windows SDK 10.0.26100, Python 3.12.10, at commit
a5d9a7d:tools/script_path_host.cpp, all three corrupted-link subtests fail becauseresolve_script_pathreturns-2instead of-3:script_path_host.dllwith the fix:Evidence and follow-up
All new cases use the synthetic source-built state rows in
tests/script_path_check.pyand the compiledscript_path_host.dll. No external files or archive dumps are used.This change only affects validation ordering when multiple siblings match on a level; intact trees return the same node indices and status codes as before.
Checklist
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-21T17:10:10Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
a5d9a7dℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.