Repository navigation
Description
Problem
A coordinate click is placed in the connection's last screenshot. If the app re-lays out after that screenshot, the engine posts the click at the old point, where a different control may now sit, and answers success. #294's spike measured this on Chrome for Testing 156:
- About 11–16 s after launch, the toolbar re-lays out: the Sign In pill collapses and the disabled Forward button returns.
- Reload moves from x 442 to 478, so a click at the first screenshot's Reload point lands on the disabled Forward button.
- A real HID click there misses too.
- Runs: https://github.com/SSFSKIM/cua/actions/runs/42173188779, https://github.com/SSFSKIM/cua/actions/runs/42175037968 and https://github.com/SSFSKIM/cua/actions/runs/42176012181 (kit branch
probe/294-hosted).
Here the stray click was harmless. Elsewhere the point could now hold a live control such as Delete.
Intent
Before posting a coordinate click, check that what the screenshot showed at the point is still there. Refuse, with nothing posted, when it is not. The design session ruled this on 2026-11-05 (1ea561bc, ee29283e):
-
Semantics: refuse, in both shared and dedicated modes.
-
What is recorded: each tree node's frame, at every observation that returns a screenshot. The lineage keeps handles and identity today, not frames.
-
What is compared: only the deepest recorded node whose frame contains the point. It counts as the same node by CFEqual, or by a re-created handle with the same role and a frame within 2 pt.
-
When to refuse:
- the node is gone;
- its re-read frame no longer contains the point;
- the hit-test at the point is now a different interactive element.
A different non-interactive hit (text or group) inside a still-in-place recorded node passes.
-
Where it does not apply: where macOS engine: a left click into a background Chrome page is swallowed as the window's activating click, and cua reports success #282 element-routes the point.
-
The error: names the old and the new element, and asks for a re-observation.
Constraints
- Measure false positives first, before the refusal is built. Use a dynamic page: a CSS animation, a ticking counter, a feed that prepends items, and a scrolled list. Bring that table to the design session before the PR.
- A refusal whose target is still under the point means the guard needs narrowing.
- A refusal where the target really moved is correct.
- State the vendor divergence in the limits: cua refuses where the vendor would post blindly.
- Cost: one frame read per click, beside the hit-test that the route already takes.
- Board: spawned by macOS engine: a route-3 click on a background Chrome's toolbar after 20 s or more of inactivity reports success but is not delivered #294. No parent and no blocker (consciously N/A).
Success criteria
- A hosted A/B on Chrome for Testing in which a click at a re-laid-out point is refused with nothing posted. A click at a still-in-place point is delivered as before.
- The false-positive table, ruled acceptable by the design session.
- A Decision Log entry in docs/doperpowers/specs/2026-10-18-own-native-engine-design.md.
Activity
Evidence and spec: #294's Reload miss was a stale point after Chrome …
SSFSKIM commentedon Nov 6, 2026
[board] in-progress: Taken by cursor235: false-positive spike first (design session ruling ee29283e), then the build
Evidence and spec: #294's Reload miss was a stale point after Chrome …
Engine: a coordinate click or drag whose point no longer holds what t…
Service: the engine's stalePoint verdict rides as cua/stalePoint, and…
Docs: the first-call document's third macOS paragraph names the stale…
Spec: #296's Decision Log entry (the rule, the amendment, the 300-des…
Engine: the stale-point guard chooses its node in the screenshot's sp…
Spec: #296's entry states the window-shift rule, frameless completene…
Engine: a stale point is refused before #282's element route, which p…
23 remaining items
Engine: a click refuses when the page added an element over the point…
Engine: a control relabelled in place is refused as relabelled, its l…
macOS engine: #340's resized-text tests pin a title on one side, a te…
Probe 431: the builder's big-page re-creations (width rule, node cap)…
macOS engine: a re-created match is refused where the record could no…
macOS engine: the re-created match reads the whole handle map, decode…
macOS engine: the stale-point guard refuses a same-label control that…
macOS engine: #431's twin search also reads record nodes without a fr…
macOS engine: a click recorded on an inert overlay is vouched for by …
macOS engine: a background click on transient UI is carried by the el…
macOS engine: the stale-point guard refuses a kept decoration that no…
macOS engine: #519's label rules only add refusals, never move the ta…
macOS engine: #519 narrowed to the decoder and the consumers that cho…
macOS engine: a non-text label slot is non-text, never known absent (#…
macOS engine: a live label value is read through #405's classificatio…