Skip to content

AGENTS: require the owner's noreply identity on agent commits - #299

Merged
ptr727 merged 3 commits into
developfrom
fix/agents-author-identity-rule
Jul 14, 2026
Merged

ptr727 merged 3 commits into
developfrom
fix/agents-author-identity-rule

Conversation

@ptr727

@ptr727 ptr727 commented Jul 14, 2026

Copy link
Copy Markdown
Owner

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

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

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

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.email before committing (rather than inheriting whatever identity is configured in the environment).

Comment thread AGENTS.md Resolved
- "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]>
Copilot AI review requested due to automatic review settings July 14, 2026 17:27

@ptr727 ptr727 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

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 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 Resolved
…(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]>
Copilot AI review requested due to automatic review settings July 14, 2026 17:31

@ptr727 ptr727 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

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.

@ptr727
ptr727 merged commit 35d90b8 into develop Jul 14, 2026
7 checks passed
@ptr727
ptr727 deleted the fix/agents-author-identity-rule branch 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

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) - 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.
ptr727 added a commit that referenced this pull request Jul 14, 2026
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]>
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