fix(consult): read the live skill tree instead of a hash-pinned snapshot
Manual SKILL.md updates were blocked by registry sha256 and a byte-equal versions/ gate. Consult now loads the operator-maintained tree; rectification and personal-report stay hashed. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -4410,3 +4410,19 @@
|
||||
- 相关记录:BUG-291、BUG-293
|
||||
- 复发自:无
|
||||
- 修复版本:待提交
|
||||
|
||||
## BUG-295 | 咨询把解盘 skill 钉在哈希包上,手动更新 SKILL.md 不会生效
|
||||
|
||||
- 状态:resolved
|
||||
- 首次发现:2026-08-19
|
||||
- 最近更新:2026-08-19
|
||||
- 影响面:`skills/skill-package-registry.json`、`frontend/src/lib/skill-package-registry.ts`、`frontend/src/mastra/skill-binding.ts`、`frontend/src/lib/consultation-methodology.ts`、`frontend/src/mastra/index.ts`、`frontend/src/instrumentation.ts`、`deploy/railway-web.Dockerfile`。个人盘咨询。
|
||||
- 用户现象:维护者手动更新仓库根 `SKILL.md` / `references/` 后,网页咨询仍按钉死的 `versions/6.9.14` 哈希包作答;要让更新生效还得双份拷贝并重算 sha256。
|
||||
- 触发条件:咨询 Agent 绑定方法,或 `consultationMethodologyForDomains()` 取路由清单。
|
||||
- 根因:BUG-284/285 把咨询绑到 registry 里的 `jyotish-vedic-astrology@6.9.14`。`mastra/index.ts` 还要求根 `SKILL.md` 与该快照逐字节相等,否则进程拒绝启动。这把「手动更新 skill」变成了发版手续。
|
||||
- 修复:咨询改为读 live 目录 `skills/jyotish-vedic-astrology`(及可选 `JYOTISH_SKILL_PATH`),不校验 sha256、不钉版本。Mastra 只挂 live 的 `SKILL.md` / `references` / `scripts` / `assets`,不把目录里遗留的 `versions/` 快照交给 loader。生时纠正和个人报告仍用哈希包。启动时确认 live 树存在。镜像最终阶段同时拷入 `/app/SKILL.md`、`assets`、`references`、`scripts`,让 live 相对符号链接能解析。
|
||||
- 验证:`frontend/tests/skill-binding.test.ts`、`skill-registry.test.ts`、`consultation-methodology.test.ts`;registry 不再把解盘 skill 列为 active hashed package;`resolveActiveSkillPackage("jyotish-vedic-astrology")` 抛错。
|
||||
- 防复发:咨询路径不得再 `resolveActiveSkillPackage("jyotish-vedic-astrology")`,不得恢复根入口与 `versions/` 的逐字节相等门。哈希身份只留给 rectification 与 personal-report。
|
||||
- 相关记录:BUG-284、BUG-285、BUG-286、BUG-287
|
||||
- 复发自:无
|
||||
- 修复版本:待提交
|
||||
|
||||
Reference in New Issue
Block a user