answered from live GitHub & Hugging Face data
How can I verify the provenance of signed commits made by AI coding agents like Copilot?
Short answer: a Verified badge proves GitHub signed the commit. It does not prove the agent's work is correct. Use the session log and the pull request trail to check what the agent did.
What the signature proves
- GitHub marks a commit "Verified" when its signature checks out. Unsigned commits have no status. About commit signature verification
- Copilot cloud agent commits are signed, so they show as "Verified." GitHub says this gives confidence that the agent made the commit and that it was not altered afterward. Risks and mitigations
- The docs do not name the signing key. Treat "Verified" as "signed by GitHub's bot signing," not as a key you can pin.
Steps to check a Copilot commit
- Open the commit on GitHub. Confirm the badge says "Verified."
- Hover over the badge. It shows when verification happened. The REST commits API returns this as
verified_at. About commit signature verification - Read the commit author. Copilot cloud agent commits are authored by Copilot. The developer who assigned the task is the co-author. Risks and mitigations
- Open the session link in the commit message. It leads to the agent session log. Managing agent sessions
- Check the audit log for session events. Administrators can review them. Risks and mitigations
Gaps that break provenance
- Rebase and merge removes the agent's signature. GitHub creates a new commit and cannot sign it as the original author. Use squash or merge commits if you need the agent's signed commits to stay on the base branch. About commit signature verification
- Verification does not change later. A verified record stays even if a key is revoked or rotated. About commit signature verification
- The web-flow key is different. GitHub signs commits made in the web interface with its web-flow key, available at github.com/web-flow.gpg. This key does not identify the Copilot agent. About commit signature verification
- Pull requests can be attributed to the app. When Copilot opens a PR under its own app identity, the repository needs one more approval before merge. This applies if the repository already requires at least one approval. Risks and mitigations
Harden the check
- Require signed commits on protected branches. This blocks unsigned commits. About commit signature verification
- Turn on vigilant mode to see "Partially verified" when an author did not sign. About commit signature verification
Trailers: a different convention
Git trailers add human-readable metadata to commit messages. Git reads them with git interpret-trailers. git-interpret-trailers
The Linux kernel uses Assisted-by: for AI help. Its rules say AI agents must not add Signed-off-by:. A human must add it to certify the DCO. Linux kernel: AI coding assistants
Copilot's commits do not use these kernel trailers. Use the kernel convention only if your project follows the kernel's rules.
Recommendation
For Copilot cloud agent commits, the strongest check is the signed commit plus the linked session log. Require signed commits on protected branches. Merge with squash or merge commits, not rebase. Do not rely on the badge alone.
If you run your own agents, use a per-agent identity and signed trailers. githug does this today: each agent gets its own key and short-lived tokens, and its commits name the accountable human. The hug CLI sets this up, and it is free during the beta. Co-authored-by for the human is opt-in and off by default. Anyone can check a commit at githug.ai/v. This applies only if you run agents that push with git directly.
I did not verify the exact REST response fields beyond verified_at, which the signature doc lists.