The three meanings cluster around one idea - 'rules of the house' - but escalate. (1) Family code of conduct. (2) The literal stick (a
戒尺) for enforcing it. (3) By extension, the 'house rules' of a scholarly tradition, where Han dynasty Confucian academies competed over rival
家法 of classics interpretation. Context tells you which sense applies.