Skip to content

armgit / qm

Public Imported from GitHub
0

Multiplayer agent harness for work.

Omit AI authorship attribution from contributions (#1046)

Regan Bell3ccb953ddb6f
diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml
index ee33caf05..5dc027c03 100644
--- a/.github/workflows/cicd.yml
+++ b/.github/workflows/cicd.yml
@@ -98,7 +98,7 @@ jobs:
with:
fetch-depth: 0
persist-credentials: false
- - name: Reject GitHub noreply addresses in Co-Authored-By trailers
+ - name: Reject AI coauthors and GitHub noreply coauthor addresses
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
@@ -108,12 +108,14 @@ jobs:
offenders=""
for sha in $(git rev-list "$base..$HEAD_SHA"); do
if git log -1 --format='%(trailers:key=Co-authored-by,valueonly)' "$sha" \
- | grep -qi '@users\.noreply\.github\.com'; then
+ | grep -Ei '(@users\.noreply\.github\.com|noreply@(openai|anthropic|cursor)\.com|^(Codex|Claude Code|Claude (Opus|Sonnet|Haiku)|Copilot|Cursor)([[:space:]<]|$))' > /dev/null; then
offenders="$offenders $sha"
fi
done
[ -n "$offenders" ] || exit 0
echo "$offenders" | xargs git show -s --format='%h %s' >&2
+ echo "Co-Authored-By trailers must credit human contributors, not AI tools." >&2
+ echo "Remove Codex, Claude, and other AI coauthor trailers from the listed PR commits." >&2
echo "Co-Authored-By trailers must not use @users.noreply.github.com addresses:" >&2
echo "GitHub credits them to whichever account owns that username, which may be a stranger." >&2
echo "This repo bans all such addresses, including your own privacy address;" >&2
diff --git a/AGENTS.md b/AGENTS.md
index d3661e12d..1c890a409 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -6,6 +6,11 @@ To run and test, see [`README.md`](./README.md).
Two habits that keep task-focused changes from scarring the rest of the repo:
+- **Do not add AI authorship attribution to commits or pull requests.** Omit
+ `Co-authored-by` trailers for Codex, Claude, or other AI tools, and omit
+ tool-generated attribution footers such as `Generated with Codex`. Preserve
+ legitimate human coauthors. CI rejects AI coauthor trailers on new PR commits;
+ do not rewrite existing repository history to remove attribution.
- **Fix every instance, not just the reported one.** When you find a bug or a pattern
worth changing, grep the whole repo (`src/`, `plugins/`, `test/`, `scripts/`) for the
same pattern and fix all of it in the same change. One autocorrected call site with