To extend the use of this script, it would be useful if archivebot.py was able to detect and act on the status of a template to determine whether a section can be archived.
For example for stewards, could get archiving based on certain parameters set in [[m:Template:Status]]; similarly [[m:Spam blacklist]] could archive posts based on the available resolution states used there. So I am thinking that there could be the ability to set an additional parameter that reads the template name, and have the states of the template that would allow archiving (either as part of the parameter or as an additional parameter), and still based on the age algorithm.
Thanks for your consideration of this suggestion.
Tentative specification:
The algo parameter currently accepts the syntax "algo = old(30d)" only. It could be enhanced to accept more complex arguments to support templates indicating the status of the thread.
One natural way to support it would be to accept the two kinds of conditions by introducing logical operators. For example, it could be something like "algo = old(30d) OR marked(done) OR marked(not done)" where "marked(done)" means that threads with a template called {{done}} should be archived even if it's not old enough.