Skip to content

docs(release): qualify protected candidate tag pattern - #3107

Merged
EffortlessSteven merged 5 commits into
mainfrom
docs/release-ruleset-qualified-tag-ref
Aug 10, 2026
Merged

EffortlessSteven merged 5 commits into
mainfrom
docs/release-ruleset-qualified-tag-ref

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Aug 10, 2026 •

Copy link
Copy Markdown
Member

What this does

The live-history release transaction now verifies the release-transaction-pins ruleset against the fully qualified refs/tags/ripr-release-* ref pattern. The candidate tag name remains ripr-release-0.11.0-<SHA>; only the repository policy namespace contract changes.

Change: the canonical runbook and live-head template carry the same fully qualified tag-ref requirement, and a checked-in ruleset fixture plus source-truth test enforces the repository's fail-closed contract: conditions.ref_name.include must be exactly the singleton full pattern, while short-only and mixed full+short patterns are rejected locally. The test executes the documented jq predicate through the existing governed process runner against all three fixtures. This fixture does not prove GitHub server acceptance or rejection. GitHub's REST rules API uses fully qualified examples such as refs/heads/main, and its rule suites API documents refs/tags/ as the tag-ref prefix. The current repository ruleset shape is observable in the live API response.

Refs #3106

Verification

Check Result
cargo test -p xtask --bin xtask release_pin_ruleset_requires_fully_qualified_tag_ref on 7cb1b5f081cdf0bcc57695ebd02c57177e45c5e9 pass: 1 passed, 1564 filtered out; jq outcomes full/short/mixed = true/false/false
cargo xtask check-process-policy pass: no violations; existing governed process helper reused, no allowlist change
runbook/template contract assertions pass: exact ruleset pattern and candidate tag format preserved
cargo fmt --all pass
git diff --check pass
hosted PR checks pending/skipping according to current branch state; no merge or settings action taken

Review map

  • docs/RELEASE_TRANSACTION.md: requires an exact singleton ruleset include pattern, cites API examples, and states the local-proof/server-proof boundary while retaining unqualified candidate tag construction.
  • docs/release-candidates/0.11.0-live-head-selection.json: binds the remote ruleset receipt to refs/tags/ripr-release-*.
  • fixtures/release_control/pin-ruleset.json: active tag ruleset fixture with update and deletion protections.
  • xtask/src/tests.rs: executes the documented predicate via the governed runner for full, short-only, and mixed patterns and preserves candidate-tag checks.

@coderabbitai

coderabbitai Bot commented Aug 10, 2026 •

Copy link
Copy Markdown

Review Change Stack

Summary by CodeRabbit

  • Documentation

    • Clarified release candidate tag requirements to use the fully qualified refs/tags/ripr-release-* pattern.
    • Documented protections preventing updates and deletions of active release tags.
  • Bug Fixes

    • Updated release validation and live-head configuration to consistently recognize fully qualified release tag references.
  • Tests

    • Added coverage confirming valid tag patterns, protection rules, release commands, and related documentation remain aligned.

Walkthrough

The release transaction ruleset now requires refs/tags/ripr-release-* for protected release tags. The fixture, runbook, live-head template, and integration test use and validate this fully qualified pattern.

Changes

Release tag pinning

Layer / File(s) Summary
Protected release tag contract
fixtures/release_control/pin-ruleset.json, docs/RELEASE_TRANSACTION.md, docs/release-candidates/0.11.0-live-head-selection.json
The ruleset fixture and related validation text require refs/tags/ripr-release-*. Update and deletion protections remain required.
Release tag validation coverage
xtask/src/tests.rs
The integration test validates the fixture, runbook, live-head template, candidate tag format, and rejection of the unqualified pattern.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related issues

Possibly related PRs

Suggested labels: enhancement

Poem

A rabbit checks each guarded tag,
refs/tags/ leads the way.
Update and delete rules stand firm,
While tests keep short forms away.
Hop, hop—release paths are clear!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the change and verification, but it omits most required template sections, including scope, policy impact, proof, rollback, traceability, engineering checks, and gates. Complete the repository template, mark applicable scope and policy items, record proof and skipped checks, and document rollback, traceability, claim boundaries, and CI impact.
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly and concisely describes the main change: qualifying the protected candidate tag pattern.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/release-ruleset-qualified-tag-ref

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request updates the release transaction documentation, release candidate metadata, and adds a new ruleset fixture to use fully qualified Git references (refs/tags/ripr-release-*) for GitHub ruleset conditions. This ensures correct matching behavior against GitHub's API. There are no review comments, and I have no additional feedback to provide.

@codecov

codecov Bot commented Aug 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@xtask/src/tests.rs`:
- Around line 46270-46303: Update the fixture mutation around
accepts_required_pin so it tests an include array containing both
REQUIRED_PATTERN and SHORT_PATTERN, then assert that accepts_required_pin
returns false for that combined set. Preserve the existing full fixture
acceptance check and explicitly reject the short pattern even when the required
pattern is also present.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 71efa837-8ed9-45b6-9e96-aacc903d6e4b

📥 Commits

Reviewing files that changed from the base of the PR and between 685be47 and 35d612c.

📒 Files selected for processing (4)
  • docs/RELEASE_TRANSACTION.md
  • docs/release-candidates/0.11.0-live-head-selection.json
  • fixtures/release_control/pin-ruleset.json
  • xtask/src/tests.rs

Comment thread xtask/src/tests.rs Resolved

@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: 35d612c8b5

ℹ️ 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 xtask/src/tests.rs Resolved
@EffortlessSteven

Copy link
Copy Markdown
Member Author

REVIEW_READY on exact head \7cb1b5f081cdf0bcc57695ebd02c57177e45c5e9. Substantive review verified the exact-singleton ruleset predicate, direct full/short/mixed jq execution, governed process helper use, unchanged candidate tag naming, and passing process policy. All applicable exact-head hosted checks are terminal and passing; routed skips are not claimed as passes.

@EffortlessSteven
EffortlessSteven merged commit 71ec4b0 into main Aug 10, 2026
25 checks passed
@EffortlessSteven
EffortlessSteven deleted the docs/release-ruleset-qualified-tag-ref branch August 10, 2026 12:55
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