Route existing harness models through native providers
Routes direct Mastra and DeepAgents model requests through the intended native provider while respecting explicit gateway routing. Missing provider configuration remains an actionable startup error.
Missing xAI credentials fail before client construction, preventing fallback to another provider’s ambient key.
Validation: 41 Python runner tests including synthetic cross-provider credential regressions; 32 Python tests, 18 Mastra routing/session tests, five build tasks, frozen dependency installation, and Mastra typecheck passed.
Stack position: 6/11. Base: evals/consolidation-07-deepagents-lifecycle. Each PR contains the change relative to its immediate predecessor.
Reviewer entry points:
packages/integrations/mastra-sdk/src/session.tspackages/integrations/mastra-sdk/tests/model-routing.test.tspackages/integrations/deepagents/runner/run_eval.py
Reordered stack: #2891 → #2892 → #2895 → #2896 → #2897 → #2898 → #2899 → #2900 → #2901 → #2893 → #2894.
Readiness: CI passed on 5caa682dca. Review threads are triaged and resolved.