From 27bdf164c83dc5fdad482d4c2ed53d3fc05b616f Mon Sep 17 00:00:00 2001 From: markgrok <342260993+markgrok@users.noreply.github.com> Date: Tue, 13 Oct 2026 20:57:42 -0400 Subject: [PATCH] organization: contributor-identity, every contributor commits under their own git identity A draft change of the organization: the requirement on commit identity and form no longer fixes one personal identity; each contributor, human or agent, commits under a name and address they control, with no trailer and explicit paths as before. History is not rewritten. The superproject's AGENTS.md is changed to match, on the branch contributor-identity of markgrok/webcpp. --- README.md | 1 + .../contributor-identity/.openspec.yaml | 11 +++ .../changes/contributor-identity/design.md | 92 +++++++++++++++++++ .../changes/contributor-identity/proposal.md | 47 ++++++++++ .../specs/organization/spec.md | 16 ++++ .../changes/contributor-identity/tasks.md | 18 ++++ 6 files changed, 185 insertions(+) create mode 100644 organization/openspec/changes/contributor-identity/.openspec.yaml create mode 100644 organization/openspec/changes/contributor-identity/design.md create mode 100644 organization/openspec/changes/contributor-identity/proposal.md create mode 100644 organization/openspec/changes/contributor-identity/specs/organization/spec.md create mode 100644 organization/openspec/changes/contributor-identity/tasks.md diff --git a/README.md b/README.md index 98cb619..bf5d89e 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,7 @@ libraries marked with it are published, in the superproject's `main`. | Library | Proposal | Title | Kind | Status | Release | Decided | Implementation | | --- | --- | --- | --- | --- | --- | --- | --- | | organization | [genesis](organization/openspec/changes/archive/2026-10-07-genesis) | organization: the superproject, its build, its rules, its CI and its site | organization | implemented | 0.1.0 | 2026-10-07 | [code](https://github.com/webcpporg/webcpp/tree/c53f3f9) | +| organization | [contributor-identity](organization/openspec/changes/contributor-identity) | organization: every contributor commits under their own git identity | organization | draft | | | [code](https://github.com/webcpporg/webcpp) | | organization | [site-increments-4-5](organization/openspec/changes/site-increments-4-5) | organization: the site, increments 4 and 5 (trystero's JavaScript API and the cursors; the state machine, on the server, C++ calls the browser) | organization | accepted | | 2026-10-10 | | | asio | [genesis](libraries/asio/openspec/changes/genesis) | asio: Boost.Asio natively, the browser's event loop on Emscripten | wrapper | implementing | | 2026-10-11 | | | beast | [genesis](libraries/beast/openspec/changes/genesis) | beast: Boost.Beast natively, the browser's WebSocket and fetch on Emscripten | wrapper | draft | | | | diff --git a/organization/openspec/changes/contributor-identity/.openspec.yaml b/organization/openspec/changes/contributor-identity/.openspec.yaml new file mode 100644 index 0000000..326e0ef --- /dev/null +++ b/organization/openspec/changes/contributor-identity/.openspec.yaml @@ -0,0 +1,11 @@ +schema: spec-driven +created: 2026-10-13 +webcpp: + library: organization + title: "organization: every contributor commits under their own git identity" + kind: organization + port_of: null + status: draft + release: null + implementation: https://github.com/webcpporg/webcpp + decided: null diff --git a/organization/openspec/changes/contributor-identity/design.md b/organization/openspec/changes/contributor-identity/design.md new file mode 100644 index 0000000..0278387 --- /dev/null +++ b/organization/openspec/changes/contributor-identity/design.md @@ -0,0 +1,92 @@ +## Context + +The organization's genesis (`changes/archive/2026-10-07-genesis/`) fixed one identity for every +commit of a maintainer and of the maintainer's agents, and the specification +(`specs/organization/spec.md`, "Superproject: Commit identity and form") and the superproject's +`AGENTS.md`, chapter 11, carry it with its address and the command that sets it. External +contributors already commit under their own name and address. The other parts of the rule, the +form of a commit, are what the lint and the reviews rely on. + +## Goals / Non-Goals + +**Goals:** + +- One rule for every contributor: commit under your own git identity. +- Keep every rule about the form of a commit and about personal data in files. +- Remove the fixed address from the rules a contributor reads and runs. + +**Non-Goals:** + +- Rewriting history: no commit is amended, rebased or re-signed, and no archived proposal or + recorded patch is edited. +- Changing `meta/libraries.json`'s `authors` and `maintainers` (open question O2). +- Requiring signed commits (open question O3). + +## Decisions + +### D1. Each contributor commits under their own identity + +A contributor, human or agent, commits under a name and an e-mail address they control; a GitHub +noreply address (`+@users.noreply.github.com`) is allowed and is the suggested choice +for anyone who does not want to publish an address. An agent commits under the identity of the +account it acts for or of its own account, never under another person's. + +Rejected: keeping one fixed identity for the maintainer and the maintainer's agents. It cannot be +followed by a second maintainer or by an agent of another account without impersonation, and it +keeps a personal address in the rules. + +Rejected: a shared organization identity (such as `webcpp `). It hides who made +a change, which the review and the history need, and the organization has no mailbox behind it. + +### D2. The form of a commit is unchanged + +No trailer of any kind, explicit paths, a plain subject prefixed by the part it touches, no last +paragraph that starts with `word:`, English, no em dash. These are about the history's +readability and are independent of whose name is on a commit. + +### D3. History and recorded material are not rewritten + +Existing commits keep their author and committer. Archived proposals, the organization's genesis +reference and the patches recorded under `reference/` of open proposals keep the identity they +were made with: they are records of what was done, and changing them would make them disagree with +the commits they describe. Plans of open proposals that spell the old command are read under the +new rule once it is accepted; each is updated when its own proposal is next revised. + +Rejected: a sweep that edits every occurrence of the old address in the repository. It would +rewrite records, touch proposals this change does not own, and gain nothing a reader of the rule +needs. + +### D4. No tool checks the author's address + +The superproject's tools check no author address (the lint checks only the banned word in each +commit's author, committer and message, and the tests commit under their own throwaway +identities), so the change is to the rules alone. + +## Risks / Trade-offs + +- [A contributor commits with a machine's default identity, such as an employer's address] -> + `AGENTS.md` tells them to pass their identity explicitly, and the reviewer checks the author of + a pull request's commits. +- [Agents of one account commit under different identities] -> the rule names the account an agent + acts for; the owner may later fix one identity per agent account in that account's own + configuration, outside the repositories. + +## Migration Plan + +1. Accept this change and merge the superproject's `AGENTS.md` pull request. +2. From then on, every new commit follows the new rule; nothing else is migrated. +3. On archive, the requirement's new text replaces the old one in `specs/organization/spec.md`. + +## Open Questions + +- **O1.** Should the old address stay mentioned anywhere in the current rules, for instance as the + identity of the existing history? This proposal says no: the history shows it, the rules need + not. +- **O2.** `meta/libraries.json` names `authors` `["R"]` and a maintainer address in every library, + and the specification requires it. Should the maintainer field keep a personal address, take a + noreply or organization address, or name a GitHub login? A separate change, since it touches + every library. +- **O3.** Should commits to webcpporg repositories be signed (`git commit -S`, or GitHub's + vigilant mode)? Not required by this change. +- **O4.** Should the CI check that a pull request's commits carry no trailer, which today only the + reviewer checks? diff --git a/organization/openspec/changes/contributor-identity/proposal.md b/organization/openspec/changes/contributor-identity/proposal.md new file mode 100644 index 0000000..9519150 --- /dev/null +++ b/organization/openspec/changes/contributor-identity/proposal.md @@ -0,0 +1,47 @@ +## Why + +The organization's rules fix one personal identity, a name and an e-mail address, for every commit +a maintainer or a maintainer's agent makes, and write that address into the superproject's +`AGENTS.md`, into the organization's specification and into the command every contributor is told +to run. A rule that names one person's address cannot be followed by anyone else without +impersonating them, ties every agent to one mailbox, and keeps personal data in files whose own +rules forbid it. The rule webcpp actually needs is about the form of a commit, not about whose name +is on it: no trailer, explicit paths, a plain English subject. + +## What Changes + +- The requirement "Superproject: Commit identity and form" is modified: every contributor, human + or agent, maintainer or external, commits under their own git identity, a name and an e-mail + address they control (a GitHub noreply address is allowed). No address is fixed by the rules. +- Everything else of the requirement stays: no trailer of any kind (no `Co-authored-by`, no + `Signed-off-by`, no agent name), explicit paths and never `git add -A`, a plain subject + prefixed by the part it touches, no last paragraph that git reads as a trailer, English, no em + dash. Files still hold no personal data. +- The superproject's `AGENTS.md`, chapter 11 "Identity", is rewritten to the same rule, with a + command that passes the contributor's own identity instead of a fixed one. +- History is not rewritten: existing commits, archived proposals and recorded patches keep the + identity they were made with. + +## Capabilities + +### New Capabilities + +None. + +### Modified Capabilities + +- `organization`: the requirement "Superproject: Commit identity and form" is modified. + +## Impact + +- **Kind:** the organization (the superproject's rules and the organization's specification). +- **Implementation:** the superproject's `AGENTS.md`, chapter 11, in a pull request to + https://github.com/webcpporg/webcpp from the branch `contributor-identity`. No tool, lint rule + or workflow checks the author's address, so none changes; the lint's check of the banned word + in every commit's author, committer and message stays. +- **Status:** draft. +- **Other proposals:** the plans of open proposals (`site-increments-4-5`, `asio`, `crypto`, + `json_schema`, `document`) still spell the old command in their reference material; they are + left as written (design D3) and follow the specification once this change is accepted. + `meta/libraries.json`'s `authors` and `maintainers` are not commit identity and are left to + open question O2. diff --git a/organization/openspec/changes/contributor-identity/specs/organization/spec.md b/organization/openspec/changes/contributor-identity/specs/organization/spec.md new file mode 100644 index 0000000..7e9bb94 --- /dev/null +++ b/organization/openspec/changes/contributor-identity/specs/organization/spec.md @@ -0,0 +1,16 @@ +## MODIFIED Requirements + +### Requirement: Superproject: Commit identity and form +Every contributor, human or agent, maintainer or external, SHALL commit under their own git identity: a name and an e-mail address they control, of which a GitHub noreply address (`+@users.noreply.github.com`) is one; an agent commits under the identity of the account it acts for or of its own account, never under another person's, and the rules fix no address. Every commit SHALL carry no trailer of any kind (no `Co-authored-by`, no `Signed-off-by`, no agent name), and is made by `git -c user.name= -c user.email=
commit -- ` or with that identity configured. Commits MUST stage explicit paths and never `git add -A`; a subject is plain, says what the change does, and is prefixed by the part it touches (`tools/doc: ...`, `xactor: ...`); a last body paragraph MUST NOT start with `word:` since git reads it as a trailer (`std::` does). Every commit message is English, with no em dash. Existing commits are not rewritten to change their identity. + +#### Scenario: A commit by an agent +- **WHEN** an agent acting for an account commits a change to `tools/lint` +- **THEN** `git log -1 --format='%an %ae'` prints the name and address of that account's identity and `git log -1 --format=%B | git interpret-trailers --parse` prints nothing + +#### Scenario: A commit by an external contributor +- **WHEN** a contributor commits under their GitHub noreply address +- **THEN** the commit is accepted as to its identity, and is reviewed for its form alone + +#### Scenario: An accidental trailer +- **WHEN** the last paragraph of a message starts with `std::` +- **THEN** git would read it as a trailer, so the paragraph is rewritten to start otherwise diff --git a/organization/openspec/changes/contributor-identity/tasks.md b/organization/openspec/changes/contributor-identity/tasks.md new file mode 100644 index 0000000..b3e7d00 --- /dev/null +++ b/organization/openspec/changes/contributor-identity/tasks.md @@ -0,0 +1,18 @@ +# Tasks + +## 0. The proposal + +- [x] 0.1 Write the proposal, the design, the tasks and the modified requirement; validate with `openspec validate --all --strict` and `tools/proposals.py check` +- [ ] 0.2 Settle O1 to O4 of `design.md` with the owner and record the answers in `design.md` +- [ ] 0.3 Submit the proposal for a decision (status `proposed`) + +## 1. The superproject + +- [x] 1.1 `AGENTS.md`, chapter 11 "Identity": every contributor commits under their own git identity, a noreply address allowed; the command passes the contributor's identity; no trailer, explicit paths, unchanged +- [x] 1.2 Check that no tool, lint rule or workflow checks the author's address (`git grep` of the old address and of `user.email` in `tools/` and `.github/`) +- [ ] 1.3 The superproject's pull request reviewed and merged by the owner + +## 2. After the decision + +- [ ] 2.1 Each open proposal's plan that spells the old command is updated when that proposal is next revised (design D3) +- [ ] 2.2 Archive the change, which writes the modified requirement into `specs/organization/spec.md`