Skip to content

Stale-point guard: #431's same-label refusal misses a twin recorded without a frame #435

Closed

Description

@SSFSKIM

Problem

#431 (PR #434) made the stale-point guard refuse a re-created match when the observation's record holds a twin: another element of the node's role, in the same web area, whose label agrees. The twin search (recreatedRefused in native/engine/Sources/Engine/StalePoint.swift) reads only the record's framed nodes. A twin recorded without a frame is not seen.

If such a twin then slides into the removed control's place with a frame, the only thing still standing in its way is the coverage rule: the node's web area must have been recorded whole. On a fully recorded page, the click is kept and lands on the twin, as it does on main (where any same-role, same-frame, agreeing-label candidate passes).

Not measured live. On the browsers #431 measured (Chrome for Testing, Safari, Electron), links and buttons always read a frame, so no cell produced a frameless twin. It could arise from:

  • an element that is hidden or collapsed at the observation and has no AXFrame;
  • an app whose controls report no frame until laid out.

This was logged as tech debt on #431's branch; design ruling 891 makes any wrong click that main also makes a ticket.

What to do

Check

  • A Swift stub test: the twin is recorded frameless and gains a frame at the removed control's point. It must refuse nodeGone.
  • If cheap, a hosted cell on probe/431-qual's kit: a twin that the browser lists without a frame at the observation, for example inside a collapsed <details> if the browser lists it there, and that is shown as it slides up. It must answer nodeGone on CfT, Safari and Electron, and the keep cells must stay unchanged. A display:none twin isn't in the tree at all, so it can't be told apart from a re-creation, and it's out of scope.

Found by #431's build (residue).

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P2
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 20, 2026
  2. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: claimed by cursor235 (0.28.20); builder dispatched

  3. added
    status:in-review
    and removed
    status:in-progress
    on Nov 20, 2026
  4. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: PR open; ci-gate GREEN 44703056198; hosted discovery + regression

  5. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    [review-trail] reviewer-medium on 66ae2e8: one P2 (target re-tokenized per frameless peer, latency regression), fixed in 493c64c (equivalence + call-count tests; perf-only, no further round). Hosted: probe/435-qual README d7052b7: discovery found no frameless nodes on CfT/Safari/Electron (defence only); regression 0 verdict/reason diffs, 0 wrong targets. Head 2796927 (merged main 215a07a), ci-gate GREEN https://github.com/SSFSKIM/cua/actions/runs/44703056198.

  6. added a commit that references this issue on Nov 20, 2026
  7. removed
    status:in-review
    on Nov 20, 2026
  8. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: Landed via PR #440 (cua 0.28.20)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority:P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions