Skip to content

feat(router): tighten policy match semantics#76

Merged
typelicious merged 1 commit into
mainfrom
codex/feature/v1.1-routing-audit-2026-03-16
Mar 16, 2026
Merged

feat(router): tighten policy match semantics#76
typelicious merged 1 commit into
mainfrom
codex/feature/v1.1-routing-audit-2026-03-16

Conversation

@typelicious
Copy link
Copy Markdown
Collaborator

What changed\n- made policy matches treat client_profile as an additive constraint instead of an early-return shortcut\n- added regression coverage for cumulative policy matching and mixed any: policy conditions\n- documented hard vs soft routing layers more explicitly in the architecture notes\n\n## Why\nThis closes a subtle routing overlap before we add more AI-native client templates, so policy rules stay predictable when caller identity and other match signals are combined.\n\n## How verified\n- PYTHONPYCACHEPREFIX="/Users/andrelange/.codex/worktrees/257a/ClawGate/.pycache" python3 -m compileall foundrygate tests\n- PYTHONPATH=. ./.venv-check-313/bin/pytest -q tests/test_policies.py tests/test_routing.py\n- ./.venv-check-313/bin/ruff check foundrygate/router.py tests/test_policies.py tests/test_routing.py docs/ARCHITECTURE.md CHANGELOG.md\n- /usr/bin/git diff --check

@typelicious typelicious force-pushed the codex/feature/v1.1-routing-audit-2026-03-16 branch from 59aa839 to edba159 Compare March 16, 2026 01:54
@typelicious typelicious merged commit 7004843 into main Mar 16, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant