Repository navigation
AGENTS: require the owner's noreply identity on agent commits - #299
Conversation
The Git and Commit Rules mandated signing but never stated which identity a commit must carry, so the author-identity rule lived only in one downstream repo (Vantage-Config) and host-local config - nothing propagated it. An agent committed under a fabricated "[email protected]" persona, unsigned, which then blocked a develop->main promotion on the signature rule. Add an explicit rule next to the signing rule: author/committer must be the owner's users.noreply.github.com identity (the same one whose key signs), never a private/personal/invented address; verify user.email before committing. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
There was a problem hiding this comment.
Pull request overview
This PR updates the repo’s governance documentation (AGENTS.md) to explicitly require that any agent-authored commits use the repository owner’s GitHub @users.noreply.github.com identity, closing a gap where signing was required but author/committer identity was unspecified.
Changes:
- Add a new Git/commit rule requiring agent commits to use the owner’s GitHub noreply email.
- Require verifying
git config --get user.emailbefore committing (rather than inheriting whatever identity is configured in the environment).
- "author and committer ... is" -> "are" - Drop the inaccurate claim that a non-noreply author is "unsignable" and rejected by the signature rule. Identity is separate from signing: a wrong author does not itself fail the signature rule; the ad-hoc identities that produce it are typically also unsigned, which the signing rule then rejects. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
ptr727
left a comment
There was a problem hiding this comment.
Fixed in the latest push: corrected the subject-verb agreement (are), and removed the inaccurate 'unsignable/rejected' claim - the text now states identity is separate from signing (a wrong author does not itself fail the signature rule; the ad-hoc identities that produce it are typically unsigned, which the signing rule then rejects).
…(Copilot) Clarify that the required identity is the committing account's own GitHub noreply address (the [email protected] form) - which for this single-maintainer fleet is the owner's - rather than implying an exact match to one canonical string. Resolves the org/multi-maintainer ambiguity. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
ptr727
left a comment
There was a problem hiding this comment.
Reworded to 'the committing account's own GitHub noreply identity' (the [email protected] form), noting the single-maintainer fleet's owner address as the concrete instance. Converging here - the substantive points (grammar, signing-accuracy, this generality note) are addressed.
| - **Default to staging, not committing.** Stage changes with `git add` and leave `git commit` to the developer unless the developer has explicitly authorized the agent to commit for the current ask ("commit this", "open a PR", etc.). Authorization is scope-bound - it covers the commits needed for that specific task, not a blanket commit license for the rest of the session. | ||
| - **Check the working tree for the maintainer's own uncommitted edits before committing.** The maintainer hand-edits files live (often `README.md`/`HISTORY.md`, sometimes with the editor's LF->CRLF flip on top). Review `git status` first; if there are changes you did not make, ask whether to include them rather than bundling half-finished work or stranding it in an unrelated commit. | ||
| - **All commits must be cryptographically signed (SSH or GPG).** Branch protection enforces this on both branches; unsigned commits are rejected on push. Signing depends on environment configuration - `git config commit.gpgsign true`, a configured `user.signingkey`, and a working signing agent (loaded `ssh-agent` for SSH, or `gpg-agent` for GPG). If signing is not configured in the environment, **do not commit** - surface the missing config to the developer and stop at `git add`. Verify before any agent-authored commit (`git config --get commit.gpgsign && ssh-add -L` or the GPG equivalent). **Signing must be live before the *first* commit, not retrofitted.** Turning on `Require signed commits` against a branch that already has unsigned commits forces a rewrite of that entire history to re-sign it - changing every commit SHA and making whoever does the rewrite the committer and signer of every commit (a rebase preserves the `author` field but not the original signatures; you cannot sign another contributor's commits for them). During new-repo setup, never create commits until signing is verified. | ||
| - **Commit under the committing account's own GitHub `noreply` identity - never a private, personal, or invented address.** The `author` and `committer` on every agent-authored commit are the GitHub `noreply` address of the account whose key signs the commit (above) - the `[email protected]` form, which for this single-maintainer fleet is the owner's `[email protected]`. Do not set `user.name`/`user.email` to a fabricated persona, bot name, or product name, and do not commit under whatever identity the environment happens to carry: verify `git config --get user.email` is that GitHub `noreply` address before committing, and fix it if not. A wrong identity is not cosmetic - a private email trips GitHub's email-privacy push protection (GH007), and an unrecognized or invented author pollutes history. Identity is separate from signing: a wrong author does not by itself fail the signature rule, but the ad-hoc identities that produce it are typically also unsigned, which the signing rule above then rejects on push. |
Follow-up to #299: the identity rule claimed the `[email protected]` form but gave `[email protected]` (the `username@` form) as the example — internally inconsistent (flagged by Copilot on the promotion). Reword to note GitHub issues both forms and name the fleet's actual address as the concrete instance. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
Why
The Git and Commit Rules mandate signing but never state which identity a commit must carry. A fleet audit found the author-identity rule (
commit as the owner's noreply identity, never a private/invented address) existed in exactly one repo —Vantage-Config— and was absent from this canonical AGENTS.md, so it never propagated. Result: an agent committed under a fabricated[email protected]persona, unsigned, which then blocked adevelop→mainpromotion on therequired_signaturesrule.Change
Add an explicit rule directly after the signing rule: the
author/committeron every agent-authored commit must be the owner'susers.noreply.github.comidentity (the same identity whose key signs), never a private/personal/invented address — and verifyuser.emailbefore committing rather than committing under whatever the environment carries.Follow-up
Fleet audit (separate work): the config repos ESPHome/HomeAutomation/HomeAssistant lack any git-governance in their AGENTS.md; several release repos and the identity rule fleet-wide need the same propagation. Tracked separately.
🤖 Generated with Claude Code