Skip to content

Triage batch: occluded-click classification (#88), selector suggestions (#65), framework-aware init (#73), docs drift sweep (#64) - #91

Merged
jyotir-aditya merged 5 commits into
mainfrom
claude/github-triage-delegation-b6bb1e
Jul 16, 2026
Merged

jyotir-aditya merged 5 commits into
mainfrom
claude/github-triage-delegation-b6bb1e

Conversation

@jyotir-aditya

@jyotir-aditya jyotir-aditya commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

Four issues from the open backlog, one commit each.

fix(workers,cli): occluded clicks classify as selector_not_visible (#88)

A click blocked by an overlay resolves the locator but times out on actionability; Playwright's call log starts with the same waiting for locator(...) line either way, so both crash classifiers reported selector_not_found — steering agents toward rewriting a correct selector. The classifiers now check for locator resolved to / actionability text (intercepts pointer events, not stable, off-viewport) first. The CLI's selector_not_visible fix_hint no longer implies a selector fix, and the benchmark's occluding-modal expected_failure_type is flipped so this class of drift is caught from now on.

Verified live against the benchmark's occluding-modal app: type: selector_not_visible, blocking_overlay finding, non-misleading hint.

feat(workers): deterministic closest-selector suggestions + DOM snippet (#65)

selector_not_found/selector_not_visible failures now carry two additive fields:

  • suggested_selectors — up to 3 ready-to-paste candidates from the failure-time DOM, ranked by Dice bigram similarity over id/testid/name/placeholder/aria-label/text/class, preferring data-testid > #id > [name] > [aria-label] > :has-text. Fully deterministic — no LLM, works in strict mode with no AI key. fix_hint names the top candidate above a 0.8 confidence gate; nothing plausible ⇒ both fields absent (silence over noise). The selector that already failed is never re-suggested.
  • dom_snippet — truncated HTML around the expected location (the selector's own match, its deepest matching ancestor prefix, or a landmark fallback).

Wired on both failure paths: assertion failures enrich details in runAssertions; step crashes probe the still-live page in the crash handler and ride at the result top level (selector_context), mirroring page_state/findings. The CLI surfaces both as additive failures[] fields and documents them in the generated .verfix/INSTRUCTIONS.md.

Also fixes strict-mode selector_visible conflating "matched nothing" with "matched but hidden" (isVisible() returns false for both) via a count() disambiguation — exposed by e2e-testing this feature: the near-miss case previously reported "exists but is not visible" for an element that didn't exist.

E2E on the testbed: #user-name (real id #username) yields type: selector_not_found, suggested_selectors: [{"selector": "#username", "score": 1}], the login-form dom_snippet, and a fix_hint naming #username — on both the assertion and step-crash paths.

feat(cli): framework-aware init (#73)

detectFramework() is a package.json dependency lookup (next → :3000, vite → :5173) — a table, not a plugin system. Detection only fills defaults: explicit --base-url/VERFIX_BASE_URL always wins, a live detected port still outranks the convention in the wizard, and unknown frameworks keep today's behavior byte-for-byte (flows: []). Detected projects get a conservative home-loads flow (navigate / + page_loaded + no_console_errors) that passes on a fresh starter without hand-editing.

docs: delete hybrid-mode/slim-image drift (#64)

Docs still described the removed hybrid host-worker mode and slim image as current behavior, and listed explicit ROADMAP non-goals (LangGraph wrappers, WebSocket streaming, DOM diffing) as planned. Rewritten against the actual code paths (single server image, per-OS network mode, poll-based dashboard sync); ROADMAP Phase 1 drift checkbox ticked. @verifyruntime references now limited to the still-published SDK package.

Verification

  • cd workers && npx tsc --noEmit --skipLibCheck && npm test — all suites green (including new test:selector-suggestions, extended test:analyzers)
  • cd cli && npx tsc --noEmit + all standalone CLI suites green (including new test:framework-detect); cli/test/json-purity.sh green
  • Local smoke test (testbed login flow): passed: true, timeline_url: null
  • Live e2e of both new behaviors against the testbed and the occluding-modal benchmark app (outputs above)

Closes #88, closes #65, closes #73, closes #64.

…elector_not_visible (#88)

A click blocked by an overlay resolves the locator (the selector is
correct) but times out on actionability. Playwright's call log starts
with the same 'waiting for locator(...)' line either way, so the crash
classifiers reported selector_not_found — steering agents toward
rewriting a correct selector. Check for 'locator resolved to' /
actionability text first, update the occluded-case fix_hint to stop
implying a selector fix, and flip the benchmark's occluding-modal
expected_failure_type so this class of drift is caught.
…as not planned (#64)

Docs still described the removed hybrid host-worker mode and slim image
as current behavior, and listed explicit ROADMAP non-goals (LangGraph
wrappers, WebSocket streaming, DOM diffing) as planned. Rewritten
against the actual code paths (single server image, per-OS network
mode, poll-based dashboard sync); ROADMAP Phase 1 drift checkbox
ticked. @verifyruntime references now limited to the still-published
SDK package.
…sing starter flow (#73)

detectFramework() is a package.json dependency lookup (next -> :3000,
vite -> :5173). Detection only fills defaults: an explicit --base-url /
VERFIX_BASE_URL always wins, a live detected port still outranks the
convention in the wizard, and unknown frameworks keep today's behavior
byte-for-byte (flows: []). Detected projects get a conservative
home-loads flow (navigate / + page_loaded + no_console_errors) that
passes on a fresh starter without hand-editing. Covered by a standalone
framework-detect test wired into npm test.
…et on selector failures (#65)

selector_not_found/selector_not_visible failures now carry additive
details: suggested_selectors (up to 3 candidates from the failure-time
DOM, ranked by Dice bigram similarity over id/testid/name/placeholder/
aria-label/text/class, built as ready-to-paste selectors preferring
data-testid > id > name > aria-label > text) and dom_snippet (truncated
HTML around the expected location: the selector's own match, deepest
matching ancestor prefix, or a landmark fallback). Fully deterministic —
no LLM, works in strict mode with no AI key. fix_hint names the top
candidate when its score clears the 0.8 confidence gate.

Wired on both failure paths: assertion failures enrich details in
runAssertions; step crashes probe the still-live page in the engine's
crash handler and ride at the result top level (selector_context),
mirroring page_state/findings. The CLI surfaces both as additive
failures[] fields and documents them in the generated instructions.

Also fixes strict-mode selector_visible conflating 'matched nothing'
with 'matched but hidden' (isVisible() returns false for both): a
count() disambiguation now reports selector_not_found vs
selector_not_visible truthfully.
@jyotir-aditya
jyotir-aditya force-pushed the claude/github-triage-delegation-b6bb1e branch from a5100b0 to 1040298 Compare July 16, 2026 15:59
@jyotir-aditya
jyotir-aditya merged commit e34f4f2 into main Jul 16, 2026
3 checks passed
@jyotir-aditya
jyotir-aditya deleted the claude/github-triage-delegation-b6bb1e branch July 16, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment