mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-11-23 16:40:53 +08:00
A failed rule load left the enabled-tools set nil, so IsToolEnabled answered false for every tool and the guard returned before any rule ran; Match, MatchBuiltin and MatchPersistence answered "no match" on the same error. A database outage therefore let every tool call run unchecked. Now, when the rules or the enabled-tools setting cannot be read, IsToolEnabled answers true so the call reaches the rule path, and the three matchers return a deny. The error is logged once per outage. A failed read of the enabled-tools setting counts as a failed load instead of silently selecting the defaults. A deny or ask rule whose pattern does not compile is no longer skipped: it matches every call as a deny until it is fixed or disabled. A broken allow rule still allows nothing.