Skip to content

docs: document the DCO signoff requirement in AGENTS.md (and mirror it) #1979

Closed

Description

@cliffhall

The repo runs a DCO check on every PR (the probot DCO app) that fails unless every commit carries a Signed-off-by: trailer. It is a hard merge gate, and it is documented nowhere — not in AGENTS.md, CONTRIBUTING.md, README.md, or .github/copilot-instructions.md.

That combination is the problem: the rule is invisible until it fails, and by then the remedy is a history rewrite. It blocked #1978, where both commits had to be re-signed via git rebase --signoff and force-pushed.

What to add

A bullet in AGENTS.md's "When work is complete" list, beside the other PR-hygiene gates (Closes #<ISSUE_NUMBER>, the version label), covering:

  • The requirement — every commit needs Signed-off-by: Author Name <[email protected]>; the DCO check fails the PR otherwise.
  • The prevention — git commit -s, or git config format.signOff true once per clone so it is automatic. This is the part worth emphasizing: the failure mode is discovering it after pushing.
  • The repair — if commits are already pushed unsigned: git rebase HEAD~<n> --signoff then git push --force-with-lease. Note the standard rebase caveat (sole author, nobody else based on the branch).

Mirror it in the same PR

AGENTS.md's own maintenance rule names "the PR hygiene rules (Closes #N, version label)" as review-relevant, and requires review-relevant changes to be mirrored into .github/copilot-instructions.md in the same PR. So this is a two-file change — adding it to AGENTS.md alone would violate the rule being added. Keep the mirror a distillation (a line or two), not a copy.

Deliberately not CONTRIBUTING.md

External contributors do not open PRs here by policy — they file issues — so DCO never applies to them. Documenting it there would muddy the "issues, not PRs" message. This is a maintainer-facing gate, which is AGENTS.md's audience.

Activity

  1. added this to the v2.2.0 milestone on Aug 11, 2026
  2. added
    documentation
    v2
    on Aug 11, 2026
  3. linked a pull request that will close this issuedocs: document the DCO signoff requirement #1982on Aug 12, 2026
  4. added a commit that references this issue on Aug 12, 2026
    f4529df
  5. self-assigned this
    on Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationv2

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions