Validation function header comments; implement _validate_repeat. Tests coming next.