Report candidate paths for ambiguous camera state labels #119

Merged
descent81 merged 1 commit from upstream-pr/120 into main 2026-11-21 17:55:38 +00:00
descent81 commented 2026-11-21 16:34:21 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6531486951 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/120). Originally posted by [descent81](https://github.com/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.
upstream-sync closed this pull request 2026-11-24 06:41:24 +00:00
R0Y00 commented 2026-11-24 06:47:40 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7066346615 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/120#issuecomment-7066346615). Originally posted by [R0Y00](https://github.com/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.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!119
No description provided.