Repository navigation
feat(evidence): show the agent pointer as a view-time overlay - #218
Merged
Merged
Conversation
Declare the capture link, input state, drag start and xvfb-root coordinate space fields, plus an evidence-only owned display check stub. Refs #199.
Share the typing ownership checks with verifyOwnedDisplayTarget, an evidence-only check that never gates input. The isolation regression test covers mismatched ownership, dead and recycled servers, and inherited host endpoints. Refs #199.
Sanitize drag starts, the xvfb-root coordinate space and capture links. Overlay a ring and a drag line on explicitly linked captures, with dashed markers for attempted input and a CSS-only switch. Refs #199.
MCP pointer tools record drag starts, input state, capture links and the verified coordinate space without changing tool responses. CLI click and drag append best-effort action records. Refs #199.
Extract the best-effort run start, the post-input record step and the sanitizer predicates. Behavior is unchanged. Refs #199.
This was referenced Oct 3, 2026
3 tasks
Reuse the share report's full PNG validation for both reports, so a file with a valid header but broken image data stays unmarked. Refs #199.
7 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Evidence reports now show where the agent clicked, double-clicked, scrolled or dragged on desktop captures. The viewer draws the marker at view time from the recorded action. Captured PNGs and MCP tool responses do not change, so the feature costs the agent no tokens.
A marker appears only on a capture that the action explicitly links to, with its phase and pixel size. It also needs a point in the
xvfb-rootcoordinate space and an attempted or completed input. Pickforge recordsxvfb-rootonly when the session's own Xvfb verifies before and after the action. That check never gates or redirects input, so input behavior is unchanged. Older or incomplete records render exactly as before.Closes #199
Traceability
desktop_screenshotpackages/mcp-server/test/desktop-pointer-evidence.test.ts;actions.jsonlin the gallery folderpackages/cli/test/desktop-pointer-evidence.test.ts; device pass journalSanitizedActionTargetgainsxvfb-root; malformed or missing values are dropped, never guessedpackages/core/test/evidence-sanitize.test.tsorigin/main: 0 shape or content-type differences; 10 capture PNGs hashed before and after: 0 changedpackages/mcp-server/test/desktop-pointer-evidence.test.ts;mcp-responses-*.jsonreport.htmlandreport-share.html; every ring within 0.05 image px of its point (0.08 px at the 1279,799 corner); no upscalingpackages/core/test/evidence-markers.test.ts; screenshots 01, 04, 05, 08 to 12evidence-markers.test.ts; screenshots 02, 03DISPLAY,WAYLAND_DISPLAYandXAUTHORITY;clickanddragpass the session display to xdotool; live run with host endpoints poisoned still verified the owned Xvfbpackages/desktop-linux/test/pointer-target.test.ts(42 cases)bun run typecheck,bun run lint,bun run test:coverageat 42ce3d2: 2349 passed, 6 environment skips; coverage 86.55 / 81.44 / 87.00 / 87.55 (statements, branches, functions, lines)docs/releases/UNRELEASED.mdentrydocs/releases/UNRELEASED.mdPickCheck 0.4.0
--base origin/main --fail-on new,worsened,unmatchedpasses with no violations at 42ce3d2.Independent xhigh reviews by Astra and Fable found no blocking issues. Their should-fix findings are fixed in this PR and rechecked by the reviewer who raised them: PNG size and validity checks, both drag endpoints, contested captures, input dispatch before the evidence claim, and display assertions in tests. Follow-ups found during this work: #219 (pointer input ownership), #220 and #224 (existing test flakes under parallel load).
Device pass evidence:
~/Artifacts/pickforge/2026-10-03/device-pass-199/manifest.html(standalone gallery at 42ce3d2, kept outside the repo). It ran headless Chromium 152 over CDP, with phone widths in Chromium emulation only. Safari, Firefox and physical phones were not tested. xterm is not installed on the test host, so the live journey used a zenity text window.Pointer input still does not verify Xvfb ownership itself; typing does. That gap predates this change and is tracked in #219.