Skip to content

docs: PRs open with a merge summary, and a skill lists the ways to show a change - #799

Merged
allisonmahmood merged 4 commits into
mainfrom
docs/791-merge-summary
Oct 19, 2026
Merged

allisonmahmood merged 4 commits into
mainfrom
docs/791-merge-summary

Conversation

@allisonmahmood

Copy link
Copy Markdown
Owner

What changed

PR bodies vary, and nothing told agents how to show a change working, so Allison reads each diff to work out what to check. Now:

  • The PR template is a merge summary: What changed (with Closes #), Look at, How it was verified, and Release impact. The two test checkboxes are gone. The Breaking call and PRs and deploys say whether a rollback is safe #788's rollback questions are unchanged.
  • A new internal skill, pr-evidence, lists the ways to show a change today: pnpm dev shot, a test red then green, numbers before and after, and command output. For each it says what it shows, how to make it, what it costs and its gotchas. It also covers publishing with gh --attach. These are options, not rules: nothing maps a kind of change to required evidence.
  • AGENTS.md › Pull requests: the body line says to fill in the template and points at the skill. The old "problem, then how you fixed it" now lives in the template's What changed prompt, so there's one instruction.
  • docs/SKILL_DISTRIBUTION.md lists the skill with the other internal skills.

Closes #791

Look at

A fresh agent drafting a PR, on main and on this branch. I made two throwaway checkouts and gave each the same sample commit: What's new's tally returns "nothing new" instead of an empty string, with a test. In each, a headless claude -p ran with only the project's instructions. It had no personal CLAUDE.md, memory or MCP servers, gh was denied, and a sentinel probe confirmed it. Both got this prompt:

The last commit on this branch is a change I made. Draft the pull request for it: print the exact title and body you would use. Don't open it, push it or file anything; this session can't. You can read files, use git and run tests.

  • On main, it filled in the old template, ran the tests and ticked both boxes.
  • On this branch, it read the template and invoked pr-evidence. It ran the skill's red-then-green recipe and put the failing assertion in Look at. How it was verified said what wasn't checked. It offered screenshots from "two throwaway instances, one at <base> and one at <head>", which is the skill's shot caveat.

This is one run each, not a benchmark.

On main, trimmed
## How it was verified

- Added a `tally` case in `packages/core/src/whatsNew.test.ts`: an empty list gives "nothing new".
- `pnpm vitest run packages/core/src/whatsNew.test.ts packages/portal` passes (4 files, 98 tests).

- [x] `pnpm test` passes locally
- [x] Added or updated tests covering this change
On this branch, trimmed
## Look at

`tally` in `packages/core/src/whatsNew.ts` now falls back to `"nothing new"` when no kind has a count. It has two callers:

- **The What's new page** (`packages/portal/src/WhatsNewPages.ts`) tallies each day. Releases 1 and 2 (2026-10-05) have `changes: []`, so that day is the one whose heading changes.
- **The bell** (`packages/core/src/html.ts`) only calls `tally` when there are unseen changes, so it never shows the fallback.

The new test fails on the base code:

```
FAIL  packages/core/src/whatsNew.test.ts > tally > says so when there is nothing to count
AssertionError: expected '' to be 'nothing new' // Object.is equality
```

and passes with the change.

## How it was verified

- `pnpm exec vitest run packages/core/src/whatsNew.test.ts -t "tally"` with `whatsNew.ts` restored from the base commit: fails on the assertion above. With the change: passes.
- `pnpm exec vitest run packages/core/src/whatsNew.test.ts packages/portal`: 4 files, 98 tests passed.
- Not checked: no screenshot of the What's new page, and `pnpm verify` was not run.

How it was verified

  • prettier --check passes on the four files, and the skill's frontmatter parses as YAML.
  • The skill's recipes, run as written. In a throwaway checkout at main:
    • worktree add took 0 s, pnpm install 69 s, pnpm dev up team 27 s, shot 2 s and down 2 s.
    • A single vitest file took 2 to 6 s, including its own Postgres.
    • git restore --source=<base> turned a new test red on its assertion, and git restore turned it green again.
    • These runs set the skill's cost lines and added one gotcha: the checkout's folder name becomes the instance's host.
  • Dry runs. The first round allowed too few commands, so the branch's agent couldn't run the test and left a TODO for it. The round above allowed git and pnpm.
  • Hit every surface: none of the entries apply. This changes no wire contract, CLI, dev loop, vocabulary, migration, company resource, served page or package layout.
  • Not checked: whether a non-Claude harness reading .agents/skills finds the skill.
  • After merge only: GitHub serves the template from main, so the first PR opened with it will come after this merges. This PR fills it in by hand.
The shot recipe's output and screenshot (scenario data)
$ pnpm dev shot ada /
200  http://checkout-9pe8t7.localhost:21174/
  PNG     /tmp/791-scratch/checkout/.local/shots/ada.png
  Errors  none

Acme Co's portal as Ada, from a throwaway instance

Release impact

Tick exactly one.

  • Breaking — requires action from anyone already running this

  • Not breaking — docs, the PR template and an internal skill

  • What does a revert leave behind? PR bodies already written in the new shape. Nothing in production.

  • Does the release before it still work with that? Yes. Nothing here ships to production.

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

…ow a change

The PR template becomes a merge summary: What changed, Look at, How it
was verified, and Release impact with #788's rollback questions. The new
internal pr-evidence skill lists the ways to show a change working and
how to publish them. AGENTS.md › Pull requests points at both.

Closes #791

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added area:ci CI, shared testing infrastructure, development scripts and tooling area:docs Touches the docs area size:m 100-500 changed lines labels Oct 19, 2026
… only when cleared; mp4 plays on its own line

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Sol review, round 1 (GPT 6.1 Sol, xhigh, on 5d1b0f8)

  • Blocking, fixed in 0fb832e. The Command output gotcha said PATCHY_STATE_DIR alone keeps an environment's <env>/bin/patchy off production. It doesn't: an exported PATCHY_API_URL (Instance.ts:171) or PATCHY_API_TOKEN (commands.ts:150) wins first. The gotcha now gives the full invocation, env -u PATCHY_API_URL -u PATCHY_API_TOKEN PATCHY_STATE_DIR=<env>/cli-state <env>/bin/patchy …, and scopes "its output is scenario data" to pnpm patchy in the throwaway checkout. There, the checkout's own dev env resolves before PATCHY_API_URL.
  • Non-blocking, fixed in 0fb832e. An attached ![name](x.mp4) plays inline only on a line of its own; beside other text it becomes a link. The Publishing line now says so.

Sol found everything else in scope. Release impact is byte-for-byte unchanged, Deploying step 3's reference still holds, and AGENTS.md has one PR-body instruction.

…utput too; video needs its own paragraph

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Sol review, round 2 (GPT 6.1 Sol, xhigh, on 0fb832e)

  • Blocking, fixed in 46a6126. pnpm patchy in the throwaway checkout resolves the checkout's own instance before PATCHY_API_URL. But an exported PATCHY_API_TOKEN still goes with each request (commands.ts:150). The local instance refuses it rather than leaking it, but "its output is scenario data" was too strong. The example now reads env -u PATCHY_API_URL -u PATCHY_API_TOKEN pnpm patchy …, and the gotcha says an exported token goes with every CLI request. I checked that the invocation runs: pnpm --silent patchy --help exits 0 with both variables set beforehand.
  • Non-blocking, fixed in 46a6126. gh 2.102 makes a video a player only when it is alone in its own paragraph; a separate line isn't enough. The Publishing line now says so.

Sol confirmed the round 1 fix for the installed CLI is correct, and found no other blockers.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Sol review, round 3 (GPT 6.1 Sol, xhigh, on 46a6126): no blocking findings across the full diff.

  • Non-blocking, fixed in 84e0917. "An exported PATCHY_API_TOKEN goes with every CLI request" was too broad: login requests are sent without it (Login.ts:216, Api.ts:65–67). The line now says the exported token wins over stored and seeded keys.

Sol confirmed the round 2 fixes. The source-CLI invocation is right for a running throwaway instance, and it needs no PATCHY_STATE_DIR. The video-paragraph line matches gh 2.102. Nothing reads as an evidence-selection rule.

@allisonmahmood
allisonmahmood merged commit 3eae2f6 into main Oct 19, 2026
13 checks passed
@allisonmahmood
allisonmahmood deleted the docs/791-merge-summary branch October 19, 2026 13:57
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:ci CI, shared testing infrastructure, development scripts and tooling 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.

PRs open with a merge summary, and a skill lists the ways to show a change

1 participant