Add a new flag that indicates which stage in the process we are in.
This flag is introduced for handling behavior of getAAFor according to the stage. (discussed in D86635)
Thank you for creating this. I was thinking of something like this rather than having multiple flags.
In D86587 I iterate on functions multiple times and I delete AAs early after manifesting them.
(Manifest happens multiple times).
I think most of the state change should happen in the ::run function.
The state is stuck as MANIFEST