A judge model on the cluster: role guard in the catalog, judge in a guard policy
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
0b4c4f0698
commit
43f6a585a6
16 files changed
+803
-15
No files matched your search
@@ -130,6 +130,7 @@ func newServerCmd() *cobra.Command {
|
||||
if gate, err = guard.NewGate(cfg.Guard, att, log); err != nil {
|
||||
return fmt.Errorf("guard: %w", err)
|
||||
}
|
||||
gate.SetJudge(rt.Judge, rt.GuardFormat)
|
||||
rt.SetGuard(gate)
|
||||
log.Info("guardrails on", "policies", len(cfg.Guard.Policies), "default", cfg.Guard.Default)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user