Skip to content

bug(release): /release Step 6 pushes to main, which the #1109 ruleset now rejects (GH013) — land the release commit through a PR #1131

Closed

Description

@admarble

Symptom

The main ruleset applied in #1109 (required test + canary checks, strict up-to-date) rejects every direct push to main:

error: GH013: Repository rule violations found for refs/heads/main.
- 2 of 2 required status checks are expected.
 ! [remote rejected]   main -> main (push declined due to repository rule violations)

/release Step 6 still runs git commit -m "chore: release v${new_version}" && git push origin main, so the skill can no longer land a release. Observed 2026-09-20 releasing 2.17.0; the bump landed as PR #1130 by hand.

Fix shape (pick one, document it in the skill and docs/internal/graph-2026-09-guard/ruleset.md)

  1. Release PR: Steps 3–6 commit on chore/release-<version>, open a PR, wait for test + canary, squash-merge, then tag main (tags are outside the branch rule) and continue with Steps 7–9. Keeps the guard intact; adds one CI round (~8 min) to a release.
  2. Bypass actor: add the repository admin role to the ruleset's bypass_actors with bypass_mode: "always" and keep Step 6 as is. Weakens the guard for the maintainer account, which is the account the graph most wanted to slow down on a red main.

Recommendation: (1). The red-main pre-flight (#1093) already stops a release off a red main; the PR round is what makes the release commit itself pass the same checks as everything else.

Acceptance criteria

  • AC-1: /release --dry-run on a protected main prints the release-PR plan and no git push origin main — Verify: npx vitest run src/lib/__tests__/release-skill-*.test.ts gate for the Step 6 text in all three skill copies, mutation-verified per CLAUDE.md §Testing.
  • AC-2: docs/internal/graph-2026-09-guard/ruleset.md states how a release lands under the ruleset.
  • AC-3: npm run lint:skill-sync 0 diverged; npm run build && npm test green.

Activity

  1. added
    bug
    on Sep 21, 2026
  2. added 2 commits that reference this issue on Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions