In order to build efficient apps using the Revert Risk Model (T314385), we need to add revert risk scores to a revision/page change stream stream.
In T331401: Design event schema for ML scores/recommendations on current page state, we designed a mediawiki/page/prediction_classification_change schema based on page change. This is intended to be a generic mediawiki page prediction change data model, that can be used for any page based prediction, like revert risk scores.
This schema is already being used for the mediawiki.page_outlink_topic_prediction_change.v1 stream. The mediawiki.page_outlink_topic_prediction_change.v1 stream is not currently expose publicly via EventStreams, but it (and other ORES revision score streams) could be.
We'd like the revert risk model scores to be exposed via event streams too, to make it "usable by other tools (e.g. Huggle, SWViewer) on a global level, for cross-wiki patrolling"
Options
- Produce events to a new new mediawiki.page_revert_risk_prediction_change.v1 stream
Either via via changeprop + via LiftWing or via a Flink streaming enrichment job (T338792). This is the same approach currently being used for the various revision score (AKA ORES) models, and for mediawiki.page_outlink_topic_prediction_change.v1
Expose the stream publicly via EventStreams API
- Add the revert risk scores directly into the mediawiki.recentchange stream.
Pro: mediawiki.recentchange is widely used.
Con: mediawiki.recentchange does not have a deterministic schema, so it can't easily be used in SQL based systems, which means it would not be queryable along side of other MediaWiki data in the WMF Data Lake. It also could not be easily used to ingest revert risk scores into ElasticSearch, like outlink topic predictions are.


