RulesetsByID is more complicated than it used to be

It gets populated opportunistically as rulesets are read from the database...
debugging