Repository navigation
fix: require same-turn modification to upgrade read trigger and bound gate to cwd (Fixes #35) - #39
Merged
Merged
Conversation
… gate to cwd (Fixes #35)
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.
概要
解决在真实 Pi 1.4.0 会话中,纯文字问答时模型调用 read 读取形式化验证技能被误判为启动、导致门禁反复注入并促使模型跨仓库寻找产物的严重误触发问题 (Fixes #35)。
修法
read 不再单独算启动(候选升级机制):
门禁工作区隔离与约束:
验证证据
复现用例真实 Pi 1.4.0 会话端到端验证:
actual Pi host: Hark reproduction conversation performs tool calls and settles without gate injection/skill:poteto-help提问形式化验证技能用法;模型发起 2 次 read 工具调用分别读取 create 与 maintain 技能,随后输出纯文字回答;全套自动化测试通过:
scripts/formal-verification-gate.test.mjs:80/80 测试全过(包含 5 个负向测试、2 个升级正向测试、1 个 B 部分无产物测试、1 个歧义判定测试及提示范围限定测试);npm test:全部 36 个测试文件(36/36)全绿;npm run check:generate:exit 0,131 个资源检查通过;npm run check:fidelity:exit 0,上游保真度 94.01% 通过;git diff --check:干净无报错。