Skip to content

macOS engine: #305/#296's re-created match presses a replacement whose label never verified #521

Open

Description

@SSFSKIM

Problem (wrong press on main)

#305's recordedHitAtPoint (native/engine/Sources/Engine/StalePoint.swift ~:1821) and #296's re-created match accept a replacement through the lenient stalePointLabelsAgree and #431 only. Example: a deeper surviving group sits at the point, and a unique button is re-created in place. Its recorded title was non-text (numeric), it has no description, and its live title is absent. recordedHitAtPoint returns .hit, and the press gate accepts the replacement as recordedHit. The label never verified it. #296's direct path (:1185 → :1650 → :2000) has the same shape. Found by #519's reviews (ruling 1149b/1151). #519 fixed and then reverted it under 1151, because the fix touched target selection.

Design

This is folded into #481's design note (ruling 1146/1151). The note must say how a refused re-created match is handled without promoting the next candidate (target monotonicity: the trap #519's P1-1 and P1-2 fell into), and it must apply 1146's three-valued reads to the lenient match.

Acceptance

  • The repro refuses.
  • No target choice changes except to a refusal (differential test against main).

Activity

  1. added
    bug
    status:ready-for-architect
    priority:P1
    on Nov 23, 2026
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:P1status:ready-for-architect

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions