Skip to content

Merge main into 3.x.x: the signed-landing check and its rulesets - #875

Merged
kiwidream merged 7 commits into
3.x.xfrom
sync-main-into-3.x.x
Nov 13, 2026
Merged

kiwidream merged 7 commits into
3.x.xfrom
sync-main-into-3.x.x

Conversation

@kiwidream

@kiwidream kiwidream commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Summary

Merges main into 3.x.x, so the version line holds the signed-landing workflow, 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

  • From main, unchanged: .github/workflows/signed-landing.yml, .github/rulesets/required-checks.json, .github/rulesets/required-checks-version-lines.json, the one-line bypass change in public-main-minimal.json, and main's edits to docs/releasing.md.
  • One conflict, .github/rulesets/README.md: both branches added the file. 3.x.x's copy was main's first revision (aed3bd67) with no change of its own, so the merge takes main's current text. Everything under .github/rulesets/ and the workflow now equal main's.
  • Two edits that are not from 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 passes signed-landing, so the fast-forward push the guide described is refused once required-checks-version-lines.json is applied. The record of b51ac732 says 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-landing check does not judge a sync-* branch; GitHub's signature rule does.

Testing

On the merged tree: python3 -m unittest over the 21 tests/test_*.py modules that read .github/, the workflows or docs/: 611 tests, all passing except test_qbit_image_runtime_smoke, which needs a cargo build and was not run locally. CI runs it.

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

kiwidream and others added 6 commits November 10, 2026 15:45
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
kiwidream marked this pull request as ready for review November 13, 2026 17:41
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T19:29:40.681035Z 8daab55 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@qbit-reviewer qbit-reviewer 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.

Approved: a complete review with no bugs found.

No bugs or security points found.

Not posted: 3 nits and 2 leads. Reviews post bugs and security points only; the rest stay in Sixth Man's ledger.

Reviewed by Claude Opus 5.5.

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
kiwidream force-pushed the sync-main-into-3.x.x branch from e2fa1dd to 8daab55 Compare November 13, 2026 19:27

@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: 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".

Comment thread .github/workflows/signed-landing.yml Resolved

@qbit-reviewer qbit-reviewer 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.

Approved: a complete review with no bugs found.

No bugs or security points found.

Not posted: 3 nits and 2 leads. Reviews post bugs and security points only; the rest stay in Sixth Man's ledger.

Reviewed by Claude Opus 5.5.

@kiwidream
kiwidream merged commit 98fa688 into 3.x.x Nov 13, 2026
46 checks passed
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]>
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