Skip to content

docs: an acceptance agent checks each PR on fresh instances, with golden journeys - #807

Merged
allisonmahmood merged 4 commits into
mainfrom
docs/794-acceptance
Oct 19, 2026
Merged

allisonmahmood merged 4 commits into
mainfrom
docs/794-acceptance

Conversation

@allisonmahmood

@allisonmahmood allisonmahmood commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner

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:

  • A new internal skill, 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: the pr-evidence commands 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.
  • Golden journeys are a short map in the skill. Each names its scenario, people, what working looks like and its way back: sign in, log a machine in, publish a page, share and unshare, find and open a tool, a tier 1 tool live, a tier 2 tool, invite and join. A PR that adds a journey adds its entry. The acceptance agent decides how to check each one.
  • Asking for a verdict lists ways to start one, without requiring any: T3's delegate_task to a Codex model in its own worktree, codex exec, claude -p, or a person asking any agent.
  • AGENTS.md › Pull requests: a PR is ready to merge when its required checks pass, its review findings are resolved and an acceptance verdict on its latest commit passes.
  • .claude/skills/acceptance links the skill, and docs/SKILL_DISTRIBUTION.md lists 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:

Publish a page: failed. Ada's isolated environment CLI successfully publishes a tier 0 page. Ada receives 200 with the published content; Ben receives 404, although his Home and patch card both list it. The same checks on fresh base data admit Ben with 200.

Find and open a tool: failed. Jordan's Home lists all four Brightline patches; searching for Kudos finds one result. Clicking it opens the not-found page, HTTP 404.

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 team and brightline instances, with the CLI's PATCHY_API_URL and PATCHY_API_TOKEN cleared, 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, which ddea7ff fixes.

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 fresh team data 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 --changed on 2f617d3: 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.
  • The posting recipe's comment selection, run read-only against feat(dev): pnpm dev trial has a fresh agent try a task before and after #806's comments, returns the right comment for the signed-in login and nothing for another. In round 2, Sol stub-tested that a failed post deletes nothing.
  • Two GPT 6.1 Sol review rounds, summarized in the comments below. The last had no blocking findings.
  • Done means. "A PR that breaks a golden journey gets FAIL with its evidence" is shown above with refactor(serving): a patch's address admits readers through its owner #808. "A PR opened after this lands carries a verdict from an agent that didn't write it" can only be shown after merge. This PR carries the first one.

Release impact

Tick exactly one.

  • Breaking — requires action from anyone already running this
  • Not breaking — no action required

Agent docs and one skill only; no code, schema or contract changes.

  • What does a revert leave behind? Verdict comments already posted on PRs. Nothing in the product or its data.
  • Does the release before it still work with that? Yes. Nothing the server or CLI runs changes.

Made by Claude Opus 5.5 in Claude Code, running in T3 Code.

…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]>
@github-actions github-actions Bot added area:docs Touches the docs area size:m 100-500 changed lines labels Oct 19, 2026
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]>
@allisonmahmood

Copy link
Copy Markdown
Owner Author

GPT 6.1 Sol review, round 1 (on 2f617d3): no blocking findings, 4 should-fix, all fixed in 508e871.

  • Old verdicts were deleted even when posting failed. The delete loop now runs only after gh pr comment succeeds.
  • The marker matched anyone's verdict. Replacement now takes only marked comments posted by the running account (gh api user), so another person's verdict stays.
  • Direct CLI checks didn't clear PATCHY_API_URL and PATCHY_API_TOKEN. The skill now gives the full env -u … PATCHY_STATE_DIR=<env>/cli-state <env>/bin/patchy form, since an exported URL or token can point it at production.
  • A stacked PR could compare against a stale base. Step 2 now fetches the PR's own base branch, which --base origin/<baseRefName> then uses.

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 (git checkout --detach <head> && pnpm install). It also says any other checkout holds someone's work.

Sol agreed with posting the new comment before deleting the old one, rather than editing in place, because gh attaches uploads only to a comment it creates. It found the golden journeys true to the scenarios and the product, and nothing that maps a kind of change to required evidence.

allisonmahmood and others added 2 commits October 19, 2026 21:15
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]>
@allisonmahmood

Copy link
Copy Markdown
Owner Author

GPT 6.1 Sol review, round 2 (on ddea7ff): no blocking findings. 1 should-fix and 1 nit, both fixed in 83106f5.

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.

  • Should-fix: the recipe left an untracked verdict.md in the run's checkout, so git worktree remove would refuse it. The verdict is now written to .local/shots/verdict.md, which git ignores.
  • Nit: "exactly one comment starting with the marker" contradicted keeping other accounts' verdicts. It now reads "exactly one marked comment from your account".

ddea7ff also added the one gap the blind acceptance run on #808 reported: a PR with no issue or Done means is checked against its What changed. Sol found it, the golden journeys, the packaging and the scope consistent with the spec.

@allisonmahmood

allisonmahmood commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner Author

Acceptance: PASS with notes

Checked 83106f5bf3ed0948aac8ccbc273df3e6ed17a9da (base 14a60ae1e29ce8fd2c1ac68ce91e5c7445d2b840) on fresh team data, by GPT-6.1-sol in the Codex harness through T3 Code. I did not write this PR and used no sub-agents.

Done means

  • A PR that breaks a golden journey gets FAIL with its evidence: passed by the existing independent demonstration. I read refactor(serving): a patch's address admits readers through its owner #808's diff and its acceptance verdict. The owner-only serving gate explains the reported colleague 404s, while publisher access survives. The verdict checks beyond the PR's publisher-only claim, names the checked commit, includes base/head evidence, and lists blocked live interactions as not run. refactor(serving): a patch's address admits readers through its owner #808 is closed unmerged. I inspected this demonstration; I did not rerun that separate PR.

  • A PR opened after this lands carries an independent verdict: not run. This requires a later PR after merge. This independent acceptance run exercises the workflow now, and the latest-head readiness requirement is present in AGENTS.md.

  • Skill wiring and posting behavior: passed. Internal metadata, the resolving Claude skill symlink, distribution documentation and ignored verdict location agree. The built CLI archive includes the public Patchy skill and excludes this internal skill. I extracted the actual posting recipe and ran it with a local gh stub and paginated fixtures:

    Successful post: removes both own earlier verdicts, only after posting.
    Failed post: removes no earlier verdicts.
    No own earlier verdict: removes nothing.
    Other accounts' verdicts and ordinary comments survive.
    

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:

  • Publish a page: passed. Ada's environment CLI publishes a company tier 0 page; Ben receives its expected content and sees it on Home. Retirement and deletion replace the content with their respective notices; restoring either state returns the content at the same address.
  • Sign in: passed with dev personas. A signed-out company-page request returns 401 with the sign-in header, private, no-store, and no redirect. Ben's persona sign-in returns to the requested page with 200 and the expected content. Posting the sign-out form returns to login; the next company-page request is 401.
Head checkout: expected commit, clean tracked files.
Fresh team environment: healthy.
Ada publish: success, tier 0, company scope.
Ada and Ben current address: 200, expected content present.
Ben Home: 200, published patch listed.
Retire -> notice -> restore: passed.
Delete -> notice -> restore: passed.
Ben sign out -> company-page sign-in door: passed.
Changed Markdown formatting: passed.
Environment teardown: completed; checkout remains clean.

All manually driven Patchy CLI commands used the environment's own executable and state directory, with PATCHY_API_URL and PATCHY_API_TOKEN unset.

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 one-way. CI's rollback rehearsal passed.

Not run

  • Post-merge adoption: requires a future PR, as above.
  • Machine login, share/unshare, tool search/live tier 1/live tier 2, and invite/join: no product path changed; the scenario/persona map was checked against the scenario definitions, but these journeys were not rerun here.
  • Local pnpm verify and packed e2e suites: excluded by this task's shared-machine constraints. At the final CI snapshot, browser, both CLI smoke jobs and Node 22/24/26 tests remained pending. Lint, image, dependency review, Postgres concurrency, live Clerk, tier 2 smoke, rollback rehearsal and labels passed; no reported check failed.
  • Real Clerk sign-in locally: used dev personas; CI's live Clerk check passed.

Notes

  • The skill does not specify how to grade a Done means that is observable only after merge. I have left that criterion explicitly not run, rather than treating the readiness instruction as proof of future adoption. This is why the verdict has notes.
  • The posting and cleanup instructions worked. All instances started for this run were taken down. The PR's code, branch, body and labels were left unchanged.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

On the acceptance verdict's note (PASS with notes on 83106f5): the run said the skill doesn't say how to grade a Done means line that can only be shown after merge. Dismissed without a change: the skill already covers it. A check that couldn't run is listed as not run and never counts as passed. A verdict with anything not run is at most PASS with notes, which is what the run did. This PR's body names the line that waits for merge, as the template asks. A separate rule for after-merge lines would repeat that one.

@allisonmahmood
allisonmahmood merged commit b5e43db into main Oct 19, 2026
14 checks passed
@allisonmahmood
allisonmahmood deleted the docs/794-acceptance branch October 19, 2026 19:36
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:docs Touches the docs area size:m 100-500 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

An acceptance agent checks each PR on a fresh instance, with golden journeys

1 participant