Skip to content

ci: scan attributions with the shared check_coauthor.py - #28

Merged
frapercan merged 1 commit into
developfrom
ci/attribution-guard-script
Nov 20, 2026
Merged

frapercan merged 1 commit into
developfrom
ci/attribution-guard-script

Conversation

@frapercan

Copy link
Copy Markdown
Owner

What

Replaces the inline-pattern attribution guard with the script-based one PROTEA uses. .github/workflows/coauthor-guard.yml now calls scripts/check_coauthor.py for both the commit messages and the pull request body.

Why

  • The inline patterns had drifted: the body scan missed the bracketed footer and neither scan knew the session trailer.
  • The old workflow checked out the head commit, so a branch could run its own copy of the patterns. The new one runs the copy in the merge commit.
  • The stack has one rule for every repository: no AI attribution in any commit message or pull request.

How it was checked

  • The workflow and the script are byte for byte the ones on PROTEA's integration/three-families at 9434b0e.
  • The new guard scans this pull request's own commit and body in this run.
  • The workflow and job keep their names (coauthor-guard, scan), so branch protection keeps requiring the same check.

Part of the closure of the experimental project: the same attribution guard in every repository of the stack.

The guard carried its patterns inline in the workflow, as PROTEA's did
before the two scans drifted apart: the pull request body scan missed
the bracketed footer, neither scan knew the session trailer, and the
workflow checked out the head commit, so a branch could run its own
copy of the patterns. This takes the version PROTEA runs on
integration/three-families (9434b0e): one script,
scripts/check_coauthor.py, read by both scans, and the workflow read
from the merge commit. The workflow and job keep their names
(coauthor-guard, scan), so branch protection requires the same check.
@frapercan
frapercan merged commit 4ea806d into develop Nov 20, 2026
8 checks passed
@frapercan
frapercan deleted the ci/attribution-guard-script branch November 20, 2026 12:43
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