Skip to content

Hold the owner's commits to the owner's key (quality kit 3.4.0) - #28

Merged
jmrplens merged 7 commits into
mainfrom
commit-identity
Nov 26, 2026
Merged

jmrplens merged 7 commits into
mainfrom
commit-identity

Conversation

@jmrplens

@jmrplens jmrplens commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Quality kit 3.4.0: the owner's rule of 2026-11-25, as corrected that evening, held by ✅ Check, and the tool and the procedure that go with it. Not to be landed by a merge button; the branch lands by fast forward.

The rule is the owner's alone. A commit that says it is the owner's (by author or by committer) has the owner's address and the owner's key. Nobody else is asked for that identity, that committer or that key, in a fork or in a branch here. An earlier state of this pull request judged every commit; that is gone.

What it does

  1. The identity of a commit (hooks/commit_identity.py, hooks/identity.json). The ✍️ Commits job, now on a push too, asks GitHub about each commit a change adds:

    The commit Judged
    (a) author is the owner (the login GitHub gives, or the owner's address claimed) author address, committer address, signature: a merge button, the web editor, another machine, a forged owner are refused
    (b) author somebody else, committer the owner committer address and signature; the author is untouched
    (c) neither is the owner nothing, whatever the author, the committer, the key or no signature, in a fork or in a branch here
    (d) GitHub knows no account of author or committer nothing; a warning on the owner's own pull request from a branch here, never a failure
    (e) a bot's nothing

    The key compared is the key id GitHub gives. Nothing of a contributor's commit fails the job: an undecided signature is waited for where the commit is the owner's, and only there, and what GitHub does not answer is asked three times. What a pull request adds is told from the default branch, whatever its base. The step has the job's read token and runs the kit's checker (here the base branch's), never the pull request's code. Exempt refs are one list with reasons. Only what a change adds is judged; a push older than since is not. That a commit of main is signed by somebody is the ruleset's rule, and the documents say so apart.

  2. Landing (tools/ecosystem.py land OWNER/NAME#N [--merge] [--read SHA], tools/fast_forward.py). The owner's pull request, and a contributor's that is signed, verified, on top of main and green, land as they are by a plain push of the head (author, committer and signature kept; GitHub marks it merged). A contributor's that is not signed or is behind main is rebased on land/pr-N keeping the author, and only there are committer and signature the owner's. Dependabot's: the guards as before, then one commit of the owner's. What is judged is what is pushed: commits by their SHA, files by git in the clone of the push (and of a land/pr-N), the checks once more right before it; a signature GitHub has not decided on leaves the pull request. Without --merge it only says.

  3. Docs: "The identity of a commit", "Merging", "How often v3 moves", the organization rules, CONTRIBUTING.md.

  • Only the organization's repositories are judged (organization in hooks/identity.json): a contributor's fork or a copy runs the same workflows over the owner's older commits, which nobody there can repair, so there the job says it judges nothing and passes. A pull request from a fork is judged in the repository it is opened in. Checked with the reviewer's reproduction on the real boards history: as kleidos-dev/boards the five merge-button commits are refused (exit 1); as somebody/boards push and pull request both pass with the notice (exit 0).
  • The landing's clone has no tags and names main, the head and land/pr-N by their whole refs, so a tag named origin/main neither hides a .github/ change nor stops a take.

To know before it lands

  • It turns red, on purpose, the next merge-button commit of the owner's work in any repository that runs @v3, so the merge settings and the in-flight squash merges come first. kleidos-dev/meter's main is exempt until its work in flight ends.
  • since in hooks/identity.json (2026-11-26T03:00:00Z) is the moment from which a push is judged, set after this release.
  • .github/workflows/quick.yml and reusable-commit-check.yml change: read line by line, since a green gate proves nothing there.

@jmrplens
jmrplens requested a review from a team as a code owner November 25, 2026 18:04
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

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

@jmrplens
jmrplens force-pushed the commit-identity branch 3 times, most recently from a03774e to 295d485 Compare November 25, 2026 19:29
@jmrplens jmrplens changed the title Refuse commits that are not the owner's (quality kit 3.4.0) Hold the owner's commits to the owner's key (quality kit 3.4.0) Nov 25, 2026
@jmrplens
jmrplens force-pushed the commit-identity branch 2 times, most recently from 4960af7 to b1621a9 Compare November 25, 2026 19:50
Of the commits a pull request adds, wherever its branch is, and of those
a push adds to the default branch, only the owner's are judged: those
whose author or committer GitHub knows as the owner, or that hold the
owner's address. They have that address, committed and signed with the
owner's key, as GitHub reports it. So a merge button, the web editor and
somebody who writes the owner's address are refused, and a contributor
keeps author, committer, key or none; a bot too. On the owner's own pull
request an address GitHub knows no account of is warned about.

The owner, the keys, the exempt refs and the start of the rule are one
file, hooks/identity.json. What is printed names a login, never an
address. The step's token can only read, and no code of a pull request
runs beside it.
ecosystem.py land OWNER/NAME#N pushes the head of a pull request to main
once it is on top of main, every commit is signed and verified, the
owner's are the owner's and everything that ran on it is green, and
confirms that GitHub shows it merged. A contributor's lands as it is,
with its author, committer and signature; one that is not signed or is
behind main is rebased by the owner, keeping the author. An update of
Dependabot's is one commit of the owner's. Nothing is squash-merged any
more, and no branch of a bot is updated.
Merging, the identity of a commit, how often v3 moves and when it may,
the organization rules, and how a contributor's work lands.
The identity check waited for, and failed on, a signature GitHub had
not decided on, whoever's it was, so a contributor's commit could turn
the job red. Only the owner's is waited for now; a contributor's passes
the check, and the landing leaves it instead of making it the owner's.
What GitHub does not answer is asked three times.

The warning about an unknown address is not given for what the owner
committed, whose author is not the owner's to change, and the advice on
repairing a commit is printed only where one is refused. What a pull
request adds is told from the default branch, whatever its base.

The landing judged commits and files by the pull request's number, so a
branch pushed back and forth could have another head's read in place of
the one pushed. Commits are asked by SHA, the files by git in the clone
of the push, for a branch that is taken too, and the checks once more
right before the push.
The commit check ran in a contributor's fork too, since the consumers
call quick.yml on a push to main and on a pull request. There it judged
the owner's commits of before the rule, which the fork brought from
upstream and nobody there can repair: a fork synced late, or a pull
request against a main that is behind, turned red. identity.json now
names the organization, and a repository outside it is not judged; a
pull request from a fork is still judged where it is opened.

The landing's clone named main by its short name, which git reads as a
tag of that name first, so a tag "origin/main" could hide what a pull
request changes under .github/ and stop every take. The clone has no
tags now, and main, the head and the branch it pushes are named whole.
SonarCloud reads CLONE and clone as one name (python:S1845), which
failed the gate of the pull request.
@sonarqubecloud

Copy link
Copy Markdown

@jmrplens
jmrplens merged commit c1ad24e into main Nov 26, 2026
24 checks passed
@jmrplens
jmrplens deleted the commit-identity branch November 26, 2026 00:06
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