- Add routing.dto.ts with validation DTOs for create, update, and reorder operations
- Add routing.controller.ts with full CRUD: GET list, POST create, PATCH update,
DELETE remove, PATCH reorder, GET effective (merged priority view)
- Users can only create/modify/delete their own user-scoped rules; system rules are
protected with ForbiddenException
- GET /api/routing/rules/effective returns merged rule set with user rules taking
precedence over system rules at the same priority level (M4-010)
- Extend agent-config.dto.ts with capability shorthand fields: domains, preferredModel,
preferredProvider, toolSets (M4-011)
- Update agent-configs.controller.ts to merge capability fields into config.capabilities
so agent's preferred model/provider can influence routing decisions
- Register RoutingController in agent.module.ts
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>