On algebras of gauge transformations in a general setting
  We consider a Lagrangian system on a fiber bundle and its gauge transformations depending on derivatives of dynamic variables and gauge parameters of arbitrary order. We say that gauge transformations form an algebra if they generate a nilpotent BRST operator. 
G.Sardanashvily