Page MenuHomePhabricator

Create a service to call a CoPE model with given policy text for given content
Closed, ResolvedPublic

Description

Summary

T431286: Call CoPE models for edits that are made needs a way to call the CoPE model with a given policy text for a given content to evaluate.

Acceptance criteria

  • A service method exists that allows a caller to get the response of the CoPE model for the provided content policy text and content to evaluate
  • Network calls are retried up to two times

Related Objects

StatusSubtypeAssignedTask
ResolvedDreamy_Jazz
ResolvedMPostoronca-WMF
ResolvedFeatureDreamy_Jazz
ResolvedDreamy_Jazz
DeclinedNone
DeclinedGGoncalves-WMF
ResolvedMPostoronca-WMF
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedMPostoronca-WMF
ResolvedMPostoronca-WMF
Resolvedkostajh
Resolvedkostajh
ResolvedMPostoronca-WMF
Resolvedkostajh
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz

Event Timeline

Change #1311119 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/WikimediaAntiAbuse@master] Create the ContentPolicyEvaluator service

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

Dreamy_Jazz renamed this task from Create a service to call a CoPE model with given policy text(s) for a given edit to Create a service to call a CoPE model with given policy text for given content.Jul 15 2026, 11:39 PM
Dreamy_Jazz updated the task description. (Show Details)

Evaluating an edit will need T431291: Implement mechanism for deciding which edits are checked for a given policy to happen, because the content is likely to be different for each policy text (as the policy text will usually have a structure that is specified and the content being evaluated will need to follow it)

Therefore, this just focuses on doing this evaluation for a given policy text and content string. Converting an edit to a content string will be done likely as part of T431291: Implement mechanism for deciding which edits are checked for a given policy

Change #1311119 merged by jenkins-bot:

[mediawiki/extensions/WikimediaAntiAbuse@master] Create the ContentPolicyEvaluator service

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

Dreamy_Jazz updated the task description. (Show Details)

This will be QA'd through other tickets