Reads an int config value, preferring per-file config over constructor default.
int effectiveInt(String key, int fallback) { final v = _ruleConfig[key]; return v is int ? v : fallback; }