MDL-45918 tool_monitor: Rule manager class, unit tests and data generators.