Skip to content

owner-led: visual-change PR auto-review (before/after screenshots) #577

Description

@JSONbored

Parent roadmap: #525

Owner-led tooling — assigned to @JSONbored. Not a Gittensor-scored contributor task.

Goal

Make owner-led visual PRs reviewable at a glance: automatically capture before/after screenshots (plus a pixel diff) on any PR that changes the UI, and post them in a single managed PR comment. This removes the "contributors don't supply visual evidence / visual review is slow" pain and gives a maintainer (or a future review agent) something concrete to reason over.

Built as a separate private Cloudflare Worker mirroring the existing submission-gate maintainer-agent pattern (webhook → queue → review → idempotent marker-comment) used in metagraphed and awesome-claude — kept private so the gating logic isn't gameable.

Approach (heavy reuse)

  • Worker skeleton, D1 review-state, R2 audit, queue + DLQ, marker-comment idempotency (upsertMarkerComment), GitHub App token helper (githubJson) — mirror the submission-gate pattern.
  • UI rendering — reuse gittensory's npm run ui:preview. Screenshot capture — reuse the existing Playwright smoke harness (scripts/smoke-ui-browser.mjs, test:smoke:browser).
  • Image hosting — Cloudflare R2 (already available), no third-party service.

Children (segmented)

Done when

  • A PR that changes the UI automatically gets one managed comment with before/after/diff screenshots of the affected routes.

Notes

Metadata

Metadata

Assignees

Labels

maintainer-onlyOwner-only work — yields no Gittensor points.roadmapOn the Wave-2 agent-layer roadmap board (project 9)visualUI/web visual work — owner-led, NOT for Gittensor contributors (extensions excepted)

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions