Title: Theory of adaptive mechanisms