Misplaced Pages

:Bot policy: Difference between revisions - Misplaced Pages

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editContent deleted Content addedVisualWikitext
Revision as of 19:44, 11 May 2008 view sourceIcemanCro (talk | contribs)12 editsNo edit summary← Previous edit Latest revision as of 23:38, 13 August 2024 view source Anomie (talk | contribs)Edit filter managers, Autopatrolled, Administrators33,946 edits Mass page creation: Move to WP:Editing policy#Mass page creation per WT:BOTPOL#RFC: Sever WP:MASSCREATE from WP:BOTPOL
(918 intermediate revisions by more than 100 users not shown)
Line 1: Line 1:
{{Pp-vandalism|small=yes}}
{{pp-dispute|expiry=May 11, 2008}}
{{short description|Misplaced Pages policy page}}
{| class="messagebox"
{{Pp-move-indef}}
| ]
| '''This page documents an official English Misplaced Pages ]
'''Parts of this policy have been recently reworked and rewritten'''. Those parts may still be in development, under discussion, or in the process of gathering consensus for adoption.
| {{shortcut|WP:B|WP:BOT|WP:BOTS}}
|} {{{Category|]}}}

{{nutshell|Automated or partially automated editing processes, known as "bots", must be harmless and useful, have approval, use separate user accounts and be operated responsibly.}}
{{botnav}} {{botnav}}
{{procedural policy|WP:BOTP|WP:BOTPOL}}
{{dablink|You may be looking for ], ], ], or for ], which has the shorthand address of ].}}
{{nutshell|Automated editing processes, known as "bots", must be harmless and useful, have approval, use separate user accounts, and be operated responsibly. This wiki also allows ] to be run, subject to ].}}
{{Behavioral policy list}}

'''Bot policy''' covers the operation of all bots and automated scripts used to provide automation of Misplaced Pages edits, whether completely automated, higher speed, or simply assisting human editors in their own work.


It also covers the work of the '''Bot Approval Group''', which supervises and approves all bot-related activity from a technical and quality-control perspective on behalf of the English Misplaced Pages community. The '''bot policy''' covers the operation of all ] and automated scripts used to provide automation of Misplaced Pages edits, whether completely automated, higher speed, or simply assisting human editors in their own work. It also covers the work of the ''']''' (BAG), which supervises and approves all bot-related activity from a technical and quality-control perspective on behalf of the ] community. ] may have their own bot policies which differ from this one.


==Overview== ==Definitions==
{{Main|Misplaced Pages:Bots/Dictionary}}
'''Bots''' (short for "]s") are generally programs or scripts that make automated edits without the necessity of human decision-making. '''Assisted editing''' covers specifically lower-speed tools and scripts that can assist users to make decisions but leave the actual decision up to the user (see ] below). Any program or tool which does not allow the user to view each edit and give an instruction to make that edit (that is, one which can edit without the operator looking at and approving the change) is considered to be a bot. ''']s''' are personalized scripts (typically, but not exclusively, written in javascript) that may automate processes, or may merely improve and enhance the existing MediaWiki interface. The '''] ("BAG")''' is a group of users with appropriate technical skills and wiki-experience, whose members are approved by the community to oversee and make decisions on bot activity and operation on-wiki for the community.
{{shortcut|WP:BOTDEF}}
* '''Bots''' (short for "]s") generally make automated changes or actions. After launching the bot, an assumption can be made that there is ''no further need'' for human decision-making.
* '''Assisted''' or '''semi-automated editing''' covers specifically lower-speed tools and scripts that can assist users to make decisions but leave the actual decision up to the user (see ] below).
* ''']s''' are personalized scripts (typically, but not always, written in JavaScript) that may automate processes, or may merely enhance the existing MediaWiki interface.
* The '''] (BAG)''' is a group of users with appropriate technical skills and wiki-experience, whose members are approved by the community to oversee and make decisions on bot activity and on-wiki operation for the community. The BAG also determine the classification as bot or assisted editing, in ambiguous cases. Formal work by MediaWiki ] is outside the scope of this policy.


==Bot usage==
Because bots are potentially capable of editing far faster than humans can, have a lower level of scrutiny on each edit than a human editor, may cause severe disruption if they malfunction or are misused, and are held to a high standard by the community, high standards are expected before a bot is approved for use on designated tasks. Operation of unapproved bots, or use of approved bots in unapproved ways outside their conditions of operation, is prohibited and may in some cases lead to blocking of the bot account and possible sanctions for the operator.
{{shortcut|WP:BOTUSE}}
Because bots:
* are potentially capable of editing far faster than humans can; and
* have a lower level of scrutiny on each edit than a human editor; and
* may cause severe disruption if they malfunction or are misused;
the community expects bots to meet high standards before they are approved for use on designated tasks. The operation of unapproved bots, or use of approved bots in ways outside their approved conditions of operation, is prohibited and may in some cases lead to blocking of the user account and possible sanctions for the operator. Note that high-speed semi-automated editing may effectively be considered bots in some cases (see ]), even if performed by a human editor. If in doubt, check.


===Bot accounts===
The bot approval group also determine the classification as bot or assisted editing, in ambiguous cases. Formal work by MediaWiki ] is outside the scope of this policy.
{{shortcut|WP:BOTACC}}
{{see also|Misplaced Pages:Username policy}}
Contributors should create a separate ] in order to operate a bot. The account's name should identify the bot function (e.g. ''<Task>Bot''), or the operator's main account (e.g. ''<Username>Bot''). In all cases, it should be immediately clear that the edits are made by an automated account, which is usually achieved by including ''Bot'' at the end of the account name. Bots must edit only while logged into their account. Tools not considered to be bots do not require a separate account, but some users do ] for non-bot but high-speed editing.


The contributions of a bot account remain the responsibility of its operator, whose account must be prominently identifiable on its user page. In particular, the bot operator is responsible for the repair of any damage caused by a bot which operates incorrectly. All ] apply to a bot account in the same way as to any other user account. Bot accounts are considered ] of their operator. To ensure compliance with ], IP editors wishing to operate a bot must first ] before operating a bot.
== Bot usage ==
''Note that higher speed or semi-automated processes may effectively be considered bots in some cases. If in doubt, check.''


Bot accounts should not be used for contributions that do not fall within the scope of the bot's designated tasks. In particular, bot operators should not use a bot account to respond to messages related to the bot. Bot operators may wish to ] a bot account's ] to their own.
=== Bot accounts ===
Contributors should create a separate ] in order to operate a bot. The account's name should identify the operator or bot function, and make the nature of the account clear by incorporating the word "bot", with exception for bots already active on other wikis. Tools not considered to be bots do not require a separate account, but some users do choose to make separate accounts for non-bot but high-speed editing.


{{anchor|The &quot;copyviobot&quot; flag}} <!-- Redirect from ] -->
The contributions of a bot account remain the responsibility of its operator, who must be prominently identifiable on its user page. In particular, the bot operator is responsible for the repair of any damage caused by a bot which operates incorrectly. All ] apply to a bot account in the same way as to any other user account. Bot accounts are considered alternative accounts of their operator for the purposes of the ].
====The "bot" flag====

{{shortcut|WP:BOTFLAG}}
Bot accounts should not be used for contributions that do not fall within the scope of the bot's designated tasks. In particular, bot operators should not use a bot account to respond to messages related to the bot. Bot operators may wish to ] a bot account's ] to their own.
Bot accounts will be marked by a ] as being in the ] upon BAG request. This flag reduces some of the technical limits imposed by the MediaWiki software. Edits by such accounts are hidden by default within ]. Bot accounts may also be added to the ] upon BAG request; this flag allows use of the API to add metadata to edits for use in the ].


==== The 'bot' flag ==== ====Activity requirements====
{{anchor|activity}}{{Shortcut|WP:BOTINACTIVE}}
Bot accounts will be marked by a ] upon bot approval group request as being in the "bot" user-group within MediaWiki. This is a flag on their account that indicates the account is used by a bot, and reduces some of the technical limits usually imposed by the Mediawiki software. Edits by such accounts are hidden by default within ].
Bot accounts that have had no logged actions or edits for two years, where the listed operator has also had no logged actions or edits for two years, will be deauthorized. Following a one-week notification period on the ], and the operator's talk page, prior task approvals will be considered expired and bot flags will be removed. Should the operator return and wish to reactivate the bot, a new ] (BRFA) must be completed.


====Bots directed to edit by other users====
Historically, being flagged as a bot account was distinct from the approval process; not all approved bots had that property. This stemmed from the fact that all bot edits were hidden from recent changes, and that was not universally desirable. Now that bot edits can be allowed to show up on recent changes, this is no longer necessary.
{{anchor|Bots operated by multiple users}}
{{Shortcut|WP:BOTMULTIOP}}
Some bots allow other editors to direct the bot to make an edit or other action. It is recommended and preferable to use ] to make the edit on the user's account directly. However, it can be permissible to instead make these edits via a bot account (particularly if necessary due to the actions being privileged), provided the following conditions are met:
# Disclosure: The identity of the Misplaced Pages user directing the edit/action must be publicly disclosed, typically by linking the username in the edit summary.
# Verification: The identity of the Misplaced Pages user must be reliably verified to the bot in a manner not easily faked, bypassed or avoided. Suitable methods include a non-trivial password, IP restrictions, wiki login or IRC hostname. If the bot is used to make sensitive actions, stronger methods of verification may be required.
# Competence: All users directing a bot must have the required skill and knowledge to ensure their actions are within community consensus.


=== Bot requirements === ===Bot requirements===
{{Shortcut|WP:BOTREQUIRE}}
In order for a bot to be approved, its operator should demonstrate that it: In order for a bot to be approved, its operator should demonstrate that it:
:* is harmless # is harmless
:* is useful # is useful
:* does not consume resources unnecessarily # does not consume resources unnecessarily
:* performs only tasks for which there is ] # performs only tasks for which there is ]
:* carefully adheres to relevant ] # carefully adheres to relevant ]
:* uses informative messages, appropriately worded, in any edit summaries or messages left for users # uses appropriate, informative wording in all edit summaries and messages left for users
:* provides a method of opting out of optional messages on user talk pages


The bot account's ] should identify the bot as such using the {{tl|bot}} tag. The following information should be provided on, or linked from, both the bot account's userpage and the approval request: The bot account's ] should identify the bot using the {{tl|bot}} tag. On both the bot account's userpage and in the approval request, the following information should be provided:
:* Details of the bot's task (or tasks) * Details of the bot's task(s)
:* Whether the bot is manually assisted or runs automatically * Whether the bot is manually assisted or runs automatically
:* When it operates (continuously, intermittently, or at specified intervals), and at what rate * Whether it runs continuously, intermittently, or at specified intervals, and at what rate
:* The language and/or program that it is running
:* The method of opting out of talk page messages (if that option is available)


====Performance====
While performance is ], bot operators should recognize that a bot making many requests or editing at a high speed has a much greater effect than the average contributor. Operators should be careful not to make unnecessary Web requests, and be conservative in their editing speed. ] will inform the community if performance issues of any significance do arise, and in such situations, their directives must be followed.
{{Shortcut|WP:BOTPERF}}
While performance is ], bot operators should recognize that a bot making many requests or editing at a high speed has a much greater effect than the average contributor. Operators should be careful not to make unnecessary Web requests, and be conservative in their editing speed. ] will inform the community if performance issues of any significance do arise, and in such situations, their directives must be followed.


:* Bots in trial periods, and approved bots performing all but the most trivial or urgent tasks, should be run at a rate that permits review of their edits when necessary. * Bots in trial periods, and approved bots performing all but the most urgent tasks, should be run at a rate that permits review of their edits when necessary.
:* Unflagged bots should edit more slowly than flagged bots, as their edits are visible in user watchlists. * Unflagged bots should edit more slowly than flagged bots, as their edits are visible in user watchlists.
:* The urgency of a task should always be considered; tasks that do not need to be completed quickly (for example, renaming ]) can and should be accomplished at a slower rate than those that do (for example, reverting ]). * The urgency of a task should always be considered; tasks that do not need to be completed quickly (for example, renaming ]) can and should be accomplished at a slower rate than those that do (for example, reverting ]).
:* Bots' editing speed should be regulated in some way; subject to approval, bots doing non-urgent tasks may edit approximately once every ten seconds, while bots doing more urgent tasks may edit approximately once every four seconds. * Bots' editing speed should be regulated in some way. The generally-accepted norm has been that a bot's maximum edit rate should not exceed twenty edits per minute without explicit approval.
* Bots' editing speed may also be adjusted based on replica database server lag; this allows bots to edit more quickly during quiet periods while slowing down considerably when server load is high. This can be achieved by appending an extra parameter to the query string of each requested URL; see ] for more details.
:* Bots editing at a high speed should operate more slowly during peak hours (1200 – 0400 UTC), and days (middle of the week, especially Wednesdays and Thursdays) than during the quietest times (weekends). are available.
:* Bots' editing speed may also be adjusted based on slave database server lag; this allows bots to edit more quickly during quiet periods while slowing down considerably when server load is high. This can be achieved by appending an extra parameter to the query string of each requested URL; see ] for more details.


Bots that download substantial portions of Misplaced Pages's content by requesting many individual pages are not permitted. When such content is required, download instead. Bots that require access to run queries on Misplaced Pages databases may be run on the ]; such processes are outside the scope of this policy. Bots that download substantial portions of Misplaced Pages's content by requesting many individual pages are not permitted. When such content is required, download ] instead. Bots that require access to run queries on Misplaced Pages databases may be run on ]; such processes are outside the scope of this policy.


=== Good communication === ===Good communication===
{{Shortcut|WP:BOTCOMM}}
Users who read messages or ] from bots, will generally expect a high standard of cordiality and information, backed up by prompt and civil help from the bot's operator if queries arise. Bot operators should take care in the design of communications, and ensure that they will be able to meet any inquiries resulting from the bot's operation cordially, promptly, and appropriately. This is a condition of operation of bots in general. At a minimum, the operator should ensure that other users will be willing and able to address any messages left in this way if they cannot be sure to do so themselves.
{{See also|Misplaced Pages:Bots/Noticeboard/Archive 6#General notice to bot owners about edit summaries|label 1=General notice to bot owners about edit summaries}}
Users who read messages or ] from bots will generally expect a high standard of cordiality and information, backed up by prompt and civil help from the bot's operator if queries arise. Bot operators should take care in the design of communications, and ensure that they will be able to meet any enquiries resulting from the bot's operation cordially, promptly, and appropriately. Issues and enquiries are typically expected to be handled on the English Misplaced Pages. Pages reachable via ], like a talk page at ] or at ] could also be acceptable, so long at it is clear on both the bot page and the bot's talk page that this is where comments should be directed, and that the landing page is not confusing to an English speaker. External sites like ] or ] (which require separate registration or do not allow for IP comments) and email (which can compromise ]) can supplement on-wiki communication, but do not replace it. At a minimum, the operator should ensure that other users will be willing and able to address any messages left in this way if they cannot be sure to do so themselves. This is a condition of operation for all bots.


Note that you can enable email notifications of ] and talk page messages in ] of your bot account's ].
=== Configuration tips ===

===Configuration tips===
{{Shortcut|WP:BOTCONFIG}}
Bot operators may wish to implement the following features, depending on the nature of the bot's tasks: Bot operators may wish to implement the following features, depending on the nature of the bot's tasks:


* Bots which deliver notices and newsletters are encouraged to provide a method of opting out of non-critical messages, especially when posting on user talk pages. Instructions for opting out can then be advertised both on the bot user page (]) and on the message delivered (]).
* Bots which edit many pages, but may need to be prevented from editing particular pages, can do so by interpreting {{tl|Bots}}; see the template page for an explanation of how this works.
* Bots which "clean up" in response to non-vandalism user edits may honor {{tl|in use}} to help avoid edit conflicts, either by checking for the presence of that template (and <span class="plainlinks"></span>) or the category ]. The template's ] states that a bot that honors {{tlf|in use}} may ignore the template if it has been more than 2 hours since the last edit.
* Providing some mechanism which allows contributors other than the bot's operator to control the bot's operation is useful in some circumstances – the bot can be enabled or disabled without resorting to blocks, and could also be configured in other ways. For example, the bot could check the contents of a particular page and act upon the value it finds there. If desired, such a page could then be ] to prevent abuse. Bot operators doing this should bear in mind that they retain all responsibility for their bot account's edits. * Providing some mechanism which allows contributors other than the bot's operator to control the bot's operation is useful in some circumstances – the bot can be enabled or disabled without resorting to blocks, and could also be configured in other ways. For example, the bot could check the contents of a particular page and act upon the value it finds there. If desired, such a page could then be ] to prevent abuse. Bot operators doing this should bear in mind that they retain all responsibility for their bot account's edits.
* To avoid unnecessary blocks, the bot may detect whether its account is logged in, and cease editing if not. One way to do this is to check the value of <tt>wgUserName</tt> in any retrieved wiki pages. * To avoid unnecessary blocks, the bot may use ] to prevent editing if it is logged out. New bots, and bots which have previously edited while logged out, are required to use assertion.
* Bots which edit many pages, but may need to be prevented from editing particular pages, can do so by interpreting ]; see the template page for an explanation of how this works.


Authors of bot processes are encouraged, but not required, to publish the source code of their bot. Authors of bot processes are encouraged, but not required, to publish the source code of their bot.


=== Restrictions on specific tasks === ===Restrictions on specific tasks===
; Categorization of people
Assignment of person categories should not be made using a bot. Before adding sensitive categories to articles by bot, the input should be manually checked article by article, rather than uploaded from an existing list in Misplaced Pages. (See ])


====Categorization of people====
; Spell-checking
{{Shortcut|WP:BOTPCAT}}
Bot processes may not fix spelling mistakes in an unattended fashion, as accounting for all possible false positives is unfeasible. Assisted spell-checking is acceptable, and may or may not be considered a bot process depending on the editing rate. Such processes must not convert words from one regional variation of English to another.
Assignment of person categories should not be made using a bot. Before adding sensitive categories to articles using a bot, a human should manually check the list of potentially affected articles (see ]).


====Context-sensitive changes====
; Interwiki links
{{shortcut|WP:SPELLBOT|WP:CONTEXTBOT}}
:''See also: ], ], ], ]''
Operators of ] linking bots, unless involved only with the development of said bots, must be reasonably familiar with the languages that they are linking from and to, in order to confirm that interwiki linkings between the two projects are done correctly.


Unsupervised bot processes should not make ] that would normally require human attention, as accounting for all possible false positives is generally unfeasible. Exceptionally, such tasks may be allowed if – in addition to having consensus – the operator can demonstrate that no false positives will arise (for example, a one-time run with a complete list of changes from a ]), or there is community consensus to run the task without supervision (for example, vandalism reversion with a community-accepted false positive rate).
Bot operators using the ] should ensure that they use the latest version of the framework and update this daily.


Examples of context-sensitive changes include, but are not limited to:
=== Tools with significant misuse capability===
* Correcting spelling, grammar, or punctuation mistakes.
Bots and assistance tools that have an above-average capability for misuse, are often well-advised to be restricted in access to some "trusted user" list. This especially applies to tools used for fixing wide ranges of vandalism or more general-purpose tools with editing and user-notice capabilities. In some cases the creator of such tools has operated their own application process or criteria for these, or has declined to make the code fully available outside the requirements of approval.
* Converting words from one regional variation of English to another.
* Applying context-sensitive templates, such as {{tl|weasel word}}.
* Changing ] to Unicode characters whenever the Unicode character might be difficult to identify visually in edit-mode, per the ].


==Approval process== ====Cosmetic changes====
{{shortcut|WP:COSMETICBOT}}
=== Approval ===
Cosmetic changes to the ] are ], either in themselves or because they clutter page histories, watchlists, and/or the recent changes feed with edits that are not worth the time spent reviewing them. Such changes should not usually be done on their own, but may be allowed in an edit that ''also'' includes a substantive change.
Bots must be approved before they may operate. Contributors may carry out limited testing of bot processes without approval, provided that test edits are very low in number and frequency, and are restricted to test pages such as the ]. Such test edits may be made from any user account. In addition, any bot or automated editing process that only affects only the operators' user and talk pages (or subpages thereof), and which are not otherwise disruptive, may be run without prior approval.


Changes that are typically considered '']'' affect something visible to readers and consumers of Misplaced Pages, such as
Bot approval requests should be made at ]. Requests should state precisely what the bot will do, as well as any other information that may be relevant to its operation. The request will then be open for some time during which the community or members of the bot approvals group may comment or ask questions. Eventually, a member of the ] may approve a short trial during which the bot is monitored to ensure that it operates correctly. The decision to approve a request should take into account the ] above, relevant policies and guidelines, and discussion of the request.
* the output text or HTML in ways that {{em|make a difference}} to the audio or visual rendering of a page in ]s, ]s, ], in ], or when accessed through other forms of ] (e.g. removing a deleted category, updating a template parameter, removing blank lines from ]);
* the "user-facing interfaces" of Misplaced Pages, such as category listing or ] and ] search engine results (e.g. changing ], ], search engine summaries/snippets, or ]);
* the "administration of the encyclopedia", such as the maintenance of ] used to track ] (e.g. changing {{tlc|citation needed}} to {{tlc|citation needed|2=date=September 2016}}); or
* egregiously invalid HTML such as unclosed tags, even if it does not affect browsers' display or is fixed before output by ] (e.g. changing {{nowrap|<code><nowiki><sup>...</sub></nowiki></code>}} to {{nowrap|<code><nowiki><sup>...</sup></nowiki></code>}})
while changes that do not are typically considered '']''. ] are not usually considered cosmetic but still need consensus to be done by bots.


] can, as always, create exceptions for particular cosmetic edits. For example, the community frequently determines that a particular template should be ] so it can be deleted, even though the substitution does not change the output of the page. Consensus for a bot to make any particular cosmetic change must be formalized in an approved ].
In cases where the function of the bot is not one that already holds general widespread acceptance, or at the discretion of BAG members when greater community feedback is desired, the request may first move to an extended trial of approximately one month. During the extended trial the bot must have a link in edit summaries to the BRFA and a prominent notice on its user and user talk pages. Following this extended trial, consensus for the bot will be reconsidered, any issues should be resolved, and the bot can then be approved.


{{anchor|Cosmetic revert|Cosmetic reverts|COSMETICREVERT}}{{shortcut|WP:COSMETICREVERT}}
Approval may be conditional on the bot account remaining in a "trial period" in order that its operation be reviewed. The terms and extent of such a trial period may be determined by the approval group. Automated processes should be supervised during trial periods so that any problems may be addressed quickly. The need for an account to be added to the "bot" ] may also be determined by the approval group; should this be required, it may be carried out by any ].
Keep in mind that reverting a cosmetic edit is also a cosmetic edit. If the changes made in a cosmetic edit would otherwise be acceptable as part of a substantive edit, there is no reason to revert them. ] to the bot operator instead.


While this policy applies only to bots, human editors should also follow this guidance if making such changes in a ].
In addition, prospective bot operators should be editors in good standing, and with demonstrated experience with the tasks the bot proposes to do.


====Interwiki links====
Should a bot operator wish to modify or extend the operation of a bot, they should ensure that they do so in compliance with this policy. Small changes, for example to fix problems or improve the operation of a particular task, are unlikely to be an issue, but larger changes should not be implemented without some discussion. Completely new tasks usually require a separate approval request.
{{shortcut|WP:INTERWIKIBOT}}
{{See also|Help:Interlanguage links|Misplaced Pages:Wikidata|m:Interwiki bot}}
] bots should add interwiki links on ], rather than on the English Misplaced Pages, unless the task cannot be performed on Wikidata (such as linking to a section). Interwiki bots may remove interwiki links from English Misplaced Pages articles only if already present on Wikidata. ] interwiki bots are permitted to operate on English Misplaced Pages, subject to ]. Interwiki bots running in the Template namespace must ensure links are not transcluded on all pages using the template by placing them in the appropriate documentation subpage section, or non-included portion of the template if no documentation subpage exists. (Bots running on Wikidata need to comply with ].)

====<span id="Mass article creation"></span>Mass page creation====
{{main|Misplaced Pages:Editing policy#Mass page creation}}
Mass page creation may require approval by the community, in addition to a BRFA if the method of that creation falls under this Bot policy. BAG may require that community approval for any mass content creation exists before considering bot approval.

Approval of a bot for mass creation does not override the need for community consensus for the creation itself, nor does community consensus for a creation override the need for approval of the bot itself. Bot operators must ensure that all creations are strictly within the terms of their approvals.

==<span id="Approval"></span>Approval process==
{{shortcut|WP:BOTAPPROVAL}}
===Requests for approval===
{{Reduced pull quote|right|You can more or less think of a BRFA as being a driving license. If you drive without one, you can get in trouble even if your driving skills are fine. And if you have a license, it still doesn't give you the right to run over people or drive 200 km/h in a 50 km/h zone. ] gives out these driving licenses. If they are abused, they can be (and are) revoked, and bots are blocked accordingly.|]}}

''All'' bots that make any logged actions (such as editing pages, uploading files or creating accounts) must be approved for each of these tasks before they may operate. Bot approval requests should be made at ] (BRFA). Requests should state ''precisely'' what the bot will do, as well as any other information that may be relevant to its operation, including links to any community discussions sufficient to demonstrate consensus for the proposed task(s). In addition, prospective bot operators should be editors in good standing, and with demonstrable experience with the kind of tasks the bot proposes to do.

During the request for approval, a member of the ] (BAG) will typically approve a short trial during which the bot is monitored to ensure that it operates correctly. The terms and extent of such a trial period may be determined by the BAG. Bots should be supervised during trial periods so that any problems may be addressed quickly. The bot operator is responsible for reviewing the edits and repairing any mistakes caused by the bot. The BAG may also approve extended trials should problems arise with the initial trial and until community is confident the bot will function correctly.

The request will generally be open for some time during which the community and BAG members may comment or ask questions, and give feedback on the trial. The decision to approve or decline a request should take into account the ] above, relevant policies and guidelines, and discussions of the request. Consensus formed by a small group on a low-traffic talk page has frequently resulted in controversy when it comes to the attention of the wider community. Bot operators are encouraged and often asked to notify the relevant noticeboards whose areas may be affected or whose expertise in the area could provide useful comments and insight into the proposed task.

Once the request has demonstrated its conformance with the community standards and correct technical implementation, the BAG may approve the task. The BAG may also decline a request which fails to demonstrate community consensus to perform the task. Occasionally, the operator may wish to withdraw the task or the BAG may mark a stale request as expired. Closed requests are archived and preserved for future reference. Should the task be approved, the "bot" ] flag will be assigned by any ] and the operator may run the bot as intended.

The BAG may also occasionally speedily approve or decline BRFAs without having a trial period. Non-controversial, technically-simple tasks or duplicates of existing tasks, especially if performed by trusted bot operators, can be speedily approved. Similarly, controversial or commonly declined tasks, especially by ], may be speedily declined.

====Valid operations without approval====
{{Shortcut|WP:BOTUSERSPACE|WP:EXEMPTBOT}}
Operators may carry out limited testing of bot processes without approval, provided that test edits are very low in number and frequency, and are restricted to test pages such as the ]. Such test edits may be made from any user account. In addition, any bot or automated editing process that affects only the operator's or their own ] (user pages, user talk pages, user's ]s and subpages thereof), and which are not otherwise disruptive, may be run without prior approval.

Should bot operators wish to modify or extend the operation of their bots, they should ensure that they do so in compliance with this policy. Small changes, for example to fix problems or improve the operation of a particular task, are unlikely to be an issue, but larger changes should not be implemented without some discussion. Completely new tasks usually require a separate approval request. Bot operators may wish to create a separate bot account for each task.


Accounts performing automated tasks without prior approval may be summarily blocked by any administrator. Accounts performing automated tasks without prior approval may be summarily blocked by any administrator.


====Bots with administrative rights<span id="Adminbots"></span>====
=== Appeals and reexamination of approvals ===
{{shortcut|WP:ADMINBOT}}
Any editor may request that the Bots Approval Group reexamine a previously granted or denied bot approval (although it only makes sense for the bot operator themselves to appeal a denied request). Comments will be sought from the community at large, and the BAG members will make a final decision by simple majority voting. BAG members may also, at their discretion, initiate this examination proceeding during the approval process when wider consensus appears needed to reach a decision, or once a bot operates if there appears to be problems.


Bots with ] (a.k.a. "adminbots") are also approved through ]. The bot operator must already be an administrator. As with any bot, the approval discussion is conducted on two levels:
This process will take place on a subpage of ]. Once a member of BAG has reviewed the discussion and made a decision, they may cast their vote. Voting ends either one week after the first vote, or 24 hours after one side has more than 50% of the "active" BAG members. These decisions may be binding or may be a strong recommendation.


#Community approval for the bot's task. This discussion should take place at an appropriate forum, such as the ] or the ], prior to the BRFA. Without a demonstrated need/want for such an adminbot, the BRFA will either be put on hold until this is demonstrated, or the bot will be denied approval.
The result of such an examination can result in:
#The technical assessment of the bot's implementation. It is recommended that the source code for adminbots be open, but should the operator elect to keep all or part of the code not publicly visible, they must present such code for review upon request from any BAG member or administrator.

To demonstrate the implementation, adminbots should either be run "dry" {{em|without}} a {{mono|'sysop'}} bit (if practical), or be run on the operator's main account, with its edits clearly marked as such. When BAG is satisfied that the bot is technically sound, they will approve the bot and recommend that it be given both {{mono|'bot'}} and {{mono|'sysop'}} rights. The bureaucrat who responds to the flag request acts as a final arbiter of the process and will ensure that an adequate level of community consensus (including publicity of approval discussion) underlies the approval.

As adminbots have much more destructive potential than regular bots, their operators are expected to monitor them closely during development and trials, including after code updates. Adminbots should be immediately shut down at the first sign of incorrect behavior. Administrators are allowed to run semi-automated admin tools on their own accounts but will be held responsible if those tools go awry. Neglect while running adminbots and tools constitutes ].

If an administrator responsible for one or more adminbots is desysopped, their bots should be immediately desysopped at the same time (except if the administrator ] in ]).

===Appeals and reexamination of approvals===
{{Shortcut|WP:BOTAPPEAL}}
Requests for reexamination should be discussed at ]. This may include either appeal of denied bot requests, or reexamination of approved bots. In some cases, ] may be warranted.

Such an examination can result in:
*Granting or revoking approval for a bot task; *Granting or revoking approval for a bot task;
*Removing or placing the account into the bot user group; or *Removing or placing the account into the bot user group;
*Imposing further operational conditions on the bot to maintain approval status. *Imposing further operational conditions on the bot to maintain approval status.


In particular, the BAG has no authority on ''operator'' behavior, or on the operators themselves. ] is the proper venue for that. BAG has no authority on ''operator'' behavior, or on the operators themselves. ] is the proper venue for that.


==Dealing with issues==
==Other bot-related matters==
{{Shortcut|WP:BOTISSUE}}
=== Bot Approvals Group ===
:''There is presently no method for joining the Bot Approvals Group which has consensus''
Members of the group are experienced in writing and running bots, have programming experience, understand the role of the BAG in the BRFA process, and understand ].


===Minor malfunctions, complaints, and improvements===
=== Dealing with issues ===
<noinclude>{{See also|Misplaced Pages:Bots#How to hide a specific bot from your watchlist}}</noinclude>
If you have noticed a problem with a bot, or have a complaint or suggestion to make, you should contact the bot operator. If the bot is causing a significant problem, and you feel that more urgent discussion is necessary, you may also wish to leave a message at ], indicating where you have notified the bot operator.
If you have noticed a problem with a bot, have a complaint, or have a suggestion to make, you should contact the bot operator directly via their user talk page (or via the bot account's talk page). Bot operators ] to the community's concerns and suggestions, but please ] and ]. Bugs and mistakes happen, and ].


<noinclude>Minor changes and tweaks to the bot behavior usually do not need to be reviewed by the community at large, so long as they do not exceed a reasonable interpretation of the bot's original mandate/BRFA and have consensus. For instance, a bot approved to archive discussions on a specific WikiProject's page does not need another BRFA to change the details of the archiving (e.g. thread age or activity requirements). However, to begin archiving another projects' page the operator should probably submit another BRFA, which might be speedily approved. As another example, a bot originally approved to remove deleted ''categories'' from articles would need approval to expand its scope to remove deleted ''files''.</noinclude>
] may ] bot accounts that operate without approval, operate in a manner not specified in their approval request, or operate counter to the terms of their approval (for example, by editing too quickly). A block may also be issued if a bot process operates without being logged in to an account, or is logged in to an account other than its own.


===Bots operated by multiple users=== ===Major malfunctions and complaints===
If the bot is causing a significant problem, or the bot operator has not responded and the bot is still causing issues, several mechanisms are available to prevent further disruption. Many bots provide a ] or means to disable the problematic task on their bot user page. This should be tried first, followed by a discussion of the issue with the bot operator. If no such mechanism is available (or if urgent action is needed), leave a message at the ] requesting a block for a malfunctioning bot. Per the noticeboard's guideline, you are required to notify the bot operator of the discussion taking place at the noticeboard.
Accounts used for approved bots that can make edits of a specific designated type, at the direction of more than one person, are not likely to be a problem, provided:
# ''operator disclosure'' – the Misplaced Pages user directing any given edit will always be identifiable, typically by being linked in the edit summary, and
# ''operator verification'' – users able to direct the bot to make edits must be positively identified to the bot at the time of edit, in some manner not readily faked and unique to that user that cannot readily be bypassed or avoided (e.g. non-trivial password, restricted IP, wiki login, irc hostname), so that the user directing any given edit and identified above, may be considered verified.
# ''operator trust'' – if anyone other than the bot creator is likely to operate the bot, then there must be outline measures to reassure bot approval group members that they will have the requisite skill and knowledge to operate that bot to an appropriate standard.


If you are concerned that a bot is operating ''outside the established consensus'' for its task, discuss the issue with the bot operator first, or try ] (] can act as neutral mediators on such matters). If you are concerned that a bot '']'' for its task, you may ] of a bot's approval.
=== Assisted editing guidelines ===
"Assisted editing" covers the use of tools which assist with repetitive tasks, but do not alter Misplaced Pages's content without some human interaction. Examples of this include correcting ]s, fixing links to ] pages, reverting ] and ].


===Bot-like editing===
While such contributions are not usually considered to constitute use of a bot, if there is any doubt, you should make an approval request; see ] above. In such cases, the bot approval group will determine whether the full approval process and a separate bot account are necessary. In general, processes that are operated at higher speeds, with a high volume of edits, or are more automated, may be more likely to be treated as bots for these purposes.
{{shortcut|WP:MEATBOT}}
Human editors are expected to pay attention to the edits they make, and ensure that they do not sacrifice quality in the pursuit of speed or quantity. For the purpose of dispute resolution, it is irrelevant whether high-speed or large-scale edits that a) are contrary to consensus or b) cause errors an attentive human would not make are actually being performed by a bot, by a human assisted by a script, or even by a human without any programmatic assistance. No matter the method, the disruptive editing must stop or the user may end up blocked. However, merely editing quickly, particularly for a short time, is not by itself disruptive.


Editors who choose to use semi-automated tools to assist their editing should be aware that processes which operate at higher speeds, with a higher volume of edits, or with less human involvement are more likely to be treated as bots. If there is any doubt, you should make a ]. In such cases, the Bot Approvals Group will determine whether the full approval process and a separate bot account are necessary.
Contributors intending to make a large number of assisted edits are advised to first ensure that there is a clear consensus that such edits are desired. They may wish to create a separate user account in order to do so; such accounts should adhere to the ]. Contributors using assisted editing tools may wish to indicate this, if it is not already clear, in ] and/or on the ] or ] of the account making the contributions.


] performed by a human editor in a bot-like fashion may also be considered disruptive.
Authors of assisted editing tools are permitted to create their own approval mechanism for that tool; if bot approval is required for use of the tool, this is in addition to, not instead of, the normal approval request process. ] is an example of a tool with such a mechanism. Release of the source code for assisted editing tools is, as with bots, encouraged but not required.

===Blocking a bot===
{{Shortcut|WP:BOTBLOCK}}
] may ] bot accounts that operate without approval, operate in a manner not specified in their approval request, or operate counter to the terms of their approval or the bot policy. A block may also be issued if a bot operates without being logged in to an account, or is logged in to an account other than its own. Bots which are known to edit while logged out should have assertion, or a similar function, added to them. Operators can be notified with {{tl|Bot block message}} (for approved bots that are broken) or {{tl|Uw-botblock}} (after blocking unapproved bots).

Administrators blocking a user account suspected of operating an unapproved bot or an approved bot in unapproved ways should ] indefinitely.

==Other bot-related matters==
===Bot Approvals Group===
{{Main|Misplaced Pages:Bot Approvals Group}}
{{Shortcut|WP:BAGREQ}}
Members of the group are experienced in writing and running bots, have programming experience, understand the role of the Bot Approvals Group (BAG) in the BRFA process, and understand Misplaced Pages's bot policy. Those interested in joining the group should make a post at ] explaining why they would be a good member of the team and outlining past experience, and then should advertise the discussion at ], ], ] and ]. After seven days, an uninvolved bureaucrat will close the discussion.

After two years without any bot-related activity (such as posting on ], posting on a bot's talk page, or operating a bot), BAG members will be retired from BAG following a one-week notice. Retired members can re-apply for BAG membership as normal if they wish to rejoin the BAG.

===Assisted editing guidelines===
{{Shortcut|WP:ASSISTED|WP:SEMIAUTOMATED}}
''Assisted editing'', also known as ''semi-automated editing'', covers the use of tools which assist with repetitive tasks, but do not alter Misplaced Pages's content without some human interaction. Examples of this include correcting ]s, fixing links to ] pages, cleaning up ], and ].

Contributors intending to make a large number of assisted edits are advised to first ensure that there is a clear consensus that such edits are desired. Editors may wish to indicate consensus for the task, if it is not already clear, in ] and/or on the ] or ] page of the account making the contributions. Contributors may wish to create a separate user account in order to do so; such accounts should adhere to the ]. A ] should not be used for assisted editing, unless the task has been through a BRFA.

While such contributions are not usually considered to constitute use of a bot, semi-automated processes that operate at higher speeds, with a higher volume of edits, or with less human involvement are more likely to ]. If there is any doubt, you should make an ]. In such cases, the Bot Approvals Group will determine whether the full approval process and a separate bot account are necessary. Note that any ] requires a BRFA.

Authors of assisted editing tools are permitted to create their own approval mechanism for that tool; if bot approval is required for use of the tool, this is ''in addition to'', not ''instead of'', the normal approval request process. ] is an example of a tool with such a mechanism. Release of the source code for assisted editing tools is, as with bots, encouraged but not required.


===User scripts=== ===User scripts===
{{Shortcut|WP:BOTSCRIPT}}
The majority of user scripts are intended to merely improve, enhance, or personalize the existing MediaWiki interface, or to simplify access to commonly used functions for editors. Scripts of this kind do not normally require BAG approval.
The majority of user scripts are intended to merely improve or personalize the existing MediaWiki interface, or to simplify access to commonly used functions for editors. Scripts of this kind do not normally require BAG approval.


==See also== ==See also==
* ]
* ]
* ]
* ]
* ]
** ]
* ] * ]
* ]
* ]
* ] * ]
* ]
* ]
* ]
* ] * ]
* ] (not in effect here)


{{Misplaced Pages technical help|collapsed}}
== External links ==
{{Misplaced Pages accounts|collapsed}}

]
* auto links 'wikitagged' words in ] contents with Misplaced Pages.
]

]
]

Latest revision as of 23:38, 13 August 2024

Misplaced Pages policy page
This page documents a procedural policy of Misplaced Pages.
It documents various processes by which the English Misplaced Pages operates.
Shortcuts
This page in a nutshell: Automated editing processes, known as "bots", must be harmless and useful, have approval, use separate user accounts, and be operated responsibly. This wiki also allows global bots to be run, subject to local requirements.

The bot policy covers the operation of all bots and automated scripts used to provide automation of Misplaced Pages edits, whether completely automated, higher speed, or simply assisting human editors in their own work. It also covers the work of the Bot Approvals Group (BAG), which supervises and approves all bot-related activity from a technical and quality-control perspective on behalf of the English Misplaced Pages community. Other languages may have their own bot policies which differ from this one.

Definitions

Main page: Misplaced Pages:Bots/Dictionary Shortcut
  • Bots (short for "robots") generally make automated changes or actions. After launching the bot, an assumption can be made that there is no further need for human decision-making.
  • Assisted or semi-automated editing covers specifically lower-speed tools and scripts that can assist users to make decisions but leave the actual decision up to the user (see Assisted editing guidelines below).
  • Scripts are personalized scripts (typically, but not always, written in JavaScript) that may automate processes, or may merely enhance the existing MediaWiki interface.
  • The Bot Approvals Group (BAG) is a group of users with appropriate technical skills and wiki-experience, whose members are approved by the community to oversee and make decisions on bot activity and on-wiki operation for the community. The BAG also determine the classification as bot or assisted editing, in ambiguous cases. Formal work by MediaWiki developers is outside the scope of this policy.

Bot usage

Shortcut

Because bots:

  • are potentially capable of editing far faster than humans can; and
  • have a lower level of scrutiny on each edit than a human editor; and
  • may cause severe disruption if they malfunction or are misused;

the community expects bots to meet high standards before they are approved for use on designated tasks. The operation of unapproved bots, or use of approved bots in ways outside their approved conditions of operation, is prohibited and may in some cases lead to blocking of the user account and possible sanctions for the operator. Note that high-speed semi-automated editing may effectively be considered bots in some cases (see WP:MEATBOT), even if performed by a human editor. If in doubt, check.

Bot accounts

Shortcut See also: Misplaced Pages:Username policy

Contributors should create a separate account in order to operate a bot. The account's name should identify the bot function (e.g. <Task>Bot), or the operator's main account (e.g. <Username>Bot). In all cases, it should be immediately clear that the edits are made by an automated account, which is usually achieved by including Bot at the end of the account name. Bots must edit only while logged into their account. Tools not considered to be bots do not require a separate account, but some users do choose to make separate accounts for non-bot but high-speed editing.

The contributions of a bot account remain the responsibility of its operator, whose account must be prominently identifiable on its user page. In particular, the bot operator is responsible for the repair of any damage caused by a bot which operates incorrectly. All policies apply to a bot account in the same way as to any other user account. Bot accounts are considered alternative accounts of their operator. To ensure compliance with WP:BOTCOMM, IP editors wishing to operate a bot must first register an account before operating a bot.

Bot accounts should not be used for contributions that do not fall within the scope of the bot's designated tasks. In particular, bot operators should not use a bot account to respond to messages related to the bot. Bot operators may wish to redirect a bot account's discussion page to their own.

The "bot" flag

Shortcut

Bot accounts will be marked by a bureaucrat as being in the "bot" user group upon BAG request. This flag reduces some of the technical limits imposed by the MediaWiki software. Edits by such accounts are hidden by default within recent changes. Bot accounts may also be added to the "copyviobot" user group upon BAG request; this flag allows use of the API to add metadata to edits for use in the new pages feed.

Activity requirements

Shortcut

Bot accounts that have had no logged actions or edits for two years, where the listed operator has also had no logged actions or edits for two years, will be deauthorized. Following a one-week notification period on the bots noticeboard, and the operator's talk page, prior task approvals will be considered expired and bot flags will be removed. Should the operator return and wish to reactivate the bot, a new request for approval (BRFA) must be completed.

Bots directed to edit by other users

Shortcut

Some bots allow other editors to direct the bot to make an edit or other action. It is recommended and preferable to use OAuth to make the edit on the user's account directly. However, it can be permissible to instead make these edits via a bot account (particularly if necessary due to the actions being privileged), provided the following conditions are met:

  1. Disclosure: The identity of the Misplaced Pages user directing the edit/action must be publicly disclosed, typically by linking the username in the edit summary.
  2. Verification: The identity of the Misplaced Pages user must be reliably verified to the bot in a manner not easily faked, bypassed or avoided. Suitable methods include a non-trivial password, IP restrictions, wiki login or IRC hostname. If the bot is used to make sensitive actions, stronger methods of verification may be required.
  3. Competence: All users directing a bot must have the required skill and knowledge to ensure their actions are within community consensus.

Bot requirements

Shortcut

In order for a bot to be approved, its operator should demonstrate that it:

  1. is harmless
  2. is useful
  3. does not consume resources unnecessarily
  4. performs only tasks for which there is consensus
  5. carefully adheres to relevant policies and guidelines
  6. uses appropriate, informative wording in all edit summaries and messages left for users

The bot account's user page should identify the bot using the {{bot}} tag. On both the bot account's userpage and in the approval request, the following information should be provided:

  • Details of the bot's task(s)
  • Whether the bot is manually assisted or runs automatically
  • Whether it runs continuously, intermittently, or at specified intervals, and at what rate

Performance

Shortcut

While performance is not generally an issue, bot operators should recognize that a bot making many requests or editing at a high speed has a much greater effect than the average contributor. Operators should be careful not to make unnecessary Web requests, and be conservative in their editing speed. Sysadmins will inform the community if performance issues of any significance do arise, and in such situations, their directives must be followed.

  • Bots in trial periods, and approved bots performing all but the most urgent tasks, should be run at a rate that permits review of their edits when necessary.
  • Unflagged bots should edit more slowly than flagged bots, as their edits are visible in user watchlists.
  • The urgency of a task should always be considered; tasks that do not need to be completed quickly (for example, renaming categories) can and should be accomplished at a slower rate than those that do (for example, reverting vandalism).
  • Bots' editing speed should be regulated in some way. The generally-accepted norm has been that a bot's maximum edit rate should not exceed twenty edits per minute without explicit approval.
  • Bots' editing speed may also be adjusted based on replica database server lag; this allows bots to edit more quickly during quiet periods while slowing down considerably when server load is high. This can be achieved by appending an extra parameter to the query string of each requested URL; see mw:Manual:Maxlag parameter for more details.

Bots that download substantial portions of Misplaced Pages's content by requesting many individual pages are not permitted. When such content is required, download database dumps instead. Bots that require access to run queries on Misplaced Pages databases may be run on Wikimedia Toolforge; such processes are outside the scope of this policy.

Good communication

Shortcut See also: General notice to bot owners about edit summaries

Users who read messages or edit summaries from bots will generally expect a high standard of cordiality and information, backed up by prompt and civil help from the bot's operator if queries arise. Bot operators should take care in the design of communications, and ensure that they will be able to meet any enquiries resulting from the bot's operation cordially, promptly, and appropriately. Issues and enquiries are typically expected to be handled on the English Misplaced Pages. Pages reachable via unified login, like a talk page at Commons or at Italian Misplaced Pages could also be acceptable, so long at it is clear on both the bot page and the bot's talk page that this is where comments should be directed, and that the landing page is not confusing to an English speaker. External sites like Phabricator or GitHub (which require separate registration or do not allow for IP comments) and email (which can compromise anonymity) can supplement on-wiki communication, but do not replace it. At a minimum, the operator should ensure that other users will be willing and able to address any messages left in this way if they cannot be sure to do so themselves. This is a condition of operation for all bots.

Note that you can enable email notifications of pings and talk page messages in the notification section of your bot account's preferences.

Configuration tips

Shortcut

Bot operators may wish to implement the following features, depending on the nature of the bot's tasks:

  • Bots which deliver notices and newsletters are encouraged to provide a method of opting out of non-critical messages, especially when posting on user talk pages. Instructions for opting out can then be advertised both on the bot user page (example) and on the message delivered (example).
  • Bots which edit many pages, but may need to be prevented from editing particular pages, can do so by interpreting {{Bots}}; see the template page for an explanation of how this works.
  • Bots which "clean up" in response to non-vandalism user edits may honor {{in use}} to help avoid edit conflicts, either by checking for the presence of that template (and redirects) or the category Category:Pages actively undergoing a major edit. The template's documentation states that a bot that honors {{in use}} may ignore the template if it has been more than 2 hours since the last edit.
  • Providing some mechanism which allows contributors other than the bot's operator to control the bot's operation is useful in some circumstances – the bot can be enabled or disabled without resorting to blocks, and could also be configured in other ways. For example, the bot could check the contents of a particular page and act upon the value it finds there. If desired, such a page could then be protected or semi-protected to prevent abuse. Bot operators doing this should bear in mind that they retain all responsibility for their bot account's edits.
  • To avoid unnecessary blocks, the bot may use assertion to prevent editing if it is logged out. New bots, and bots which have previously edited while logged out, are required to use assertion.

Authors of bot processes are encouraged, but not required, to publish the source code of their bot.

Restrictions on specific tasks

Categorization of people

Shortcut

Assignment of person categories should not be made using a bot. Before adding sensitive categories to articles using a bot, a human should manually check the list of potentially affected articles (see Misplaced Pages:Categorization of people).

Context-sensitive changes

Shortcuts

Unsupervised bot processes should not make context-sensitive changes that would normally require human attention, as accounting for all possible false positives is generally unfeasible. Exceptionally, such tasks may be allowed if – in addition to having consensus – the operator can demonstrate that no false positives will arise (for example, a one-time run with a complete list of changes from a database dump), or there is community consensus to run the task without supervision (for example, vandalism reversion with a community-accepted false positive rate).

Examples of context-sensitive changes include, but are not limited to:

  • Correcting spelling, grammar, or punctuation mistakes.
  • Converting words from one regional variation of English to another.
  • Applying context-sensitive templates, such as {{weasel word}}.
  • Changing HTML entities to Unicode characters whenever the Unicode character might be difficult to identify visually in edit-mode, per the Manual of Style.

Cosmetic changes

Shortcut

Cosmetic changes to the wikitext are sometimes the most controversial, either in themselves or because they clutter page histories, watchlists, and/or the recent changes feed with edits that are not worth the time spent reviewing them. Such changes should not usually be done on their own, but may be allowed in an edit that also includes a substantive change.

Changes that are typically considered substantive affect something visible to readers and consumers of Misplaced Pages, such as

while changes that do not are typically considered cosmetic. Minor edits are not usually considered cosmetic but still need consensus to be done by bots.

Consensus can, as always, create exceptions for particular cosmetic edits. For example, the community frequently determines that a particular template should be substituted so it can be deleted, even though the substitution does not change the output of the page. Consensus for a bot to make any particular cosmetic change must be formalized in an approved request for approval.

Shortcut

Keep in mind that reverting a cosmetic edit is also a cosmetic edit. If the changes made in a cosmetic edit would otherwise be acceptable as part of a substantive edit, there is no reason to revert them. Report the issue to the bot operator instead.

While this policy applies only to bots, human editors should also follow this guidance if making such changes in a bot-like manner.

Interwiki links

Shortcut See also: Help:Interlanguage links and Misplaced Pages:Wikidata

Interwiki bots should add interwiki links on Wikidata, rather than on the English Misplaced Pages, unless the task cannot be performed on Wikidata (such as linking to a section). Interwiki bots may remove interwiki links from English Misplaced Pages articles only if already present on Wikidata. Globally-approved interwiki bots are permitted to operate on English Misplaced Pages, subject to local requirements. Interwiki bots running in the Template namespace must ensure links are not transcluded on all pages using the template by placing them in the appropriate documentation subpage section, or non-included portion of the template if no documentation subpage exists. (Bots running on Wikidata need to comply with Wikidata's bot policy.)

Mass page creation

Main page: Misplaced Pages:Editing policy § Mass page creation

Mass page creation may require approval by the community, in addition to a BRFA if the method of that creation falls under this Bot policy. BAG may require that community approval for any mass content creation exists before considering bot approval.

Approval of a bot for mass creation does not override the need for community consensus for the creation itself, nor does community consensus for a creation override the need for approval of the bot itself. Bot operators must ensure that all creations are strictly within the terms of their approvals.

Approval process

Shortcut

Requests for approval

You can more or less think of a BRFA as being a driving license. If you drive without one, you can get in trouble even if your driving skills are fine. And if you have a license, it still doesn't give you the right to run over people or drive 200 km/h in a 50 km/h zone. BAG gives out these driving licenses. If they are abused, they can be (and are) revoked, and bots are blocked accordingly.
— Headbomb

All bots that make any logged actions (such as editing pages, uploading files or creating accounts) must be approved for each of these tasks before they may operate. Bot approval requests should be made at Misplaced Pages:Bots/Requests for approval (BRFA). Requests should state precisely what the bot will do, as well as any other information that may be relevant to its operation, including links to any community discussions sufficient to demonstrate consensus for the proposed task(s). In addition, prospective bot operators should be editors in good standing, and with demonstrable experience with the kind of tasks the bot proposes to do.

During the request for approval, a member of the Bot Approvals Group (BAG) will typically approve a short trial during which the bot is monitored to ensure that it operates correctly. The terms and extent of such a trial period may be determined by the BAG. Bots should be supervised during trial periods so that any problems may be addressed quickly. The bot operator is responsible for reviewing the edits and repairing any mistakes caused by the bot. The BAG may also approve extended trials should problems arise with the initial trial and until community is confident the bot will function correctly.

The request will generally be open for some time during which the community and BAG members may comment or ask questions, and give feedback on the trial. The decision to approve or decline a request should take into account the requirements above, relevant policies and guidelines, and discussions of the request. Consensus formed by a small group on a low-traffic talk page has frequently resulted in controversy when it comes to the attention of the wider community. Bot operators are encouraged and often asked to notify the relevant noticeboards whose areas may be affected or whose expertise in the area could provide useful comments and insight into the proposed task.

Once the request has demonstrated its conformance with the community standards and correct technical implementation, the BAG may approve the task. The BAG may also decline a request which fails to demonstrate community consensus to perform the task. Occasionally, the operator may wish to withdraw the task or the BAG may mark a stale request as expired. Closed requests are archived and preserved for future reference. Should the task be approved, the "bot" user group flag will be assigned by any bureaucrat and the operator may run the bot as intended.

The BAG may also occasionally speedily approve or decline BRFAs without having a trial period. Non-controversial, technically-simple tasks or duplicates of existing tasks, especially if performed by trusted bot operators, can be speedily approved. Similarly, controversial or commonly declined tasks, especially by new editors, may be speedily declined.

Valid operations without approval

Shortcuts

Operators may carry out limited testing of bot processes without approval, provided that test edits are very low in number and frequency, and are restricted to test pages such as the sandbox. Such test edits may be made from any user account. In addition, any bot or automated editing process that affects only the operator's or their own userspace (user pages, user talk pages, user's module sandbox pages and subpages thereof), and which are not otherwise disruptive, may be run without prior approval.

Should bot operators wish to modify or extend the operation of their bots, they should ensure that they do so in compliance with this policy. Small changes, for example to fix problems or improve the operation of a particular task, are unlikely to be an issue, but larger changes should not be implemented without some discussion. Completely new tasks usually require a separate approval request. Bot operators may wish to create a separate bot account for each task.

Accounts performing automated tasks without prior approval may be summarily blocked by any administrator.

Bots with administrative rights

Shortcut

Bots with administrator rights (a.k.a. "adminbots") are also approved through the general process. The bot operator must already be an administrator. As with any bot, the approval discussion is conducted on two levels:

  1. Community approval for the bot's task. This discussion should take place at an appropriate forum, such as the Administrators' noticeboard or the Village Pump, prior to the BRFA. Without a demonstrated need/want for such an adminbot, the BRFA will either be put on hold until this is demonstrated, or the bot will be denied approval.
  2. The technical assessment of the bot's implementation. It is recommended that the source code for adminbots be open, but should the operator elect to keep all or part of the code not publicly visible, they must present such code for review upon request from any BAG member or administrator.

To demonstrate the implementation, adminbots should either be run "dry" without a 'sysop' bit (if practical), or be run on the operator's main account, with its edits clearly marked as such. When BAG is satisfied that the bot is technically sound, they will approve the bot and recommend that it be given both 'bot' and 'sysop' rights. The bureaucrat who responds to the flag request acts as a final arbiter of the process and will ensure that an adequate level of community consensus (including publicity of approval discussion) underlies the approval.

As adminbots have much more destructive potential than regular bots, their operators are expected to monitor them closely during development and trials, including after code updates. Adminbots should be immediately shut down at the first sign of incorrect behavior. Administrators are allowed to run semi-automated admin tools on their own accounts but will be held responsible if those tools go awry. Neglect while running adminbots and tools constitutes tool misuse.

If an administrator responsible for one or more adminbots is desysopped, their bots should be immediately desysopped at the same time (except if the administrator voluntarily stepped down in uncontroversial circumstances).

Appeals and reexamination of approvals

Shortcut

Requests for reexamination should be discussed at Misplaced Pages:Bots/Noticeboard. This may include either appeal of denied bot requests, or reexamination of approved bots. In some cases, requests for comment may be warranted.

Such an examination can result in:

  • Granting or revoking approval for a bot task;
  • Removing or placing the account into the bot user group;
  • Imposing further operational conditions on the bot to maintain approval status.

BAG has no authority on operator behavior, or on the operators themselves. Dispute resolution is the proper venue for that.

Dealing with issues

Shortcut

Minor malfunctions, complaints, and improvements

See also: Misplaced Pages:Bots § How to hide a specific bot from your watchlist

If you have noticed a problem with a bot, have a complaint, or have a suggestion to make, you should contact the bot operator directly via their user talk page (or via the bot account's talk page). Bot operators are expected to be responsive to the community's concerns and suggestions, but please assume good faith and don't panic. Bugs and mistakes happen, and we're all here to build an encyclopedia.

Minor changes and tweaks to the bot behavior usually do not need to be reviewed by the community at large, so long as they do not exceed a reasonable interpretation of the bot's original mandate/BRFA and have consensus. For instance, a bot approved to archive discussions on a specific WikiProject's page does not need another BRFA to change the details of the archiving (e.g. thread age or activity requirements). However, to begin archiving another projects' page the operator should probably submit another BRFA, which might be speedily approved. As another example, a bot originally approved to remove deleted categories from articles would need approval to expand its scope to remove deleted files.

Major malfunctions and complaints

If the bot is causing a significant problem, or the bot operator has not responded and the bot is still causing issues, several mechanisms are available to prevent further disruption. Many bots provide a stop button or means to disable the problematic task on their bot user page. This should be tried first, followed by a discussion of the issue with the bot operator. If no such mechanism is available (or if urgent action is needed), leave a message at the administrators' noticeboard requesting a block for a malfunctioning bot. Per the noticeboard's guideline, you are required to notify the bot operator of the discussion taking place at the noticeboard.

If you are concerned that a bot is operating outside the established consensus for its task, discuss the issue with the bot operator first, or try other forms of dispute resolution (BAG members can act as neutral mediators on such matters). If you are concerned that a bot no longer has consensus for its task, you may formally appeal or ask for re-examination of a bot's approval.

Bot-like editing

Shortcut

Human editors are expected to pay attention to the edits they make, and ensure that they do not sacrifice quality in the pursuit of speed or quantity. For the purpose of dispute resolution, it is irrelevant whether high-speed or large-scale edits that a) are contrary to consensus or b) cause errors an attentive human would not make are actually being performed by a bot, by a human assisted by a script, or even by a human without any programmatic assistance. No matter the method, the disruptive editing must stop or the user may end up blocked. However, merely editing quickly, particularly for a short time, is not by itself disruptive.

Editors who choose to use semi-automated tools to assist their editing should be aware that processes which operate at higher speeds, with a higher volume of edits, or with less human involvement are more likely to be treated as bots. If there is any doubt, you should make a bot approval request. In such cases, the Bot Approvals Group will determine whether the full approval process and a separate bot account are necessary.

Purely cosmetic changes performed by a human editor in a bot-like fashion may also be considered disruptive.

Blocking a bot

Shortcut

Administrators may block bot accounts that operate without approval, operate in a manner not specified in their approval request, or operate counter to the terms of their approval or the bot policy. A block may also be issued if a bot operates without being logged in to an account, or is logged in to an account other than its own. Bots which are known to edit while logged out should have assertion, or a similar function, added to them. Operators can be notified with {{Bot block message}} (for approved bots that are broken) or {{Uw-botblock}} (after blocking unapproved bots).

Administrators blocking a user account suspected of operating an unapproved bot or an approved bot in unapproved ways should soft-block indefinitely.

Other bot-related matters

Bot Approvals Group

Main page: Misplaced Pages:Bot Approvals Group Shortcut

Members of the group are experienced in writing and running bots, have programming experience, understand the role of the Bot Approvals Group (BAG) in the BRFA process, and understand Misplaced Pages's bot policy. Those interested in joining the group should make a post at WT:BAG explaining why they would be a good member of the team and outlining past experience, and then should advertise the discussion at WP:AN, WP:VPM, WT:BOTPOL and WP:BOTN. After seven days, an uninvolved bureaucrat will close the discussion.

After two years without any bot-related activity (such as posting on bot-related pages, posting on a bot's talk page, or operating a bot), BAG members will be retired from BAG following a one-week notice. Retired members can re-apply for BAG membership as normal if they wish to rejoin the BAG.

Assisted editing guidelines

Shortcuts

Assisted editing, also known as semi-automated editing, covers the use of tools which assist with repetitive tasks, but do not alter Misplaced Pages's content without some human interaction. Examples of this include correcting typographical errors, fixing links to disambiguation pages, cleaning up vandalism, and stub sorting.

Contributors intending to make a large number of assisted edits are advised to first ensure that there is a clear consensus that such edits are desired. Editors may wish to indicate consensus for the task, if it is not already clear, in edit summaries and/or on the user or talk page of the account making the contributions. Contributors may wish to create a separate user account in order to do so; such accounts should adhere to the policy on multiple accounts. A bot account should not be used for assisted editing, unless the task has been through a BRFA.

While such contributions are not usually considered to constitute use of a bot, semi-automated processes that operate at higher speeds, with a higher volume of edits, or with less human involvement are more likely to be treated as bots. If there is any doubt, you should make an approval request. In such cases, the Bot Approvals Group will determine whether the full approval process and a separate bot account are necessary. Note that any large-scale semi-automated content page creation requires a BRFA.

Authors of assisted editing tools are permitted to create their own approval mechanism for that tool; if bot approval is required for use of the tool, this is in addition to, not instead of, the normal approval request process. AutoWikiBrowser is an example of a tool with such a mechanism. Release of the source code for assisted editing tools is, as with bots, encouraged but not required.

User scripts

Shortcut

The majority of user scripts are intended to merely improve or personalize the existing MediaWiki interface, or to simplify access to commonly used functions for editors. Scripts of this kind do not normally require BAG approval.

See also

Misplaced Pages technical help
Get personal technical help at the Teahouse, help desk, village pump (technical), talk pages or IRC.
General
technical help
Special
page
-related
Wikitext
Links and diffs
Media files: images,
videos and sounds
Other graphics
Templates and
Lua modules
Data structure
HTML and CSS
Customisation
and tools
Automated editing
Misplaced Pages accounts and governance
Unregistered (IP) users
Registered users
Account security
Blocks, bans, sanctions,
global actions
Related to accounts
User groups
and global user groups
Advanced user groups
Committees and related
Governance
Categories: