DEF is not a fuel additive and never comes into contact with diesel. It is stored in a separate tank, typically with a blue filler cap.
The EPA requires vehicle manufacturers ensure DEF equipped engines cannot run without DEF. Before a vehicles DEF tank runs empty the driver is alerted on his dashboard displays (much the same way as if they were running low on fuel or other fluids). For example, when the DEF tank level drops below 10% an amber warning lamp will come on, at 5% this lamp starts flashing and below 2.5% a solid amber warning light is displayed.
Read more about DEF also Here