Report candidate paths for ambiguous camera state labels #119
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/120"
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 descent81 on 2026-11-21T16:34:21Z.
Related to #19 and #102.
Two state nodes can share a label while pointing to different camera settings. In a synthetic archive with priorities 9 and 17, the probe reported 9. Reversing only the node order made it report 17. Both results passed the literal hash checks, so the output gave no indication that the lookup was ambiguous.
This change preserves the existing result for a unique match. When multiple states match, it leaves the top-level example empty and reports each candidate’s record index, node path, and first verified camera example. It also rejects duplicate label-ID attributes on a single state, consistent with the path replay tool.
Ran
python -B tests/script_state_check.py -v: all six tests passed, including both node orders and a label shared across two records. The fixtures are generated from synthetic data. This diagnoses ambiguity in the static lookup; runtime event selection and precedence remain open.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T17:16:16Z.
Please rebase the candidate-path changes after #123, which handles duplicate id attributes. Keep both regressions: duplicate attributes on one node, and distinct nodes sharing a label with reversed ordering.