A comment on another question stated the NEC does not allow smaller gauge wires on a circuit than allowed by the breaker, even if the wires themselves are rated higher(90C).
Many devices/appliances are tested(UL) to have smaller wires to connect to the household/home circuits. Either by plugs or junction boxes/hard wired.
I have assumed that a circuit ends at the device/appliance itself. Maybe NEC ends the circuit at the receptacle/junction box.
Where does the NEC and/or CSA(Canada) ends the circuit for the gauge of wire allowed? At the wall/junction box or at the device/appliance?
I am talking about wires/cables supplied by the manufacturer, not what we can add to the circuit ourselves.