Skip to content

fix(ci): alert when one reviewer leg keeps failing behind the fallback (#1194) - #1197

Merged
frankbria merged 4 commits into
mainfrom
fix/1194-reviewer-leg-alert
Nov 9, 2026
Merged

frankbria merged 4 commits into
mainfrom
fix/1194-reviewer-leg-alert

Conversation

@frankbria

Copy link
Copy Markdown
Owner

Closes #1194.

Cause (acceptance 1)

The Codex leg dies in openai/codex-action's drop-sudo safety step:

Error: Could not restrict access to /run/dbus/system_bus_socket.
Error: /usr/bin/sudo exited with code 1

ubuntu-latest is now 26.04, and that is upstream bug openai/codex-action#188 (open). The fix is in the callee: frankbria/glm-review#18 pins its Codex job to ubuntu-24.04 with a shortcut: note to unpin. It needs the owner's merge. After that, bump the pinned SHA in .github/workflows/glm-review.yml.

The log is only reachable through gh api repos/{owner}/{repo}/actions/jobs/<id>/logs. gh run view --log returns nothing for a called workflow, which is why the issue said the cause was not visible.

Detection (acceptance 2)

scripts/ci/review_bots_health.sh gains check_legs. It reads the callee's "Reviewer failover" comments from the last 14 days, newest first, and opens [P2] [infra] A reviewer keeps failing over: <name> for any reviewer whose last three comments say it failed for a reason other than quota. It closes that issue once the reviewer stops failing. A window with fewer than three comments closes nothing, because silence is not recovery.

  • Self-check: five cases (failing streak, recovered, too short, quota only, two reviewers, empty). Mutation: raising the threshold to 4 fails the first case.
  • Live dry run against this repo: glm-review.yml: Codex failed over on the last three pull requests → would open the alert. That's correct until glm-review#18 merges; the alert then closes itself.
  • shellcheck clean; test_review_bots_health_wiring.py passes; root CLAUDE.md "Review bots" notes the new alert.

Review

Review chain: REQUEST_CHANGES.

  • C1 "stray CASES makes the self-check always fail": refuted. The self-check runs and prints ok, and the file has exactly four terminators for four heredocs.
  • M2 "backticks are command substitutions": refuted. They are escaped, and the dry run prints them literally.
  • M3 "a quiet window closes live alerts": fixed (≥3 comments required before closing).
  • m4 (negated jq -e): fixed.
  • m7 (multi-reviewer case): added.
  • m6 (template-coupled regex), m9 (GNU date): accepted as is. The script runs on the hosted runner, and the self-check fails loudly if the callee's wording changes.

🤖 Generated with Claude Code

frankbria and others added 2 commits November 8, 2026 22:20
#1194)

Codex failed on every pull request while Kimi covered it, so each run
was green and reviewed and the health check stayed quiet. It now reads
the callee's failover comments and opens an alert for a reviewer that
failed for a non-quota reason on the last three, closing it on recovery.

The cause: openai/codex-action's drop-sudo step fails on ubuntu-latest
26.04 (openai/codex-action#188); frankbria/glm-review#18 pins the
Codex job to ubuntu-24.04.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Review follow-up: with fewer than three failover comments in the window
the check cannot tell recovery from silence, so it closes nothing; the
recovery test no longer negates jq's exit; a two-reviewer case joins the
self-check.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@frankbria

Copy link
Copy Markdown
Owner Author

Third-party review (review chain) — first commit 0020b59

Review: review_bots_health.sh failover-leg alerting

CRITICAL

C1. Stray bare CASES line makes self_check fail unconditionally.
The hunk inserts +CASES as its first added line, immediately after the existing self-check heredoc body. The old heredoc already has its own CASES terminator (the old script worked), so the new file ends up with two consecutive CASES lines: the first terminates the old heredoc, the second is a bare command. When self_check runs, bash executes CASES → command not found (exit 127) → set -e aborts before [ "$failed" -eq 0 ]. The self-check — and therefore the health workflow job — always fails. The new while … done <<'CASES' block must come after the old heredoc's terminator, i.e. delete the duplicated CASES (keep exactly one between the old cases and the comment line). This also currently masks any signal from the new test cases.

MAJOR

M2. Backticks in the gh issue create --body string are live command substitutions.
The body is built inside double quotes:

--body "$(printf '%s\n\n%s\n' \
  "…comments from \`$FAILOVER_WORKFLOW\` each say…" \
  "…(\`gh api repos/{owner}/{repo}/actions/jobs/<id>/logs\`; \`gh run view --log\` returns nothing…")"

Inside $(printf … "…" "…"), the inner strings are double-quoted, so bash executes:

  • `$FAILOVER_WORKFLOW` — runs a command named after the workflow file → "command not found", name silently dropped from the body;
  • `gh api repos/{owner}/{repo}/actions/jobs/<id>/logs` — brace expansion mangles the path, and <id>/ > /logs are parsed as redirects (reads nonexistent file id; tries to create /logs — which succeeds if ever run as root);
  • `gh run view --log` — an actual network call on every issue creation.

The issue still gets created (the failed substitutions yield empty strings, printf succeeds, inherit_errexit doesn't fire since they aren't the last command of the substitution), but with a mangled body and unintended side effects. Use ``` escapes, or single-quote the printf args / build the body from a quoted heredoc.

M3. Silent-empty data closes live alerts — the "failed lookup must not close" guarantee only holds for mechanical failures.
Mechanical failures are handled correctly: a failing gh api|jq -s assignment or failing_legs aborts under set -e before the loop; a failing gh issue list in the for … in $(…) word list yields zero iterations, so no closes happen. But if the lookup "succeeds" with zero failover comments in the window — quiet repo, or the callee rewords the ### Reviewer failover heading (the filter is startswith("### Reviewer failover"), exactly coupled) — then legs=[] and the close loop closes every open alert, including live ones. Guard the close loop on a minimumdata sanity check (e.g. only close when the window contains ≥3 failover comments), or make the header match tolerant.

MINOR

m4. if ! printf '%s' "$legs" | jq -e 'index($n) != null' conflates "recovered" with "couldn't evaluate." Any jq error (not a clean false) is negated into the close branch. Today legs is always valid JSON so it's latent, but write it as index($n) == null and skip the issue when jq itself fails, rather than negating.

m5. Close-loop parsing is fragile against the script's own documented hazard. for existing in $(gh issue list …) word-splits, and split(": ") | last assumes the retitled title keeps exactly one ": " before the reviewer name. Fine for Codex/Kimi/Z.ai and a PX.Y prefix, but a name with a space or an operator retitle with another colon misidentifies the name — the loop then either crashes mid-close or matches nothing. Prefer a label on the issue or store the reviewer in a machine-readable slot.

m6. The scan regex is over-fitted to the exact template. (?m)^- ([^:\n]+): \S* ?failed[^\n]*for a reason other than quota requires the reason on the same line and failed right after one optional token — a **failed** bold, an "errored" wording, or a wrapped line silently stops matching, which compounds M3 (detection off → alerts auto-closed). Match - <name>: plus the quota phrase more tolerantly (e.g. two test() calls per line) and consider matching the known templates explicitly.

m7. Self-check coverage gaps (once C1 is fixed): no case with multiple failed reviewers in one comment, no interleaved case where the newest comment omits a previously-failing reviewer, no case for the empty-window guard in M3, and nothing exercises the close loop's title parsing. The ⚠️ (U+26A0 U+FE0F) case does depend on Oniguruma UTF-8 handling, which the self-check would catch — if it could run (C1).

m8. Verify FAILOVER_WORKFLOW is defined. The diff references it but doesn't define it; with set -u an undefined variable aborts check_legs every run. Presumably defined near the top of the file, but worth confirming since it's outside this diff.

m9. date -u -d '14 days ago' is GNU-only. Fine on ubuntu-latest runners, breaks on macOS/BSD if anyone runs it locally. Existing script style may already rely on this — one line either way.

What checks out

  • Newest-first ordering is correct: GitHub returns issues/comments oldest→newest per page; jq -s -c '[…] | sort_by(.created_at) | reverse fixes cross-page ordering, and lead() counting from index 0 then correctly measures the streak from the newest comment (validated by the second self-check case).
  • Quoting/escapes are legal: jq programs are single-quoted in bash; \" inside the jq program is a valid jq escape, \\S correctly yields regex \S, and \n yields the newline class. The double-quoted --jq '… split(": ") …' program escapes its inner quotes correctly.
  • Streak logic itself is sound: alerting only names present in the latest comment with lead >= 3 correctly handles recovery (case 2), short windows (case 3), and quota-only failures (case 4).
  • Failed lookups don't close mechanically (see M3 for the silent-empty hole), and the open loop's existing=$(gh issue list …) aborts under set -e on failure rather than creating a duplicate — the right direction.

Verdict

REQUEST_CHANGES

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-09T05:29:28.599942Z
We couldn’t complete this review. Comment @codex review to try again.
903a54d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

Review

Small, well-scoped change: a new failing_legs jq filter plus check_legs in scripts/ci/review_bots_health.sh, and a doc line in CLAUDE.md. The self-check table covers the filter well. The issues below are in the surrounding logic.

Bugs / logic

  • The alert may never auto-close. check_legs closes an issue only when the leg is missing from the latest three failover comments. If the failing reviewer starts working again, the failover comment is probably no longer posted for that run, because the first reviewer succeeded and no failover happened. The three newest comments then still show the old failure, so the issue stays open. Once the 14-day since window empties, the -ge 3 guard returns early and nothing is closed either. Please check whether the callee posts a comment on a clean run. If it doesn't, key recovery on something else, such as the leg's run conclusions or the age of its last failure.
  • "Three pull requests in a row" is really three comments. The callee posts per commit, so three pushes to one PR can trip the alert. The issue body and the recovery comment both say "pull requests". Either dedupe by issue_url, which the other filter already uses, or reword the text to say "runs".
  • Comments are not scoped to FAILOVER_WORKFLOW. The filter matches any github-actions[bot] comment that starts with ### Reviewer failover. The issue body attributes them to that workflow, so the attribution is unverified if another workflow posts the same header.

Robustness

  • The failed regex depends on the exact wording failed ... for a reason other than quota, and on \S* matching the emoji. If the callee's wording changes, failing_legs returns [] and the alert silently never fires. The self-check only uses hand-written strings. Add a test that ties these fixtures to the callee's real comment template, as test_review_bots_health_wiring.py already does for other wiring.
  • for existing in $(gh issue list ...) and for name in $(...) split on whitespace. Names or titles with spaces would break them. Today's names (Codex/Kimi/Z.ai) are fine, so this is minor, but while read would be safer.
  • The new check_legs has no test. Self-check covers only failing_legs. The close/create/dedupe paths and the <3 comments guard are untested, even with --dry-run. Per the CRAP gate, a function with this many branches will probably need coverage.

Style

  • The CLAUDE.md addition is accurate and follows the existing convention of naming the rule and its issue number.
  • The comment on check_legs and the in-code rationale are clear.

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

⚠️ Third Party Review did not complete

This run did not finish, so there is no verdict for this commit.
That is not the same as a clean bill of health — a review that ran
and found nothing says so explicitly ("✅ Third Party Review: no defects
found.").

Reason: the run was cancelled before the agent finished — usually a newer push superseding it, since this workflow cancels in-progress runs for the same pull request. Nothing is wrong with the review itself: the newest commit is reviewed by its own run, which posts its verdict as a separate comment. This notice is not replaced by that run and can be disregarded once it appears.

Model: glm-5.2

View job run — the agent transcript is attached there as a
glm-review-transcript-* artifact when the agent got far enough to
write one.

What this comment held when the run stopped

Third-party bug-hunt review (glm-5.2)

  • Pull PR context and full diff (origin/main...HEAD)
  • Read scripts/ci/review_bots_health.sh in full plus its wiring (workflow + wiring test)
  • Cross-check prior reviews on both commits — skip anything already reported
  • Verify each candidate defect against the real code (concrete failure scenario or drop it)
  • Post inline findings (max 10, severity first)
  • Post the single summary comment

View job run

…ain (#1194)

Bot review: the callee posts a failover comment only when something went
wrong, so a recovered Codex leaves no new failover line and the alert
could never close. leg_health reads each reviewer's own '### Third Party
Review' comments too: three failures in a row with no review between
them is failing; a review as its newest comment is recovery, which is
the only thing that closes an alert.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@frankbria

Copy link
Copy Markdown
Owner Author

Bot triage: the advisory's "the alert may never auto-close" is right. The callee posts its failover comment only when something needs investigating or nothing reviewed, so a recovered Codex leaves no new failover line. Fixed in 4590afc: leg_health also reads each reviewer's own ### Third Party Review — <name> comment. Three failures in a row with no review between them is failing; a review as its newest comment is recovery, and only recovery closes an alert, so the quiet-window guard is gone. Both outputs are mutation-checked in the self-check, and the live dry run still flags Codex.

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

Review

Well-scoped change. leg_health is a pure jq function with a self-check table, and the 3-comment minimum before closing avoids closing alerts on a quiet window. Nothing blocking.

Bugs / edge cases

  • "Three pull requests" is really three comments. leg_health counts failover comments, not distinct PRs. If the callee posts a comment per push, one PR with three pushes trips the alert. Group by issue_url, or reword the alert and echo to "last three failover comments".
  • Fragile coupling to the callee's wording. The failed regex depends on the exact text for a reason other than quota and on the Third Party Review — <name> header. The self-check only guards its own copy of that text, so if the callee rewords it, detection silently stops while the table still passes. Name the callee file and SHA that defines the format, or use a fixture captured from a real comment.
  • Reviewer names with spaces would break the for x in $(...) loops (the regex captures \S+). Fine today; a while read -r loop would be safer.
  • A reviewer that reviews once and then fails again flips the alert open and closed. Acceptable, but worth a one-line note.

Robustness

  • The close loop takes the last : -separated segment of the title as the reviewer name. An operator retitle that adds a : suffix yields the wrong name, and the issue never auto-closes.
  • If gh api --paginate fails, the pipeline status comes from leg_health, so an API error looks like "no data". Confirm this is intended under the script's set flags.
  • date -u -d is GNU-only; accepted for the hosted runner.

Tests

  • leg_health coverage is good. Missing cases: an interleaved sequence (failure, review, failure) and a mixed streak (two failures, then a quota-only comment).
  • check_legs (issue dedupe, close-on-recover) is only covered by a manual dry run. Consider a stubbed-gh test in test_review_bots_health_wiring.py.

Docs

  • The CLAUDE.md addition is accurate. It could name the --self-check as the guard for the new alert.

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Claude finished @frankbria's task in 14m 23s —— View job


Third Party Review — glm-5.2

  • Pull PR context and full diff (origin/main...HEAD)
  • Read scripts/ci/review_bots_health.sh in full plus its wiring (workflow + wiring test)
  • Cross-check prior reviews on all three commits — skip anything already reported
  • Verify each candidate defect against the real code (concrete failure scenario or drop it)
  • Post inline findings (max 10, severity first)
  • Post the single summary comment

Reviewed commit 4590afc against the checked-out script, the pinned chain contract in .github/workflows/glm-review.yml, and the live comment shapes on #1196 (- Codex: ⚠️ failed (failure) for a reason other than quota — investigate the [job run](…), ### Third Party Review — Kimi, both from the Actions bot). Checked and cleared: leg_health run on those exact real bodies yields {"failing":["Codex"],"recovered":["Kimi"]} (emoji, em-dash, URL and [^:\n] name capture all match the live format); the github-actions[bot] filter reads the same REST field as the pre-existing live failover_comments filter; the cancelled-run ### ⚠️ Third Party Review did not complete comment correctly matches neither header; a quota line and - glm-5.2: not run … create no event; the recovered/failing sets are mutually exclusive; and an API failure aborts under set -euo pipefail before any close. One defect survives that no earlier round reported:

severity file:line finding
major scripts/ci/review_bots_health.sh:119 A fallback reviewer's alert can never auto-close: recovery needs the leg's own review comment, but Kimi/glm-5.2 only run when the leg ahead of them fails, so once Codex is healthy their alerts stay open forever (even after their events age out of the window)

Everything else already posted in the earlier rounds (three comments vs three PRs, template coupling, name word-splitting, title parsing, GNU date) stands as reported; nothing new beyond the row above.

Model: glm-5.2

| def about($n): $events | map(select((.failed | index($n)) != null or (.reviewed | index($n)) != null));
([$events[].failed[], $events[].reviewed[]] | unique) as $names
| {failing: [$names[] | select(. as $n | about($n) | lead($n) >= 3)],
recovered: [$names[] | select(. as $n | (about($n)[0].reviewed // []) | index($n) != null)]}'

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[major] A fallback reviewer's alert can never auto-close: recovered requires the leg's own ### Third Party Review — <name> comment as its newest event, but per the pinned chain (.github/workflows/glm-review.yml: "reviews with Codex, then Kimi, then Z.ai GLM, each only if the one before failed") Kimi and glm-5.2 only run — and only post — while the leg ahead of them is failing.

Failure scenario: Codex stays broken (today's state) and Kimi fails non-quota on three consecutive runs while glm-5.2 covers → [P2] [infra] A reviewer keeps failing over: Kimi opens. glm-review#18 merges and Codex reviews every PR from then on → Kimi never runs again, so it never posts a review; .recovered never contains Kimi and the issue is never closed — and once Kimi's events also age out of the 14-day window the name vanishes from $names entirely, which is still no close. Same for a glm-5.2 alert once Codex or Kimi is healthy. The issue body's "it closes this issue when $name posts a review again" is an action the chain structurally never takes for a healthy leg 2 or 3; only the first leg's alert (Codex, the one #1194 is about) self-closes. Consider also closing an alert older than the window whose reviewer has no events left in it, or keying recovery on the leg's own run conclusions (the callee's job logs name the leg that ran).

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

Reviewer failover

  • Codex: ⚠️ failed (failure) for a reason other than quota — investigate the job run
  • Kimi: quota exhausted, failed over
  • glm-5.2: reviewed

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

Review: per-reviewer failover alert (#1194)

The design is sound. It closes a real gap, where a green run hides a dead first-leg reviewer. The self-check table covers the main shapes: failing, recovered, quota-only, both failing, and empty. The comments below are non-blocking.

Bugs / edge cases

  • Stale issue when the repo goes quiet. check_legs only looks at comments from the last 14 days. If no failover or review comments exist in that window, recovered is empty. An open A reviewer keeps failing over: <name> issue then never closes, even if the reviewer was fixed. Consider widening the window or counting by number of comments instead of by date.
  • since filters on updated_at, not created_at. An old comment that was edited can enter the window. If the callee edits a sticky comment in place, the created_at ordering that lead relies on can misrepresent the sequence. Please confirm the callee posts a new comment each time.
  • Comments aren't scoped to the callee. The filter matches any github-actions[bot] comment starting with those headers. That is fine today, but a different workflow using the same headings would feed the counter.

Robustness

  • The regex is tightly coupled to the callee's wording (failed ... for a reason other than quota, ### Third Party Review — <name>). If the callee's text drifts, failing stays empty and the alert goes quiet, which is the same silent failure this PR exists to catch. Pin the callee's message strings in test_review_bots_health_wiring.py. The self-check uses hand-written bodies, so it can't catch drift.
  • The issue-close loop uses unquoted for existing in $(...). It works because names are \S+, but while read would be safer.
  • gh api --paginate | jq -s | leg_health fails silently on a transient API error. Empty input yields no failing and no recovered, so it is safe, but it won't alert.

Tests

  • The self-check lacks a case where a reviewer has two failures, then a review, then one failure. That would pin the "three in a row" reset.
  • The dedup and close paths in check_legs are not exercised by any test. A --dry-run fixture or stubbed gh would cover them.

Docs
The CLAUDE.md addition follows the convention of stating the rule, the alert title and the PR number.

Security
No concerns: the issue body is built from regex-captured names (\S+) and passed as an argument, not through eval.

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Claude finished @frankbria's task in 13m 44s —— View job


Third Party Review — glm-5.2

  • Pull PR context and full diff (origin/main...HEAD)
  • Read scripts/ci/review_bots_health.sh in full plus its wiring (workflow + wiring test)
  • Cross-check prior reviews on all commits — skip anything already reported
  • Verify each candidate defect against the real code (concrete failure scenario or drop it)
  • Post inline findings (max 10, severity first)
  • Post the single summary comment

Reviewed merge commit e19ef9d (the script is unchanged since 4590afc; the merge only brings #1198 from main). Checked against the checked-out script and the live comment shapes on #1182, #1196 and this PR: the Codex leg posts a clean ### Third Party Review — Codex header on success and Kimi a clean ### Third Party Review — Kimi (so the #1194 lifecycle — Codex alert opens, closes once glm-review#18 merges — works end to end); the failover template, the ⚠️ failed (failure) for a reason other than quota wording and the github-actions[bot] REST login all match what the script parses; leg_health re-run on live-shaped bodies gives correct failing/recovered on interleaved failure→review sequences, quota-only lines, multi-failure comments and the empty window; an API failure still aborts under set -euo pipefail before any close. One defect survives that no earlier round reported:

severity file:line finding
major scripts/ci/review_bots_health.sh:235 The glm leg's completed reviews are prepended with claude-code-action's **Claude finished …** banner before ### Third Party Review — glm-5.2, so the startswith filter drops them: the last reviewer can be classified failing while it reviews every PR, and its alert can never close — the fix is the line-anchored match leg_health's own reviewed scan already uses

Everything already posted in the earlier rounds (three comments vs three pull requests, template coupling, comment scoping to the callee, name word-splitting in the loops, close-loop title parsing, since filtering on updated_at, quiet-window and aging-out staleness, GNU date, untested check_legs paths) stands as reported; nothing new beyond the row above.

Model: glm-5.2

@frankbria
frankbria merged commit 4d13b6d into main Nov 9, 2026
17 checks passed
@frankbria
frankbria deleted the fix/1194-reviewer-leg-alert branch November 9, 2026 06:41
local since health name search existing
since=$(date -u -d '14 days ago' +%FT%TZ)
health=$(gh api --paginate "repos/{owner}/{repo}/issues/comments?since=$since&per_page=100" --jq '.[]' \
| jq -s -c '[.[] | select(.user.login == "github-actions[bot]" and (.body | startswith("### Reviewer failover") or startswith("### Third Party Review — ")))] | sort_by(.created_at) | reverse | map(.body)' \

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[major] check_legs's startswith("### Third Party Review — ") can never match the glm leg's completed reviews, so the last reviewer's reviews are invisible to leg_health — its alert can open (and re-verify as failing) while it is reviewing every PR, and can never close.

Failure scenario: the glm leg runs through claude-code-action, which prepends a completion banner to the comment it updates — the only live glm completion (this PR, 05:42:43Z) begins **Claude finished @frankbria's task in 14m 23s** —— [View job](…), with ### Third Party Review — glm-5.2 only after a ---. The Codex (#1182, 22:02:58Z) and Kimi (#1196, 04:38:08Z) legs post clean headers, so only the last leg — the one covering every PR in exactly the state #1194 alerts on (Codex broken → glm reviews) — loses its recovery signal. Running this PR's own leg_health on live-shaped bodies: three - glm-5.2: ⚠️ failed (failure) for a reason other than quota comments followed by three banner-prefixed glm reviews yields {"failing":["glm-5.2"],"recovered":[]} — the alert opens and stays failing on every health run, and the issue body's "it closes this issue when $name posts a review again" is structurally unreachable. (Distinct from the already-reported chain-structure gap: there the reviewer never runs again; here the review comment exists and is filtered away. The failover comment's own - glm-5.2: reviewed line — live at 05:57:21Z — is the only other recovery evidence and leg_health deliberately ignores it.)

leg_health's own reviewed scan is already line-anchored ((?m)^### Third Party Review — (\S+)), so matching the header at any line start in this select is enough — verified: the same bodies then yield {"failing":[],"recovered":["glm-5.2"]}:

Suggested change
| jq -s -c '[.[] | select(.user.login == "github-actions[bot]" and (.body | startswith("### Reviewer failover") or startswith("### Third Party Review — ")))] | sort_by(.created_at) | reverse | map(.body)' \
| jq -s -c '[.[] | select(.user.login == "github-actions[bot]" and (.body | startswith("### Reviewer failover") or test("(?m)^### Third Party Review — ")))] | sort_by(.created_at) | reverse | map(.body)' \

Residual risk unchanged in kind: a bot comment quoting another reviewer's header at a line start would count as that reviewer's review event — that aliasing already exists for any body passing this select. Worth adding a banner-prefixed body (**Claude finished …** … ---\n### Third Party Review — glm-5.2) to the self-check table so the shape stays pinned.

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

Reviewer failover

  • Codex: ⚠️ failed (failure) for a reason other than quota — investigate the job run
  • Kimi: quota exhausted, failed over
  • glm-5.2: reviewed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[P3.68] [infra] Third Party Review's Codex leg fails for a non-quota reason on every PR; Kimi covers it

1 participant