Skip to content

ci: add path-aware required merge gate profiles - #12

Merged
kiwidream merged 7 commits into
mainfrom
release-policy-merge-gate
Jun 25, 2026
Merged

kiwidream merged 7 commits into
mainfrom
release-policy-merge-gate

Conversation

@kiwidream

@kiwidream kiwidream commented Jun 24, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Replace public branch ruleset requirements with the aggregate Required Merge Gate check.
  • Add a path-aware merge profile classifier so source-affecting, mixed, unknown, or empty changes still require both Core Checks Gate and Full Validation Gate.
  • Add focused lightweight profiles for release-policy, RPC docs, public docs, and GitHub metadata changes.
  • Document the public ruleset/CI model and update CI README wording for the aggregate gate.

Validation Profiles

  • source: requires Core Checks Gate and Full Validation Gate.
  • release-policy: runs release-policy validation for trusted release ref and release trust files.
  • rpc-docs: runs RPC docs validation and requires the existing rpc-docs check.
  • public-docs: runs public docs validation and requires the existing public-docs-lint check.
  • github-metadata: validates ruleset/repository settings JSON, issue template YAML, and the required aggregate gate invariant.

Validation

  • python3 ci/checks/test_classify_merge_profile.py
  • python3 -m unittest discover -s test/rpc_docs
  • jq empty .github/rulesets/*.json .github/repository-settings/*.json
  • git diff --check origin/main...HEAD
  • Docker public docs lint: docker run --rm -e DEBIAN_FRONTEND=noninteractive -v "$PWD:/work" -v /Users/miller/conductor/repos/qbit-v1/.git:/Users/miller/conductor/repos/qbit-v1/.git:ro -w /work python:3.12-slim sh -lc 'apt-get update >/dev/null && apt-get install -y git >/dev/null && python3 test/lint/lint-qbit-public-docs.py'

Note

High Risk
Changes merge-blocking CI and branch rules; a misclassified diff could merge with reduced validation, though empty/mixed/unknown paths are designed to require full source gates.

Overview
Branch protection on main and 0.1.x now requires only Required Merge Gate instead of Core Checks Gate and Full Validation Gate.

A new required-merge-gate.yml workflow classifies the PR diff via ci/checks/classify_merge_profile.py and enforces one of five profiles: full source (polls until both legacy gates succeed), or lightweight release-policy, rpc-docs, public-docs, or github-metadata validation jobs. Mixed, empty, invalid, or out-of-allowlist paths still fail closed to full source validation.

ci.yml and core-checks.yml gain the same classifier, run self-hosted / core jobs only when source_validation_required is true, extend triggers to 0.1.x, and teach Full Validation Gate / Core Checks Gate to pass when the profile does not need that tier. Docs in ci/README.md and doc/development/public-branch-and-rulesets.md describe the single aggregate check and allowlists.

Reviewed by Cursor Bugbot for commit 3a8ed82. Bugbot is set up for automated code reviews on this repo. Configure here.


View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.

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

Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 009ebce. Configure here.

@kiwidream
kiwidream requested a review from djh58 June 25, 2026 16:40
@kiwidream
kiwidream merged commit 20cd6b1 into main Jun 25, 2026
33 checks passed
@kiwidream
kiwidream deleted the release-policy-merge-gate branch June 27, 2026 18:43
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.

2 participants