Skip to content

fix: make UI grounding provider-neutral and strict - #97

Open
sakibalig wants to merge 1 commit into
feat/openai-provider-supportfrom
fix/provider-neutral-ui-grounding
Open

sakibalig wants to merge 1 commit into
feat/openai-provider-supportfrom
fix/provider-neutral-ui-grounding

Conversation

@sakibalig

@sakibalig sakibalig commented Aug 24, 2026 •

Copy link
Copy Markdown

Summary

Make spatial-action grounding provider-neutral and fail closed when no runtime evidence corroborates a target.

Problem solved

OpenAI planners could emit plausible but vertically biased coordinates. When XML, OCR, regional, and vision stages abstained, Fathom dispatched those coordinates blindly, producing wrong taps and invalid cross-provider comparisons.

What changed

  • Enables XML/accessibility grounding by default where supported.
  • Resolves explicit label_id values and exact runtime identifiers/text before visual estimates.
  • Makes strict grounding the default; uncorroborated planner bounds are refused rather than dispatched.
  • Retains permissive blind dispatch only as an explicit legacy policy.
  • Rejects normalized bboxes that exceed the published 0–1000 coordinate contract.
  • Treats no-progress device actions as unsuccessful so ineffective taps cannot appear successful.
  • Removes provider-tuned target-word stripping; grounding relies on structural manifest evidence, OCR/regional evidence, or ensemble consensus.
  • Adds focused tests for strict/permissive behavior, label resolution, coordinate validation, default configuration, and no-progress handling.

Result

Every provider now uses the same evidence hierarchy. A target is either grounded by runtime evidence or rejected explicitly; Fathom no longer silently executes an unsupported coordinate guess in strict mode.

Scope

This PR does not add providers or Plumb scoring. Documentation follows in PR #98.

Validation

  • 2,273 tests passed; 250 optional/live tests skipped.
  • Ruff, formatting, and whitespace checks passed locally.
  • No credentials, screenshots, logs, or generated run artifacts are included.

Stack

Base: feat/openai-provider-support (PR #96)
Follow-up: docs/provider-neutral-execution (PR #98)

@sakibalig
sakibalig force-pushed the feat/openai-provider-support branch from 37b26e2 to 0e3aac3 Compare August 27, 2026 08:24
@sakibalig
sakibalig requested a review from aman-drizz as a code owner August 27, 2026 08:24
Signed-off-by: Sakib Khan <sakibalig2003@gmail.com>
@sakibalig
sakibalig force-pushed the fix/provider-neutral-ui-grounding branch from 5779880 to ac5fa94 Compare August 27, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant