Page MenuHomePhabricator

Provide AbuseFilter condition for revertrisk threshold
Open, Needs TriagePublic

Description

Context

We'd like to be able to invoke AbuseFilter actions (e.g. rate limiting; show a CAPTCHA; etc) if an edit doesn't pass the "likely to be reverted" revertrisk threshold.

Proposal

Introduce an AbuseFilter condition that utilizes the pre-save revertrisk API (T356102: Allow calling revertrisk language agnostic and revert risk multilingual APIs in a pre-save context).

We'd have to think about how we handle page creation scenarios, because the revert risk model doesn't handle those too well (AIUI).

Consequences

  • Abuse mitigation tooling can invoke actions before an edit is saved based on a revert risk score

Event Timeline

kostajh changed the task status from Stalled to Open.Jul 2 2024, 12:30 PM

Per https://phabricator.wikimedia.org/T356102#9935357, the feature is now usable on ml-staging.

Change #1051837 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/extensions/ORES@master] [WIP] Add AbuseFilter variable for revertrisk score

https://gerrit.wikimedia.org/r/1051837

Change #1051838 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[integration/config@master] zuul: Add AbuseFilter as phan & test dependency for ORES

https://gerrit.wikimedia.org/r/1051838

Change #1051838 merged by jenkins-bot:

[integration/config@master] zuul: Add AbuseFilter as phan & test dependency for ORES

https://gerrit.wikimedia.org/r/1051838