Repository navigation
feat(dev): pnpm dev compare and film show a change before and after - #803
Merged
Merged
Conversation
…tances Co-Authored-By: Claude Opus 5.5 <[email protected]>
… line Co-Authored-By: Claude Opus 5.5 <[email protected]>
Playwright and embedded-postgres each hook Ctrl-C to exit the process at once, which skipped the evidence finalizers. Browsers launch with their handlers off and close with the scope, and the supervisor loads only in `supervise`. A before side that can't come up says which step failed, never its output, since the reason goes in a public PR. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-evidence Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…older Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sol's first round: attachments came from parsing the section, which quotes page errors, so an error naming a local image could upload it. The section builders now name their files and publishing refuses anything outside the run folder. The lock becomes one entry per run in a lock folder: a run holds it only when no other live entry is there, and dead entries are deleted, so there is no takeover to race. `down` takes the lock before looking for checkouts. Shots carry the page's index so paths that slug alike don't overwrite each other, and the command-output recipe stays until `transcript` lands. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
Author
|
GPT 6.1 Sol review, round 1 (on
|
…as uncommitted Sol's second round: notUploaded searched for markers without skipping code fences, so a fenced example before the real section hid failed uploads; it now shares placeSection's fence-aware scan. The dirty check skipped untracked files, so a new source file missing from the evidence passed --pr. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
Author
|
GPT 6.1 Sol review, round 2 (on
Both sections in the body were re-published at |
Taking the lock first in `down` made every worktree's `pnpm dev down` leave an empty lock folder behind. A run now makes the evidence folder with its lock before anything else, so `down` looks for the folder, takes the lock only when it is there, and deletes the lock with the checkouts. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…heckouts Sol's third round: deleting the lock with the checkouts let a run starting at that moment lose its entry, and a later run then hold the lock beside it. The lock folder is back beside the checkouts and down never deletes it. Down returns at once when neither exists, so a worktree that never ran evidence gets no lock folder. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
Author
|
GPT 6.1 Sol review, round 3 (on
Both sections in the body were re-published at |
This was referenced Oct 19, 2026
allisonmahmood
added a commit
that referenced
this pull request
Oct 19, 2026
…connection (#814) Release 15's What's new entry, written from `9e4b0df`. It covers everything merged since release 14's `through` (`7694bab`), and sets the `patchy` release to `0.15.0` (`packages/patchy/package.json` and `CURRENT_RELEASE`). | Change | PRs | | --- | --- | | New: Your agent can read a tool's log | #786 | | Fixed: Tools with server code keep one steady connection | #798 | | Behind the scenes: an unused open tool lets its server rest | #802 | #783 is release 14's own entry, so it's left out. #795, #796, #797, #799, #803, #804, #806 and #807 are agent docs, CI and dev tooling, with no line. None of the PRs in the range are `one-way`; #786 and #798 predate the rollback questions, and their diffs leave nothing an older release can't run with (a new read-only route and CLI command, and the load balancer's stickiness setting, which the older commit restores). If this release misbehaves, roll back to `03891e4` (release 14). Made by Claude Opus 5.5 via Claude Code. Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
A reviewer can't see a UI or flow change without checking out the branch and running it. Now two
pnpm devcommands put the change in the PR body, before and after:pnpm dev compare <person> <path>...takes full-page PNGs of each page at each width on both sides. Patch frames grow to their content.pnpm dev film <person> <flow>records a Playwright flow on both sides and joins the takes side by side.--pr <number>puts the section in the PR body and uploads its files. A re-run replaces only its own section.Both sides run on evidence instances: throwaway clones at the base and at
HEAD, each on fresh scenario data, never the developer's own instance. So the uploads only ever hold scenario data, and a flow that writes runs the same every time. This builds on the prototype in #726.Closes #725
Look at
1. This PR's own evidence, published with
--pr. This branch changes no page, so both runs use--base df65c5b, the commit before the Home redesign (#713–#719).Before and after, as Allison Mahmood (admin)
Before is
df65c5b(--base) and after isae4fe0f(dev/725-compare-film), both on thebrightlinescenario, frompnpm dev compare./1280px, after
1280px, before
/patches1280px, after
1280px, before
Failed to load resource: the server responded with a status of 404 (Not Found).Failed to load resource: the server responded with a status of 404 (Not Found)./brightline/kudos1280px, after
No visible change at 1280px.
Flow
find-a-patch, as Allison Mahmood (admin)Before is
df65c5b(--base) and after isae4fe0f(dev/725-compare-film), both on thebrightlinescenario, frompnpm dev film.locator.fill: Timeout 5000ms exceeded.Before is on the left, after on the right.
side-by-side.mp4
2. Cleanup holds however a run ends. Each run takes both instances down and deletes their data on success, on failure and on Ctrl-C. Before this branch, Ctrl-C skipped that: Playwright and embedded-postgres each hook SIGINT and exit the process before Effect's finalizers run. Browsers now launch with Playwright's handlers off and close with their scope, and the supervisor (with embedded-postgres) only loads in
supervise. Details are under How it was verified.How it was verified
Focused tests,
pnpm exec vitest run scripts/dev(10 files, 48 tests). The new ones cover:downrefused while a run holds it;Real runs on a shared Linux machine:
compare ada /onteam, from cold (clone, install, up, both sides)compareon fivebrightlinepages at two widthscompare … --pr 803, abovefilm … --pr 803, abovepnpm dev downhad deleted the checkouts)ce97595; again atae4fe0fafter round 3Failure paths, run for real:
pnpm dev upexisted (--base af2aead): before unavailable, with "Bringing the before instance up failed (exit 1)." in the section, after only, exit 0.comparewhile one ran, andpnpm dev down: both refused at once, naming the running pid. Once the run ended,pnpm dev downprinted "Removed the evidence checkouts" and deleted them; it keeps the empty lock folder beside them, since deleting it could cost a starting run its entry. In a worktree that never ran one, it still prints "Nothing to take down." and creates nothing.--prchecks, before anything starts:The head check also caught GitHub's lag for real: run straight after a push, it refused until the PR showed the new head a few seconds later.
Partial publication, as far as it goes from here. gh 2.102 refuses an empty file and an 11 MB one itself, before uploading anything. Through the publishing code, that left the body unchanged, passed gh's error through and exited 1 saying nothing was published. GitHub accepted random bytes named
.pngand.mp4, so I couldn't make one upload fail and another succeed. What a partial publication leaves behind is covered by thenotUploadedtest; gh's help says it updates the body with the uploads that succeeded and exits non-zero. That test section was removed from this body afterwards.What was uploaded: only
brightlinescenario data. I read every PNG from an identical run without--prbefore publishing. Pages show the instance's local hostname.pnpm verify --changed: all passed (format, lint, typecheck, synth and 1,967 tests). It skipped the acceptance suites, since only the runner and docs changed.Hit every surface:
docs/DEVELOPMENT.md(the command table and "Showing a change in a PR") and thepatchy-dev-loopskill. The seed and the vitest template are unchanged.pr-evidencegainscompareandfilmand loses theshotcaveat. The throwaway-checkout recipe moved to Command output untiltranscript(dev: pnpm dev transcript shows a CLI change before and after #792) lands.compareandfilmmake the evidence checkouts, andpnpm dev downdeletes them. A run's lock entry goes when it ends, and the next run deletes a dead run's entry.packages/patchy, migrations, company resources, served pages and the repo layout.Reviewed by GPT 6.1 Sol over three rounds. Round 1 had 1 blocking and 4 should-fix findings; rounds 2 and 3 had no blocking ones, with 2 and 1 should-fix. All are fixed; the summaries are in the comments.
Not checked: macOS; a real partial upload; a non-Claude harness reading the skills.
Done means: dev: PRs show what changed, with before/after screenshots and recordings #725 has no Done means section. Its spec's tests and docs are covered above, and this body's two sections show both commands working.
Release impact
Tick exactly one.
Breaking — requires action from anyone already running this
Not breaking — dev tooling and docs; nothing ships to production
What does a revert leave behind? Evidence checkouts under
$XDG_DATA_HOME/patchy-dev/<label>.evidence/, which the olderpnpm dev downdoesn't know to delete (rm -rfthem), and evidence sections already in PR bodies.Does the release before it still work with that? Yes. Nothing here runs in production.
Made by Claude Opus 5.5 in Claude Code, running in T3 Code.