Repository navigation
Conversation
## 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 a `develop→main` promotion on the `required_signatures` rule. ## Change Add an explicit rule directly after the signing rule: the `author`/`committer` on every agent-authored commit must be the owner's `users.noreply.github.com` identity (the same identity whose key signs), never a private/personal/invented address — and verify `user.email` before 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](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Promotes the develop -> main governance updates in AGENTS.md by adding an explicit commit author/committer identity rule (use the committing account's GitHub noreply email) alongside the existing staging-first and commit-signing rules.
Changes:
- Add a new Git rule requiring agent-authored commits to use the committing account's GitHub
noreplyidentity (to avoid GH007 email-privacy blocks and history pollution).
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]>
| - **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) - GitHub issues these in a `[email protected]` or `[email protected]` form, and for this single-maintainer fleet it 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Promotes develop→main: the AGENTS.md git-governance additions (author-identity rule / signing / default-to-staging), part of the fleet governance-conformance pass.
🤖 Generated with Claude Code