; Pre-cycle habit rules v1
; Rule 1: query-before-send gate
(= (habit-check send-without-query) (if (== (queried-this-cycle) False) (Error HALT-must-query-first) (Ok proceed)))
; Rule 2: tool-failure escalation
(= (habit-check tool-stuck) (if (> tool-failures 1) (Action switch-tool) (Ok retry)))
; Rule 3: self-reliance gate
(= (habit-check ask-user) (if (== (queried-memory) False) (Error HALT-query-memory-first) (Ok may-ask)))
