Wikipedia:Bots/Requests for approval/AnomieBOT III 7


 * The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at Bots/Noticeboard. The result of the discussion was

AnomieBOT III 7
Operator:

Time filed: 13:35, Thursday, April 29, 2021 (UTC)

Function overview: Apply pending changes protection to TFAs while they are on the Main Page.

Automatic, Supervised, or Manual: Automatic

Programming language(s): Perl

Source code available: User:AnomieBOT/source/tasks/TFAProtector.pm

Links to relevant discussions (where appropriate): Wikipedia talk:Today's featured article, Special:PermanentLink/1017460384

Edit period(s): Hourly, but typically will only apply protection once per day.

Estimated number of pages affected: 1 per day

Namespace(s): Article

Exclusion compliant (Yes/No): N/A, does not edit

Adminbot (Yes/No): Yes

Function details: The bot will apply pending changes protection to a TFA about an hour before it begins to be featured on the main page, set to expire an hour after the featuring ends. The day's TFA is identified using the date's subtemplate of Template:TFA title.

It will also re-check each hour to ensure that someone has not removed the protection. If an existing PC protection would end before the bot's protection would, the bot will extend it. It will not shorten any existing PC protection that lasts longer than the protection it would apply.

Discussion
Note this task is itself a trial, per the RFC. The code at present will refuse to run beyond May 31, 2021 at 22:00 UTC (i.e. it will protect TFAs through the end of May, but will stop before it would protect June 1's TFA). After that it will be up to interested people to hold another RFC to determine whether consensus exists to continue the task. If that consensus exists, I'll remove the relevant code to allow the bot to continue running (without a subsequent BRFA).

I ran the task once already with a hack to point it at Pending changes/Testing/9 instead of the actual TFA (and with the reason hacked too), to validate that the stabilize API call worked as expected. I'd have used a userspace page, but PC protection can't be used in userspace. Anomie⚔ 13:35, 29 April 2021 (UTC)
 * This allows you to start immediately but end on 31 May as described above. Primefac (talk) 13:53, 29 April 2021 (UTC)
 * First two protections: Anomie⚔ 23:23, 29 April 2021 (UTC)
 * Today's protection: Anomie⚔ 00:51, 1 May 2021 (UTC)
 * Today's protection: Anomie⚔ 01:57, 2 May 2021 (UTC)
 * Today's protection: Anomie⚔ 00:11, 3 May 2021 (UTC)
 * Two more: Anomie⚔ 12:06, 5 May 2021 (UTC)
 * Today's protection: Anomie⚔ 10:45, 6 May 2021 (UTC)
 * Today's protection: Anomie⚔ 11:28, 7 May 2021 (UTC)


 * Trial note (from on the bot's talk), bot needs to not protect a page if it already has protection. Primefac (talk) 01:00, 11 May 2021 (UTC)
 * Anomie⚔ 11:04, 11 May 2021 (UTC)

Here are all the log entries. Of note: As noted above, even if this is approved now I won't run the task until a followup RFC determines that the task should proceed. As far as this BRFA goes, I'd personally go ahead and approve it with that understanding since there's nothing left for BAG to do here other than rubber-stamping that RFC. Anomie⚔ 22:27, 31 May 2021 (UTC)
 * The bug mentioned above for Ted Kaczynski. Note the fix worked, it did not re-protect after and it didn't incorrectly change the next two.
 * Die Hard was not protected for May 13, as it was already indef PC protected.
 * Same for Yazid I. Note that even though removed the protection at 00:09 and the bot's protection normally doesn't end until 01:00, it correctly didn't reapply the protection for that last 51 minutes since the day was already passed.
 * As mentioned this is mostly a rubber-stamp as there still needs to be a follow-up RFC, but I don't see any issues with the task as it is described. Primefac (talk) 13:45, 1 June 2021 (UTC)
 * The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at Bots/Noticeboard.