MDL-63422 lib: horde - review core loop / switch / case / continue