debt(model): runTrialRun 契约缺 model_ref → (provider,modelId) 映射,无法接线 —— routeModelCall 网关也没建
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- Avg merge
- 1h 7m
- Merged PRs (30d)
- 969
Description
## 背景
Line A(#595 拆分,PR #604)落地了 `trialRunAgent`(wave2 agent 模型,已接线)。
另一条契约操作 `runTrialRun`(`packages/contracts/src/skills.ts`,声明式 skill 模型/模型B)**未接线**——
不是漏做,是结构性缺口:
- `runTrialRun` 作用于 `skill_contracts`/`skill_contract_versions`,其 `modelRef` 是一个字符串。
- 唯一真实的模型调用适配器需要精确的 `(modelProvider, modelId)` 二元组。
- 从 `modelRef` 到 `(modelProvider, modelId)` **没有已签核的映射**。
- 模型池自己的出站网关 `routeModelCall` 从未建成(其迁移文件头注自己写明了这点)。
## 要求
不要单方面发明映射或网关——先评估最小可行方案(可能是给 `skill_contracts` 加一个显式的
`(modelProvider, modelId)` 字段而不是自由字符串 `modelRef`,或者真正建 `routeModelCall`),
按 ADR-023 登记待人类签核。
不阻塞 #595(trialRunAgent 已经覆盖了 wave2 skill/agent 试跑,是运行时唯一读的那套)。
Contributor guide
No contributing guide indexed for this repository
Research direction
Read packages/contracts/src/skills.ts and the migration file whose header says routeModelCall is not built, then review ADR-023 and the context from #595 and PR #604. Compare the smallest viable mapping or gateway options without implementing either; done means a documented ADR-023 proposal is ready for human sign-off and #595 remains unblocked.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- backend-api-design, databases
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100