Routing Policy Change
Agent Buildingrouting-policy-changeRouting Policy Change is an Agent Skill for agent building published in the vllm-project/semantic-router repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Modifies routing policy after signal extraction, including matched-decision logic, candidate-model selection, and downstream looper behavior. Use when changing decision predicates, thresholds, priorities, model ranking, cost or latency routing, or other post-signal routing policy.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/vllm-project/semantic-router/blob/HEAD/tools/agent/skills/routing-policy-change/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/routing-policy-change, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Routing Policy Change
Trigger
- Change boolean decision logic after signal extraction
- Change candidate-model selection, ranking, cost routing, or latency routing
- Change looper behavior that belongs to matched-decision policy instead of signal extraction or plugin hooks
Workflow
- Read change surfaces and module boundaries for routing-policy context
- Modify decision predicates, downstream model selection, or matched-decision looper behavior
- Run
make agent-report ENV=cpu CHANGED_FILES="..."to identify impacted surfaces - Run
make agent-ci-gate CHANGED_FILES="..."to validate all affected constraints - Verify routing-policy behavior is covered by targeted tests and affected E2E expectations
Gotchas
- Keep signal extraction upstream; do not smuggle classifier changes into this primary unless the signal contract itself is changing.
- Keep plugin hooks separate; looper changes that only support matched-decision policy belong here, but request or response body plugins still belong to the plugin flow.
- Decision predicates and candidate-model ranking can change user-visible routing even when the patch looks small, so they are not refactors by default.
Must Read
Standard Commands
make agent-report ENV=cpu CHANGED_FILES="..."make agent-ci-gate CHANGED_FILES="..."make agent-feature-gate ENV=cpu CHANGED_FILES="..."
Acceptance
- Decision predicates and downstream candidate-model selection stay aligned with the same routing-policy intent
- Targeted tests and affected E2E coverage are updated when routing-policy behavior changes
- Routing-policy logic stays downstream of signal extraction and separate from plugin-only processing