Skip to content

Add UI verification Factory skill and migrate PR Visual evidence to GitHub attachments #2282

Closed

Description

@JacobStephens2

Parent

#2023 (ADR 0034; glossary: Visual evidence, Factory skill, Harness, Worktree)

What to build

Give single-issue Runs and Day shift pull requests end-to-end interactive UI verification and GitHub-attached Visual evidence across all seven Harnesses:

  • Add a composable thirdshift-verify-ui Factory skill, linked across all seven Harness adapters and listed on the Prompts page, with no new cold Step in Built-in processes (while remaining usable as a standalone skill Step in a Custom process or Experiment Arm, ADR 0024). (Q1.6)
  • Invoke thirdshift-verify-ui from the implementation, bug-diagnosis, and pull-request Factory skills and their Day shift twins (kept in parity) whenever a change touches rendered HTML, CSS, templates, frontend routes, or interactive UI state.
  • Standardize on a two-phase shell/CLI browser workflow with zero MCP configuration across all seven Harnesses (claude, codex, agy, grok, muse, opencode, kimi): (Q1.1, Q1.2, Q2.4, Q2.5)
    • Phase 1 — Interactive exploration: boot the target application on an OS-assigned ephemeral port with isolated mktemp state, drive affected flows interactively (using an installed browser CLI or short Playwright scripts), inspect accessibility snapshots, console errors, and failed network responses, and fix broken UI behavior in-session. Tear down both the application server and any browser daemon inside a single trap ... EXIT subshell so proof captures in mktemp survive cleanup while zero child processes outlive the command (preventing a wasted Resume).
    • Phase 2 — Clean walkthrough pass: execute a disposable Playwright script in a temporary file (mktemp, removed on exit) against headless Chromium at 1440×900 desktop (plus 390×844 mobile when responsive behavior is affected), matching recordVideo dimensions to the viewport, enabling Playwright's native showActions cursor/click/highlight annotations (falling back to a lightweight injected cursor and click-ripple overlay only when a target repository pins Playwright older than 1.59), pacing actions with brief ~300–500 ms beats and zero model-thinking pauses, asserting no unexpected pageerror or 5xx responses, closing the browser context to flush the recording, and transcoding via ffmpeg to H.264 .mp4 (libx264, yuv420p, +faststart, 5–25 s target length, strictly <= 8 MB).
  • Static layout, typography, or copy changes continue to use paired Before and After .png screenshots without requiring a video. Interactive UI changes always include an After walkthrough .mp4 recording (alongside static .png pairs where layout changed), and include a matching Before walkthrough .mp4 (recovered from a temporary detached Base branch worktree when needed) only when fixing a bug or altering an existing interactive flow — omitting Before video for net-new controls or routes. (Q2.5)
  • Discover project-local verify-* skills (or a UI verification section in AGENTS.md, falling back to repository test/dev-server docs), allow pull requests to record newly discovered setup traps in a project-local verify-* skill's Gotchas, and read optional host-only faux test credentials from the per-repository verify-env configuration path outside git rather than copying untracked .env files from the Launch directory. (Q1.3, Q1.4, Q2.6, Q3.1)
  • Replace #1092's secret-Gist upload workflow across Factory and Day shift skills with gh pr create --attach and gh pr edit --attach (gh >= 2.103.2, ADR 0034), placing #2265's bold visible flow-and-viewport labels immediately above each attached .png or .mp4 paragraph so GitHub renders inline images and native <video> players inheriting repository read permissions. Enforce pre-upload shell validation before calling gh --attach: gh >= 2.103.2, regular file (-f), not a symlink (! -L), owned by the current user (-O), safe [A-Za-z0-9._-] filename with .png or .mp4 extension, non-empty, <= 8,388,608 bytes (8 MB), and faux/redacted data only. Keep Ready-for-review with an explicit limitation in ## Evidence when the app, browser, ffmpeg, or gh >= 2.103.2 --attach cannot run. (Q1.7, Q2.1, Q2.2, Q2.3)
  • Extend the fake gh test harness (pr create, pr edit, pr comment, and --version) to accept repeatable --attach flags.

Acceptance criteria

  • thirdshift-verify-ui is embedded and linked across all seven Harness adapters, listed on the generated Prompts page, and Factory and Day shift pr, implement, and diagnosing-bugs skills remain in parity.
  • No Factory or Day shift skill creates or pushes secret Gists for PR Visual evidence; captures publish via gh pr create --attach and gh pr edit --attach beneath bold visible flow-and-viewport labels.
  • Executing the PR skill's shell validation and publish recipe against the fake gh harness refuses symlinks without reading their target, refuses non-regular or unowned files, bad filenames, files over 8 MB, and gh < 2.103.2, and passes valid .png and .mp4 mktemp captures through repeatable --attach flags.
  • thirdshift-verify-ui specifies the two-phase browser workflow (showActions with < 1.59 fallback, ffmpeg H.264 yuv420p +faststart <= 8 MB), static-vs-interactive Before/After rules, verify-* discovery, ephemeral port + mktemp + trap server/daemon teardown, host-only faux verify-env loading, and explicit ## Evidence limitation fallback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions