jayvdb added a comment.
I mentioned this on the CS, but it will be a long standing problem so worth mentioning here. Currently if there are two different usernames in for user and sysop, pywikibot drops down to the user account for non-sysop actions after a sysop action. It is bad behaviour on the wiki to split a sysop bots actions/edits between two accounts, which is why bot operators usually set both usernames to be the same username for a sysop bot which also performs normal edits. But we need to think about whether/how we support the prior behaviour, or fail in an orderly manner.
One approach is to set a flag when a user action has occurred, and error if the same bot attempts to perform a sysop action with a different username.
TASK DETAIL https://phabricator.wikimedia.org/T71283
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb Cc: gerritbot, XZise, jayvdb, Ricordisamoa, pywikipedia-bugs
pywikipedia-bugs@lists.wikimedia.org