-- 0004_auto_pause.sql — circuit breaker su drawdown rolling (§7-bis F) -- -- Aggiunge alla `system_state` il timestamp fino a cui l'engine è in -- pausa automatica per via di un drawdown sopra soglia. NULL = engine -- attivo. Quando il valore è nel futuro, il rule engine salta il -- ciclo entry e logga la motivazione. -- -- Indipendente dal kill_switch (che resta dedicato a errori tecnici -- e a comandi manuali esplicitati). Le due tutele coesistono. ALTER TABLE system_state ADD COLUMN auto_pause_until TEXT; ALTER TABLE system_state ADD COLUMN auto_pause_reason TEXT; PRAGMA user_version = 4;