Hello,
in T243701, we discuss an issue of maxlag higher than 5s for Wikidata. The issue is caused by bots editing too frequently, WDQS lags, bots stop due to maxlag parameter forcing them to, WDQS recovers, lag decreases and so on.
Pywikibot respects the value set in Retry-After header, see Pywikibot's code (1, 2).
Increasing this value, at least for Wikidata (we'd need a new hook for that probably), could make bots delay with editing for longer time, giving more time to WDQS to recover.
Opinions?