Skip to content

cli-releases: v3.7.1 artifacts - #919

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

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

Conversation

@caffeine-ci-bot

Copy link
Copy Markdown
Contributor

Release artifacts generated by CI for CLI v3.7.1.

@caffeine-ci-bot
caffeine-ci-bot Bot requested review from a team and automation-sa-sre as code owners November 17, 2026 12:48
@caffeine-ci-bot
caffeine-ci-bot Bot enabled auto-merge (squash) November 17, 2026 12:48
@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 ✅ CI-generated cli-releases artifacts for CLI v3.7.1: appends the version to releases.json, points tags/latest at 3.7.1, and copies the tarball to 3.7.1.tgz / 3.tgz / latest.tgz.
Code Quality ✅ No new code; output matches cli/release-cli.ts (tags[tag], versions[version], copies to ${version}.tgz / ${tag}.tgz / ${major}.tgz).
Consistency ✅ 3.7.1 entry uses the same fields as 3.7.0 (relseaseNotes, commitHash, url, hash); notes match cli/CHANGELOG.md ## 3.7.1; tags.latest matches cli-releases/tags/latest.
Security ⚠️ Traced cli/commands/self.ts (/tags/latest then /versions/<ver>.tgz) and cli-releases/install.sh (versions/${MOPS_VERSION:-latest}.tgz). Patch indexes show 3.7.1.tgz, 3.tgz, and latest.tgz share blob 13d20f19; size 2255883 matches diff-stat. Could not independently SHA256 the tarball against hash ceb5560e… (no shell).
Tests ✅ Data-only artifacts; no CLI source or cli/tests/__snapshots__ hunks. Generation is cli/release-cli.ts; notes come from findChangelogEntry in cli/helpers/find-changelog-entry.ts.
Maintainability ✅ One appended version object; 3.7.0 and earlier entries unchanged except the JSON comma after 3.7.0.

Verdict

Decision: APPROVE
Risk: Low
Reason: Routine post-release artifact commit from release-cli.ts; metadata, changelog notes, alias blobs, and sizes line up with the generator and with v3.7.0. No code, auth, or pipeline changes.


Generated for commit 83beba9

@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 83beba9 is APPROVE. See the "Cursor AI review" comment for details.

@caffeine-ci-bot
caffeine-ci-bot Bot merged commit e25d6d7 into main Nov 17, 2026
28 of 33 checks passed
@caffeine-ci-bot
caffeine-ci-bot Bot deleted the ci/release-3.7.1-artifacts branch November 17, 2026 13:37
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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant