Quy định về bot

From Meta, a Wikimedia project coordination wiki
This page is a translated version of the page Bot policy and the translation is 51% complete.
Outdated translations are marked like this.
Shortcut:
BP
Trang này liệt kê các tiêu chuẩn và hướng dẫn có liên quan đến bot có hiệu lực thi hành tại một số dự án (xem Bot policy/Implementation); bạn có thể kiểm tra điều này bằng cách nhấn vào "Project:Bot policy" tại wiki đó, để được dẫn sang đây hoặc đổi hướng đến quy định cục bộ tại đó.

Trang này cũng là một quy định tại Meta, bao gồm chấp thuận tự động và bot toàn cục. Để yêu cầu quyền bot tại Meta, vui lòng đến Meta:Requests for adminship#Requests for bot flags.

Bot là các quy trình tự động hoặc bán tự động để sửa đổi trang với sự giám sát hạn chế hoặc thậm chí không cần giám sát từ con người. Vì bot có khả năng gây nghẽn tài nguyên máy chủ hoặc tổn hại đến dự án, bot phải tuân theo các quy định và hướng dẫn được liệt kê bên dưới. Quy định này chỉ ra cách thức mà bot có thể dùng tại các dự án áp dụng; những bot nào không làm theo quy định sẽ có thể bị cấm vĩnh viễn cho đến khi người vận hành giải quyết xong các vấn đề không tuân theo quy định.

Quy định

Tài khoản bot

Một tài khoản bot phải chạy tại một tài khoản tách rời với tài khoản của người vận hành, vì biên tập viên con người không được trao cờ bot. Trang người dùng của nó phải chỉ rõ nó là bot để phân biệt nó với biên tập viên con người, và người vận hành phải luôn sẵn sàng trả lời mọi bình phẩm. Không thành viên nào được phép sử dụng mã trả lời tự động. Một số người vận hành có thể chọn cách chuyển hướng trang thảo luận của bot đến trang thảo luận của họ, nếu bot đó không được lập trình để phát hiện ra tin nhắn.

Cấp quyền

Có ba cách để có được quyền bot tại một wiki.

Bot toàn cục

Bot toàn cục được trao quyền tại mọi wiki cho phép bot toàn cục. Tính đến ngày 12 tháng 11 năm 2022, do nghị quyết này, các wiki nội dung mới được khởi tạo sẽ được mặc định bật quyền truy cập cho bot toàn cục. Các dự án địa phương có thể quyết định tham gia hoặc không tham gia vào bất cứ lúc nào thông qua đồng thuận tại cộng đồng (xem danh sách). Những người vận hành nộp đơn xin cờ bot toàn cục phải đạt những điều kiện sau đây:
  • Người vận hành bot phải bắt đầu một cuộc thảo luận kéo dài 2 tuần tại Steward requests/Bot status#Global bot status requests;
  • Cuộc thảo luận sẽ được quảng bá qua MassMessage (Thảo luận bot toàn cục mới), nơi thành viên và cộng đồng và wiki có thể đăng ký nhận tin;
  • Người vận hành bot phải cho thấy tác vụ mà bot thực hiện sẽ được hoan nghênh tại nhiều dự án Wikimedia. Cách tốt nhất để chứng minh là nó đã được cấp quyền bot địa phương tại 5 wiki trở lên cho cùng một tác vụ;
  • Người vận hành cần đảm bảo tuân theo tùy chọn của wiki về việc sử dụng cờ bot.
  • Cờ bot toàn cục sẽ cấp quyền truy cập bot tại một số lượng dự án có giới hạn và các wiki có cho phép quyền truy cập của bot toàn cục. Xem danh sách đầy đủ ở đây. (Bạn có thể yêu cầu cờ bot cục bộ tại các dự án nơi không cho phép bot toàn cục.)

Tự động phê duyệt

Nếu một wiki cho phép sự phê duyệt tự động, người vận hành bot có thể yêu cầu cờ bot cục bộ trực tiếp từ tiếp viên. Để được duyệt, các điều kiện sau phải được thỏa mãn:
  • điều này phải được quy định bot cục bộ hoặc trang yêu cầu cho phép;
  • bot phải sửa đổi thường xuyên mà không có cờ bot trong ít nhất một tuần hoặc thực hiện 100 sửa đổi tại wiki đang được xin phép để minh họa;
  • bot chỉ được sửa đổi hướng kép.

Đồng thuận của cộng đồng

Otherwise if there is a local community interested in processing bot applications, bots must obtain community approval on the most relevant local discussion page before editing without a bot flag at high speeds or without human supervision. Once there is consensus, a local bureaucrat will add the flag, or a steward may be requested to do so.

If there is no local community and the above does not apply, the bot must operate without a bot flag or not at all.

Unacceptable usage

  • Controversial changes: Bots may be used to perform edits which are most likely supported by other local editors; they should never be used to perform controversial edits. If you intend to expand the scope of the bot beyond that which was supported by the community, make note of this at the relevant discussion page to ensure that there is no opposition. If your bot flag was given by automatic approval, you must not exceed the limits described under "Automatic approval".
  • Data retrieval: Bots may not be used to retrieve bulk content for any use not directly related to an approved bot task. This includes dynamically loading pages from another website, which may result in the website being blacklisted and permanently denied access. If you would like to download bulk content or mirror a project, please do so by downloading or hosting your own copy of our database.
  • Spellchecking: No bot may automatically correct spelling mistakes without explicit community approval, particularly in the main content namespace. It is not technically possible in most languages to automatically correct spelling mistakes without a significant margin of error.

Removal of global bot status

Global bot permissions will be removed:

  • At the bot's operator request
  • If the bot is persistently used to perform tasks that are outside the global bot remit
  • If the bot is found to be inactive, with the following provisions:
    • A global bot account is deemed inactive if it has not made any edits for a whole year on any project that allows global bot access.
    • Before a global bot account's permissions are removed on the basis of inactivity, its operator must be notified at least on their home wiki(s) and at Meta-Wiki.

Guidelines

Tên

Although not required, the bot name should clearly contain the word "bot" in its user name to more easily distinguish it from human editors; the most common forms are derived from the operator's username (such as Pathosbot), or using disambiguation style (such as Xenophon (bot)).

Edit throttle and peak hours

Bots running without a bot flag should edit at intervals of over 1 minute between edits (= less than 1 edit per minute). Once they have been authorised and appropriately flagged, they should operate at an absolute minimum interval of 5 seconds (12 edits per minute). Bots should try to avoid running during the busiest hours, as they rapidly use server resources that should be reserved for human readers and editors. During these hours, they should operate at intervals of 20 seconds (3 edits per minute) to conserve resources.

Bots' editing speeds can be automatically adjusted based on server load (slave database server lag) by appending an extra parameter to the query string of each requested URL; see maxlag documentation on mediawiki.

Supervision

Unless the bot is publicly stated to run autonomously, the operator should remain available, occasionally check for messages, and be ready to shut down the bot if it does not perform as desired or if complaints are received. If the operator is not available, the bot may be blocked until any issues are resolved.

Best practices

Please read wikitech:Help:Toolforge/Developing successful tools for strong recommendations that will make life easier for you and for everyone else in the future!

Briefly:

  • Pick a license
  • Publish the code
  • Have co-maintainers
  • Write some documentation

Xem thêm