Repository navigation
docs(releasing): write down what an integrator knew only from memory - #944
Conversation
A fresh integrator session took over the release from RELEASING.md alone. The integrator before it named about 15 steps and traps that were only in its context or private notes. This change writes them down and adds scripts for the checks it ran by hand. - scripts/release/release-list.sh: the release list from git. - scripts/release/check-ready.sh: open, no conflict, 2 approvals at the head, green CI, every commit signed off. - scripts/release/approval-still-valid.sh: patch-id and range-diff for a head that moved after an approval. - scripts/release/part-a.sh: all Part A steps, one rerun of a failed step, and a DONE rc=<n> line on any exit. - scripts/release/part-b-setup.sh: the isolated Claude Code setup a person runs; it prints key names only. - RELEASING.md: measurements before a release (general, not only #871 and #867), the freeze conditions and the order of steps, the Part A and Part B traps, merge commands, no merge past a failed DCO without the owner, and a section on the integrator's private notes. Assisted-By: Claude Opus 5.5 <[email protected]> Signed-off-by: DAVID AMID <[email protected]>
SummaryThe PR covers almost everything from the hand-over, and it puts nothing internal in the public repo. One script defect blocks: Must fix
Should fix
Missing from RELEASING.md
Private README (
|
amiddavid
left a comment
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.319 | offload-review skill, @amiddavid's session | fresh | 1 of 2 | 1 of 2 | 7fc461539575 |
blocking |
Verdict: blocking
Findings
- RELEASING.md:212 — the doc names 80000 as the default keep-alive prefix floor. The code default is 20000.
- What fails: an integrator sets up Part B with a small session. The doc says the default floor is
keepalive_min_prefix_tokens: 80000, so the integrator picks a value under 80000, for example 50000, and believes the floor is now low enough. The real default is 20000, so 50000 raises the floor. The session stays under it, a manual ping answers409 not held, and the cache-strategy check looks broken. - Proof:
config/config.go:261setsDefaultKeepAliveMinPrefix = 20000, with the comment "DefaultKeepAliveMinPrefix is 20000 since #858 ... It was 80000 (#435)".Resolved()applies it atconfig/config.go:308-310when the config sets no value. The PR does not touchconfig/, so this is the default at the PR head and at its base. No test covers RELEASING.md, so nothing catches the drift. - Fix: change
80000to20000in the trap line. The rest of the line stays true: a small session still needs a lower value in its own config.
- What fails: an integrator sets up Part B with a small session. The doc says the default floor is
Non-blocking
- scripts/release/check-ready.sh:292 — the script trusts marker text in any review body. The PR author can post a review comment on their own PR that carries forged markers for reviewer 1 and reviewer 2, and the script prints READY.
scripts/offload-review.shhas the same trust model, so this is consistent, but the new script turns the markers into the merge gate. Cheap hardening: skip reviews whose author login equals the PR author's. - scripts/release/check-ready.sh:312 — "every CI check passed" reads only the check-runs API. A check that reports through the legacy commit-status API, for example a DCO app, does not appear. The script's own
Signed-off-by:check covers the DCO rule, so the outcome is safe; the doc line at RELEASING.md:114 just promises slightly more than the script reads. - scripts/release/release-list.sh:446 — two corners in picking the base tag.
git tag --list | head -1underset -o pipefailcan die on SIGPIPE when the tag list grows past the pipe buffer. And a pre-release tag above the newest release (for examplev0.7.0-rc1) is picked as the base, so the list starts after the rc. Both are unlikely today. - RELEASING.md:23 — the doc lists "docs, test, CI and refactor" as the kinds the script marks. The script also marks
choreandbuild. The doc list is incomplete, not wrong.
What I checked
- Read the full diff (one commit,
7fc46153), the full RELEASING.md at the head,docs/design.md, and the code around every claim the new text makes. - Verified each script against the code it names:
TestDefaultBuildmatchesTestDefaultBuildLinksNoOpenTelemetryGRPCOrProtobufincmd/context-guru-proxy/depguard_test.go:15(-runis an unanchored regex); therace-recordpackage list and flags match.github/workflows/ci.yaml:165; the packagesinternal/record,tenant,dash,proxy,context-guru-pluginexist, and no Go package sits undercontext-guru-plugin/subdirectories, so therestfilter plus the per-set steps covers./...with no gap. - Verified the marker regex in
check-ready.shagainst the marker format thatscripts/offload-review.sh:302produces, and simulated the round/verdict/sha parsing with sample review bodies; it picks the last round and the right head. - Verified the proxy flags (
-listen,-anthropic-upstream,-dashboard-db,-control-db) atcmd/context-guru-proxy/main.go:82-185, the plugin env names (CG_URL,CONTEXT_GURU_STATE,XDG_CACHE_HOME), thesettings.py add --file --urlinterface, the dash fields (wake_cause,request_lifecycle,ping_n), the first-request skip inkeepalive/keeper.go:120, the409 not heldanswer inproxy/manualping_test.go:236, keep-alive off by default (config/config.go:88), the keys undercache:in YAML, and 5 release assets (4 archives plus checksums in.goreleaser.yaml). - Ran
bash -non all five scripts: all pass. No Go builds or tests were run. - Checked the PR body: it states no behavior change and no data dependence, which matches the diff.
amiddavid
left a comment
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.319 | offload-review skill, @amiddavid's session | fresh | 2 of 2 | 1 of 2 | 7fc461539575 |
blocking |
Verdict: blocking
Findings
- scripts/release/part-a.sh:20 — a stopped run is recorded as a pass: the DONE marker says
rc=0- What fails: the integrator stops a Part A run with
kill(default SIGTERM). The EXIT trap runs and writesDONE rc=0. Per the script's own header (line 8),rc 0means "every step passed". A poller that waits for the DONE line, as RELEASING.md step 5 tells it to, then reports Part A green on a tree that was not fully tested. The release can proceed on a stopped run. - Proof: I ran the exact trap structure on this machine (bash 5.2.37). Script with
set -uo pipefail,rc=0,trap 'echo "DONE rc=$rc" >> "$sum"' EXIT, thensleep 30;kill -TERM→ the process exits 143 and the summary endsDONE rc=0. The trap reads the script variable$rc, and only a failed step sets it to 1. A signal death leaves it 0. I also checked the$?form (trap 'echo "DONE rc=$?"' EXIT): it also writesrc=0on SIGTERM, so that pattern does not fix it. Withtrap 'rc=143; exit 143' HUP INT TERMadded, the summary correctly endsDONE rc=143(verified the same way). - Fix: add
trap 'rc=143; exit 143' HUP INT TERMbefore the EXIT trap, so a stop flows through the EXIT trap with a non-zero rc. Keep the$rcform in the EXIT trap. SIGKILL cannot be caught; the header's "ALWAYS" claim (line 6) should say "except SIGKILL".
- What fails: the integrator stops a Part A run with
Non-blocking
- scripts/release/check-ready.sh:31-32 — a failed
gh apicall (network, auth, rate limit) is swallowed by|| trueand reported as "no offload-review marker on the PR". The script fails safe (it blocks the merge), but the message points the integrator at the wrong fix. Rungh apion its own line first, then grep. - scripts/release/check-ready.sh:21,51,64 — when a
ghcall itself fails,set -eends the script with gh's exit code (often 1) and prints noNOT READY:reason. An exit 1 then looks like "not ready" with no cause. - scripts/release/release-list.sh:17 —
subj=$(gh pr view ...)is not guarded. Underset -e, one failedghcall ends the script mid-list. The printed list ends with no warning, and the doc tells the integrator to build the release list from it. - scripts/release/part-a.sh:37 — the depguard step runs with
CGO_ENABLED=1. CI runs the same test withCGO_ENABLED=0(.github/workflows/ci.yaml:151). The check still proves its claim (OpenTelemetry, gRPC and protobuf are behindcg_record, not cgo), but the two runs are not the same configuration.
What I checked
- Read the full diff of the one commit (RELEASING.md plus 5 new scripts in
scripts/release/), and each new script in full from disk. - Checked each script's logic against its own header and against RELEASING.md: exit codes, the marker regex, the round/reviewer/sha matching, the patch-id comparison, the merge-base choice, the
set -e/pipefail paths, and the quoting. - Verified the review-marker regex in check-ready.sh against the real marker format in
scripts/offload-review.sh:302and against the marker this review itself carries. They match. - Verified factual claims in RELEASING.md against the code:
keepalive_min_prefix_tokensdefault 80000 (config/config.go:167), the 409 "not held" manual ping (keepalive/manual_test.go:234),wake_causeandping_nin the dash schema (dash/schema.go:76,438),settings.py add --file --urlandCLAUDE_PROJECT_DIR(context-guru-plugin/scripts/settings.py:23,3095), the proxy flags-listen/-anthropic-upstream/-dashboard-db/-control-db(cmd/context-guru-proxy/main.go:82-185), and the 5 release assets (4 archives + checksums in.goreleaser.yaml). - Verified Part A's steps against CI: the
cg_recordrace step matches.github/workflows/ci.yaml:165exactly;TestDefaultBuildLinksNoOpenTelemetryGRPCOrProtobufexists (cmd/context-guru-proxy/depguard_test.go:15) and-run TestDefaultBuildmatches it; the named flakeTestDashEmitterKeepAlivePingCarriesNoWaitCauseexists (cmd/context-guru-proxy/dashemitter_waitcause_test.go:29), and the "rest" package set covers it;context-guru-pluginhas Go files only at its root, so./context-guru-pluginwithout/...loses nothing. - Verified the part-b-setup.sh python by reading it: it pops the guru base URL and header, prints key names only, and sets mode 600 through
umask 077before every write. - Tested the DONE-marker behavior of part-a.sh live with bash 5.2.37 (SIGTERM, SIGHUP, SIGINT, SIGKILL, and the failure path). Live Go builds and tests were not approved and were not run.
Round 1 of #944: 2 offload reviews (GLM) and a review by the earlier integrator. Scripts: - part-b-setup.sh: point Claude Code at <port>/anthropic, the proxy's Anthropic route (the root URL gave a 404). Take the gateway variable as an argument. Set a cheap model, copy apiKeyHelper, mark onboarding done, and trust the work dir under its resolved path too. - part-a.sh: a stop now writes DONE rc=143, not rc=0. Run depguard with CGO_ENABLED=0 as CI does. Add go vet -tags cg_record. - check-ready.sh: a failed gh call exits 2 with its cause, and never reads as "no reviews". - release-list.sh: skip pre-release tags; a failed title read warns and goes on. RELEASING.md: - the keep-alive floor default is 20000 (since #858), not 80000; - check 10 follows the per-wait ping plan of #867; - what "all done" contains; how to revert a merged PR; where the notes draft lives; a correction to a published release needs the owner; - the owner's standing rule: when the only failed rule is 1 approving review from someone other than the author, merge with --admin; any other failed rule needs the owner's yes for that PR. Assisted-By: Claude Opus 5.5 <[email protected]> Signed-off-by: DAVID AMID <[email protected]>
Round 1: repliesAll findings are fixed in Reviewer 1
Reviewer 2
integrator-053
Also new in this push: the owner's standing rule on bypass merges (step 3). When the only failed rule is "1 approving review from someone other than the author", the integrator may merge with |
ResultAll 13 of my points are fixed at My points
The code-scanning rule: my merges went past it too
|
amiddavid
left a comment
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.319 | offload-review skill, @amiddavid's session | resumed | 1 of 2 | 2 of 2 | ed8c328147c1 |
approve |
Verdict: approve
Findings
None.
Earlier findings
- Mine, finding 1 (keep-alive floor 80000): fixed. The trap line now says
keepalive_min_prefix_tokens: 20000, with "(it was 80000 before #858)". That matchesconfig/config.go:259-261. - Mine, non-blocking (check-ready.sh trusts any marker): rejected, and I accept the rejection. The reason is right and I verified it on this PR: all 4 reviews, mine included, post under the author's login, so a filter on the author login would block every PR. The newest rule-suite on
mainreadsresult: bypasswith failed rules, which confirms GitHub never counts these reviews. The script header now states the trust model. - Mine, non-blocking (CI reads only check runs): fixed in the doc line, which now says what the script reads and that it checks the DCO rule itself.
- Mine, non-blocking (tag pick): fixed. The script skips pre-release tags (
grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$') and usessed -n 1p, which reads all input, so no SIGPIPE corner. It exits 2 when no release tag exists. - Mine, non-blocking (kinds list): fixed. The doc now lists chore and build too.
- Reviewer 2, finding 1 (a stopped Part A run wrote
rc=0): fixed.part-a.sh:22now hastrap 'rc=143; exit 143' HUP INT TERM, and the header says "except SIGKILL". The signal trap flows through the EXIT trap, so the summary endsDONE rc=143. - Reviewer 2, non-blocking (gh failures read as "no reviews" / silent exit 1): fixed. Every gh call goes through
api(), which exits 2 and names the call. - Reviewer 2, non-blocking (release-list.sh died on a failed gh call): fixed. It warns and goes on. See Non-blocking for one small residue.
- Reviewer 2, non-blocking (depguard with cgo on): fixed. It runs with
CGO_ENABLED=0and the full test name, as CI'srecordjob does. - integrator-053, items 1 to 10: fixed. I verified each: the proxy serves
POST /anthropic/v1/messages(proxy/proxy.go:541), so the/anthropicbase URL is right; the script sets the model, copiesapiKeyHelper, setshasCompletedOnboarding, and trusts the work dir under both its given and resolved path; the gateway variable is an argument;go vet -tags cg_recordwas added; check 10 matches the #867 plan (DefaultKeepAliveHumanExtraPings = 1,DefaultKeepAliveToolWaitMaxPings = 8atconfig/config.go:264-268, andwaiting_forexists in the dash schema); the revert procedure, "all done" contents, notes-draft home and correction rule are in the doc. Items 11 to 13 live in the private notes, outside this repo; I cannot read them and take the reply's word.
Non-blocking
- scripts/release/release-list.sh:20-21 — the warning path loses the subject it says it keeps.
subj=$(gh pr view ...) || { ...; subj="(title unread) $subj"; }: bash performs the assignment before the||block runs, so$subjis the failed command's empty output, not the original subject. A failed title read prints(title unread)with nothing after it. The sha and PR number still print and the WARNING goes to stderr, so the list stays usable. Fix: read into a temp variable first (t=$(gh ...) && subj=$t || subj="(title unread) $subj"). - scripts/release/release-list.sh:6 — the script's own header still lists "(docs, test, ci, chore, refactor)" while the grep also marks
build. The RELEASING.md line is fixed; only the script comment lags.
What I checked
- Last review: round 1, 7fc4615, 2026-11-08T11:03:09Z
- New commits read: 1 (
ed8c3281docs(releasing): fix the review findings of round 1) - Read in full: 2 reviews, 2 comments, 0 inline comments (from the three files)
- New items since my last review, and what I did about each:
- reviewer 2's round-1 review (11:07:47Z): read in full; its finding and non-blocking points all re-checked as fixed above.
- integrator-053's hand-over review (11:01:34Z, before my round 1 but unread then by design): read in full; each item checked against the fix commit.
- the author's reply comment (11:11:31Z): read in full; each "fixed"/"rejected" claim verified in the diff.
- the new commit
ed8c3281: full diff read; each changed file read in full from disk (check-ready.sh,part-a.sh,part-b-setup.sh,release-list.sh,approval-still-valid.sh,RELEASING.md). - the owner's standing rule on
--adminmerges, new in this push: read the doc text and checked the commands it teaches.gh api repos/rossoctl/context-guru/rulesets/rule-suites?ref=refs/heads/mainreturns the recent merge evaluations, and.../rule-suites/<id>returnsrule_evaluationswith each rule's pass/fail result. Both work as written. The rule grants standing authority for exactly one failed rule and keeps the owner's yes for every other case, which fits the repo's rule that a bypass needs the owner's authority.
- Verified the check-10 wording against the code: human wait = base + 1 and tool wait = at most 8 (
config/config.go:264-268),waiting_forin the dash schema (dash/query.go:192). - Verified part-b-setup.sh's new output against the proxy route table (
proxy/proxy.go:541), and read the python for value leaks: it prints key names and the model only. - Ran
bash -non all five scripts: all pass. No Go builds or tests were run.
amiddavid
left a comment
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.319 | offload-review skill, @amiddavid's session | resumed | 2 of 2 | 2 of 2 | ed8c328147c1 |
approve |
Verdict: approve
Findings
None. My round-1 finding is fixed, and I found no new blocking defect in ed8c3281.
Earlier findings
- Reviewer 2, round 1, finding 1 (part-a.sh wrote
DONE rc=0for a stopped run): fixed.scripts/release/part-a.sh:23now hastrap 'rc=143; exit 143' HUP INT TERM, and the header says "except SIGKILL" and "a stop gives rc=143". I verified the combined behavior live (bash 5.2.37, same trap structure): a SIGTERM now ends the run with the summary lineDONE rc=143. - Reviewer 2, round 1, non-blocking (a failed
ghcall read as "no reviews"): fixed. All fourghcalls go throughapi(). I tested it with a bad repo: the script exits 2 and printsERROR: could not read the PR from GitHub (gh pr failed). It no longer reads as "not ready" or as "no marker". - Reviewer 2, round 1, non-blocking (
ghfailures exited with no reason): fixed by the sameapi(). - Reviewer 2, round 1, non-blocking (release-list.sh died mid-list on a failed
ghcall): fixed. It warns and goes on. One small flaw remains; see Non-blocking. - Reviewer 2, round 1, non-blocking (depguard ran with
CGO_ENABLED=1): fixed. It now runs withCGO_ENABLED=0and the full test name, as.github/workflows/ci.yaml:151-155does.go vet -tags cg_record ./...was also added, matchingci.yaml:161. - Reviewer 1, finding 1 (the keep-alive floor default): fixed. The doc now says 20000, since #858. I verified
config/config.go:261:DefaultKeepAliveMinPrefix = 20000. - Reviewer 1, non-blocking (trust in marker text): rejection accepted. The reason is right:
offload-reviewposts both reviews under the login of the person who ran it, and that person is often the author. On this PR, all 3 reviews are under one login. A filter on the author login would block valid reviews. The script header now states this trust model. - Reviewer 1, non-blocking (CI statuses API, tag pick, kinds list): all fixed. The doc line now says what the script reads; the tag pick skips pre-release tags and uses
sed -n 1p(I ran it: it picksv0.6.7, andv0.3.1-testupdate1is skipped); the doc lists chore and build too. - integrator-053, items 1 to 10: fixed. I verified each against the code:
- the base URL is now
http://127.0.0.1:<port>/anthropic;proxy/proxy.go:541servesPOST /anthropic/v1/messagesand no root/v1/messagesroute exists, so the old URL did 404; - the script now sets the model, copies
apiKeyHelper, setshasCompletedOnboarding, and trusts the work dir under both its given and resolved path. I ran it with a fake settings file: all of that held, files are mode 600, and no value was printed; - the gateway variable is now an argument (
<upstream-var>), so the benchmark-vs-upstream choice is per maintainer; - check 10 now follows #867. The numbers match the code defaults:
DefaultKeepAliveHumanExtraPings = 1andDefaultKeepAliveToolWaitMaxPings = 8(config/config.go:263-266), andwaiting_foris a dash field (dash/query.go:192); - "all done" contents, the revert procedure, the notes draft location, and the owner's yes for a published correction are in RELEASING.md as proposed.
- the base URL is now
- integrator-053, items 11 to 13 (private notes): stated fixed in the reply. They are outside this repo, so I could not read them. The public diff holds no internal name, and the reply says the checks passed on the private side.
- New in this push, the standing rule on
--adminmerges: doc-only, and the reply records it as the owner's standing decision. The rule-suites API path it names works (I readrepos/rossoctl/context-guru/rulesets/rule-suites?ref=refs/heads/mainback: 1 suite).
Non-blocking
- scripts/release/part-a.sh:23 — a stop now records
rc=143, but it takes effect only when the current step ends. Bash defers a trapped signal while a foreground command runs. I verified this: the same trap structure with a 10-second child,kill -TERMafter 1 second — the script exited only after the full 10 seconds, then wroteDONE rc=143. So a stop during the 25-minute dash race test waits for that step. An integrator who sees no effect may escalate tokill -9, which writes no marker. Fix: record the child pid instep()andkillit in the signal trap, or say in the header that a stop lands at the end of the current step. - scripts/release/release-list.sh:19-21 — when the title read fails, the fallback line loses the subject it means to keep. The failed assignment
subj=$(gh pr view ...)first setssubjto empty, sosubj="(title unread) $subj"prints only "(title unread)". I verified this live with a bad repo: the line printsline: (title unread). The sha and PR number still show, and a WARNING goes to stderr, so the list stays usable. Fix: read into a temp variable first (t=$(gh ...)on successsubj=$t), then build the fallback from the saved subject.
What I checked
- Last review: round 1, 7fc4615, 2026-11-08T11:07:47Z
- New commits read: 1 (
ed8c3281docs(releasing): fix the review findings of round 1) - Read in full: 2 reviews, 2 comments, 0 inline comments (from the three files)
- New items since my last review: the author's reply comment at 2026-11-08T11:11:31Z (I checked every claim in it, as above). The integrator-053 comment at 11:01:34Z and reviewer 1's review at 11:03:09Z predate my round-1 post; I read both in full now and checked each item.
- Read the full diff of
ed8c3281(RELEASING.md and all 5 scripts) and each changed file around the changes. - Ran
bash -non all 5 scripts: all pass. - Ran part-b-setup.sh with a fake settings file and checked every output file, its mode, and what the script prints.
- Tested live, with bash 5.2.37: the TERM/HUP/INT trap path of part-a.sh (marker value and timing), the
api()failure path of check-ready.sh, and the failed title read of release-list.sh. - Verified the doc's changed claims against the code: the 20000 floor (
config/config.go:261), the per-wait ping numbers (config/config.go:263-266),waiting_for(dash/query.go:192), the/anthropicroute (proxy/proxy.go:541), the depguard and vet-record steps against.github/workflows/ci.yaml, and the tag pick against the real tag list. - Live Go builds and tests were not approved and were not run.
Round 2 of #944, non-blocking points: - part-a.sh: each step runs in the background and the script waits, so a stop ends the running step at once and writes DONE rc=143. Before, a stop waited for the step to end (up to 25 min in dash). - release-list.sh: a failed title read keeps the commit subject. - release-list.sh: the header lists build too. Assisted-By: Claude Opus 5.5 <[email protected]> Signed-off-by: DAVID AMID <[email protected]>
Round 2: repliesAll 3 non-blocking points are fixed in the new head. The owner granted round 3.
|
amiddavid
left a comment
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.319 | offload-review skill, @amiddavid's session | resumed | 1 of 2 | 3 of 3 | f37541d210d0 |
blocking |
Verdict: blocking
Findings
- RELEASING.md:143 — the standing rule on
--adminmerges names a condition that never holds on this repo.- What fails: the rule says the integrator may merge with
--admin"when the only rule that blocks a PR is '1 approving GitHub review from someone other than the author'", and "any other failed rule needs the owner's yes". Themainruleset (id 19779069, active) also holds acode_scanningrule, and the repo has no CodeQL workflow (.github/workflows/holdsci.yaml,docs.yaml,project.yml,release.yaml), so that rule fails on every merge. An integrator who reads the rules first, as line 144 tells them to, finds 2 failed rules on every PR and must ask the owner each time — the standing rule never applies. An integrator who does not read the rules bypasses the code-scanning rule with no recorded authority. Either way, the page misstates what the integrator may do. - Proof:
gh api repos/rossoctl/context-guru/rulesets/19779069lists 4 rules,code_scanningamong them. The newest merge evaluation onmain(rule-suite 4977727108, resultbypass) showspull_request: failandcode_scanning: fail. integrator-053 raised this on the PR at 2026-11-08T11:12:50Z, said every merge from v0.6.1 to v0.6.7 went past both rules, and named 3 owner options: add a CodeQL workflow, drop the rule, or add it to the standing rule. The new headf37541d2does not touch RELEASING.md, and the round-2 reply (11:18:19Z) answers only the 3 reviewer points. The team member's request is unaddressed at this head. - Fix: record the owner's choice in RELEASING.md:143-144. Until the owner picks, add one line that says the
code_scanningrule fails on every merge in this repo (no CodeQL workflow) and that the integrator goes past it under the standing rule, or stops and asks.
- What fails: the rule says the integrator may merge with
Earlier findings
- Mine, round 2, non-blocking (release-list.sh loses the subject on a failed title read): fixed. The title now goes into a temp variable first (
release-list.sh:20-24), so the fallback prints(title unread) <commit subject>. The bash order is now right:subjkeeps its value whenghfails. - Mine, round 2, non-blocking (script header omitted
build): fixed.release-list.sh:6now lists build too. - Reviewer 2, round 2, non-blocking (a stop waited for the current step, up to 25 min): fixed.
part-a.shnow runs each step in the background and waits on it (run(), lines 27-34), and the signal trap kills the running child before it exits 143 (line 23). In bash, a trapped signal interrupts thewaitbuiltin at once, so the trap lands during the step, not after it. The author tested it with a 20-second fake step and a SIGTERM after 2 seconds: the run ended in 1 second withDONE rc=143and no child left. The design is correct by reading, and the author's live test backs it. - All round-1 findings were fixed at
ed8c3281and stay fixed at this head; no file they touched regressed (the new commit changes onlypart-a.shandrelease-list.sh).
Non-blocking
- scripts/release/part-a.sh:23 — a tiny race in the signal trap. If the signal lands between the launch of the step (
run(), line 29) andchild=$!(line 30),childis still empty, so the trap exits without killing the step and the step keeps running detached. The window is a few instructions wide and only orphans one step on a stop. Not worth a change on its own; noting it so the next reader knows the limit.
What I checked
- Last review: round 2, ed8c328, 2026-11-08T11:15:06Z
- New commits read: 1 (
f37541d2fix(release): stop part-a at once, keep a title that cannot be read) - Read in full: 4 reviews, 4 comments, 0 inline comments (from the three files)
- New items since my last review, and what I did about each:
- reviewer 2's round-2 review (11:15:29Z): read in full. Its two non-blocking points (part-a stop waits for the step; release-list subject loss) match my own round-2 notes; both re-checked as fixed above.
- integrator-053's round-2 comment (11:12:50Z): read in full. All 13 round-1 points confirmed fixed at
ed8c3281. Its new code-scanning fact I verified live and raised as finding 1. - the author's round-2 reply (11:18:19Z): read in full. Its 3 "fixed" claims verified in the diff; it does not answer integrator-053's code-scanning point.
- the new commit
f37541d2: full diff read; both changed scripts read in full from disk.
- Verified finding 1 against GitHub, live: the ruleset list (
gh api repos/rossoctl/context-guru/rulesets), the rules of ruleset 19779069, the newest rule-suite onrefs/heads/main(bothpull_requestandcode_scanningfail, resultbypass), and the workflow directory (no CodeQL). - Verified the
run()/signal-trap design against bash semantics: a trapped signal interruptswaitat once; the trap then kills the child and exits 143 through the EXIT trap, so the summary endsDONE rc=143. - Ran
bash -nonpart-a.shandrelease-list.sh: both pass. No Go builds or tests were run.
amiddavid
left a comment
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.319 | offload-review skill, @amiddavid's session | resumed | 2 of 2 | 3 of 3 | f37541d210d0 |
blocking |
Verdict: blocking
Findings
- RELEASING.md:143-144 — the standing rule on
--adminmerges cannot hold: the code-scanning rule fails on every PR, so the 1-approval rule is never the only failed rule- What fails: the integrator follows the rule at merge time. Every PR today fails two rules of the
mainruleset: the 1-approval rule (all offload reviews post under the author's login, so GitHub counts no approving review) and the code-scanning rule (the repo has no CodeQL workflow, so that rule never passes). The condition "the only rule that blocks a PR is the 1-approval rule" is therefore never true. Read strictly, line 144 ("any other failed rule needs the owner's yes for that PR") stops every merge for an owner's yes. Read loosely, every--adminmerge silently bypasses the code-scanning rule too, a rule the standing rule does not name. The page's own advice makes this visible: it tells the integrator to read the rule suites, and the suite shows both rules failing. integrator-053 raised this at 11:12:50Z and asked for an owner decision plus an interim sentence; neitherf37541d2nor the round-2 reply answers it. - Proof: I read rule-suite 4977727108 (the latest on
main):pull_request= fail andcode_scanning= fail under ruleset "main" (id 19779069, rules: pull_request, code_scanning, non_fast_forward, deletion); the overall result isbypass. The repo has no CodeQL workflow:.github/workflows/holdsci.yaml,docs.yaml,project.yaml,release.yamlonly. So the code-scanning rule fails on every head, and every--adminmerge bypasses it. Every release merge from v0.6.1 to v0.6.7 did so, per integrator-053. - Fix: record the owner's decision — add a CodeQL workflow, drop the code-scanning rule from the ruleset, or name code-scanning in the standing rule as a second rule the integrator may bypass. Until the owner decides, add one sentence that says what the integrator does when the code-scanning rule also fails.
- What fails: the integrator follows the rule at merge time. Every PR today fails two rules of the
Earlier findings
- Reviewer 2, round 2, non-blocking (a stop waited for the current step to end): fixed. Each step now runs in the background and the script waits (
run(),scripts/release/part-a.sh:31-38), and the signal trap kills the running child. I verified it live with the same structure: a 20-second step,kill -TERMafter 2 seconds — the run ended at once (about 2 seconds, not 20), no child was left, and the summary endsDONE rc=143. The failure path still works: a failing step givesFAILED <name> (twice)andDONE rc=1, exit 1. - Reviewer 2, round 2, non-blocking (a failed title read lost the subject): fixed. The title now goes into a temp variable first. I verified it live with a bad repo: the line prints
(title unread) Bump golang.org/x/net to v0.62.0 for CVE-2026-78661 (#936)— the subject survives. - Reviewer 1, round 2, non-blocking (same subject loss): fixed by the same change; I verified it myself, as above.
- Reviewer 1, round 2, non-blocking (the script header's kinds list lacked
build): fixed.release-list.shline 6 now lists build too. - All round-1 findings and the integrator's items 1 to 13 were settled in round 2; nothing in
f37541d2reopens them. The commit touches onlypart-a.shandrelease-list.sh.
Non-blocking
None.
What I checked
- Last review: round 2, ed8c328, 2026-11-08T11:15:29Z
- New commits read: 1 (
f37541d2fix(release): stop part-a at once, keep a title that cannot be read) - Read in full: 4 reviews, 4 comments, 0 inline comments (from the three files)
- New items since my last review, and what I did about each:
- integrator-053's re-check comment at 11:12:50Z: it arrived after my round-2 fetch, so I read it now in full. Its 13 "fixed" claims match what I verified in round 2. Its new fact, the always-failing code-scanning rule, I verified against the API and raised as my finding 1.
- reviewer 1's round-2 review at 11:15:06Z: read in full. Its two non-blocking points are both fixed in
f37541d2; I verified each myself. Its rejection acceptance (marker trust) matches mine from round 2. - the author's round-2 reply at 11:18:19Z: read in full. Its three "fixed" claims are true — I tested both script changes live.
- the new commit
f37541d2: full diff read, both changed files read in full from disk.
- Verified the new
run()/trap code for races and exit paths by reading it:local r=$?captures the wait status; a signal between&andchild=$!has a microsecond window with no kill, which I rate as nothing; the rerun-on-flake logic is unchanged. - Ran
bash -non both changed scripts: both pass. - Live-tested with bash 5.2.37: the immediate stop, the orphan check, the failure path, and the kept subject.
- Read the ruleset and rule-suite from GitHub (
rulesets/19779069,rulesets/rule-suites/4977727108) and confirmed no CodeQL workflow exists in the repo. - Live Go builds and tests were not approved and were not run.
Round 3 of #944: the standing --admin rule never held, because the code-scanning rule (CodeQL) also failed on every PR. The repo had no CodeQL workflow. The owner decided on 2026-11-08 to add the workflow, fix what it finds, and hold merges until the rule passes. Assisted-By: Claude Opus 5.5 <[email protected]> Signed-off-by: DAVID AMID <[email protected]>
Round 3: repliesReviewers 1 and 2, finding 1 (the standing rule never holds): fixed in the new head. RELEASING.md step 3 now names the code-scanning rule, says that every merge from v0.6.1 to v0.6.7 went past it, and records the owner's decision of 2026-11-08: add the CodeQL workflow, fix what it finds, and merges wait until the rule passes. After that, a code-scanning failure needs the owner's yes for that PR. The owner granted round 4. Reviewer 1, non-blocking (the small race in the part-a.sh trap): no change. As the review says, the window is a few instructions wide and can orphan only one step on a stop. |
amiddavid
left a comment
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.319 | offload-review skill, @amiddavid's session | resumed | 2 of 2 | 4 of 4 | b7c4800416d5 |
approve |
Verdict: approve
Findings
None. My round-3 finding is fixed, and the new commit introduces no defect.
Earlier findings
- Reviewer 2, round 3, finding 1 (the standing
--adminrule never held, because the code-scanning rule also fails on every PR): fixed.RELEASING.md:145now names the code-scanning rule, records that every merge from v0.6.1 to v0.6.7 went past it unseen, and records the owner's decision of 2026-11-08: add the CodeQL workflow, fix what it finds, and merges wait until the rule passes. After that, the standing rule holds as written, and a code-scanning failure needs the owner's yes. That is the fix I asked for: the owner's choice, plus the interim instruction. - Reviewer 1, round 3, finding 1 (the same standing-rule defect): fixed by the same line. I verified it myself; reviewer 1 and I found it independently in round 3.
- Reviewer 1, round 3, non-blocking (a few-instruction race in the part-a.sh signal trap): no change, accepted. The author kept the code. Reviewer 1 itself wrote "not worth a change on its own", and I rated the same window as nothing in round 3. The worst case is one orphaned step on a stop. I agree with leaving it.
Non-blocking
None.
What I checked
- Last review: round 3, f37541d, 2026-11-08T11:23:35Z
- New commits read: 1 (
b7c48004docs(releasing): record the code-scanning rule and the owner's choice) - Read in full: 6 reviews, 5 comments, 0 inline comments (from the three files)
- New items since my last review, and what I did about each:
- reviewer 1's round-3 review at 11:21:20Z: read in full. Its finding matches my round-3 finding; its non-blocking race note is the same window I rated as nothing. Checked against the fix below.
- the author's round-3 reply at 11:26:19Z: read in full. Its "fixed" claim verified against the new head; its "no change" on the race accepted, as above.
- the new commit
b7c48004: full diff read (one line in RELEASING.md), and the section around it re-read from disk.
- Verified the new line against GitHub: the code-scanning rule of ruleset 19779069 reads
alerts_threshold: "errors"andsecurity_alerts_threshold: "high_or_higher"for tool CodeQL — the doc's "no errors and no high or critical security alerts" matches it exactly. - Checked the new line's logic: until the CodeQL workflow exists and passes, the rule fails, and the page now says merges wait; after it passes, the standing rule's condition can hold, and a code-scanning failure again needs the owner's yes. Consistent with lines 143-144.
- The commit touches only RELEASING.md, so no script from the earlier rounds changed; nothing can have regressed.
- Live Go builds and tests were not approved and were not run.
amiddavid
left a comment
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.319 | offload-review skill, @amiddavid's session | resumed | 1 of 2 | 4 of 4 | b7c4800416d5 |
approve |
Verdict: approve
Findings
None.
Earlier findings
- Mine and reviewer 2's, round 3, finding 1 (the standing
--adminrule never held, because the code-scanning rule fails on every PR): fixed.RELEASING.md:145now names the code-scanning rule, records that every merge from v0.6.1 to v0.6.7 went past it unseen, and records the owner's decision of 2026-11-08: add the CodeQL workflow, fix what it finds, and merges wait until the rule passes. After that, a code-scanning failure needs the owner's yes. The page now says what the integrator does today, which is exactly what integrator-053 asked for. I verified the facts behind the new line, live:- the rule's parameters (
gh api repos/rossoctl/context-guru/rulesets/19779069): tool CodeQL,alerts_threshold: errors,security_alerts_threshold: high_or_higher— the doc's "CodeQL results with no errors and no high or critical security alerts" states them correctly; - the repo still has no CodeQL workflow at this head (
.github/workflows/holdsci.yaml,docs.yaml,project.yml,release.yaml), so the recorded "merges wait until the rule passes" is the truthful instruction for today, not a stale one. The standing rule is marked as holding only after the workflow lands.
- the rule's parameters (
- Mine, round 3, non-blocking (a tiny race in the part-a.sh signal trap): no change, and I accept the reason. The author kept it because the window is a few instructions wide and can orphan only one step on a stop — the same rating I gave it. Nothing new changes that.
Non-blocking
None.
What I checked
- Last review: round 3, f37541d, 2026-11-08T11:21:20Z
- New commits read: 1 (
b7c4800docs(releasing): record the code-scanning rule and the owner's choice) - Read in full: 6 reviews, 5 comments, 0 inline comments (from the three files)
- New items since my last review, and what I did about each:
- reviewer 2's round-3 review (11:23:35Z): read in full. It found the same standing-rule defect I did, from its own live proof (rule-suite 4977727108, ruleset 19779069, no CodeQL workflow). Its round-2 non-blocking points it re-verified live; no new finding beyond mine.
- the author's round-3 reply (11:26:19Z): read in full. The "fixed" claim verified against the new head; the "no change" on the part-a race accepted, as above.
- the new commit
b7c4800: full diff read — one line added toRELEASING.md, nothing else, so no earlier fix regressed.
- Verified the new doc line against GitHub, live: the
code_scanningrule parameters of ruleset 19779069, and the workflow directory at this head. - No Go builds or tests were run; the commit changes no script, so
bash -nwas not needed.
ResultThe 2 new commits are correct. I approve #944 at What I checked
One small point, not blocking
|
check-ready.sh now fails a PR whose head has no passing CodeQL check run from GitHub's code-scanning app. RELEASING.md gets new rules: a PR opened before #945 needs a new push before it merges; after an --admin merge, read the merge's rule results and tell the owner of any failed rule other than the review rule; a PR's scan covers only its changed lines, so read main for all open alerts; a false positive is dismissed only with the owner's yes. Why: on 2026-11-08 #943, #937 and #944 merged past the code-scanning rule because they were opened before the CodeQL workflow (#945). CodeQL scans of main afterwards found no new alert. --admin does not say which rules it bypasses, and the script did not check code scanning. New integrator rule: an integrator talks with many sessions and with the owner, so its main session must stay free. Implementation work goes to subagents, and the main session only coordinates. The owner asked for this. Behavior change: none. Release scripts and docs only. Data dependence: none. The script reads GitHub check runs only. Reviews: 2 offload reviews (GLM), round 3 (owner granted round 3), both approve at df9d719. Assisted-By: Claude Opus 5.5 <[email protected]> Signed-off-by: DAVID AMID <[email protected]>
Summary
A fresh integrator session took over the release from
RELEASING.mdalone. The integrator before it (integrator-053) named about 15 steps and traps that were only in its own context or private notes. This PR writes them down and adds scripts for the checks that were done by hand.Behavior change: none. Docs and new release scripts only. No proxy or library code changes.
Data dependence: none. The scripts read GitHub and git only.
What we found
A new integrator did not know:
/tmpand a restart removed them.-timeout 25mfor dash,-tags cg_record, the dependency check, the known flakes, and the done marker on any exit.wake_cause, ToolSearch beta flag, status line, read-only DB, kill guard).What changed
RELEASING.md:scripts/release/:release-list.sh: the release list fromgit log <tag>..origin/main.check-ready.sh: open, no conflict, 2 approvals at the head, green CI, every commit signed off.approval-still-valid.sh: patch-id andgit range-difffor a head that moved.part-a.sh: every Part A step, one rerun of a failed step,DONE rc=<n>on any exit.part-b-setup.sh: the isolated Claude Code setup, run by a person; it prints key names only.The internal parts (test-machine names, credentials, internal scripts, private data) are in the maintainer's private notes, not in this PR.
How it was tested
release-list.sh: run onmain. It lists docs: explain what the proxy defers and the tool history rule #933, fix(tooldefer): a keyword query for a deferred tool no longer disables client mode #934, docs(readme): update the savings figure with live numbers and presets #935, Fix: Bump golang.org/x/net to v0.62.0 for CVE-2026-78661 #936 since v0.6.7, and marks docs: explain what the proxy defers and the tool history rule #933 and docs(readme): update the savings figure with live numbers and presets #935 "no note".check-ready.sh 943: it found 2 approvals at84997131and reportedbuild-teststill running (exit 1).check-ready.sh 934(merged): it reported the merged state.approval-still-valid.sh 943 b99d17bf: it reported CHANGED, because84997131adds a commit.part-b-setup.shon a fake settings file: it droppedANTHROPIC_BASE_URLandANTHROPIC_CUSTOM_HEADERS, set the test port, wrote the upstream, and made files with mode 600.part-a.sh: not run yet. It runs for real in the next release's Part A.Open questions
part-a.shbecome amaketarget?🤖 Generated with Claude Code