feat: Enhance model routing specs, documentation, and validation features#454
Conversation
- Add formal routing behavior spec at openspec/specs/model-routing/spec.md - Archive completed productize-model-routing SDD change - Add next-stage-routing-capabilities exploration (DALLAY-174) Refs: DALLAY-173, DALLAY-174, DALLAY-175
- Add EN guide at guides/model-routing.md - Add ES guide at es/guides/model-routing.md - Add guide to docs sidebar in astro.config.mjs - Add lightweight docs content tests Closes #269
…ements - Add check_classification_integrity doctor checks: orphaned hints, zero rules, zero routes, never-matching rules - Improve unknown-hint fallback warning with hint name and model - Improve failed-provider warning with affected route hints - Add targeted tests for all new checks and warning paths - Add default-model fallback tests for disabled/no-match classification Refs: DALLAY-173
- Fix doctor empty-hint guard to also warn on empty classification hints - Extract tracing capture harness to shared test_support module - Fix Anthropic model ID (claude-sonnet-4-6) in EN/ES docs - Replace brittle line-number refs with function names in design.md - Add language tag to diagram fenced block in design.md - Fix heading levels in exploration.md and verify-report.md - Clarify raw selector preservation in spec unknown-hint scenario - Add CI step for model-routing docs content tests Refs: DALLAY-173
…e agents - Add capabilities module with CapabilityDescriptor, CapabilityRegistry, and tool registration bridge - Extend ToolSourceMetadata with capability descriptor fields - Wire MCP tool/prompt/resource adapters to emit capability descriptors - Register capabilities during bootstrap startup - Include SDD artifacts: exploration, proposal, spec, design, tasks, verify Refs: DALLAY-250
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (18)
Disabled knowledge base sources:
📝 WalkthroughSummary by CodeRabbit
WalkthroughThis PR introduces a non-executing descriptive capability registry system that registers native tools and MCP-derived capabilities during bootstrap after profile filtering, while preserving all existing runtime execution paths and dispatch behavior unchanged. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
# Conflicts: # clients/web/apps/docs/src/content/docs/guides/model-routing.md
Deploying corvus with
|
| Latest commit: |
16d5326
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://ca3984ee.corvus-42x.pages.dev |
| Branch Preview URL: | https://feature-dallay-173-productiz.corvus-42x.pages.dev |
✅ Contributor ReportUser: @yacosta738
Contributor Report evaluates based on public GitHub activity. Analysis period: 2025-04-07 to 2026-04-07 |
|



This pull request introduces a new capability registry system to the agent runtime, which formalizes how tools are described, registered, and validated as "capabilities." It ensures that the set of active tools matches the set of registered capabilities after profile and MCP (Managed Capability Provider) filtering, and adds comprehensive validation and error handling for capability descriptors. Additionally, it includes new and updated tests for classification logic and registry correctness, and minor workflow improvements for documentation checks.
Capability registry and tool registration:
CapabilityRegistrytype and related modules (descriptor,registry,tool_registration) that define, register, and validate tool capabilities using structured descriptors, including error handling for duplicate IDs, missing fields, and invalid metadata. (clients/agent-runtime/src/capabilities/descriptor.rs[1]clients/agent-runtime/src/capabilities/registry.rs[2]clients/agent-runtime/src/capabilities/mod.rs[3]BootstrapContextto include acapability_registryfield, ensuring the registry is built from the final set of active tools after profile filtering, and adds validation to guarantee registry and tool list consistency. (clients/agent-runtime/src/bootstrap/mod.rs[1] [2] [3] [4]clients/agent-runtime/src/bootstrap/mod.rs[1] [2]clients/agent-runtime/src/capabilities/registry.rs[3]Classification and agent tests:
clients/agent-runtime/src/agent/agent.rsclients/agent-runtime/src/agent/agent.rsR3069-R3130)Workflow improvements:
docs-quality.ymlworkflow to include and run themodel-routing-docs.test.mjsscript, improving documentation validation coverage. (.github/workflows/docs-quality.yml[1] [2]Closes: #453