ARTEX/guard
BaaRai 57d3bf67e7 fix(intercept): fail closed when the rule store cannot be read
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.
2026-11-21 07:34:29 +01:00
..
argv_test.go fix(intercept): deny always-allow for git, cmake, ctest and cpack 2026-11-20 01:23:45 +01:00
guard.go security(server): keep server secrets from agent processes 2026-11-20 05:35:53 +01:00
guard_test.go fix(intercept): fail closed when the rule store cannot be read 2026-11-21 07:34:29 +01:00
judge_precedence_test.go Intercept judge: closed-question mode, fail-closed to ask 2026-11-12 22:35:11 +01:00
target_gate_test.go Merge pull request #375 from Alexandre200-lab/main 2026-11-20 03:33:50 +01:00
testmain_test.go feat(intercept): target extraction, resolver, exemptions and the gate in the hook (S3b 1.5-1.7) 2026-11-11 00:34:55 +01:00