Repository navigation
docs(releasing): add the v0.7.2 release lessons - #1106
Merged
Merged
Conversation
Put each lesson in the section it belongs to: - Part B traps: --plugin-dir SessionEnd hook, the #858 gate - Part A known flakes: TestFailedLoadAllowsRetry (#1075) - Stacked PRs: merge-async, merge of main into a child - Merge of main: semantic conflicts that CI alone catches Assisted-By: Claude Opus 5.5 <[email protected]> Signed-off-by: DAVID AMID <[email protected]>
amiddavid
commented
Nov 11, 2026
amiddavid
left a comment
Collaborator
Author
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 1 (glm, user of @amiddavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.322 | offload-review skill, @amiddavid's session | fresh | 1 of 2 | 1 of 2 | 34084f2c648d |
blocking |
Verdict: blocking
Findings
- RELEASING.md:181 — the merge-async recipe hardcodes
bypass_rules: truewith no guard.- What fails: an integrator follows this recipe for a stacked parent whose head fails a rule (DCO, CodeQL, a missing review). The recipe merges past it. No owner's yes, no rule check before or after.
- Proof: the new text says "Use
PUT /repos/<owner>/<repo>/pulls/<n>/merge-asyncwith ...bypass_rules: true...", unconditional. The same section (## 3. Merge) says the opposite: "A merge that bypasses the branch rules needs the release owner's authority" (RELEASING.md:157), "Never merge past a failed DCO check" (RELEASING.md:155), and "merges wait until the [CodeQL] rule passes" (RELEASING.md:160). The--adminrecipe carries its own guards:check-ready.shbefore, rule-suites after (RELEASING.md:161). The merge-async recipe carries none. This repo already had this failure mode: every merge from v0.6.1 to v0.6.7 went past the code-scanning rule with--admin"without anyone seeing it" (RELEASING.md:160). A literal agent reader takes the specific recipe over the general rule. - Fix: say when
bypass_rules: trueis needed for merge-async. State that the section's bypass rules still apply: the owner's yes for any rule other than the review rule,check-ready.shbefore, rule results read after. Or dropbypass_rules: truefrom the recipe when the rules pass.
Non-blocking
- RELEASING.md:183-186 — the child-to-main procedure does not say when to push. Step 1 merges
origin/maininto the child and step 2 PATCHes the base. The push of the merge commit is never placed. The page's own older procedure warns (RELEASING.md:171): "CI may not start for a push made while the PR targets another branch." Say "push after step 2", or retarget first as the older procedure does. - RELEASING.md:224 —
store/disk_test.go:415is off by one. The test starts at line 413; the failing secondnewDiskStorecall is at line 416. The number copies issue #1075. Trivial, but a reader jumps to the wrong line.
What I checked
- The PR is docs-only: one commit,
RELEASING.md, +12/−1. Commit carriesSigned-off-by:andAssisted-By:per the repo convention. No behavior change, no data dependence. No code, so no tests owed. - Item 9, the v0.7.2 semantic conflict: verified in git. Commit 2f61a32 (#1055) removed the
STRATEGIEStable fromcontext-guru-plugin/scripts/settings.py. Before it,pi-package/scripts/test_pi_plugin.py:344-350readSTRATEGIESfrom that file; #1055 also changed the pi test. The lesson matches the record. - The known-flake bullet: issue #1075 exists, is open, and its title and body match the bullet word for word (test name, file, line,
OpenDisk: context deadline exceeded).TestFailedLoadAllowsRetryexists instore/disk_test.go. - The
--plugin-dirtrap: verified in code.context-guru-plugin/scripts/signal.shsends aSessionEndevent to the proxy;proxy/clientsignal.go:178-186retires the session's keep-alive entries onSessionEnd. The quoted output strings exist:"no entry"incontext-guru-plugin/scripts/cg.py:1736,pingablein the ping API (context-guru-plugin/ping_test.go). - The #858 gate: verified. Issue #858's table gives "First request, or no tool call yet → 0" pings. The bullet's rule matches.
- The merge-async recipe: verified against GitHub's REST docs. Method
PUT, path/repos/{owner}/{repo}/pulls/{pull_number}/merge-async, and the parametersmerge_method: squash,merge_action: direct_merge,bypass_rules,sha,commit_title,commit_messageall match. "It merges that PR only" matchesdirect_merge. The claim thatgh pr mergeandPUT /pulls/<n>/mergecannot merge a stacked parent matches the docs ("This is the required API for merging stacked pull requests"). - The merge-instead-of-rebase steps: checked the git logic. After
origin/mainis merged into the child,origin/mainis an ancestor of the head, sogit diff origin/main...<head>equals the two-dot diff and shows only the child's own change. The step-3 check is sound. - The old item 9 became item 10; no other text references these item numbers, so the renumbering breaks nothing.
- ASD-STE100 style and section placement of each new line.
amiddavid
commented
Nov 11, 2026
amiddavid
left a comment
Collaborator
Author
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 2 (glm, user of @amiddavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.322 | offload-review skill, @amiddavid's session | fresh | 2 of 2 | 1 of 2 | 34084f2c648d |
blocking |
Verdict: blocking
Findings
- RELEASING.md:181 — the
merge-asyncrecipe bypasses all branch rules, with no owner condition and no guard.- What fails: an integrator follows the recipe for a stacked PR. The recipe says
bypass_rules: true, always. It does not say which rules may be bypassed. A PR whose CodeQL check failed, or whose DCO check failed, merges past them with no owner yes. That is the exact failure of v0.6.1 to v0.6.7 (RELEASING.md:160): merges went past the code-scanning rule without anyone seeing it. - Proof: the same page sets three rules the recipe breaks. RELEASING.md:157: "A merge that bypasses the branch rules needs the release owner's authority." RELEASING.md:158: the standing rule covers only the review-count rule. RELEASING.md:160: the owner decided on 2026-11-08 that "merges wait until the [code-scanning] rule passes". The
--adminrecipe carries guards: runcheck-ready.shbefore, read the rule results after (RELEASING.md:161). The new recipe has none. The GitHub API confirms the risk:bypass_rulesbypasses every rule the actor is permitted to bypass, not one named rule. - Fix: scope the recipe like the standing rule. Say
bypass_rules: trueis the same bypass as--admin, allowed without a new yes only when the review-count rule is the one that blocks. Any other failed rule still needs the owner's yes. Keep thecheck-ready.shand rule-result read steps.
- What fails: an integrator follows the recipe for a stacked PR. The recipe says
Non-blocking
- RELEASING.md:224 — wrong line number.
TestFailedLoadAllowsRetrystarts atstore/disk_test.go:413, not:415. I checked both the PR base and the head: 413 in both. - RELEASING.md:181 — the async result is never read. The endpoint returns
202plus a UUID; the merge happens in the background. The page's own rule says "Read the result back from the server after each merge" (RELEASING.md:163). Add the read:GET /repos/<owner>/<repo>/pulls/<n>/merge-async/<uuid>, or re-read the PR state. A202is not a merge. - RELEASING.md:181 — one warning short. Per the GitHub API, a
merge-asynccall on a stacked child also merges all open PRs below it in the stack. The recipe is written for the bottom PR only. One sentence would stop an integrator from using it on a child and merging a parent that was not approved at that head.
What I checked
- The full diff: one file,
RELEASING.md, +12/-1. No code, no config, no data-dependence rows. No behavior change. - Item 9 (the v0.7.2 semantic conflict): verified in git.
pi-package/scripts/test_pi_plugin.pyhadtest_strategies_match_the_claude_code_plugin, which readSTRATEGIESfromcontext-guru-plugin/scripts/settings.py. PR #1055 removed that table and replaced the check withpi-package/strategies_test.goagainstconfig.Strategies. The #1055 squash body records the same story. The lesson is accurate. - The
TestFailedLoadAllowsRetryflake: issue #1075 is open, its title matches, and the test exists atstore/disk_test.go:413. - The
--plugin-dirtrap: verified the mechanism.claude -pexit fires the plugin's SessionEnd hook (context-guru-plugin/hooks/hooks.json),signal.shsends the event to/signal, andproxy/clientsignal.go:178(retireSession) drops the keep-alive entry. The trap is real. - The #858 gate: verified in code (
keepalive/keeper.go:337,keepalive/waitplan.go:238). - The
merge-asyncendpoint: checked the GitHub REST docs. The endpoint,merge_action: direct_merge,bypass_rules, and the stacked-PR behavior all exist as the doc says. "It merges that PR only, not the PRs stacked on top" is correct for the bottom PR of a stack. - The merge-instead-of-rebase procedure (RELEASING.md:183-186): checked the git reasoning. After
origin/mainis merged into the child, the merge base isorigin/mainitself, sogit diff origin/main...<head>shows the child's own change only. The check is sound. "PATCH the child's base" matches the known workaround forgh pr editfailing on this repo. - No live tests were run, per the review rules.
- Drop bypass_rules from the base recipe. Add it only when a rule blocks. The rules in the Merge section apply. - Use the recipe on the bottom PR of a stack only. - Read the PR state back after a 202. - Push the merge commit after the retarget. - Fix the line of TestFailedLoadAllowsRetry (413). Assisted-By: Claude Opus 5.5 <[email protected]> Signed-off-by: DAVID AMID <[email protected]>
Collaborator
Author
|
Round 1 fixes are pushed. Both reviewers found the same blocking point.
|
amiddavid
commented
Nov 11, 2026
amiddavid
left a comment
Collaborator
Author
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 2 (glm, user of @amiddavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.322 | offload-review skill, @amiddavid's session | resumed | 2 of 2 | 2 of 2 | 5f1cecd151ad |
approve |
Verdict: approve
Findings
None. Every round-1 finding is fixed, and the fix commit adds no new defect.
Earlier findings
- Mine, round 1: the
merge-asyncrecipe bypassed all branch rules with no guard. Fixed. The base recipe (RELEASING.md:181) no longer setsbypass_rules. The new bullet (RELEASING.md:183) adds it only when a rule blocks, calls it the same bypass as--admin, and binds it to the Merge-section rules: the owner's yes for any failed rule other than the review rule,check-ready.shfirst, the rule suite read after. That is the scoping both reviewers asked for. The[Merge](#3-merge)anchor matches the## 3. Mergeheading. - Reviewer 1, round 1, finding 1: the same bypass point. I checked it myself against the new head. Fixed, same as above. I add no new proof.
- Mine, round 1, non-blocking: the async result was never read. Fixed. RELEASING.md:184: "A
202is not a merge. Read the PR state back from GitHub." Reading the PR state satisfies the page's read-back rule. - Mine, round 1, non-blocking: no warning about a stacked child. Fixed. RELEASING.md:182: use it on the bottom PR of the stack only; on a child it also merges every open PR below it. This matches the GitHub API docs ("the operation includes all open downstack pull requests").
- Reviewer 1, round 1, non-blocking: the push order in the child-to-main procedure. I checked it myself. Fixed. Step 1 now says "Do not push yet", step 2 PATCHes the base to
main, step 3 pushes (RELEASING.md:187-189). The push now happens after the retarget, so the CI-start trap at RELEASING.md:171 does not apply. - Both reviewers, round 1, non-blocking:
store/disk_test.go:415. Fixed. The text now says:413(RELEASING.md:228), which is where the test starts at this head.
Non-blocking
- None.
What I checked
- Last review: round 1, 34084f2, 2026-11-11T19:29:52Z
- New commits read: 1 (
5f1cecd1docs(releasing): guard the merge-async bypass) - Read in full: 2 reviews, 1 comment, 0 inline comments (from the three files)
- New items since my last review:
- Commit
5f1cecd1: read the full diff (RELEASING.md, +8/−4) and the changed sections in context. Checked each change against my round-1 findings and against the GitHub API docs. All correct. - Author comment at 2026-11-11T19:33:16Z: lists five fixes. Each one verified in the diff, as recorded under "Earlier findings".
- Commit
- The new commit message: conventional title,
Signed-off-by:and oneAssisted-By:line, noCo-Authored-By:. DCO holds. - The full PR diff at the new head (
b68d0741..5f1cecd1): still docs-only,RELEASING.mdalone. No code, no config, no data-dependence rows, no behavior change. - No live tests were run, per the review rules.
amiddavid
commented
Nov 11, 2026
amiddavid
left a comment
Collaborator
Author
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 1 (glm, user of @amiddavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.322 | offload-review skill, @amiddavid's session | resumed | 1 of 2 | 2 of 2 | 5f1cecd151ad |
approve |
Verdict: approve
Findings
None. The fix commit addresses every finding and every non-blocking point of both round-1 reviews.
Earlier findings
- Mine, round 1 — merge-async hardcoded
bypass_rules: truewith no guard. Fixed. The base recipe no longer sets it. The new bullet says: addbypass_rules: trueonly if a rule blocks, it is the same bypass as--admin, and the Merge-section rules apply (the owner's yes for any failed rule other than the review rule,check-ready.shfirst, rule suite read after). That is the fix I asked for. - Mine, non-blocking — the child procedure did not say when to push. Fixed. Step 1 now says "Do not push yet", and step 3 pushes after the base PATCH.
- Mine, non-blocking — the test line was off by one. Fixed. Now
store/disk_test.go:413, which is where the test starts. - Reviewer 2 raised the same blocking point and the same line number. I checked their text myself. Their proof and fix match mine; both are now addressed. Their extra non-blocking points (the
202read-back and the bottom-PR-only warning) are also fixed by the new bullets.
New text in the fix commit
- "Use it on the bottom PR of the stack only. On a child, it also merges every open PR below it." Verified against the GitHub REST docs: "For a stacked pull request, the operation includes all open downstack pull requests." The bullet is accurate. It also stays consistent with the paragraph above it: on the bottom PR,
direct_mergemerges that PR only, and the PRs stacked on top stay open. - "A
202is not a merge. Read the PR state back from GitHub." Verified: the endpoint returns202when the merge runs in the background. The instruction matches the page's own rule to read results back after each merge. - The link
[Merge](#3-merge)resolves: the heading is## 3. Merge, so the GitHub anchor is#3-merge. - The renumbered steps 1-4 of the child procedure read in a sound order: merge, retarget, push, then the diff check. The diff check itself was verified in round 1 and is unchanged.
- The commit carries
Signed-off-by:andAssisted-By:. Still docs-only, no behavior change, no data dependence.
What I checked
- Last review: round 1, 34084f2, 2026-11-11T19:28:27Z
- New commits read: 1 (
5f1cecd1docs(releasing): guard the merge-async bypass) - Read in full: 2 reviews, 1 comment, 0 inline comments (from the three files)
- New items since my last review:
- Reviewer 2's round-1 review (posted 19:29:52Z, after my 19:28:27Z). Read in full. Same blocking finding as mine, checked independently above.
- The author's comment (19:33:16Z) listing the fixes. Each claim in it checked against the diff; all five hold.
- The fix commit's diff, read in full, with the two new claims verified against GitHub's REST docs.
- The two GitHub-docs fetches this round re-confirmed the round-1 facts that the fix builds on:
merge-asyncreturns 202 for a background merge, and a stacked-PR call includes all open downstack pull requests.
This was referenced Nov 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds the v0.7.2 release lessons to
RELEASING.md.What changed
Each lesson is in the section it belongs to. There is no new section.
--plugin-dirfor ping-test turns. The SessionEnd hook releases the keep-alive entry whenclaude -pexits.TestFailedLoadAllowsRetry(test: TestFailedLoadAllowsRetry is flaky under load (OpenDisk: context deadline exceeded) #1075).merge-async.mainwith a merge oforigin/main, then PATCH its base.main: a semantic conflict that only CI can see (feat(plugin): read the cache strategies from the proxy #1055 removedSTRATEGIES).No behavior change. Data dependence: none.