ARTEX/guard
BaaRai 1f297d75f2 guard: bound the length of block reasons sent to the model
A deny reason comes from a rule message, the fallback judge or the
target gate, and nothing bounds its length. systemBlockMessage and
TargetBlockMessage now cap the reason at 4000 runes (rune-safe, with a
" …(truncated)" marker) and keep the platform framing and the guidance
text intact. Interceptor.Log still stores the raw reason.
2026-11-11 23:33:53 +01:00
..
guard.go guard: bound the length of block reasons sent to the model 2026-11-11 23:33:53 +01:00
guard_test.go guard: bound the length of block reasons sent to the model 2026-11-11 23:33:53 +01:00
target_gate_test.go fix(intercept): match block rules on the declared targets before any lookup 2026-11-11 15:47:58 +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