fix(cua-driver): reject mismatched native window pixel geometry - #3720
Draft
injaneity wants to merge 1 commit into
Draft
fix(cua-driver): reject mismatched native window pixel geometry#3720injaneity wants to merge 1 commit into
injaneity wants to merge 1 commit into
Conversation
injaneity
added this pull request to stack #3721
September 10, 2026 19:37
This was referenced Sep 10, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope
Refs #3631. Stacked on #3616 (parent baseline
3d13b8037578e27d91d1832c2f23f9847d7917f5); this is the implementation workstream, not another RFC-only artifact.Preserve useful native captures and semantic accessibility actions while reporting logical/compositor disagreement and refusing confirmed mismatched pixel targeting. Preserve the parent’s runtime-owned snapshot cache, retained admitted elements, and prepared-snapshot publication ordering. Geometry is fresh evidence, not a second identity authority.
Progress
Validation
Initial comparison test was red because the new types were absent, then green after implementation.
From
libs/cua-driver/rust:cargo test -p cua-driver-core --lib native_window_geometry --locked: 6 passed.cargo test -p cua-driver-core --test snapshot_invariants --test snapshot_dispatch_invariants --locked: 10 passed.cargo fmt --all --check: passed.git diff --check: passed.Known gaps
This first slice is not wired into product capture or dispatch; #3631 is not fixed yet. No new protocol fields or unknown-geometry refusal policy ships in the current diff. Native normalization, threshold/budget calibration, public-contract projection, and end-to-end evidence remain pending. Prior investigation is diagnostic evidence, not certification of this branch. Do not mark ready or merge based on these unit tests.
Stack maintenance
Rebase when #3616 changes and test the resulting combined candidate. After its squash merge, transplant only this child’s commits onto main, retarget this PR, and verify that the parent implementation is absent from the child diff. Preserve parent contributor history while stacked; do not duplicate its ownership/cache machinery.