Repository navigation
docs: PRs and deploys say whether a rollback is safe - #795
Conversation
|
Review round 1 (GPT 6.1 Sol, xhigh) One blocking finding, now fixed in 9f7bdaf:
Sol found nothing else: the dispatch reading, the template, the label section and the "after merge" note all held up. |
|
Review round 2 (GPT 6.1 Sol, xhigh) Nothing blocking. Sol checked the round 1 fix against GitHub's behaviour: a re-run updates One non-blocking note, fixed: |
Every PR answers what a revert leaves behind and whether the release before it still works with that, in the template's Release impact section. A `one-way` label marks the ones that can't be rolled back past. A deploy now pins the live commit from /healthz/deep, stops while a Deploy run is unfinished or failed, reviews rollback safety across live..deploy, dispatches the exact reviewed commit, and ends with one rollback line. Closes #788 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e dispatch `gh run list --limit 1` sorts by creation, so an older run re-run for a rollback was invisible behind a newer success. Sort by update instead, list every unfinished run, and repeat the check before dispatching. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
b658666 to
c7f6854
Compare
…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
Production deploys are frequent now, and migrations never roll back. Nothing on a PR or at a deploy says whether rolling back past a change is safe, so it gets found out during an incident.
one-waylabel. It marks a PR whose second answer is no. It's documented indocs/agents/triage-labels.mdand created on GitHub./healthz/deep. It stops if any Deploy run hasn't finished, or the one updated last didn't succeed, and checks again before dispatching.-f revision=<sha>.docs(whats-new)PR and the hand-off with one rollback line.Closes #788
How it was verified
This is docs, a template and a label, so there are no tests. Prettier passes on the changed files.
The dispatch, checked by reading.
deploy.ymlsetsCOMMITtoinputs.revision || github.shaand checks that commit out. It refuses anything that isn't a full sha onmain. Step 4 then builds the server image from that commit. Deploy never usesserver-image.yml's artifact, so a sha whose main CI hasn't finished still deploys. There is no "image not built yet" case. ECR tags are immutable: a commit that was pushed before must rebuild to the same digest, or the run fails./healthz/deepreports the same revision the app stack was given.Steps 1 and 3, dry run against production today. This was a public GET only, with no dispatch.
#786 has no answers because it predates the questions, so I read its diff. It adds a route and a CLI command, with no migration. Release 14 would answer the new route with a 404 and keep working. Today's line would be: "If this release misbehaves, roll back to
03891e4(release 14)."What can only be shown after merge. GitHub serves the template from
main, so the first PR to carry both questions will be one opened after this merges. This PR answers them by hand below. The next deploy will be the first one dispatched with an exact revision, and the first whose hand-off names a rollback commit or boundary.Release impact
Breaking — requires action from anyone already running this
Not breaking — docs, the PR template and a GitHub label
What does a revert leave behind? The
one-waylabel on GitHub, and any answers PRs have already written. 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.