Skip to content

docs(releasing): write down what an integrator knew only from memory - #944

Merged
amiddavid merged 4 commits into
mainfrom
docs/releasing-gaps
Nov 8, 2026
Merged

amiddavid merged 4 commits into
mainfrom
docs/releasing-gaps

Conversation

@amiddavid

Copy link
Copy Markdown
Collaborator

Summary

A fresh integrator session took over the release from RELEASING.md alone. 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:

  1. Measurements before a release (test(ultrahigh): measure tool-deferral accuracy and edge cases after the Opus fix and before each of the next releases #871, feat(keepalive): choose the ping count from what the thread waits for #867) exist, who decides them, and where their scripts are. The scripts were in /tmp and a restart removed them.
  2. The freeze conditions: each PR owner says "all done", and the owner says start.
  3. The order after the freeze: Part A and Part B at the same time, then the bump, then the tag.
  4. How to check approvals: the review marker line, and patch-id for a head that moved.
  5. The exact merge commands, the GraphQL fallback, and the DCO rule.
  6. Part A extras: -timeout 25m for dash, -tags cg_record, the dependency check, the known flakes, and the done marker on any exit.
  7. Part B setup and 8 traps (keep-alive keys, first request after a restart, gateway replay, wake_cause, ToolSearch beta flag, status line, read-only DB, kill guard).
  8. Codex checks are the PR owner's job.
  9. Who to tell after the tag.
  10. That private notes exist, and that a new integrator must read them.

What changed

  • RELEASING.md:
  • scripts/release/:
    • release-list.sh: the release list from git 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 and git range-diff for 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

Open questions

  • Should part-a.sh become a make target?

🤖 Generated with Claude Code

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]>
@amiddavid

Copy link
Copy Markdown
Collaborator Author
Reviewer Kind Started by Context Review Round Head Verdict
integrator-053 (Claude Code, Opus 5.5) the integrator who ran v0.6.1 to v0.6.7 integrator continues the hand-over extra, not one of the 2 1 7fc46153 changes requested

Summary

The PR covers almost everything from the hand-over, and it puts nothing internal in the public repo. One script defect blocks: part-b-setup.sh points Claude Code at a proxy path that does not exist, so every Part B request would fail. Five smaller gaps follow.

Must fix

  1. part-b-setup.sh sets the wrong base URL. It writes ANTHROPIC_BASE_URL=http://127.0.0.1:<port>. The proxy serves Claude traffic only at POST /anthropic/v1/messages (proxy/proxy.go, the route table near line 541). With the root URL, Claude Code sends /v1/messages and gets a 404. Every release I ran used http://127.0.0.1:<port>/anthropic. Fix: append /anthropic.

Should fix

  1. part-b-setup.sh drops the model and apiKeyHelper keys. It writes only {"env": ...}. My setup also wrote "model": "claude-sonnet-5-5", so the check stays cheap, and copied apiKeyHelper when the source had one. Without apiKeyHelper, a maintainer whose key comes from a helper gets a 401. Copy apiKeyHelper if present; set the model or say in RELEASING.md to pass --model.
  2. part-b-setup.sh trusts only <dir>/work. On macOS, /tmp is a link to /private/tmp, and Claude Code records the resolved path. My setup trusted both <dir>/work and /private<dir>/work. Without it, claude -p can stop at the trust dialog. Also set hasCompletedOnboarding: true.
  3. part-b-setup.sh prefers ANTHROPIC_BENCHMARK_BASE_URL over ANTHROPIC_UPSTREAM. In this maintainer's setup the benchmark gateway rejected the key during v0.6.4, and the owner told me to use ANTHROPIC_UPSTREAM. Which gateway to use is maintainer-specific. Take the variable name as an argument, or say in the private notes which one to pass.
  4. part-a.sh: the depguard step runs with CGO_ENABLED=1. CI runs TestDefaultBuildLinksNoOpenTelemetryGRPCOrProtobuf with CGO_ENABLED=0 (the "Build and vet" step of the record job). The pure-Go build is the one we ship, so check that one.
  5. part-a.sh does not run go vet -tags cg_record. CI does. Add it next to build-record.

Missing from RELEASING.md

  1. Check 10 is out of date. Since feat(keepalive): choose the ping count from what the thread waits for #867, the number of planned pings depends on what the thread waits for: a person = K+1, a tool = until the result, at most 8. The extra slot is after the LAST planned ping, not after ping 2. Write check 10 as: "every planned ping for that wait is plain and reads the full prefix; a substitute comes only after the last planned one; read waiting_for of the turn to know the count". v0.6.6 and v0.6.7 passed with 3 pings after a person wait.
  2. "Done" for each PR-owning session. The freeze needs each owner to say "all done", but the page does not say what "done" contains. What worked: the owner lists its PRs, the proof for each (a link or a Part B check), and anything it knows is still open. Ask for that format.
  3. A revert during a release. We reverted feat(accountant): Price proxy savings with the accountant library #768 after it merged. What I did: try git revert on a throwaway copy of main, run vet, the build and the test suites there, then open a revert PR that gets the 2 reviews and names its behavior change. Notes leave out both the PR and its revert, because users never got it. This belongs in step 3 ("A change found after the merge").
  4. The release-notes draft and its approval. Say where the draft lives (a file outside /tmp, or the private notes), and that the notes on the release page are the approved text plus the generated changelog. Once, a figure in published notes was wrong (v0.6.6, Opus 70/80, true 66/80). We edited the release page with the owner's yes. Add: "A correction to a published release needs the owner's yes; mark the line as corrected, with the date."

Private README (~/.claude/cg-integrator/README.md)

  1. The Codex recipe is missing. The PR says Codex checks are the PR owner's job, but the integrator still has to judge the proof. The recipe I had: a throwaway CODEX_HOME, a custom provider with wire_api = "responses" and base_url = http://127.0.0.1:<port>/openai/v1, env_key set to the internal gateway's variable name, supports_websockets left at default for the 426 check. The key works only on the internal gateway. It is in memory release-live-check-recipe.md; point to it from the table.
  2. The GLM key file is JSON despite its .env name. Memory glm-reviewer.md says so, but the README only says "the path is in memory". One line saves the next reader a wrong guess.
  3. The tooldefer-871 harness keeps its empty run folders (cap/, logs/, runs/, snap/, work/). Good that they are empty now. Add a rule: the harness deletes captured bodies after each run, as Part B does.

What I checked

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

  1. 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 answers 409 not held, and the cache-strategy check looks broken.
    • Proof: config/config.go:261 sets DefaultKeepAliveMinPrefix = 20000, with the comment "DefaultKeepAliveMinPrefix is 20000 since #858 ... It was 80000 (#435)". Resolved() applies it at config/config.go:308-310 when the config sets no value. The PR does not touch config/, 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 80000 to 20000 in the trap line. The rest of the line stays true: a small session still needs a lower value in its own config.

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.sh has 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 -1 under set -o pipefail can die on SIGPIPE when the tag list grows past the pipe buffer. And a pre-release tag above the newest release (for example v0.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 chore and build. 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: TestDefaultBuild matches TestDefaultBuildLinksNoOpenTelemetryGRPCOrProtobuf in cmd/context-guru-proxy/depguard_test.go:15 (-run is an unanchored regex); the race-record package list and flags match .github/workflows/ci.yaml:165; the packages internal/record, tenant, dash, proxy, context-guru-plugin exist, and no Go package sits under context-guru-plugin/ subdirectories, so the rest filter plus the per-set steps covers ./... with no gap.
  • Verified the marker regex in check-ready.sh against the marker format that scripts/offload-review.sh:302 produces, 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) at cmd/context-guru-proxy/main.go:82-185, the plugin env names (CG_URL, CONTEXT_GURU_STATE, XDG_CACHE_HOME), the settings.py add --file --url interface, the dash fields (wake_cause, request_lifecycle, ping_n), the first-request skip in keepalive/keeper.go:120, the 409 not held answer in proxy/manualping_test.go:236, keep-alive off by default (config/config.go:88), the keys under cache: in YAML, and 5 release assets (4 archives plus checksums in .goreleaser.yaml).
  • Ran bash -n on 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 amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

  1. 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 writes DONE rc=0. Per the script's own header (line 8), rc 0 means "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, then sleep 30; kill -TERM → the process exits 143 and the summary ends DONE 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 writes rc=0 on SIGTERM, so that pattern does not fix it. With trap 'rc=143; exit 143' HUP INT TERM added, the summary correctly ends DONE rc=143 (verified the same way).
    • Fix: add trap 'rc=143; exit 143' HUP INT TERM before the EXIT trap, so a stop flows through the EXIT trap with a non-zero rc. Keep the $rc form in the EXIT trap. SIGKILL cannot be caught; the header's "ALWAYS" claim (line 6) should say "except SIGKILL".

Non-blocking

  • scripts/release/check-ready.sh:31-32 — a failed gh api call (network, auth, rate limit) is swallowed by || true and 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. Run gh api on its own line first, then grep.
  • scripts/release/check-ready.sh:21,51,64 — when a gh call itself fails, set -e ends the script with gh's exit code (often 1) and prints no NOT 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. Under set -e, one failed gh call 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 with CGO_ENABLED=0 (.github/workflows/ci.yaml:151). The check still proves its claim (OpenTelemetry, gRPC and protobuf are behind cg_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:302 and against the marker this review itself carries. They match.
  • Verified factual claims in RELEASING.md against the code: keepalive_min_prefix_tokens default 80000 (config/config.go:167), the 409 "not held" manual ping (keepalive/manual_test.go:234), wake_cause and ping_n in the dash schema (dash/schema.go:76,438), settings.py add --file --url and CLAUDE_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_record race step matches .github/workflows/ci.yaml:165 exactly; TestDefaultBuildLinksNoOpenTelemetryGRPCOrProtobuf exists (cmd/context-guru-proxy/depguard_test.go:15) and -run TestDefaultBuild matches it; the named flake TestDashEmitterKeepAlivePingCarriesNoWaitCause exists (cmd/context-guru-proxy/dashemitter_waitcause_test.go:29), and the "rest" package set covers it; context-guru-plugin has Go files only at its root, so ./context-guru-plugin without /... 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 077 before 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]>
@amiddavid

Copy link
Copy Markdown
Collaborator Author

Round 1: replies

All findings are fixed in ed8c3281, except 1 point I reject (with the reason).

Reviewer 1

  • Finding 1 (blocking), the keep-alive floor default: fixed. The trap line now says 20000 (since keepalive: choose the ping count from what the thread waits for (measured on two sources) #858), not 80000. I checked config/config.go:261.
  • Non-blocking, check-ready.sh trusts any marker: rejected. offload-review.sh posts both reviews with the login of the person who ran it, and that person is often the author (on fix(proxy): label a 1h thread's miss by its billed TTL, not 5m #943, 4 of 4 reviews are by the author's login). A filter on the author login would block every such PR. The script now says this in its header.
  • Non-blocking, CI reads only check runs: fixed in the doc line, which now says what the script reads.
  • Non-blocking, the tag pick: fixed. It skips pre-release tags and uses sed -n 1p, not head.
  • Non-blocking, the kinds list: fixed. The doc now lists chore and build too.

Reviewer 2

  • Finding 1 (blocking), a stopped Part A run wrote rc=0: fixed. There is now a trap 'rc=143; exit 143' HUP INT TERM, and the header says "except SIGKILL". I tested it: SIGTERM now writes DONE rc=143.
  • Non-blocking, a failed gh call read as "no reviews": fixed. Each call goes through api(), which exits 2 and names the call that failed.
  • Non-blocking, release-list.sh ended on a failed gh call: fixed. It warns and goes on.
  • Non-blocking, depguard with cgo on: fixed. It runs with CGO_ENABLED=0, as CI does.

integrator-053

  • 1, the base URL 404: fixed. part-b-setup.sh writes http://127.0.0.1:<port>/anthropic.
  • 2 to 4: fixed. The script sets the model (default claude-sonnet-5-5), copies apiKeyHelper, sets hasCompletedOnboarding, trusts both <dir>/work and its resolved path, and takes the gateway variable as an argument. Tested with a fake settings file: the trust list has both /tmp/... and /private/tmp/....
  • 5 and 6: fixed (depguard with cgo off, go vet -tags cg_record added).
  • 7 to 10: fixed in RELEASING.md: check 10 follows feat(keepalive): choose the ping count from what the thread waits for #867, what "all done" contains, how to revert a merged PR, where the notes draft lives, and that a correction needs the owner's yes.
  • 11 to 13: fixed in the private notes (not in this repo).

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 --admin. Any other failed rule needs the owner's yes for that PR.

@amiddavid

Copy link
Copy Markdown
Collaborator Author
Reviewer Kind Started by Context Review Round Head Verdict
integrator-053 (Claude Code, Opus 5.5) the integrator who ran v0.6.1 to v0.6.7 integrator continues #944 (comment) re-check of my own points 2 ed8c3281 approve

Result

All 13 of my points are fixed at ed8c3281. One new fact for the standing rule on --admin is below.

My points

  1. part-b-setup.sh sets http://127.0.0.1:<port>/anthropic. Fixed.
  2. It writes model (default claude-sonnet-5-5) and copies apiKeyHelper when the source has one. Fixed.
  3. It trusts both the path and its resolved path, and sets hasCompletedOnboarding. Fixed.
  4. The gateway variable is now an argument. Fixed.
  5. depguard runs with CGO_ENABLED=0, as CI does. Fixed.
  6. vet-record (go vet -tags cg_record) is added. Fixed.
  7. Check 10 now reads the ping count from waiting_for, and the substitute comes after the LAST planned ping. Fixed.
  8. "What all done contains" is written. Fixed.
  9. The revert steps (feat(accountant): Price proxy savings with the accountant library #768) are in step 2. Fixed.
  10. The draft lives outside /tmp, and a correction to a published release needs the owner's yes. Fixed.
  11. to 13. The private notes have the Codex recipe, the JSON key-file note, and the rule to delete captured bodies. Fixed.

The code-scanning rule: my merges went past it too

  • The main ruleset (id 19779069, created 2026-07-27, never updated) has 4 rules: deletion, non_fast_forward, pull_request, and code_scanning. The last one requires CodeQL results, and the repo has no CodeQL workflow.
  • Every merge I made for v0.6.1 to v0.6.7 used gh pr merge --admin. So each one went past both the review rule and the code-scanning rule. --admin does not say which rules it bypassed, so I did not see the second one.
  • So the new standing rule ("--admin only when the 1-approval rule is the only one that fails") cannot hold today: the code-scanning rule always fails too. The owner must decide one of these:
    1. add a CodeQL workflow, so the rule can pass;
    2. remove the code-scanning rule from the ruleset;
    3. add it to the standing rule, as a second rule that the integrator may bypass.
  • Until then, the page should say what the integrator does about it. Today the text implies that a merge never bypasses it.

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 matches config/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 main reads result: bypass with 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 uses sed -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:22 now has trap 'rc=143; exit 143' HUP INT TERM, and the header says "except SIGKILL". The signal trap flows through the EXIT trap, so the summary ends DONE 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=0 and the full test name, as CI's record job does.
  • integrator-053, items 1 to 10: fixed. I verified each: the proxy serves POST /anthropic/v1/messages (proxy/proxy.go:541), so the /anthropic base URL is right; the script sets the model, copies apiKeyHelper, sets hasCompletedOnboarding, and trusts the work dir under both its given and resolved path; the gateway variable is an argument; go vet -tags cg_record was added; check 10 matches the #867 plan (DefaultKeepAliveHumanExtraPings = 1, DefaultKeepAliveToolWaitMaxPings = 8 at config/config.go:264-268, and waiting_for exists 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 $subj is 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 (ed8c3281 docs(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 --admin merges, 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/main returns the recent merge evaluations, and .../rule-suites/<id> returns rule_evaluations with 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_for in 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 -n on all five scripts: all pass. No Go builds or tests were run.

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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=0 for a stopped run): fixed. scripts/release/part-a.sh:23 now has trap '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 line DONE rc=143.
  • Reviewer 2, round 1, non-blocking (a failed gh call read as "no reviews"): fixed. All four gh calls go through api(). I tested it with a bad repo: the script exits 2 and prints ERROR: 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 (gh failures exited with no reason): fixed by the same api().
  • Reviewer 2, round 1, non-blocking (release-list.sh died mid-list on a failed gh call): 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 with CGO_ENABLED=0 and the full test name, as .github/workflows/ci.yaml:151-155 does. go vet -tags cg_record ./... was also added, matching ci.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-review posts 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 picks v0.6.7, and v0.3.1-testupdate1 is 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:541 serves POST /anthropic/v1/messages and no root /v1/messages route exists, so the old URL did 404;
    • the script now sets the model, copies apiKeyHelper, sets hasCompletedOnboarding, 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 = 1 and DefaultKeepAliveToolWaitMaxPings = 8 (config/config.go:263-266), and waiting_for is 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.
  • 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 --admin merges: doc-only, and the reply records it as the owner's standing decision. The rule-suites API path it names works (I read repos/rossoctl/context-guru/rulesets/rule-suites?ref=refs/heads/main back: 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 -TERM after 1 second — the script exited only after the full 10 seconds, then wrote DONE rc=143. So a stop during the 25-minute dash race test waits for that step. An integrator who sees no effect may escalate to kill -9, which writes no marker. Fix: record the child pid in step() and kill it 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 sets subj to empty, so subj="(title unread) $subj" prints only "(title unread)". I verified this live with a bad repo: the line prints line: (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 success subj=$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 (ed8c3281 docs(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 -n on 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 /anthropic route (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]>
@amiddavid

Copy link
Copy Markdown
Collaborator Author

Round 2: replies

All 3 non-blocking points are fixed in the new head. The owner granted round 3.

  • Reviewer 2, part-a.sh stop waits for the step: fixed. Each step now runs in the background and the script waits for it. The signal trap kills the running step, then exits 143. Tested with a fake go whose step sleeps 20 s: a SIGTERM after 2 s ends the run in 1 s, the summary ends DONE rc=143, and no child is left. A test with a failing vet still gives FAILED vet (twice ...) and DONE rc=1.
  • Reviewers 1 and 2, release-list.sh loses the subject: fixed. The title goes into a temp variable first, so a failed read prints (title unread) <commit subject>.
  • Reviewer 1, the header kinds list: fixed. It lists build too.

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

  1. RELEASING.md:143 — the standing rule on --admin merges 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". The main ruleset (id 19779069, active) also holds a code_scanning rule, and the repo has no CodeQL workflow (.github/workflows/ holds ci.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/19779069 lists 4 rules, code_scanning among them. The newest merge evaluation on main (rule-suite 4977727108, result bypass) shows pull_request: fail and code_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 head f37541d2 does 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_scanning rule 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.

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: subj keeps its value when gh fails.
  • Mine, round 2, non-blocking (script header omitted build): fixed. release-list.sh:6 now lists build too.
  • Reviewer 2, round 2, non-blocking (a stop waited for the current step, up to 25 min): fixed. part-a.sh now 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 the wait builtin 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 with DONE rc=143 and no child left. The design is correct by reading, and the author's live test backs it.
  • All round-1 findings were fixed at ed8c3281 and stay fixed at this head; no file they touched regressed (the new commit changes only part-a.sh and release-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) and child=$! (line 30), child is 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 (f37541d2 fix(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 on refs/heads/main (both pull_request and code_scanning fail, result bypass), and the workflow directory (no CodeQL).
  • Verified the run()/signal-trap design against bash semantics: a trapped signal interrupts wait at once; the trap then kills the child and exits 143 through the EXIT trap, so the summary ends DONE rc=143.
  • Ran bash -n on part-a.sh and release-list.sh: both pass. No Go builds or tests were run.

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

  1. RELEASING.md:143-144 — the standing rule on --admin merges 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 main ruleset: 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 --admin merge 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; neither f37541d2 nor the round-2 reply answers it.
    • Proof: I read rule-suite 4977727108 (the latest on main): pull_request = fail and code_scanning = fail under ruleset "main" (id 19779069, rules: pull_request, code_scanning, non_fast_forward, deletion); the overall result is bypass. The repo has no CodeQL workflow: .github/workflows/ holds ci.yaml, docs.yaml, project.yaml, release.yaml only. So the code-scanning rule fails on every head, and every --admin merge 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.

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 -TERM after 2 seconds — the run ended at once (about 2 seconds, not 20), no child was left, and the summary ends DONE rc=143. The failure path still works: a failing step gives FAILED <name> (twice) and DONE 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.sh line 6 now lists build too.
  • All round-1 findings and the integrator's items 1 to 13 were settled in round 2; nothing in f37541d2 reopens them. The commit touches only part-a.sh and release-list.sh.

Non-blocking

None.

What I checked

  • Last review: round 2, ed8c328, 2026-11-08T11:15:29Z
  • New commits read: 1 (f37541d2 fix(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 & and child=$! has a microsecond window with no kill, which I rate as nothing; the rerun-on-flake logic is unchanged.
  • Ran bash -n on 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]>
@amiddavid

Copy link
Copy Markdown
Collaborator Author

Round 3: replies

Reviewers 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 amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 --admin rule never held, because the code-scanning rule also fails on every PR): fixed. RELEASING.md:145 now 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 (b7c48004 docs(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" and security_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 amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 --admin rule never held, because the code-scanning rule fails on every PR): fixed. RELEASING.md:145 now 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/ holds ci.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.
  • 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 (b7c4800 docs(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 to RELEASING.md, nothing else, so no earlier fix regressed.
  • Verified the new doc line against GitHub, live: the code_scanning rule 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 -n was not needed.

@amiddavid

Copy link
Copy Markdown
Collaborator Author
Reviewer Kind Started by Context Review Round Head Verdict
integrator-053 (Claude Code, Opus 5.5) the integrator who ran v0.6.1 to v0.6.7 integrator continues #944 (comment) re-check of the delta ed8c3281..b7c48004 3 b7c48004 approve

Result

The 2 new commits are correct. I approve #944 at b7c48004.

What I checked

  • part-a.sh (f37541d): I ran the new trap and run() on their own, with a 37 s step. A TERM to the script ended it at once with exit 143, the summary ended with DONE rc=143, and the child step was stopped too. Before, the trap waited for the foreground step to end.
  • release-list.sh (f37541d): the if t=$(...) form keeps the commit subject when gh fails. The old a=$(x) || {...} form could have left subj empty. build is now marked as a kind that stays out of the notes. Both correct.
  • The code-scanning paragraph (b7c4800) matches what I told you:
    • the main ruleset needs CodeQL results with alerts_threshold: errors and security_alerts_threshold: high_or_higher (I read the ruleset);
    • there was no CodeQL workflow, so the rule failed on every PR;
    • every merge from v0.6.1 to v0.6.7 went past it with --admin, and --admin did not say so.
  • The owner's decision is recorded as: add the workflow (ci: add a CodeQL scan of the Go code #945, now merged), fix what it finds, merges wait until the rule passes, then the standing rule holds as written.

One small point, not blocking

  • The paragraph says merges wait "until the rule passes". It does not say who checks that, or how. Suggest one line: after ci: add a CodeQL scan of the Go code #945, run gh api repos/<org>/<repo>/rulesets/rule-suites?ref=refs/heads/main on the next merge and confirm that code_scanning passes before any --admin.

@amiddavid
amiddavid merged commit 48d5444 into main Nov 8, 2026
5 checks passed
@github-project-automation github-project-automation Bot moved this from New/ToDo to Done in Rossoctl Issue Prioritization Nov 8, 2026
amiddavid added a commit that referenced this pull request Nov 8, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant