Skip to content

Spec: interactive UI verification and GitHub-attached Visual evidence in pull requests - #2289

Merged
JacobStephens2 merged 29 commits into
mainfrom
issue-2023
Nov 19, 2026
Merged

JacobStephens2 merged 29 commits into
mainfrom
issue-2023

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Closes #2023

Summary

Adds composable UI verification and GitHub-attached Visual evidence across Factory skills, Day shift skills, Session prompts, Setup, fake GitHub tests, the User manual, and the static site:

  • Skills & mirroring: Added embedded skills/thirdshift-verify-ui/ and Day-shift twin .agents/skills/verify-ui/ (mirrored to .claude/skills/verify-ui), plus verification-skill generators (.agents/skills/create-verification-skill/, maintain-verification-skill/) and dogfood site/Console verification skills (verify-site, verify-console, mirrored under .claude/skills/). Updated thirdshift-implement, thirdshift-diagnosing-bugs, thirdshift-pr and their Day-shift twins to capture and publish repository-scoped GitHub attachments via gh --attach (ADR-0034).
  • Prompts & Delivery scope (prompt::TicketScope): Threaded TicketScope (TicketScope::for_child separating SpecTicket child Ticket runs from Standard PR runs, Base fixes, and Custom process Issue-branch runs) through implement::opening, Delivery, Security review (prompt::security_review), and Delivery Repairs (prompt::conflict_repair, prompt::ci_fix_repair, prompt::review_repair). SPEC_TICKET_VISUAL_EVIDENCE keeps child Ticket verification local in the worktree without calling gh or uploading attachments, while open_pr_visual_evidence and prompt::spec_review capture/refresh unified Before and After Visual evidence on Standard PRs and the unified Spec PR (leaving non-UI backend/test edits untouched). Added Spec Ticket and updated Repair entries in src/prompts_page.rs.
  • Setup Visual evidence checks (src/setup/visual_evidence.rs): Added post-save probing (check_visual_evidence in src/setup.rs) for gh >= 2.103.2, ffmpeg, and Playwright Chromium (including cached headless-shell layouts), printing install hints non-interactively and offering one [y/N] install prompt on a terminal with isolated working directory (LocalHttpServer RAII fixture in tests/setup.rs).
  • Fake GitHub & docs/site: Extended tests/fakes/gh.rs (attached_body, pr_create, pr_edit, comment in tests/fakes/gh/review.rs, gh --version) to validate and rewrite --attach captures into user-attachments assets, documented the workflow in docs/guide.md (#ui-verification-and-visual-evidence), docs/code-navigation.md, and hand-written site/ pages, and regenerated prompts/*.md, site/prompts/index.html, and site/docs/index.html.

Seams tested:

  • Embedded Factory/Day-shift skill parity, .claude/skills/ symlink resolution, and thirdshift-pr Visual evidence publish recipe validation against fake gh --attach (tests/ui_evidence.rs, src/skills/tests.rs, tests/packaging.rs).
  • Prompt rendering across Standard / SpecTicket / SpecReview / SecurityReview / Delivery Repairs (prompts_page tests, tests/ci.rs, tests/mergeable.rs, tests/process/land_tickets.rs, tests/spec_run.rs).
  • Setup Visual evidence tool detection, installer execution against local HTTP npm/registry fakes, and PTY decline/accept flows (src/setup/visual_evidence.rs, tests/setup.rs, tests/setup_offer.rs, tests/setup_lifetime.rs).
  • Static site docs generation, Playwright UI/responsive/no-JS checks, and review-counts.test.cjs (site/tests/).

Evidence

Execution evidence

  • Full Spec validation on 65d56797 (scripts/affected-tests refs/remotes/origin/main </dev/null, npm run docs:check, fmt, clippy, scripts/ tests):

    • scripts/affected-tests refs/remotes/origin/main </dev/null (</dev/null avoids the Harness runner's /dev/pts/* PTY triggering interactive cost/confirmation prompts on integration fixture commands that inherit stdin): exited 0 — PASS npm test --prefix site (74 passed, 0 failed in 47.04s) and PASS cargo test across 114 suites (unittests src/main.rs: 1984 passed; 0 failed; 3 ignored, 113 tests/*.rs suites: 2849 passed; 0 failed; 212 ignored subprocess guardian entry points; total 4833 passed; 0 failed; 215 ignored in 1571.72s).
    • npm run docs:check --prefix site: exited 0.
    • cargo fmt --check && cargo clippy --all-targets -- -D warnings: exited 0.
    • python3 -m unittest discover -s scripts -p 'test_*.py': 72 passed (0 failed).
  • Spec & Standards code-review fixes (verified before commit 65d56797 -> after):

    • Before: test -L .claude/skills/verify-ui && test "$(readlink .claude/skills/verify-ui)" = "../../.agents/skills/verify-ui" && test -f .claude/skills/verify-ui/SKILL.md exited 1, and cargo test --test ui_evidence day_shift_ui_verification_skills_are_mirrored_for_claude_and_free_of_factory_references failed (No such file or directory (os error 2)).
    • After (65d56797): test -L .claude/skills/verify-ui && test "$(readlink .claude/skills/verify-ui)" = "../../.agents/skills/verify-ui" && test -f .claude/skills/verify-ui/SKILL.md exited 0; cargo test --test ui_evidence passed (7 passed; 0 failed; 2 ignored guardian tests); cargo test --test setup visual_evidence passed (10 passed; 0 failed); cargo test --bin thirdshift prompts_page passed (16 passed; 0 failed); cargo fmt --check && cargo clippy --all-targets -- -D warnings exited 0; python3 -m unittest discover -s scripts -p 'test_*.py' passed (72 passed).

Visual evidence

Captures below compare detached refs/remotes/origin/main (Before) against HEAD (After) across rendered site/ pages using public/faux state (Before walkthrough video omitted because #skill-thirdshift-verify-ui and #ui-verification-and-visual-evidence are net-new flows):

Before — Homepage Spec run disclosure, desktop 1440×900

Before homepage Spec run disclosure at desktop 1440x900

After — Homepage Spec run disclosure, desktop 1440×900

After homepage Spec run disclosure at desktop 1440x900

Before — Homepage Step 3 · Review press column, mobile 390×844

Before homepage Step 3 Review press column at mobile 390x844

After — Homepage Step 3 · Review press column, mobile 390×844

After homepage Step 3 Review press column at mobile 390x844

Before — Prompts page Factory skills list, desktop 1440×900

Before Prompts page Factory skills list at desktop 1440x900

After — Prompts page Factory skills list with thirdshift-verify-ui, desktop 1440×900

After Prompts page Factory skills list with thirdshift-verify-ui at desktop 1440x900

After — Site walkthrough: Homepage disclosure, Prompts thirdshift-verify-ui, User manual UI verification, desktop 1440×900

after-site-walkthrough-desktop.MkOCNE.mp4

Tickets

Merge Danger

Door: Two-way

Blast Radius: Moderate

All production code changes affect prompt assembly, embedded skill text, optional Setup post-save probing, and documentation/site assets; no on-disk Command record schemas or persisted state formats change. Existing setups lacking gh >= 2.103.2, ffmpeg, or Playwright Chromium receive a Setup warning/offer and still fall back cleanly to stating verification limitations in the PR Evidence section when capture tools cannot run.

Unaddressed findings

Zero actionable Standards or Spec findings remain unaddressed (standards: 4 raised / 4 fixed; spec: 1 raised / 1 fixed; 0 declined/skipped):

  1. Standards Test #1 (skills/thirdshift-pr/SKILL.md:178, .agents/skills/pr/SKILL.md:180) — Addressed in 65d56797: removed the duplicate (Day shift: verify-ui) / thirdshift-verify-ui sentence that violated ADR-0012 and writing-for-agents single-source-of-truth rules.
  2. Standards Spec: thirdshift, turn a GitHub issue into a ready-for-review PR unattended #2 (.agents/skills/verify-ui/SKILL.md:8,18,67, skills/thirdshift-verify-ui/SKILL.md:67) — Addressed in 65d56797: pruned Factory-only terms (Built-in processes, Custom process, Experiment Arm, Resume, PR skill) from Day-shift .agents/skills/verify-ui/SKILL.md, clarified `thirdshift-pr` in skills/thirdshift-verify-ui/SKILL.md, and regenerated site/prompts/index.html.
  3. Standards Walking skeleton: a fresh run on the happy path #3 (tests/setup.rs) — Addressed in 65d56797: extracted RAII LocalHttpServer with Drop to eliminate duplicated loopback npm registry test servers and manual teardown blocks.
  4. Standards Pre-flight checks #4 (docs/code-navigation.md) — Addressed in 65d56797: indexed Visual evidence and tests/ui_evidence.rs.
  5. Spec Test #1 (.claude/skills/verify-ui) — Addressed in 65d56797: added .claude/skills/verify-ui -> ../../.agents/skills/verify-ui symlink and regression test in tests/ui_evidence.rs.

Security

None (0 unaddressed introduced Security findings against 6d8afeee51f1af1e142f00d52c2783f479bb512e...HEAD).

Review file coverage: 0 changed files left unread across Standards and Spec (71 non-excluded changed files reviewed in full before commit 65d56797, plus the 2 files added/newly modified in 65d56797 — .claude/skills/verify-ui and docs/code-navigation.md — verified directly, plus 24 confirmed generated-output exclusions = 97/97 changed files against merge-base 6d8afeee). Confirmed generated-output exclusions (verified via source inspection + generator/check runs):

  • prompts/*.md (22 files: prompts/README.md, prompts/bug-continuation-pr.md, prompts/bug-continuation.md, prompts/ci-fix-repair-inherited.md, prompts/ci-fix-repair.md, prompts/conflict-repair.md, prompts/continuation-pr.md, prompts/continuation.md, prompts/fix-ci-repair.md, prompts/fix-conflict-repair.md, prompts/fix-review-repair.md, prompts/foreign-conflict-repair.md, prompts/review-repair.md, prompts/security-review.md, prompts/spec-review.md, prompts/spec-ticket-ci-fix-repair.md, prompts/spec-ticket-conflict-repair.md, prompts/spec-ticket-continuation-pr.md, prompts/spec-ticket-continuation.md, prompts/spec-ticket-fresh.md, prompts/spec-ticket-review-repair.md, prompts/spec-ticket-security-review.md)
  • site/prompts/index.html (generated lines 47–8399; surrounding hand-written lines read)
  • site/docs/index.html (generated from docs/guide.md and site/generate-docs.mjs)

Built with codex unknown · gpt-6.1-sol · xhigh

Security review outcome

No unaddressed introduced findings.

Add UI verification and GitHub-attached Visual evidence
…1): UNAVAILABLE (code 503): No capacity available for model gemini-4-hydrogen-xhigh on the server)

2026-11-19T04:16:56Z, host factory.etadventures.com. Uncommitted work at the time of failure is included in this commit.
…1): UNAVAILABLE (code 503): No capacity available for model gemini-4-hydrogen-xhigh on the server)

2026-11-19T04:32:00Z, host factory.etadventures.com. Uncommitted work at the time of failure is included in this commit.
Refresh Visual evidence across Spec reviews, Security reviews, and Delivery Repairs
Add verification-skill generators and dogfood Console and site verification skills
@JacobStephens2
JacobStephens2 marked this pull request as ready for review November 19, 2026 09:45
# Conflicts:
#	.agents/skills/pr/SKILL.md
#	site/prompts/index.html
#	skills/thirdshift-diagnosing-bugs/SKILL.md
#	skills/thirdshift-implement/SKILL.md
#	skills/thirdshift-pr/SKILL.md
@JacobStephens2
JacobStephens2 merged commit 58b411c into main Nov 19, 2026
25 checks passed
@JacobStephens2
JacobStephens2 deleted the issue-2023 branch November 19, 2026 11:13
@JacobStephens2 JacobStephens2 mentioned this pull request Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Spec: interactive UI verification and GitHub-attached Visual evidence in pull requests

1 participant