Skip to content

fix(release): unblock release-admin self-merge - #1232

Merged
vincentkoc merged 4 commits into
mainfrom
fix/release-signer-policy
Aug 6, 2026
Merged

vincentkoc merged 4 commits into
mainfrom
fix/release-signer-policy

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 4, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where an approved Crabbox release administrator could sign
release commits but could not merge their own release pull request without a
second maintainer. The prior required release check was also defined inside
Crabbox, so the same pull request could change the workflow that supplied its
merge gate.

Why This Change Was Made

Add the existing release-admin SSH public key to the repository signer policy
and grant openclaw-secops a pull-request-only approval bypass. Keep branch
history and stable tags under separate no-bypass rules.

Move the required macOS release snapshot check to the protected
openclaw/release-workflows trust root. The organization ruleset binds Crabbox
to that external workflow, so a Crabbox pull request cannot redefine the check
that gates its own merge. The duplicate in-repository macOS job is removed.

No private key, token, 1Password reference, codesign material, or notary
credential is added or changed.

User Impact

Approved release administrators can merge their own Crabbox release pull
requests after the independent release snapshot workflow passes. They do not
gain direct-push, force-push, tag-update, or tag-deletion authority.

Evidence

  • external trust-root PR merged:
    feat(rulesets): add Crabbox release check release-workflows#19
  • signed release-workflows merge commit:
    4abeffbc697a24f97ee53a935cea98ed1d4016b4
  • signed Crabbox head:
    01d5fdd09f63cc2eecca741c5b894bd39dc0194f
  • GOTOOLCHAIN=go1.26.5 node --test scripts/release-workflow.test.js:
    26/26 passed
  • node --test scripts/publish-release.test.js: 37/37 passed
  • node --check and git diff --check: passed
  • fresh autoreview: no accepted or actionable findings, correctness confidence
    0.90

v0.41.0 remains untagged and unpublished until the live organization ruleset
is active and Apple signing is available.

@vincentkoc
vincentkoc marked this pull request as ready for review August 4, 2026 00:55
@vincentkoc
vincentkoc requested a review from a team as a code owner August 4, 2026 00:55
@vincentkoc
vincentkoc requested a review from joshavant August 4, 2026 01:00
@vincentkoc

vincentkoc commented Aug 4, 2026 •

Copy link
Copy Markdown
Member Author

Land-ready proof for 01d5fdd09f63cc2eecca741c5b894bd39dc0194f:

  • All exact-head checks passed with 0 failures and 0 pending.
  • Organization-required workflow run 31110281252 passed against the PR merge commit.
  • Active ruleset 20513881 loads .github/workflows/crabbox-release-check.yml from protected openclaw/release-workflows@main with no bypass actors.
  • openclaw/release-workflows#19 landed the external workflow at signed merge commit 4abeffbc697a24f97ee53a935cea98ed1d4016b4.
  • Live scripts/verify-github-release-policy.mjs passed against freshly fetched GitHub rulesets.
  • GOTOOLCHAIN=go1.26.5 node --test scripts/release-workflow.test.js passed 26/26.
  • node --test scripts/publish-release.test.js passed 37/37.
  • node --check and git diff --check passed.
  • All four Crabbox commits are SSH-signed by the approved release-admin key.
  • Fresh autoreview found no accepted or actionable findings.

The release-team bypass is limited to pull requests. Direct pushes, history rewrites, stable-tag updates/deletions, and the external required workflow remain non-bypassable. Merge method: merge commit, preserving the signed series.

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal priority bug or improvement with limited blast radius. merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. labels Aug 4, 2026
@clawsweeper

clawsweeper Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 6, 2026, 10:23 AM ET / 14:23 UTC.

ClawSweeper review

What this changes

This PR adds a release signer, replaces Crabbox’s local macOS release check with an organization-owned required workflow, and verifies the resulting ruleset split before publication.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep open: current main still has the local release check, and the coherent replacement needs an explicit security-boundary decision on the team-wide approval bypass. Likely related people: steipete and vincentkoc.

Priority: P2
Reviewed head: 01d5fdd09f63cc2eecca741c5b894bd39dc0194f
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The implementation and focused policy fixtures are solid; merge readiness depends on a security-boundary authorization decision.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored release-governance PR is outside the external-contributor real-behavior-proof gate; its supplied policy-test evidence remains useful supplemental validation.
Patch quality 🐚 platinum hermit (4/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored release-governance PR is outside the external-contributor real-behavior-proof gate; its supplied policy-test evidence remains useful supplemental validation.
Evidence reviewed 4 items Current-main behavior: Current main still defines the in-repository macOS Release Check, so the PR's central workflow move is not already implemented.
Bypass scope: The proposed verifier requires the release team’s pull_request bypass; repository code cannot narrow that GitHub team bypass to release-only pull requests.
Policy coverage: The PR adds fixtures that reject incorrect team bypasses, bypassable history protection, and missing or bypassable organization workflows before publication.
Findings None None.
Security Needs attention Authorize the team-wide approval bypass: The required team actor may bypass approval on protected Crabbox branch pull requests, rather than only release pull requests.

How this fits together

Crabbox’s release scripts verify protected branch and tag policies before publishing a release. This PR moves the independent macOS snapshot check to an organization-owned workflow while retaining local release-policy verification.

flowchart LR
  A[Release pull request] --> B[Branch approval ruleset]
  B --> C[Release policy verifier]
  D[Organization release workflow] --> E[macOS snapshot check]
  E --> B
  C --> F[Release publication]
  G[Stable tag protection] --> F
Loading

Decision needed

Question Recommendation
Does the organization authorize openclaw-secops to bypass required approval for every protected Crabbox branch pull request? Retain peer approval: Do not grant the team-wide bypass unless its full protected-branch scope is explicitly authorized.

Why: GitHub grants this bypass at the protected-branch and team boundary, so the repository cannot confine it to release pull requests.

Before merge

  • Resolve security concern: Authorize the team-wide approval bypass - The required team actor may bypass approval on protected Crabbox branch pull requests, rather than only release pull requests.
  • Resolve merge risk (P1) - The proposed openclaw-secops bypass applies to protected Crabbox branch pull requests generally, not only release pull requests; the repository verifier cannot enforce the narrower stated intent.

Findings

  • [medium] Authorize the team-wide approval bypass — scripts/verify-github-release-policy.mjs:28
Agent review details

Security

Needs attention: The diff intentionally changes a protected-branch authorization boundary and requires explicit organization approval.

Review metrics

Metric Value Why it matters
Release-policy surface 8 files; policy +160/-58, tests +462/-11, docs/release notes +31/-10 The PR changes a release trust boundary and adds substantial focused verifier coverage.

Merge-risk options

Maintainer options:

  1. Retain independent approval (recommended)
    Pause this policy change unless an organization owner explicitly accepts that the release team bypass applies beyond release PRs.
  2. Accept the documented bypass
    Merge after an authorized owner confirms the team-wide protected-branch bypass is acceptable.

Technical review

Best possible solution:

Keep independent approval unless an authorized organization owner explicitly accepts the team-wide pull-request bypass; if accepted, retain the external no-bypass release workflow and verifier checks.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this PR changes repository release governance rather than a user-reproducible runtime behavior.

Is this the best way to solve the issue?

Unclear: the external trust-root direction is well covered, but the GitHub bypass scope needs explicit approval before it is the best acceptable solution.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against e73b02f6455f.

Labels

Label justifications:

  • P2: This is a bounded release-administration change requiring an explicit authorization decision before merge.
  • merge-risk: 🚨 security-boundary: The patch changes who can bypass protected-branch approval requirements.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This member-authored release-governance PR is outside the external-contributor real-behavior-proof gate; its supplied policy-test evidence remains useful supplemental validation.

Evidence

Security concerns:

  • [medium] Authorize the team-wide approval bypass — scripts/verify-github-release-policy.mjs:28
    The required team actor may bypass approval on protected Crabbox branch pull requests, rather than only release pull requests.
    Confidence: 0.98

What I checked:

Likely related people:

  • steipete: Introduced the current release-policy verifier and is the pre-existing signer-policy owner. (role: release-policy originator; confidence: high; commits: 797f20736844; files: scripts/verify-github-release-policy.mjs, .github/release-allowed-signers)
  • vincentkoc: Authored the proposed signer, external-workflow verifier, tests, and release documentation changes, and authored the current main release merge. (role: recent release-policy contributor; confidence: high; commits: e73b02f6455f, b27edaf269ce; files: scripts/verify-github-release-policy.mjs, scripts/publish-release.test.js, docs/RELEASING.md)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Record explicit authorization for the team-wide bypass, or preserve peer approval instead.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-08-04T03:18:08.175Z sha acc595d :: needs maintainer review before merge. :: none
  • reviewed 2026-08-06T11:22:20.145Z sha 01d5fdd :: needs maintainer review before merge. :: none

@vincentkoc vincentkoc changed the title fix(release): add release admin signer fix(release): unblock release-admin self-merge Aug 6, 2026
@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 6, 2026
@vincentkoc vincentkoc closed this Aug 6, 2026
@vincentkoc vincentkoc reopened this Aug 6, 2026
@vincentkoc
vincentkoc merged commit 34877fd into main Aug 6, 2026
39 checks passed
@vincentkoc
vincentkoc deleted the fix/release-signer-policy branch August 6, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. P2 Normal priority bug or improvement with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant