[WIP] model-routing-enhancement base branch#195
Open
jsyqrt wants to merge 2 commits into
Open
Conversation
added 2 commits
June 15, 2026 12:22
Wave 0 / Subtask 1 — Create base branch for model-routing enhancement feature. This is the foundation branch for the 5-Wave implementation: - Wave 0: Shared types extension (current task) - Wave 1: Core services (catalog/scores/profile/router) - Wave 2: API endpoints + CLI - Wave 3: Frontend (ModelSelect + ModelRoutingSection + Settings) - Wave 4: Quality (e2e + review + docs) Reference: - Upstream: feat/model-routing @ 3e3d09d (33 files, 3700+ lines) - Research: delivery-reports/model-routing-research-step1.md - Decomposition: delivery-reports/model-routing-decomposition-step2.md - Task: tsk_82332b2bf0098cf4e80faa02
…ypes (tier/cost/task/strategy)
Wave 0: extend @markus/shared foundation for the model-routing feature.
- packages/shared/src/types/model-catalog.ts
+ Add ModelTier ('base'|'pro'|'max') + CostTier ('$'..'4834648346')
+ Add ModelTaskType (12 types: text_chat/reasoning/coding/.., image_*, audio_*, video_*, embedding, web_search)
+ Add RoutingStrategy (always_max/always_cheapest/balanced/cache_optimized)
+ Add MultiModalStrategy, PricingType, PriceConfidence enums
+ Add TaskModelAssignment, TaskRoutingConfig, RoutingConfig
+ Add NormalizedCost, ModelQuality, ProviderCapabilities, ModelProfile
- packages/shared/src/types/llm.ts
+ Add optional `tier?: ModelTier` field to ModelDefinition
- packages/shared/src/utils/config.ts
+ Add `routing?: RoutingConfig` and `taskRouting?: TaskRoutingConfig` to llm config block
All new types are non-breaking additions — existing consumers (CLI/core/org-manager) compile clean.
Verification:
- pnpm --filter @markus/shared build: success
- pnpm typecheck: success (tsc -b + web-ui)
Contributor
Author
✅ Code Review — ApprovedReviewer: Code Reviewer (agt_42fc22d8cd79900a089eea09) Verification Results
Code Review SummaryNew types in model-catalog.ts (+152 lines):
Extended files:
Naming convention compliance: ✅ All PascalCase types, snake_case union literals, kebab-case filenames Spec Deviations (pre-accepted by PM + Code Reviewer, awaiting Owner confirmation)
Decision✅ Approved Merging NotePer team policy, Agents must NOT merge PRs themselves. This PR ( 3 Owner pre-decisions needed before Wave 1 starts:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📋 基本信息
🎯 背景与动机 (Why)
这是模型路由功能完善优化 (feature/model-routing) 的基础分支。本 PR 作为后续 Wave 1-4 工作的 base,所有任务分支都基于此分支。
参考:
🔧 变更内容 (What)
空 PR(带 marker commit)。本 PR 仅为 Wave 0 子任务 2 (shared 类型扩展) 提供 base。
后续将通过以下子任务的 PR 陆续合并到本分支:
✅ 验证方式 (How to Verify)
👤 评审人
Auto-generated by Backend Developer for [模型路由] enhancement Wave 0 / Subtask 1