Skip to content

Commit 2be247a

Browse files
docs: add Signed commits section to CONTRIBUTING (#333)
Adds a **Signed commits** section to this repo's CONTRIBUTING, per owner ruling **D218**. The estate policy is [`docs/SIGNING-POLICY.adoc`](https://github.com/hyperpolymath/standards/blob/main/docs/SIGNING-POLICY.adoc) in hyperpolymath/standards. This repo's default branch is covered by the zero-bypass `Require-Signed-Commits` ruleset, and rebase-merge is off. The section tells contributors what that requires: - People and interactive agents sign with an SSH signing key. - Apps, bots and workflows write through the API, so GitHub signs their commits. - PRs are merged with squash. If the file already had its own signing section, that section is replaced in place instead of adding a second one. Lines elsewhere that told people to sign with GPG are changed to match the policy (SSH for people). This is a docs-only change. The commit was created through `createCommitOnBranch`, so GitHub signs it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01WRvDivYwLSeVCJUrfjic3f Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 3b21ff7 commit 2be247a

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

‎.github/CONTRIBUTING.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,20 @@ locally (full Agda verify + kernel-guard), and open a PR. Maintainers
9090
(Perimeter 1) may commit directly to feature branches. Every PR must
9191
keep `All.agda` + `Smoke.agda` green under `--safe` `--without-K` and
9292
introduce no banned constructs (see the pre-merge checklist above).
93+
94+
## Signed commits
95+
96+
Every commit that reaches the default branch must be signed; a ruleset refuses
97+
unsigned pushes. Estate policy:
98+
[SIGNING-POLICY](https://github.com/hyperpolymath/standards/blob/main/docs/SIGNING-POLICY.adoc).
99+
100+
- **People and interactive agents** sign with an SSH key registered on GitHub
101+
as a *signing* key (`gpg.format=ssh`, `user.signingkey=<key>.pub`,
102+
`commit.gpgsign=true`). The committer email must be verified on that account.
103+
- **Apps, bots and workflows** never `git push` local commits. They write
104+
through the API (`createCommitOnBranch` or the estate `signed-push` action)
105+
so that GitHub signs each commit.
106+
- Merge PRs with **squash**. The ruleset checks every commit on the PR branch,
107+
not just the result, so one unsigned commit blocks the merge. Re-create such a
108+
branch with signed commits (`git cherry-pick -S`) and open a new PR.
109+
Rebase-merge replays commits unsigned and is disabled.

0 commit comments

Comments
 (0)