major refactoring of rules API default tip

(0) -100 -30 -10 -1 tip

mercurial