Repository navigation
Merge main into 3.x.x: the signed-landing check and its rulesets - #875
Merged
Merged
Conversation
On 2026-11-10 an admin added a `signed-commits` ruleset: every commit added to `main` or a version line (`[0-9]*.*.x`, such as `3.x.x`) needs a verified signature, and it has no bypass actors. Pull requests now merge with merge commits only, and `main` no longer requires linear history. - `.github/rulesets/signed-commits.json` is the new ruleset, and `public-main-minimal.json` is updated, both as exported from GitHub. - `.github/repository-settings.json` allows merge commits only. - `.github/rulesets/README.md` says what each file enforces, how a pull request lands, how to apply a change, and how to check that GitHub matches the files. - docs/releasing.md: a promotion lands on `main` as one commit a maintainer signs, under GitHub's merge commit. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Record the signed-commit rules in .github/rulesets
A pull request is meant to land as one commit that a person signed, but nothing enforced it: GitHub's signature rule also accepts commits GitHub signs itself, such as web edits and "Update branch" merges, and the merge button merges a pull request with any number of commits. - `.github/workflows/signed-landing.yml` reports a `signed-landing` check that passes only when the pull request is one commit signed by a person, or comes from a branch named `sync-…`, which merges as it is. It always runs from `main`'s copy of the file, whatever branch the pull request targets, and reads the pull request through the API only. Its result belongs to the commit, so it judges every open pull request the commit heads, drafts aside, and passes only if all of them may land. - `required-checks.json` is a new ruleset with no bypass actors. It requires `signed-landing` on `main`. - The review ruleset's bypass changes from "always" to "pull requests only". - `required-checks-version-lines.json` requires pull requests and the check on the version lines except the dormant `1.x.x` and `0.1.x`, so a commit reaches them only through a pull request, which the check judges against that line. - docs/releasing.md says to name a synchronization branch `sync-…`. - docs/releasing.md says to name a branch that merges one version line into another `sync-…`, in this repository and with nothing before `sync-`. The ruleset files describe the state an admin applies after this merges: the check can be required only once the workflow is on `main` and an Actions policy allows `pull_request_target` for it. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Add the signed-landing check and narrow the review bypass
## What and why The `signed-landing` check on `main` is its first revision. This brings it to the revision that landed in Qbit-Org/qbit-white-paper#13 after a pilot there; the file is the same in every Qbit-Org repository apart from the branches that merge as they are. What was wrong with the first revision: the check's result sits on the head commit, and one commit can head two pull requests. Into one branch it is a single signed commit and passes; into another it is several commits and fails. Whichever run finished last decided for both, and the run that decided relied on GitHub's answers, which can lag an event by a moment. What the check does now: - It judges every pull request that could merge the same head commit, from any branch or fork and drafts aside, and passes only if all of them may land. Its message names the one that can't. Runs are grouped by head commit, and the newest cancels the older ones, so one run decides for a commit. - It keeps its own record of events. Each run's title holds the pull request's number, its `updated_at`, its state, whether it is a draft, its base branch and its head commit. So a pull request that was just opened on the commit or pushed to it is found even when GitHub's list of open pull requests doesn't show it yet, and an answer stamped earlier than a recorded event is asked for again. - A pull request's count of its commits has to equal what git says its head has and its base branch lacks. - Closing a second pull request on the commit, or turning it into a draft, clears the commit from that pull request's own run, with no re-run. - Only the workflow's `pull_request_target` runs count as its record, and a burst of runs doesn't push a run out of it. The workflow's permissions gain `actions: read` (its own runs) and `contents: read` (git's comparison of a base branch with the head commit). It still checks out nothing and uses no action. The README states what the workflow can't change: a run starts a few seconds after its event and the commit keeps its last result until then, a change made with a workflow's own token starts no run, a run that stays queued leaves the last result in place, and every run draws on the workflow token's hourly allowance of requests. No ruleset file changes. ## Checks - The check's script has 93 unit tests against real GitHub answers, and each of its rules fails a test when it is removed or weakened. - The same file was run from `main` in qbit-white-paper on two throwaway pull requests: one signed commit passed, a second pull request on the same commit into another base failed both, and closing it turned the first green from the closed pull request's own run. - This pull request is judged by `main`'s current copy of the check, the first revision, and shows a red `signed-landing` until it is squashed into one signed commit at landing. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Squashed commits: 7b344a6 ci: bring signed-landing to the revision that landed in qbit-white-paper Co-Authored-By: Claude Fable 5.2 <[email protected]>
ci: bring signed-landing to its final revision
kiwidream
marked this pull request as ready for review
November 13, 2026 17:41
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Since 3.x.x last took main at v3.1.1 (6046726), main gained the later revisions of the ruleset files, the signed-landing workflow and its two required-check rulesets (#837, #840, #855). .github/rulesets/README.md conflicted because both branches added it. 3.x.x's copy was main's first revision (aed3bd6) unchanged, so main's current text is taken. Two edits are not from main: - docs/releasing.md: a synchronization lands with the merge button. The version lines take changes only through a pull request that passes signed-landing, so the fast-forward push this guide described is refused. - docs/ci-same-tree-skip.md: renamed branches, as a limit of the skip (the note promised on #839). Co-Authored-By: Claude Fable 5.2 <[email protected]>
kiwidream
force-pushed
the
sync-main-into-3.x.x
branch
from
November 13, 2026 19:27
e2fa1dd to
8daab55
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8daab556e9
ℹ️ 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".
kiwidream
added a commit
that referenced
this pull request
Nov 18, 2026
Since 3.x.x last took main (30dc9b6, #875), main gained #877, which lands pull requests with GitHub's squash merge (the merge-method setting, the allowed merge methods in two rulesets, the signed-landing workflow's judging of branches that merge as they are, and the rulesets README and release guide that describe it), and 475605e, the release-tags and version-lines rulesets. The merge is clean, and it takes main's changes only: every file under .github/ now equals main's. docs/releasing.md takes main's edits to its promotion, publication and synchronization paragraphs and keeps 3.x.x's guarded release block and its later sections, which still describe merge-commit landing; the pull request stacked on this one rewrites them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
Merges
maininto3.x.x, so the version line holds thesigned-landingworkflow, the two required-check ruleset files and the current rulesets README (#837, #840, #855), and fixes the release guide's instruction for landing a synchronization.This is a synchronization pull request: it lands as it is, with the merge button, and must not be squashed.
What is in the merge
main, unchanged:.github/workflows/signed-landing.yml,.github/rulesets/required-checks.json,.github/rulesets/required-checks-version-lines.json, the one-line bypass change inpublic-main-minimal.json, andmain's edits todocs/releasing.md..github/rulesets/README.md: both branches added the file.3.x.x's copy wasmain's first revision (aed3bd67) with no change of its own, so the merge takesmain's current text. Everything under.github/rulesets/and the workflow now equalmain's.main:docs/releasing.md, "Reconcile the development branch": a synchronization lands with the merge button. The version lines take changes only through a pull request that passessigned-landing, so the fast-forward push the guide described is refused oncerequired-checks-version-lines.jsonis applied. The record ofb51ac732says it landed by fast-forward "as a synchronization then could".docs/ci-same-tree-skip.md, "What remains possible": renamed branches, as a limit of the skip. This is the note promised on ci: skip repeated CI when the tree under test already passed #839.Signature
The merge commit is an unsigned draft for now. The version lines accept only commits with a verified signature, so before this merges a maintainer replaces it with the same merge, signed (same parents, same tree). The
signed-landingcheck does not judge async-*branch; GitHub's signature rule does.Testing
On the merged tree:
python3 -m unittestover the 21tests/test_*.pymodules that read.github/, the workflows ordocs/: 611 tests, all passing excepttest_qbit_image_runtime_smoke, which needs acargo buildand was not run locally. CI runs it.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.