Skip to content

Require Before/After visual evidence in agent pull requests - #1747

Merged
JacobStephens2 merged 2 commits into
mainfrom
issue-1092
Nov 5, 2026
Merged

JacobStephens2 merged 2 commits into
mainfrom
issue-1092

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

Summary

PR evidence previously let test output satisfy the same slot as UI captures. Factory skills and Day shift skills now capture the baseline before editing and require execution evidence and visual evidence separately.

 implementation / bug diagnosis
+ capture Before before edits; matching After during verification
 PR Evidence
- interchangeable screenshot / output slot
+ actual failing-before and passing-after execution output
+ embedded PNG / GIF pairs at matching viewports and states
+ missing Before → detached Base branch worktree
+ captures → secret git-pushed Gist → commit-pinned image URLs

Regenerates the Prompts and skills page and updates the handwritten workflow explanations.

Closes #1092

Evidence

Execution evidence

The existing generation contract catches a stale public page after the Factory skill edits. Same command before and after regeneration:

cargo test --bin thirdshift prompts_page::tests::prompts_page_shows_what_the_binary_sends -- --exact

Before (updated skills, stale generated page):

site/prompts/index.html is out of date with the prompts, the claude and codex arguments or the skills
test result: FAILED. 0 passed; 1 failed

After (regenerated page):

test prompts_page::tests::prompts_page_shows_what_the_binary_sends ... ok
test result: ok. 1 passed; 0 failed

The documented detached-worktree recipe captured main and removed its temporary checkout. The documented Gist recipe created a secret Gist, cloned it, committed and pushed both PNGs, printed commit-pinned URLs, and removed its clone. Anonymous GETs returned HTTP 200 with image/png and bytes matching each local capture; GitHub-rendered Markdown also resolved to the original image bytes.

scripts/affected-tests main passed in 39m 53s: site checks (62 tests, 79.53s) and the full Rust suite (cargo test, 2312.86s, including 1m 03s of compilation with the earlier targeted-test build cache reused). cargo check --all-targets, prompt-page tests (14), skill tests (4), and packaging tests (7) also passed. GitHub CI is green for a6a58e97.

Visual evidence

1440×900 desktop, Prompts and skills page with thirdshift-pr expanded. The three changed Factory skills' browser-rendered text also matched their source bytes, including shell and Markdown escaping.

Before
After

Test seams

  • Embedded Factory skills and crate packaging.
  • Generated Prompts and skills page and browser-rendered source text.
  • Detached baseline checkout and Gist publication through real Git/gh commands and anonymous image reads.
  • Public site navigation, layout and documentation through the existing browser suite.

Review coverage

Independent Standards and Spec reviewers compared main...HEAD (base 2596c9ce, head a6a58e97). Each read all ten changed files, including the generated HTML hunks and supporting sources. Generated-output exclusions: none. Unread changed files: none. Standards raised one maintainability finding, declined below; Spec raised zero findings. Neither axis alleged a behavioral defect.

Unaddressed findings

Standards

  • S1 — centralize the repeated capture contract and disclose conditional recipes: declined. The finding concerns skills/thirdshift-implement/SKILL.md:11, skills/thirdshift-diagnosing-bugs/SKILL.md:26, skills/thirdshift-pr/SKILL.md:169 and their Day shift counterparts. #1092's Implementation Decisions explicitly require two-sentence upfront capture instructions in implementation/diagnosis and require the visual rules, fallback and Gist recipe directly under ### Evidence, “rather than splitting into a separate reference file.” The issue already makes this placement decision; no further Spec or Day shift decision is being deferred.

Spec

None.

Security

None.

Security review outcome

No unaddressed introduced findings.

Merge Danger

Door: two-way

Blast Radius: Skills

Affects agent behavior during implementation, diagnosis and PR writing. Visual publication requires Gist access; secret Gists are unlisted and readable by anyone holding their URLs.

Built with codex codex-cli 0.164.0 · gpt-6.1-sol · xhigh

The publish recipe copied predictable /tmp capture paths with cp, which follows symlinks, then staged every file and pushed it to a secret Gist. A planted link at that path publishes the target. Copy only regular files this user owns, from this session's mktemp paths.
@JacobStephens2
JacobStephens2 merged commit 1956f0f into main Nov 5, 2026
16 checks passed
@JacobStephens2
JacobStephens2 deleted the issue-1092 branch November 5, 2026 01:29
@JacobStephens2 JacobStephens2 mentioned this pull request Nov 5, 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.

make way for thirdshift to add screenshots / recordings to PR bodies

1 participant