Pull escape conditions out of functions in generic_agent

CheckPromises, ReadPromises, VerifyBundleSequence, CompilationReport