Skip to content

ci(release): settle directly, gated by the release environment - #379

Merged
Troublor merged 3 commits into
mainfrom
troublor/ci/direct-settle
Sep 9, 2026
Merged

Troublor merged 3 commits into
mainfrom
troublor/ci/direct-settle

Conversation

@Troublor

@Troublor Troublor commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

Switches settlement from settle-by-PR to direct mode with an environment gate (org templates: megaeth-labs/.github#37).

  • release-settle.yml: environment: release on the settle job, settle_mode: direct, settlers: admin. Dispatching is the settlement decision: the environment's required reviewer approves the run before it starts, the action checks the dispatcher's admin permission, and the job then commits the changelog to the release branch and publishes the annotated tag and the GitHub Release itself. on-release.yml runs the publish targets on that Release exactly as before. No settle branch or PR exists any more.
  • release-publish.yml: header notes that only PR-mode settlement reaches it.

The release environment already exists here (reviewer Troublor, self-review allowed, deployments from main only) and is separate from publish, which keeps holding the credentials with its v* tag policy. The app is already a bypass actor on the release-branch and tag rulesets. Workflow-only change; direct mode is exercised first on mega-agents 0.2.0 before a mega-evm release uses it.

🤖 Generated with Claude Code

Copilot AI lite review requested due to automatic review settings September 9, 2026 06:57
@Troublor Troublor added spec:unchanged No change to any `mega-evm`'s behavior comp:misc Changes to the miscellaneous part of this repo api:unchanged No change to the public interface or API agent Generated by AI agents labels Sep 9, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 9, 2026

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-09T07:22:40.809679Z 277c782 New commits
ℹ️ 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.

@mega-maxwell

mega-maxwell Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Claude review status

Living comment — rewritten in place. The review workflow keeps this single comment up to date instead of posting a new one each round, so it always describes the latest reviewed commit and the earlier text is intentionally gone. No reply is needed here; reply to a finding in its own review thread, and answer an open question in a reply on this PR. The next review round reconciles your answer.

✅ Review clean

Last reviewed: 277c7822..4896cec0 · updated 2026-09-09T07:32:00+00:00

New this round: 0 finding(s), 0 question(s) · Resolved this round: 0 · Open questions: 0

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown

🧬 Mutation testing — ✅ PASS

Nothing to test — no mutants were generated on the changed lines.

The settle dispatch is now the settlement decision: the `release`
environment's required reviewers approve the run, the action checks the
dispatcher's admin permission (settlers: admin), and the job commits
the changelog to the release branch and publishes the tag and Release
itself; on-release.yml then runs the publish targets as before. No
settle branch or PR any more; release-publish.yml stays for PR mode
only and its header says so.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown

🧬 Mutation testing

No results at target/mutants/mutants.out — nothing was mutated (e.g. no mutatable changes).

Copilot AI 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.

🔵 Needs a closer look

It changes release/tag publishing control-flow and approval gates in CI, which is high-impact and should receive final human verification of permissions/environment protections.

Pull request overview

Updates the release automation to settle releases directly from release-settle.yml, with the settlement decision gated by the repository’s release environment protections (instead of merging a settle PR).

Changes:

  • Switch release-settle.yml to direct settlement (settle_mode: direct) and require an admin dispatcher (settlers: admin), with a job-level environment: release gate.
  • Update workflow documentation/comments to reflect that settlement now commits the changelog and publishes the tag + GitHub Release as part of the settle job.
  • Clarify in release-publish.yml that it only applies to legacy PR-based settlement mode.
File summaries
File Description
.github/workflows/release-settle.yml Adds environment: release gate and switches the settle action to direct mode with admin-only dispatch.
.github/workflows/release-publish.yml Updates header comments to document that PR-mode is now legacy and direct mode publishes from release-settle.yml.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@mega-maxwell mega-maxwell Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Review needs attention — 1 finding(s)

0 blocking · 1 should-fix · 0 suggestion(s) · 0 open question(s)

Reviewed head f5ec33e7.

Findings without inline anchors:

  • .claude/skills/bump-version-release/SKILL.md:16[Major] bump-version-release skill still documents the settle-by-PR flow A human or agent following this skill to run the next mega-evm release will wait for a settle PR that never opens and expect an on-merge publish workflow that never fires, while the dispatch has already committed to the release branch, pushed the tag, and created the GitHub Release. Follow-on steps (approving the settle PR, watching release-publish for the tag) will be skipped or misordered against a release that has, in fact, already shipped. Suggested fix: Update Step 2 to reflect direct-mode settlement: dispatching release-settle.yml --ref main -f version=X.Y.Z -f commit=<tip> is the release approval, gated by the release environment reviewer plus the settlers: admin check on the dispatcher, and the same job commits the changelog to the release branch, pushes the annotated vX.Y.Z tag, and publishes the GitHub Release with those notes. Drop Step 3 (or fold it into Step 2) since release-publish.yml no longer fires.

…angelog preamble

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 277c782215

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread CHANGELOG.md
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@Troublor
Troublor merged commit 6b0792c into main Sep 9, 2026
33 checks passed
@Troublor
Troublor deleted the troublor/ci/direct-settle branch September 9, 2026 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent Generated by AI agents api:unchanged No change to the public interface or API comp:misc Changes to the miscellaneous part of this repo spec:unchanged No change to any `mega-evm`'s behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants