Wikipedia:Bots/Requests for approval/AnomieBOT III


 * The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA. The result of the discussion was Symbol keep vote.svg Approved

AnomieBOT III
Operator:

Time filed: 03:59, Tuesday January 7, 2014 (UTC)

Automatic, Supervised, or Manual: Automatic

Programming language(s): Perl

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

Function overview: Delete broken redirects

Links to relevant discussions (where appropriate): Bots/Requests for approval/Yet Another Redirect Cleanup Bot, WP:BOTREQ

Edit period(s): Periodic

Estimated number of pages affected: However many broken redirects people create. Currently there are about 48.

Exclusion compliant (Y/N): Yes

Adminbot (Yes/No): Yes

Already has a bot flag (Y/N): No

Function details: The bot will do the following:
 * Attempted interwiki redirects are replaced with soft redirect
 * Other broken redirects are deleted if the following are true:
 * The redirect has only 1 revision OR was created more than 4 days ago (or some other suitable delay determined by the community, at minimum 24 hours)
 * The redirect is not in the User or User talk namespaces
 * The target page has no log entries less than 12 hours ago
 * The redirect has 10 or fewer incoming links (number may be adjusted by community consensus)
 * The bot is not excluded, e.g. with nobots
 * When a broken redirect is deleted, any subpages, and the talk page (if any) and its subpages will be deleted, unless:
 * The page is a talk page with an existing subject page
 * The page is tagged with G8-exempt
 * The page has more than 10 incoming links (number may be adjusted by community consensus)
 * The bot is excluded, e.g. with nobots
 * The parent subpage wasn't deleted
 * Skipped redirects will be reported to User:AnomieBOT III/Broken redirects

Discussion
This is, of course, a replacement for User:Yet Another Redirect Cleanup Bot and will be an adminbot. Anomie⚔ 03:59, 7 January 2014 (UTC)
 * Anomie has written a number of bots and has proven a conscientious operator. Whilst this is a rewrite (presumably due to unavailable source of the existing bot), and their first adminbot, I have faith in studious deployment. However, given I'm unable to review the work of the bot, I'd be at a disadvantage if I approved a trial. Sysop BAG members who may be around and interested could include, , or better yet  (operator of Yet Another Redirect Cleanup Bot). Josh Parris 06:05, 7 January 2014 (UTC)
 * The rewrite is more because I prefer to run everything under the same bot framework rather than under a hodgepodge of different code in different languages; the source for Y.A.R.C.B. was available until sometime yesterday, and that's where I picked up the "10 or fewer incoming links" condition. Anomie⚔ 12:36, 7 January 2014 (UTC)
 * The trial could be to report which pages the bot would delete, if necessary. Anomie⚔ 12:36, 7 January 2014 (UTC)

There is a strong community consensus (see Requests for adminship/RedirectCleanupBot) for this task to be performed by an adminbot - thank you Anomie for agreeing to take it on. I would propose reducing the condition "The redirect was created more than 4 days ago" to "24 hours ago". This waiting time was not a feature of the original bot and no issues were encountered as a result. If the redirect has only one revision, creation a couple of days ago should prevent deletion - it will most likely result from an article being created with a typo/miscapitalisation and being renamed before being speedy deleted for not meeting Wikipedia's inclusion criteria. No need for such redirects to hang around for 4 days. If for some reason someone has created a redirect to an article they will create later, 24 hours should be more than sufficient. WJBscribe (talk) 11:06, 7 January 2014 (UTC)
 * The 4-day waiting period was part of Y.A.R.C.B. I'm a bit wary of following the example of a bot that last ran 5 years ago over one that ran until last year, although I also have no opposition to adjusting the delay (within reason, 24 hours I think would be the minimum) based on a consensus at someplace like WP:AN or WP:VPR. Anomie⚔ 12:36, 7 January 2014 (UTC)
 * The four day waiting period was for deleting pages that had more than one revision. -- Chris 02:25, 8 January 2014 (UTC)
 * Looking at the code, it seems that it will refuse to delete anything newer than 4 days, and I just misread the BRFA about the "1 revision" thing. Anomie⚔ 02:35, 8 January 2014 (UTC)
 * I am comfortable with this task, either at the 4 day or 24 hour timing. How would you like the trial to proceed? Should a crat temp-flag the bot or are you comfortable running it on your main account with a unique deletion summary?  MBisanz  talk 02:24, 8 January 2014 (UTC)
 * Either way is fine. But first I think I'll adjust things slightly based on what Chris G pointed out above. Anomie⚔ 02:35, 8 January 2014 (UTC)
 * OK, if it's redirects with more than 1 revision, I agree that we should wait at least 4 days. But no need to wait for 1 revision redirects. WJBscribe (talk) 13:43, 8 January 2014 (UTC)
 * Agreed. The only potentially-concerning way to get a broken 1-revision redirect is if someone does page-move vandalism and then someone moves it to a different title for some reason (either move-without-redirect or immediately delete the resulting redirect at the bad title) and fails to clean up any existing redirects to the bad title. And I doubt that happens often enough to worry about. BTW, the changes I mentioned at 02:35 are done now (and were as of about 2:48). Anomie⚔ 14:16, 8 January 2014 (UTC)
 * on your existing admin account with a deletion summary linking here.  MBisanz  talk 01:06, 11 January 2014 (UTC)
 * . Edits are [//en.wikipedia.org/w/index.php?title=Special:Contributions/Anomie&offset=20140113033700&target=Anomie&limit=6 here], deletions are [//en.wikipedia.org/w/index.php?title=Special:Log&offset=20140113033600&type=delete&user=Anomie&limit=44 here]. The bug with the bot status page placing "&gt;1 revision and &lt;4 days old" under the "Skipped" section rather than the "Recently changed" section is [//en.wikipedia.org/w/index.php?diff=590456154&oldid=589703000 already fixed], BTW. Anomie⚔ 03:56, 13 January 2014 (UTC)
 * If a malicious user replaced an obscure page with a deliberately broken redirect, and it went without detection for 4 days, would any safeguards be able to prevent its deletion? Jackmcbarn (talk) 00:28, 19 January 2014 (UTC)
 * The 4-day waiting period is the safeguard, along with the bot logging such redirects. Anomie⚔ 01:14, 19 January 2014 (UTC)

Trial was completed, but nothing was said from any BAG member. 46.107.88.236 (talk) 16:49, 24 January 2014 (UTC)

 MBisanz  talk 01:59, 26 February 2014 (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 WT:BRFA.