Report candidate paths for ambiguous camera state labels #120

Manually merged
github merged 1 commit from gh-pr/120/head into gh-pr/120/base 2026-11-26 21:28:22 +00:00
Owner

@⁠descent81 on GitHub · 2026-11-21 16:34 UTC · original
descent81:contribution/report-ambiguous-camera-states → main · +83 −33 · 2 files · 1 commits · merged 2026-11-21 17:55 UTC

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.

**@⁠descent81** on GitHub · 2026-11-21 16:34 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/120) `descent81:contribution/report-ambiguous-camera-states` → `main` · +83 −33 · 2 files · 1 commits · merged 2026-11-21 17:55 UTC 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:28:21 +00:00
github manually merged commit 516faaf4b1 into gh-pr/120/base 2026-11-26 21:28:22 +00:00
Author
Owner

@⁠R0Y00 on GitHub · 2026-11-21 17:16 UTC · original

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.

**@⁠R0Y00** on GitHub · 2026-11-21 17:16 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/120#issuecomment-7066346615) 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.
This discussion has been locked. Commenting is limited to contributors.
No description provided.