-
Notifications
You must be signed in to change notification settings - Fork 0
fix: close capability review gaps #76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,6 +37,8 @@ DeepSeek 是唯一保留旧环境变量别名的 LLM provider:`DEEPSEEK_MODEL` | |
|
|
||
| 天气能力先按可独立替换的领域能力建模,但现有 QWeather 和 Open-Meteo adapter 仍各用一次完整请求流程返回天气、空气质量、生活指数或过敏原的组合快照。`CapabilityProviderSet` 因此把完整 adapter 放在天气槽位,只把已有独立 adapter 的 AQICN 放在空气质量槽位;为了拆分类型而重复请求同一厂商会增加延迟、配额消耗和部分失败状态。fallback 的 `weather_metadata` 只声明所有候选 adapter 都支持的能力,避免当前实际选中某一路时 `supports()` 返回无法兑现的结果。若厂商提供可独立调用且有实际替换需求的预警、nowcast 或过敏原接口,应新增对应槽位和薄 adapter;若未来路由需要表达“至少一个候选支持”而不是共同保证,则应另建聚合元数据,不能改变当前 `supports()` 的语义。 | ||
|
|
||
| `ALLERGEN` capability 只声明 adapter 能提供独立、结构化的 `AllergenSnapshot`,而不是泛指任何与过敏有关的用户文本。路由元数据需要表达可独立替换的数据契约,因此 QWeather 类型 7 综合过敏指数仍归入 `LIFESTYLE`;面向简报完整性的 `has_allergen_information` 可以同时为真,用来要求模型给出过敏建议。这一选择接受了“QWeather 有过敏建议但 `supports(ALLERGEN)` 为假”的表面差异,以避免把综合指数误当成具体花粉浓度或可替换的过敏原数据源。若未来路由需要查找“任意过敏建议”,应新增不同 capability,而不能扩宽 `ALLERGEN`;若 QWeather 提供结构化花粉种类和浓度,则应重新声明其支持 `ALLERGEN`。 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 1. allergen contract duplicated in docs The ALLERGEN capability contract is described in both docs/design.md and docs/notes.md with overlapping multi-sentence text, but docs/notes.md does not point to a canonical source. This duplication can drift over time and violates the requirement to link to a single authoritative document instead of repeating detailed contracts. Agent Prompt
|
||
|
|
||
| `Article.id` 是带 Feed 身份的文章级稳定 ID,用于去重和模型引用;`Article.source_id` 是 Feed 配置 ID。同一内容出现在不同 Feed 时保留不同文章 ID,以维持来源隔离和可追溯性。只有在产品明确引入跨来源 canonical identity、并定义转载和更新版本的合并规则后,才应重新评估这一选择。 | ||
|
|
||
| LLM schema 到 `BriefingResult` 的转换保持为领域模型之外的 `parse_result()`。领域 dataclass 不依赖 Pydantic 或 any-llm,provider 也不拥有来源 ID 归属规则。将转换放入任一对象都会让平台 SDK 或不可信输入校验进入错误的层级。 | ||
|
|
||
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.