Skip to content

feat(workers): blocking-overlay analyzer — flag open modals/overlays on selector failures #59

Closed

Description

@jyotir-aditya

Problem

The single most common "misleading fix_hint" case from real agent feedback: a selector_not_found / selector_not_visible / timeout failure where the selector is correct but a modal/overlay is covering the page.

The failure was reported as "Selector did not match any element. Fix the selector…" — but the selector was correct; it matched fine once the dialog was dismissed. Nothing in the JSON summary flags "there's an open, viewport-covering dialog in this snapshot." I had to script-grep the raw .html snapshot to find the "Welcome to Cleara" markup. That single line would have pointed straight at the fix instead of costing several diagnostic run cycles.

Proposal

A blocking_overlay analyzer for the failure-analyzer pipeline:

  • Input: open-dialog/overlay facts collected at failure time ([role=dialog], [aria-modal=true], full-viewport fixed/absolute elements with high z-index, with accessible names). This detection must run against the live page (computed styles aren't recoverable from the saved static HTML), so it consumes the failure-time facts from the facts-collection issue.
  • Trigger: failure type is selector_not_found, selector_not_visible, or timeout, AND at least one blocking overlay was present at failure time.
  • Output finding:

    blocking_overlay — An open dialog ("Welcome to Cleara") was present at failure time and may be intercepting this element. Consider an optional dismiss step before this one.

Design rules

  • Hypothesis language only ("may be intercepting") — an open dialog is strong but not conclusive evidence.
  • Deterministic: ARIA roles + computed geometry, no LLM.
  • If detection is ambiguous (e.g. overlay is small or not covering the viewport), stay silent — precision over recall.

Depends on

  • Failure-analyzer pipeline (findings[] contract)
  • Failure-time facts collection (live overlay probe)

Acceptance criteria

  • Finding emitted for the trigger types when a full-viewport modal/overlay was open at failure time, naming the overlay's accessible name
  • No finding when no overlay was present, or for unrelated failure types
  • Fixture-based standalone test (recorded facts in, finding out)

Activity

  1. added
    enhancement
    on Jul 9, 2026
  2. jyotir-aditya commented on Jul 11, 2026

    @jyotir-aditya
    ContributorAuthor

    Shipped in #86: blocking_overlay analyzer with precision gating (full-viewport overlays always qualify; ARIA dialogs need >=20% viewport coverage so toasts stay silent), plus crash-path wiring so step failures — the original dialog-blocks-click field case — also get findings rendered into fix_hint. E2e-verified against both an ARIA dialog and a role-less full-viewport overlay.

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions