Repository navigation
cli-releases: v3.7.1 artifacts - #919
Merged
Merged
Conversation
caffeine-ci-bot
Bot
requested review from
a team and
automation-sa-sre
as code owners
November 17, 2026 12:48
Contributor
Cursor AI review👍 APPROVE — looks safe to merge
VerdictDecision: APPROVE Generated for commit 83beba9 |
automation-sa-sre
approved these changes
Nov 17, 2026
automation-sa-sre
left a comment
There was a problem hiding this comment.
Automated approval: the AI review verdict for 83beba9 is APPROVE. See the "Cursor AI review" comment for details.
Kamirus
added a commit
that referenced
this pull request
Nov 17, 2026
The AI review's approval step authenticated with the `automation-sa-sre` PAT. That token's 5,000 requests per hour are shared across the org, and the budget ran out three times while releasing v3.7.1: twice on [#918](#918) and once on [#919](#919). Each time the model had already said APPROVE, but the job failed with `API rate limit exceeded` before submitting the review, so the PR stayed blocked until someone reran the job after the reset. ## Approve as the reviewer App Infra added the `caffeine-ci-ai-reviewer` App for exactly this, and gave mops its key in [caffeinelabs/infra#4419](caffeinelabs/infra#4419). calm, mops-packages, and admin-tool already approve with it through the shared devtools workflow, which mops can't call because it's public. The approval step now mints an installation token for the App (`actions/create-github-app-token` v3.3.0, SHA-pinned) with `pull-requests: write` and `contents: write`. An approval counts toward the ruleset only from an identity with write access. The ruleset requires one approval from anyone with write access, not a code owner, so the App's approval satisfies it. - The token is minted after the agent step, so it never exists while the agent runs. - Installation tokens can't call `GET /user`, so the bot login comes from the action's `app-slug` output. - Dismissal matches approvals that carry the approval marker and come from either the App or `automation-sa-sre`, so approvals the PAT left before this change are still dismissed on a later non-APPROVE verdict. - When the App's client ID or key is missing, the review stays comment-only, as before. A failed token mint is a warning on an APPROVE verdict, like any other approval failure, and fails the job otherwise, because a stale approval might be left standing. The review comment keeps using the default `GITHUB_TOKEN`. It has its own budget and never failed. ## Model name Cursor no longer accepts the bare `grok-4.6` model name. It now lists only per-effort names such as `cursor-grok-4.6-high-fast`. The first review on this PR failed with `Cannot use this model: grok-4.6`, so every mops PR would get `REVIEW_ERROR` and no approval from now on. The review now pins `cursor-grok-4.6-high-fast`, the name mops-packages already uses. ## Other fixes - The verdict parser now accepts `**Decision:** APPROVE`, `Verdict: APPROVE`, and trailing text such as `APPROVE.`. Before, all three fell through to `REVIEW_ERROR`. A Decision line that names more than one verdict, such as the template echoed back, still gives `REVIEW_ERROR`. - The comment step updates only comments written by `github-actions[bot]`. Before, it updated the last comment containing the marker, and anyone can post that marker on a public repo. - The prompt asked for an enhanced-migration entry under `migrations/` for backend state changes. mops has no such directory: the main canister uses `stable` variables with `preupgrade`/`postupgrade`, and the storage canister is a `persistent actor`. The rule now describes the upgrade failure mode for both. - The prompt picks up two false-positive guards and a narrower missing-tests rule from the devtools default prompt. Its release-pipeline S# category no longer calls itself "Frontend". ## What is unchanged - The `pull_request` trigger, the job-level fork filter, `persist-credentials: false`, the agent's deny rules, and the green-on-error policy. - I didn't port devtools' owner-approval check. Every mops collaborator with write access is an admin or maintainer, and fork PRs never get the AI approval. ## Verifying it mops reads this workflow from the PR head, so this PR's own review runs the new code. An approval from `caffeine-ci-ai-reviewer[bot]` on this PR shows the App is installed on mops and its approval counts. The first run on this PR already minted the App token as `caffeine-ci-ai-reviewer[bot]`. ## Follow-up worth flagging After this merges, nothing in mops reads the `SA_RW_GITHUB_TOKEN` secret. Removing it from `cloud-infra/github/repo/mops.ts` is a separate infra PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release artifacts generated by CI for CLI v3.7.1.