OpenClaw / ClawSweeper
Merged upstreamCorrectnessMerged Jul 23, 2026

Hydrate screenshot proof for sandboxed reviewers

Fixed ClawSweeper review evidence handling so screenshot-only proof is downloaded for sandboxed reviewers instead of being treated as unviewable.

openclaw/clawsweeper · #595

Problem

ClawSweeper allowed screenshots as real-behavior proof, but the media hydration path only collected video URLs. Read-only review sandboxes run without network access, so image-only proof had no local artifact and could be marked insufficient regardless of quality.

Approach

Generalized video proof discovery into media proof discovery, added bounded hydration for PNG, JPEG, WebP, and GIF image proof, branched artifact preparation by image versus video, and updated runtime prompt guidance to inspect local image paths before browser fallback.

Impact and scope

  • Lets screenshot-only evidence be judged on its merits inside network-disabled review sandboxes.
  • Preserves existing video ffprobe/contact-sheet processing while skipping unnecessary video tooling for images.
  • Keeps local-range review behavior safe by continuing to avoid host-side media downloads for synthetic local review bodies.

Validation

  • Added regression coverage for image discovery, image artifact preparation, mixed image/video ordering, and preserved video-only hooks.
  • Validated the production helper path with a real local HTTP-served PNG and bounded curl download.
  • Full local check passed with build, lint, 1,180 unit tests, repair tests, changed and full coverage suites, and formatting.