Skip to content

Promote: AGENTS git-governance / author-identity rule - #300

Merged
ptr727 merged 2 commits into
mainfrom
develop
Jul 14, 2026
Merged

ptr727 merged 2 commits into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Jul 14, 2026

Copy link
Copy Markdown
Owner

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

## 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]>
Copilot AI review requested due to automatic review settings July 14, 2026 17:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 noreply identity (to avoid GH007 email-privacy blocks and history pollution).

Comment thread AGENTS.md Resolved
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]>
Copilot AI review requested due to automatic review settings July 14, 2026 17:41
@ptr727
ptr727 merged commit 72bf201 into main Jul 14, 2026
7 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread AGENTS.md
- **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.
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.

2 participants