Skip to content

release: CLI v3.7.1 - #918

Merged
caffeine-ci-bot[bot] merged 1 commit into
mainfrom
ci/release-3.7.1
Nov 17, 2026
Merged

caffeine-ci-bot[bot] merged 1 commit into
mainfrom
ci/release-3.7.1

Conversation

@caffeine-ci-bot

Copy link
Copy Markdown
Contributor

Release CLI v3.7.1.

Prepared by the Prepare CLI release workflow.

Approve this PR when CI is green — auto-merge is enabled.

@caffeine-ci-bot caffeine-ci-bot Bot added the release Mark as "Release PR", triggers release upon merge label Nov 17, 2026
@caffeine-ci-bot
caffeine-ci-bot Bot requested a review from a team as a code owner November 17, 2026 10:59
@caffeine-ci-bot
caffeine-ci-bot Bot enabled auto-merge (squash) November 17, 2026 10:59
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Cursor AI review

👍 APPROVE — looks safe to merge

Category Assessment Details
Summary ✅ Mechanical CLI patch release: bumps ic-mops from 3.7.0 to 3.7.1 and rolls the existing ## Next notes under ## 3.7.1. Diff matches the three files prepare-cli-release.yml commits (cli/package.json, cli/package-lock.json, cli/CHANGELOG.md).
Code Quality ✅ No new helpers or speculative code. The changelog rewrite matches prepare-cli-release.yml (keep ## Next, insert version heading, leave notes verbatim) and cli/RELEASE.md.
Consistency ✅ Title release: CLI v3.7.1, patch bump from 3.7.0, and lockfile version fields stay in lockstep with package.json, as release-pr.yml validates. cli-releases/releases.json still lists 3.7.0 as latest; that file is written later by release.yml / cli/release-cli.ts, not this PR.
Security ✅ Traced the lockfile hunk: only the two root "version" strings changed (lines 3 and 9); no dependency, integrity, identity, or auth paths. High-risk areas in AGENTS.md (backend/main/**, install/resolve, release.yml) are untouched.
Tests ✅ No CLI behavior change in this diff. cli/tests/cli.test.ts asserts --version with /CLI \d+\.\d+\.\d+/, so it still matches 3.7.1. findChangelogEntry in cli/helpers/find-changelog-entry.ts will pick the non-empty ## 3.7.1 section; release-pr.yml and release.yml use the same heading parse.
Maintainability ✅ Empty ## Next plus a filled ## 3.7.1 is the documented release shape. Notes are patch-scoped (reproducible cli.tgz, glob/minimatch advisories, unused jsdom removal, lockfile-aligned bundle) and already lived under ## Next at the Base SHA.

Verdict

Decision: APPROVE
Risk: Low
Reason: This is the designed three-file patch-release PR; it does not change CLI, registry, or workflow code. Merging it will tag cli-v3.7.1 and publish already-merged notes as 3.7.1, which is the intended path.


Generated for commit a3af8c1

@automation-sa-sre automation-sa-sre left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Automated approval: the AI review verdict for a3af8c1 is APPROVE. See the "Cursor AI review" comment for details.

@caffeine-ci-bot
caffeine-ci-bot Bot merged commit 81c9e47 into main Nov 17, 2026
25 of 27 checks passed
@caffeine-ci-bot
caffeine-ci-bot Bot deleted the ci/release-3.7.1 branch November 17, 2026 12:35
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release Mark as "Release PR", triggers release upon merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant