Skip to content

pr-text: fail AI attribution on every ready PR, and in added patch files - #21

Closed
RyanTheTide wants to merge 1 commit into
mainfrom
hygiene/pr-text-attrib-always
Closed

RyanTheTide wants to merge 1 commit into
mainfrom
hygiene/pr-text-attrib-always

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

What: close the gaps that let AI attribution merge after the 11-24 ban (merged-PR audit 2026-12-01, section 6): attribution in the title, body, the author's commits or lines added to *.patch/*.diff files now fails on every ready PR, whatever its age. Tested:/Risk: structure stays warn-only for PRs opened before 2026-11-25; drafts still only warn. Also catches a trailer folded into a sentence. Commits authored before the cutoff are skipped (no force push, so they can't be fixed).

Tested: no runtime change (CI only). bash .github/aurora/pr-text-test.sh: 30/30 ok (8 new). Ran the new script on real PR text: fails linux#3374 and mesa#1307 (bodies) and fedora-aurora#575 (wine-sve-guard.patch added line, via the workflow's jq filter); passes mesa#937 and aura#391 (prose quoting the trailer).

Risk: two-way · none (no runtime change). Older open PRs that still carry attribution in their body will go red on their next edit/push; the B1-HYGIENE lane is scrubbing those bodies now.

Not yet: pr-text isn't a required status on any main ruleset, so a red check still doesn't block a merge. Making it required is an owner call.

The 2026-12-01 merged-PR audit found 31 PRs merged after the 11-24 ban
with AI attribution in the body, and Assisted-by lines shipped inside
packages/*.patch files (alarm-aurora#495, fedora-aurora#575). Most were
opened before 2026-11-25, where every finding was a warning.

- AI attribution in the title, body, commits or added patch lines now
  fails on any ready PR, whatever its age. Tested:/Risk: structure stays
  warn-only for PRs opened before the cutoff; drafts still only warn.
- A trailer folded into a sentence ("Fixed. Assisted-by: LLM (X)") is
  caught; inline-code quotes still pass.
- Lines a PR adds to *.patch/*.diff files are checked.
- Commits authored before the cutoff are not checked (they cannot be
  rewritten without a force push).

Tests: pr-text-test.sh 30/30; the new script fails linux#3374,
mesa#1307 and fedora-aurora#575 and passes mesa#937 and aura#391.

Signed-off-by: Ryan Murray <[email protected]>

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Verdict: MERGE at 16a5559

No runtime change; meets the 12-01 bar (better than before, cannot break a Mac).

Checked: ran pr-text-test.sh at this head: all checks ok (count >= 30 guard). Stricter rule (attribution fails on every ready PR) checked against the backlog: 0 of 263 open ready linux PRs carry an attribution trailer in their commits, so no merge is newly blocked.

Blockers: none (CI to finish green).

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Replaced by #22: same tree, reworded commit message (it quoted an example trailer, so the new check failed on itself). No force push.

@RyanTheTide RyanTheTide closed this Dec 1, 2026
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.

1 participant