Wikipedia:Bots/Requests for approval/DefconBot
- 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
Approved.
Operator: A930913 (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 15:29, Wednesday May 14, 2014 (UTC)
Automatic, Supervised, or Manual: Automatic
Programming language(s): Edits performed by pywikibot.
Source code available: On the labs. (/data/project/defconbot)
Function overview: VoxelBot is dead. Long live DefconBot!
Links to relevant discussions (where appropriate):
Edit period(s): On the half and hour. Calculated chance of defcon change = ~30% giving an effective rate of once per hour and a half.
Estimated number of pages affected: 1
Exclusion compliant (Yes/No): No
Already has a bot flag (Yes/No): No
Function details: A new mathematical approach to automatically updating the defcon. There is already the precedent set by VoxelBot for updating the defcon automatically, so the discussion is mainly about the new metric.
ClueBotNG not only reverts vandalism, but also scores every edit with its ANN. I have recorded over the period of a month the sum of these scores every minute. [1] I have dubbed this metric the ClueBot Vandal Score (CVS). The CVS, at any one time, gives the approximate quantity of vandalism currently being added to the wiki. One can take an average (or sum, for it matters not which) of these scores over a period of time, for instance half an hour, to work out a score for said period of time.
Using the aforementioned history collected, we can distribute a percentage of the time we want a particular defcon to be spent on and calculate the thresholds required to achieve those percentages. I have done some graphing and these percentages look good.
Defcon Level | Percentage of time | Triggered |
---|---|---|
1 | 1% | Monday & Tuesday peak |
2 | 10% | Weekday peak |
3 | 20% | Weekend peak |
4 | 60% | |
5 | 9% | Daily minimum |
The bot is currently updating the template User:DefconBot/defcon
The current values are:
- level = 0
- info = Cannot determine vandalism level according to DefconBot
- sign = 05:31, 2 September 2016 (UTC)
A live visualisation of the vandalism stats is at //tools.wmflabs.org/cluestuff/stats.html
I have spent a long time trying to make a mathematical formula to include the complexities of vandals vs counters, but I have come to the realisation that current metric proposed, however simple, is the best one. Other metrics can be updated or added with further requests. 930913(Congratulate) 15:29, 14 May 2014 (UTC)[reply]
Discussion
editNote: This bot appears to have edited since this BRFA was filed. Bots may not edit outside their own or their operator's userspace unless approved or approved for trial. AnomieBOT⚡ 16:02, 14 May 2014 (UTC)[reply]
- Derp.
Fixed 930913(Congratulate) 20:36, 14 May 2014 (UTC)[reply]
- Derp.
Pinging people who have recently updated the template manually: K6ka, Novusuna, Josve05a, TheMesquito, BethNaught, Eyesnore, Slazenger & Jeffrd10. 930913 {{ping}} 21:43, 14 May 2014 (UTC)[reply]
- ...so, does this mean I lose my job? :( --k6ka (talk | contribs) 22:16, 14 May 2014 (UTC)[reply]
- It seems to me that measuring the rate of vandalism is better than the rate of reversion. I'd be happy to see this have a test run - if the techy people who know what they're doing think it's ok. BethNaught (talk) 06:41, 15 May 2014 (UTC)[reply]
- So would I. I'm in support of this new bot, as it'll hopefully return more accurate results than just how much vandalism is being reverted (the more vandalism reverted, the better. That doesn't really help much as it pretty much proves that the anti-vandalism team on duty is able to handle things or whatnot). I do have concerns for this template when ClueBot NG goes down, as it does often thanks to WMF Labs... what will this template display if CBNG data is not available? --k6ka (talk | contribs) 10:55, 15 May 2014 (UTC)[reply]
- It seems to me that measuring the rate of vandalism is better than the rate of reversion. I'd be happy to see this have a test run - if the techy people who know what they're doing think it's ok. BethNaught (talk) 06:41, 15 May 2014 (UTC)[reply]
- I'd also like to see this get a trial run; this seems to be a better method of measuring vandalism than reverts per minute. I share K6ka's concerns about what happens when ClueBot goes offline. Some kind of fallback is needed, maybe even something as simple as setting the defcon to 1 with a note that CBNG is down. Novusuna talk 17:21, 15 May 2014 (UTC)[reply]
@K6ka: It means you've been promoted
So I've made a separate script that will check if the CBNG feed is working and if not, fail into a level 0 update. (Yes, level 0 exists.)
So, failure scenarios:
- CBNG goes down: No edit is made on the half hour, though one minute later, the failedit is made. When CBNG comes back up, the first edit may be based on old data.
- CBNG is up, but the feed is down: As #1
- CBNG or the feed messes up and slowly trickles partial information through: May give false (lesser) levels, but if less than 1/min, the failedit should fire.
- Main DefconBot script fails: No edits.
- Labs fails: No edits.
930913 {{ping}} 23:42, 15 May 2014 (UTC)[reply]
- @A930913: Well, seeing that WMF Labs causes a lot of problems (such as disabling ClueBot NG and making bots edit whilst logged out, tripping edit filters from head to toe while recent changes patrollers watch bewildered, scratching their heads). While I know that a level 0 existed on the template, I'm not actually sure how to get it to show. It would be useful for me (and anyone reading this) to know so in case WMF does screw up, I can edit the template with level 0 manually. --k6ka (talk | contribs) 03:08, 16 May 2014 (UTC)[reply]
- @K6ka: Like the good old days. Though a human is usually capable of working out a non zero level. (Even if it is a lv1 "OMG ClueBot is down".) 930913 {{ping}} 12:13, 16 May 2014 (UTC)[reply]
VoxelBot is still active, it seems. Are you going to coordinate the replacement with Fox Wilson or whoever's responsible for the bot right now? — Earwig talk 04:22, 31 May 2014 (UTC)[reply]
- Given that Wlison and Vacation9 have both been AWOL for over a month each, VoxelBot editing only once a day at midnight, and Joseva's attempts to contact them having failed, do you consider that to be necessary? Should we not at least have a trial run to see if it actually works? BethNaught (talk) 21:20, 31 May 2014 (UTC)[reply]
- I never said anything about not having a trial. The bot is already doing one in its userspace, so we should figure out the situation on the main template before testing it there. The issue is two bots editing over each other on the same page, which is problematic and should be resolved next. I will try to contact Fox and Vacation9. — Earwig talk 23:27, 31 May 2014 (UTC)[reply]
- I apologize if I have appeared to have been unresponsive; I have tried to respond to inquiries on my talk page regarding VoxelBot, indicating I was no longer able to maintain it. VoxelBot is currently running on WMFLabs; I'm not sure why it isn't making updates more frequently. I am completely okay with replacing VoxelBot with a different bot, and will stop the job which is updating the template when this bot is approved. Vacation9 23:37, 31 May 2014 (UTC)[reply]
- I never said anything about not having a trial. The bot is already doing one in its userspace, so we should figure out the situation on the main template before testing it there. The issue is two bots editing over each other on the same page, which is problematic and should be resolved next. I will try to contact Fox and Vacation9. — Earwig talk 23:27, 31 May 2014 (UTC)[reply]
- Oh, hello. My apologies if I have been unresponsive as well (thanks Earwig for pinging me), I'm also in support of DefconBot replacing VoxelBot. With regards to stopping VoxelBot, I can do that as well (let me know on IRC, I'm "fwilson", and I'll get to it faster probably). Thanks for writing this! It's a Fox! (What did I break) 23:40, 31 May 2014 (UTC)[reply]
- I've stopped VoxelBot from running in the future. It's a Fox! (What did I break) 23:42, 31 May 2014 (UTC)[reply]
- On that note, {{BotTrial}} Should be enough time to see the different patterns in action on the template. — Earwig talk 23:44, 31 May 2014 (UTC)[reply]
- Never mind. Since the plan is for the bot to just edit its userspace and for that to be transcluded onto the template, a trial is not needed.
Approved. — Earwig talk 00:05, 1 June 2014 (UTC)[reply]
- Never mind. Since the plan is for the bot to just edit its userspace and for that to be transcluded onto the template, a trial is not needed.
- On that note, {{BotTrial}} Should be enough time to see the different patterns in action on the template. — Earwig talk 23:44, 31 May 2014 (UTC)[reply]
- I've stopped VoxelBot from running in the future. It's a Fox! (What did I break) 23:42, 31 May 2014 (UTC)[reply]
- 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.