Add synthetic (id, type) state dispatch fixture #133
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!133
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/133/head"
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?
@MarlomMedeiros on GitHub · 2026-11-21 16:48 UTC · original
script-dispatch-fixture→main· +441 −0 · 2 files · 2 commits · merged 2026-11-21 17:56 UTCSummary
Follow-up to #19. Adds
tests/script_dispatch_check.py, a self-contained synthetic fixture that demonstrates how a candidate(id, type)pair selects a state, while preserving the observation's documented limits.stateslibrary mirroring the serialized pattern: adefaultstate, a siblingidcollision split cleanly bytype(itemvsweaponitem), and a deeperlocation -> vehiclesize -> anglebranch pair ending in distinct camera leaves.shopcomponents-style carrier: a kind-5weaponattribute suppliesid, the carrier node's name suppliestype.filter_siblings_by_typeis a caller-side pre-filter;script_path_host.cppstays untouched and its id-only-2answer remains the conservative result.(trigger_a, item)resolves node 4 -> preview-offset leaf; the nearby input(trigger_a, weaponitem)resolves node 6 -> deeper state -> camera leaf. Dropped siblings are asserted unreachable.joaatof a synthetic label.Limits preserved in the module docstring:
(id, type)dispatch is inferred from serialized structure (not runtime code), the reference resolver is id-only, and the native event supplying the pair is still unidentified.Test plan
python -B tests\script_dispatch_check.py out\build\dev\script_path_host.dll -v-> 5/5 OKtests\script_path_check.py-> 3/3 OKtests\script_state_check.py-> 3/3 OKscript_dispatch_pairsin CTest; verified passing in the Windows CI run on this branch@R0Y00 on GitHub · 2026-11-21 17:17 UTC · original
The synthetic dispatch case is helpful for #19. Please register it in CTest next to script_path_check, pass the built script_path_host target, and verify the registered test runs on Windows CI.
@MarlomMedeiros on GitHub · 2026-11-21 17:54 UTC · original
Done. Registered as
script_dispatch_pairsnext toscript_path_links, passing$<TARGET_FILE:script_path_host>. Verified green in the Windows CI run on this branch (61/61 tests).@copilot-pull-request-reviewer[bot] on GitHub · 2026-11-21 16:48 UTC · original · reviewed
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.