On planets undergoing consumer goods shortages, labor allocated to defense structures gets reduced automatically to run the consumer goods autofac structure. Once the shortage ends, labor doesn't get returned to the original settings.

Either planetary defense allocations should try to return to whatever the player had them set to originally unless it is likely to induce a second shortfall, or planets should generate an alert when defense allocations get reduced.