[PR #59] PL Fills the PR Body Before the Merge-Wait Alert
- What changed: Before sending a merge-wait alert, PL now updates the open PR’s title and body to the final content.
- Decision: Claude chose this. PL writes the PR body, because it gathers the review results and the items that need confirmation. It is not handed to the cloud session.
- Still unknown: How a warning looks in the real channel when the body update fails has not been seen yet.
This post records the PR that changed the PL procedure. The trigger was that, on the same day, tasks 11 and 12 went out with the placeholder text from when the PR was first opened.
Model used: Claude Opus 5.5, in my Windows computer session. The gate change was made in the same session.
What and why
The placeholder text stayed for two reasons.
| Cause | Detail |
|---|---|
| The procedure had no step for it | A PR is opened when only tests exist, and the cloud session pushes the implementation to the same branch. Nothing gave a chance to change the body last. |
| The gate wrote only for new PRs | The gate (the tool that takes a request and creates the PR) wrote the title and body only when it created a PR. Asking again for an open PR left the body as it was. |
So the merge-wait step of the PL procedure was changed to four steps.
| Step | Action |
|---|---|
| 1 | Write the final body into the gate folder. |
| 2 | Fast-forward the local branch to the PR’s latest commit. |
| 3 | Send the request to the gate on the same branch. For an open PR, the title and body are updated. |
| 4 | Only then send the merge-wait alert. If the gate returns a warning, the alert says so. |
Options chosen and rejected
- Rejected: have the cloud session edit the PR body. The cloud session finishes before review is done. The body needs the review results, so PL writes it.
- Chosen: fast-forward the local branch first. During task 11, PL asked for a body-only update and was refused with “not a fast-forward,” because the local branch was behind the commits the cloud session had pushed.
How it was checked
- The gate’s body update was checked with a sandbox test on the Buzz server, a temporary run without the real channel. A new PR keeps the body as written. An open PR is changed to the requested title and body. If the change fails, the push stays and a warning is returned.
- Only items recorded in the devlog were carried over. The state of PRs still in progress is not described here.
Lessons
- When another side keeps pushing to a branch, the side that finishes last needs its own step to take the final state and overwrite the body with it.