Repository navigation
feat(package): context-knowledge-query 按证据链查询 - #82
Merged
Merged
Conversation
…discipline Rewrite the shared package query Skill around an evidence chain: navigate package pages, widen to linked pages and candidates, trace each claim's recorded sources directly, investigate code at the recorded commit along imports and calls, and stop when remaining gaps cannot change the answer. Port the applicable inspect-search rules for package-only use: sparse commit-pinned retrieval, duplicate-definition and version handling, document evidence, conditional answers and knowledge-update reporting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 of 6 tasks
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.
Summary
把随包分发的
context-knowledge-querySkill 改写为按证据链查询:从知识包页面出发,按需扩展到链接页面与候选页面,直接追溯结论记录的出处,在记录提交上沿 import、调用调查代码,并在剩余缺口不影响结论时停止。适用于无工作区的知识包场景的检索规则与工作区侧检索保持同一水平。Compatibility
None。只改 Skill 文本(中英两份)及检查它的测试;Skill 名称、
metadata.shared、检索脚本与包结构不变,版本号不变。Verification
见下方「自测情况」。
Checklist
bun run verify:fullpasses.(由 CI 执行)背景
0.7.84 的
context-knowledge-query主要是旧knowledge-query的多包版本:一次导航、一次检索,回源只有一张表。工作区侧检索中决定答案质量的做法——按“剩余缺口是否会改变结论”决定是否继续深入、直接追溯出处、按提交调查代码、版本基线、有条件结论——都没有带进知识包。改动
.tmp/context-knowledge-query/;标题、片段和出处条目只用于定位,不代表已读原文;遵守本地/离线/远程读取约束。git ls-tree定位模块、身份核对与单写入者、不改用户检出、不用默认分支代替。风险
.tmp/context-knowledge-query/,不改用户检出。向后兼容
metadata.shared)、检索脚本参数与输出不变;各包副本仍逐字节相同。自测情况
pluginWorkspaceGuard.test.ts、projectV060.test.ts、projectContextKnowledgeQueryScript.test.ts、projectQuerySkillMigration.test.ts、packageSite.test.ts:38 个用例全部通过(模板章节、中英对应、无包专有变量、渲染后无作者说明等)。🤖 Generated with Claude Code