Skip to content

evidence: agent cursor polish (glyphs, exports, browser overlay) #200

Closed

Description

@ElbertePlinio

Polish for the view-time agent cursor from #199. None of it adds tokens for the agent, because it stays in the viewer or in exports.

Scope (updated 2026-10-03)

#199 merged in #218. The maintainer chose desktop glyphs and exports for this issue. Browser markers, Android markers, the live-view cursor, the root cursor policy and the browser recording overlay moved to their own issues. A design brainstorm on #200 sized the full list at about ten PRs.

Acceptance criteria

  • Desktop captures show a glyph per action kind: click, double click, drag, scroll with direction, and type as a caret at the verified focused window. The before capture shows intent and the after capture shows the result. Attempted input stays distinguishable.
  • desktop_move takes no captures, and adding them would change its tool schema and add tokens. So move appears in the pointer track only.
  • The type glyph marks the focused window, not an exact text position. No text, keys or lengths are added to evidence.
  • A versioned pointer-track schema is documented and exported from a run. It holds pointer events only, never keyboard data. Timing from existing records is labelled approximate.
  • An export command writes annotated copies of the PNGs, the pointer track and an export manifest with source hashes next to the run. Originals, the journal and the reports never change.
  • An opt-in ffmpeg slideshow is built from the annotated copies, with its frame timing recorded in the manifest. ffmpeg is needed only when the video is requested.
  • Glyph geometry has one source for the HTML viewer and the raster export.
  • MCP tool lists, arguments and responses stay unchanged. Older records render as before. The offline CSP and redaction stay intact.

Checklist

  • Per-action glyphs: move (pointer track only), click, double click, scroll with direction, type with a caret at the focused window. Intent on the before capture, result on the after capture.
  • Shared pointer-track schema, documented, so evidence exports can feed demo videos.
  • Derived exports: composite glyphs into copies of the PNGs and an opt-in ffmpeg video from the run, written next to the run, never over the originals.
  • Tests; bun run typecheck, bun run lint, bun run test:coverage green.
  • docs/releases/UNRELEASED.md entry.

Moved out

Original list

As filed

Polish for the view-time agent cursor from #199. Do these only after the basic desktop ring has proven useful in real device passes; none of them add tokens for the agent because they stay in the viewer or in exports.

  • Browser markers: record the capture rectangle, output dimensions, page identity and scroll/viewport state per screenshot (CDP captures can be viewport, full page, element crop or downscaled), keep fractional CSS coordinates until render, and resolve element-UID actions to a point or leave them unmarked.
  • Android markers: verified mapping between injected taps and the captured display orientation, no automatic density multiplication.
  • Cursor visibility in live view: the human overlay is the primary lever. If a root arrow is wanted, define a real capture policy first (maim blends the cursor into model frames today), initialize the root cursor explicitly rather than relying on theme files in the private HOME, and validate across capture tools. Consider x11vnc -nocursorshape for viewers that lack cursor position support.
  • Per-action glyphs: move, click, double click, scroll with direction, type with a caret at the focused window, tap and swipe on Android. Intent on the before capture, result on the after capture.
  • Shared pointer-track schema with the product-demo-video skill so evidence exports can feed demo videos.
  • Derived exports: composite ring/glyph into copies of the PNGs and an ffmpeg video from the run, written next to the run, never over the originals.
  • Browser recording overlay: an inert DOM pointer with click ripple, pointer-events: none, hidden from accessibility snapshots, active only while recording (pattern: vercel-labs/agent-browser record --cursor). Not shown in frames sent to the model.

Refs #199.

Activity

  1. added
    enhancement
    on Sep 23, 2026
  2. ElbertePlinio commented on Oct 3, 2026

    @ElbertePlinio
    MemberAuthor

    Note from the #199 review in PR #218, for browser and Android markers.

    The MCP evidence wrapper checks the desktop owner through an ownedDisplay option and sets coordinateSpace: "xvfb-root" directly in settleCoordinateSpace (packages/mcp-server/src/evidence.ts). Browser and Android markers will need their own spaces. A neutral hook would avoid new branches in the wrapper, for example { space, identity: () => Promise<string | undefined> } compared by string equality, with each tool formatting its own verified identity.

    The EvidenceCaptureLink and inputState contracts can grow additively. Browser links can add a capture rectangle, output size and scale.

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