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 }}
This repository was archived by the owner on Apr 16, 2026. It is now read-only.
The policy condition evaluator is a hand-rolled parser that only supports &&, basic equality, and a single .exists() function. This is too limited for real policy expressions.
Summary
The policy condition evaluator is a hand-rolled parser that only supports
&&, basic equality, and a single.exists()function. This is too limited for real policy expressions.Current state
internal/authz/policy/engine.go:141-212— custom condition parserrequest.tool == "github",session.agent_id == "agent_123",session.tool_context.exists(t, t == "browser")&&(AND) — no||(OR), no!(NOT), no parenthesesstartsWith,contains,endsWith)Required work
github.com/google/cel-gorequest.*,session.*,grant.*&&,||,!, parenthesesFiles
internal/authz/policy/engine.go— replace evaluatorinternal/authz/policy/engine_test.go— update tests for CEL expressionsPriority
Medium — current evaluator works for basic cases but won't scale to real policy needs.
🤖 Generated with Claude Code