Skip to content

ci: refuse pull requests that credit an AI agent - #865

Merged
ExtraToast merged 2 commits into
mainfrom
ci/refuse-agent-attribution
Nov 10, 2026
Merged

ExtraToast merged 2 commits into
mainfrom
ci/refuse-agent-attribution

Conversation

@ExtraToast

Copy link
Copy Markdown
Contributor

What changed

Pins the Repository Hygiene workflow to github-workflows v0.46.0 and adds edited to the pull_request types where it was missing. v0.46.0 adds the Agent Attribution Guard job: on every pull request it refuses a title, body, commit author, Co-Authored-By trailer or commit message line that credits an AI agent, model or provider. Human co-authors who are not tied to an AI stay allowed.
The Main ruleset file (.github/rulesets/main.json) now lists repository-hygiene / Agent Attribution Guard as a required status check beside Pipeline Complete. The file only takes effect once the ruleset is applied to the repository (scripts/apply-ruleset.sh in github-workflows); that needs admin rights and is not done by this change.

Why

Owner decision: no commit or pull request credits an AI agent, and the check blocks in every repository that consumes github-workflows. edited re-runs the guard when a title or body is changed, since it reads both.

Verification

The pull request's own Repository Hygiene run executes the new job against this branch; its result is the CI state of this pull request.

Pin the Repository Hygiene workflow to github-workflows v0.46.0, which adds the Agent Attribution Guard job, and re-run it when a pull request is edited.
@ExtraToast ExtraToast added the type: chore Maintenance work without intended behavior change. label Nov 10, 2026
@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Shape

bucket files additions deletions
CI 2 +11 -2

Coverage

Baseline: main @ 71c4c73.

metric this branch main diff
statements 99.76% 99.76% 0.00
branches 98.22% 98.22% 0.00
functions 100.00% 100.00% 0.00
lines 99.73% 99.73% 0.00

This pull request changed no covered line.

@ExtraToast
ExtraToast merged commit 1971c4e into main Nov 10, 2026
22 checks passed
@ExtraToast
ExtraToast deleted the ci/refuse-agent-attribution branch November 10, 2026 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: chore Maintenance work without intended behavior change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant