Repository navigation
feat(examples): enable Stage-0 static pre-filter by default in agy-safety-gate - #54
Merged
ghchinoy merged 1 commit intoNov 9, 2026
Conversation
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #53
Summary
Enables the
<1 msStage-0 deterministic static pre-filter by default inexamples/agy-safety-gate/and updates the example documentation with the 200-item held-out confirming evaluation results:examples/agy-safety-gate/dgem_gate.py: DefaultsGateConfig.static_stagetoTrue(DGEM_GATE_STATIC=1), preserves--static-stagefor backwards compatibility, and adds--no-static-stage(alongsideDGEM_GATE_STATIC=0) as an explicit opt-out.examples/agy-safety-gate/hooks.example.json&README.md: Recommends Stage-0 static rules +--cascade geminias the default hook configuration and updatesComparative Evaluation Summarywith the 6-category, 200-item held-out evaluation numbers (93.5%2-slot vs.89.5%gemini-3.5-flash-litebaseline at0.35xp50 latency and0/70leaks;95.0%accuracy and2/90benign asks with--cascade geminiat10%escalation).examples/agy-safety-gate/test_dgem_gate.py: Adds unit test coverage for defaultstatic_stage=True,DGEM_GATE_STATIC=0, and--no-static-stage.Verification
python3 -m unittest -v examples/agy-safety-gate/test_dgem_gate.pymake check-public