Repository navigation
docs: an acceptance agent checks each PR on fresh instances, with golden journeys - #807
Conversation
…den journeys A new internal skill, `acceptance`, for an agent that didn't write a PR: it reads the PR, its issue's Done means and its rollback answers, checks the head on throwaway instances, runs the golden journeys the change could touch, and posts one verdict naming the commit it checked. AGENTS.md says a PR is ready to merge once that verdict passes. Closes #794 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Also bring a run's checkout to the PR head, fetch the PR's base for stacked comparisons, and drive an environment's CLI with PATCHY_API_URL and PATCHY_API_TOKEN cleared. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
GPT 6.1 Sol review, round 1 (on
I also fixed a gap of my own in the same commit: a T3 worktree child starts at its parent's local commit, so step 2 now brings a checkout made for the run to the head ( Sol agreed with posting the new comment before deleting the old one, rather than editing in place, because |
… changed Co-Authored-By: Claude Opus 5.5 <[email protected]>
So removing the run's worktree afterwards doesn't refuse an untracked file, and the done check counts only the running account's verdicts. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
GPT 6.1 Sol review, round 2 (on Sol confirmed all four round 1 fixes. It checked the jq interpolation and pagination with read-only GitHub queries. It also ran the posting recipe against a stub: a successful post deletes only the running account's verdicts, and a failed post deletes none.
|
Acceptance: PASS with notesChecked Done means
Golden journeys No product execution changes in this diff. To exercise the skill's direct-check instructions, I brought up the pinned head in a separate clean checkout and observed:
All manually driven Patchy CLI commands used the environment's own executable and state directory, with Rollback answers: They match the four-file docs/skill diff. A revert leaves posted verdict comments; the preceding server and CLI work with those. No runtime, wire contract, migration, stored-data, mail or infrastructure change needs Not run
Notes
|
|
On the acceptance verdict's note (PASS with notes on |
…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]>
What changed
The agent that wrote a change also says it works, and its tests prove only what it thought to test. Now an agent that didn't write the PR checks it and posts a verdict before Allison merges:
acceptance, written for that agent. It reads the PR, its issue's Done means and the rollback answers, and challenges the answers when the diff disagrees. It checks the head on throwaway instances, using whatever fits: thepr-evidencecommands run without--pr, tests, or an instance of a checkout made for the run. It runs the golden journeys the change could touch, then posts one verdict comment: PASS, PASS with notes or FAIL. The comment names the commit it checked and lists what it couldn't run as not run. It replaces that account's earlier verdict, found by a<!-- patchy-acceptance -->marker. It never fixes or merges.delegate_taskto a Codex model in its own worktree,codex exec,claude -p, or a person asking any agent..claude/skills/acceptancelinks the skill, anddocs/SKILL_DISTRIBUTION.mdlists it with the other internal skills.Closes #794
Look at
1. A PR that breaks a golden journey gets FAIL with its evidence. Throwaway PR #808 changed one line in
packages/serving/src/Pages.ts: a patch's address admitted readers by its owner instead of its company. Its body called this an internal refactor, checked by opening the page as its publisher. GPT 6.1 Sol was told only to follow the skill for PR #808, not about the break. It posted this FAIL. From the verdict:It listed the Kudos and New Business live checks as not run, since the 404 blocked them, rather than as passed. It also judged the rollback answers right (a reversible code change) and the "Not breaking" call wrong. It found the break on fresh
teamandbrightlineinstances, with the CLI'sPATCHY_API_URLandPATCHY_API_TOKENcleared, and took them down afterwards. #808 is closed unmerged and its branch is deleted. It reported one gap in the skill, a PR with no Done means, whichddea7fffixes.2. This PR's own verdict: PASS with notes on
83106f5, from a separate GPT 6.1 Sol acceptance run, kept apart from the code review rounds. No product code changed, but Sol brought the head up on freshteamdata anyway. It ran the publish and sign-in journeys there: Ada published, Ben opened the page, and retire, delete and restore all worked. It stub-tested the posting recipe and checked that the packed CLI leaves this internal skill out. The note is the after-merge Done means line, marked not run. Dismissed, since the skill already says how to treat it.How it was verified
pnpm verify --changedon2f617d3: format, lint, typecheck, synth and 2004 offline tests passed. It skipped the acceptance suites, since only docs and agent files changed. Every later commit edits only the skill.Release impact
Tick exactly one.
Agent docs and one skill only; no code, schema or contract changes.
Made by Claude Opus 5.5 in Claude Code, running in T3 Code.