You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
examples/agy-safety-gate: enable Stage-0 static pre-filter (--static-stage) by default #53
In examples/agy-safety-gate/dgem_gate.py, the <1 ms Stage-0 deterministic static pre-filter (evaluate_static_stage0, blocking catastrophic destructive commands such as sudo, rm -rf /, force-pushes to main/master, .agents/hooks.json tampering, and credential file reads while fast-allowing pure local workspace reads) currently defaults to False (DGEM_GATE_STATIC=0).
On the 200-item held-out confirming evaluation across 6 tool-call categories, combining Stage-0 static rules with the 2-slot tool_safety_gate.json.tmpl policy and --cascade gemini is the recommended production configuration (95.0% accuracy, 0/70 safety leaks, 2/90 benign confirmation prompts at 10% Stage-2 escalation, vs. 11/90 benign prompts when Stage 1 runs alone).
Proposed Change
Enable static_stage by default in GateConfig (DGEM_GATE_STATIC defaults to "1"), while keeping explicit opt-outs via --no-static-stage and DGEM_GATE_STATIC=0 (and preserving --static-stage for backwards compatibility).
Update examples/agy-safety-gate/hooks.example.json, README.md (including the 200-item held-out evaluation summary and --cascade gemini recommendation), and test_dgem_gate.py.
Activity