mirror of
https://git.openapi.site/https://github.com/desirecore/market.git
synced 2026-09-05 19:03:50 +08:00
## 背景 / Background desirecore/desirecore#2248:真机测试中 code-intelligence 技能被绕过——模型未加载技能、未解锁 `Lsp`,直接用 Glob/Grep 文本检索回答语义导航问题,用户无从知道拿到的不是语义结果。 In real-device testing the skill was bypassed entirely: the model answered semantic-navigation questions from Glob/Grep text matching without loading the skill or unlocking `Lsp`, with no disclosure to the user. ## 变更 / Changes - **description(根级 + i18n 双语)改为命令式**:语义导航请求必须先加载本技能解锁隐藏的 `Lsp` 工具,禁止未尝试 `Lsp` 就用文本检索作答(配合主仓库的技能目录 provides.tools 附注,模型在决策点即可看到该指令) - **L1 新增「硬性规则」**(双语):`Lsp` 优先;限定允许回退的三种情形;任何回退到文本检索的回答必须向用户显式声明「结果来自文本匹配而非语义分析」及原因 - **L2 降级策略**同步引用硬性规则 - version 1.0.0 → 1.1.0;重算 i18n `source_hash`(`translated_by: human` 保持锁定) ## 校验 / Validation - `uv run scripts/i18n/validate-i18n.py` → OK - `uv run scripts/i18n/translate.py --check` → code-intelligence 两 locale 均无 stale