Skip to content

ci: Label PRs from potentially automated accounts with AgentScan - #26991

Draft
2010YOUY01 wants to merge 1 commit into
apache:mainfrom
2010YOUY01:codex/agentscan-pr-label
Draft

2010YOUY01 wants to merge 1 commit into
apache:mainfrom
2010YOUY01:codex/agentscan-pr-label

Conversation

@2010YOUY01

Copy link
Copy Markdown
Member

Which issue does this PR close?

  • Closes #.

Rationale for this change

Label PRs from potentially automated accounts with AgentScan

How would this automation look like

Here is a demo in Node.js repo, this PR adds something similar

It will automatically add the Prolific Author label and one AI-policy reminder when a PR author is classified as agents-like.

Prolific Author is introduced by @alamb in #23839 (comment), now it's manually managed, maybe we can rename it to something like PotentialAgents:auto-detected and PotentialAgents:community-flagged later.

How it works

  1. CI installs the TypeScript packages @unveil/vk and @unveil/identity through npm.
  2. @unveil/vk fetches the PR author’s public GitHub activity.
  3. @unveil/identity scores the activity locally using signals such as 24/7 activity or 100 PRs per day. Authors classified as mixed or automation receive the label and policy reminder.

Note identity is the core scoring engine behind AgentScan, which the same as what Node.js repo is using in their CI

Example user scan:

What changes are included in this PR?

Added 2 GitHub workflow. Their top comments explains their inner mechanism.

What is the testing strategy for this PR?

I think it's not easy to test before merge, so I let Codex double checked that this will likely work.

Are there any user-facing changes?

@github-actions github-actions Bot added the development-process Related to development process of DataFusion label Nov 1, 2026
@alamb

alamb commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

its like we are now entering the email spam/spamassasin loop game that email providers had to deal with for many years

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think the idea in general is great.

package-manager-cache: false

- name: Install AgentScan's analyzer
# Pin both packages so the classification rules do not change between runs.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I worry about the security implications of running this package

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I agree with the concern about supply-chain security issue.

It can't get installed like nodejs, because we can only use whitelisted GitHub actions from ASF (not sure if it's possible to add it to the ASF whitelist)

@2010YOUY01

Copy link
Copy Markdown
Member Author

@alamb Thank you for the review!

I don't have a good idea for the above issues yet.

I'll try to revisit it later, but if anyone knows how to fix it, feel free to take over this PR and finish it.

@2010YOUY01
2010YOUY01 marked this pull request as draft November 2, 2026 10:54
@alamb

alamb commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Maybe as other in the ecosystem figure out the agent spam thing there will be a more widely adopted action 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

development-process Related to development process of DataFusion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants