Skip to content

audit (web): silently evaluates 0 controls and always returns no findings #5236

Done

Description

@andreev-danila

Summary

agent-device capabilities --platform web lists audit as supported, but running agent-device audit --platform web silently skips every control and always returns No findings (with checks.snapshot: "complete"), even on pages with obvious missing-name and ambiguous-name violations.

Reproduction

Environment: agent-device 0.21.44, managed agent-browser 0.39.0, Node 24, macOS.

agent-device open 'data:text/html,<button></button><button>Save</button><button>Save</button><a href="https://example.com"></a>' --platform web --session a11y
agent-device snapshot -i --platform web --session a11y
agent-device audit --platform web --session a11y --json
agent-device close --platform web --session a11y

snapshot -i sees all four controls:

@e54 [button]
@e55 [button] "Save"
@e56 [button] "Save"
@e57 [link]

Actual result

{
  "success": true,
  "data": {
    "findings": [],
    "guidance": {},
    "checks": {
      "snapshot": "complete"
    },
    "limitations": [
      "Target size was not checked: desktop targets are focus-driven, so touch target size does not apply."
    ]
  }
}

Expected result

Either:

  • Report missing-name for the unnamed button and link, and ambiguous-name for the two "Save" buttons (and covered-control when controls are occluded), or
  • Explicitly report audit as unsupported (or report a limitation that controls were not evaluated) instead of returning No findings with checks.snapshot: "complete".

Root cause

  1. packages/platform-web/src/agent-browser-provider.ts:339 only measures element geometry (rect) when options?.includeRects is true (made opt-in in perf(web): measure snapshot geometry in batched backend calls, decided per entry #3533).
  2. auditSnapshotCommand in packages/command-runtime/src/commands/capture/runtime/snapshot.ts:200 calls captureRuntimeSnapshot(runtime, options) without requesting includeRects: true, so every web snapshot node has rect: undefined.
  3. isActionable in packages/capture-kit/src/snapshot/snapshot-audit.ts:352-361 requires isPositiveFiniteRect(node.rect) before evaluating a node, and occlusion analysis (covered-control) also requires rects. As a result, 100% of web controls are filtered out silently.

Suggested fix

Pass includeRects: true on the audit snapshot capture path when platform === 'web' (so missing-name, ambiguous-name, and covered-control all run on web), or decouple name checks from rect presence and document geometry-dependent limitations when rects are absent.

Activity

  1. added
    bug
    on Dec 1, 2026
  2. thymikee commented on Dec 1, 2026

    @thymikee
    Member

    Fixed on main in #5279 (2f0bcb1c7a). The four-control page now reports two missing names and two ambiguous names. The first build with the fix is 0.21.46-nightly.20261201.307. If you try that build, please confirm it reports the four findings for your page.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions