fix: 首装核验复用原始资料并消除 manage 示例误导 (#13)

This commit is contained in:
2026-09-19 12:46:59 +08:00
committed by GitHub
parent bd4bf36bce
commit 779ef2712d
4 changed files with 35 additions and 29 deletions

View File

@@ -654,6 +654,18 @@ test('Skill-first 正文短而完整、按需提供既有 HTTP 工具、不加
}
})
test('首装观察示例复用 resolver material,不将 install 改为 manage', async () => {
const api = await readFile(join(here, '..', 'references', 'recording-api.md'), 'utf8')
const skill = await readFile(skillPath, 'utf8')
assert.match(api, /material: resolution\.data\.material/)
assert.match(api, /expectedRevision: resolution\.data\.expectedRevision/)
assert.match(api, /首装完成后仍是 install/)
assert.doesNotMatch(api, /"action":\s*"manage"/)
assert.match(skill, /首装结束也不能改成 manage/)
const recovery = await readFile(join(here, '..', 'references', 'recovery.md'), 'utf8')
assert.match(recovery, /响应未知不能如此处理/)
})
test('Skill contract has no fixed official/local Registry fallback and resolves before execution', async () => {
const skill = await readFile(join(here, '..', 'references', 'legacy-services.md'), 'utf8')
assert.doesNotMatch(skill, /registry\/official\/entries/)