Repository navigation
ci: add path-aware required merge gate profiles - #12
Merged
Merged
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.
❌ 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.
djh58
approved these changes
Jun 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Required Merge Gatecheck.Core Checks GateandFull Validation Gate.Validation Profiles
source: requiresCore Checks GateandFull 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 existingrpc-docscheck.public-docs: runs public docs validation and requires the existingpublic-docs-lintcheck.github-metadata: validates ruleset/repository settings JSON, issue template YAML, and the required aggregate gate invariant.Validation
python3 ci/checks/test_classify_merge_profile.pypython3 -m unittest discover -s test/rpc_docsjq empty .github/rulesets/*.json .github/repository-settings/*.jsongit diff --check origin/main...HEADdocker 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
mainand0.1.xnow requires onlyRequired Merge Gateinstead ofCore Checks GateandFull Validation Gate.A new
required-merge-gate.ymlworkflow classifies the PR diff viaci/checks/classify_merge_profile.pyand 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.ymlandcore-checks.ymlgain the same classifier, run self-hosted / core jobs only whensource_validation_requiredis true, extend triggers to0.1.x, and teachFull Validation Gate/Core Checks Gateto pass when the profile does not need that tier. Docs inci/README.mdanddoc/development/public-branch-and-rulesets.mddescribe 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.
Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.