Repository navigation
feat(intent): 更新用户纠正后的任务状态并使旧计划失效 - #186
Merged
Merged
Conversation
added 4 commits
November 19, 2026 20:32
Adds opt-in taskIntent, stable userInput/taskId bindings, intent receipts, applyTaskRevision and execution guard APIs; completionGate receives an optional immutable intent binding. Bumps the SDK capability version to 0.37.0. Validation: full npm run verify passed all stages (95.7s; existing 60s CI time budget warning). After adding the optional callback binding, static/build/task-intent passed again. Offline provider and native acceptance probes cover stale batches, approvals, late replies, durable recovery, dedupe, and revision-bound evidence. No live model or device accuracy claims.
A fresh user turn without a native task binding must not implicitly revise the preceding task. Explicit engine turns and steers retain their trusted native task identity. Static/build/task-intent probes pass, including a new follow-up regression.
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.
用户在模型生成、工具批次、审批或验收等待期间纠正任务时,旧理解仍可能继续执行,旧证据也可能使新版任务通过验收。本变更让现有主模型在同一回复提交字段修改与计划;Runtime 可靠提交后才放行动作,收到新输入立即拦住旧计划的剩余动作。
新增 opt-in
taskIntent、可信userInput/taskId、语义回执、applyTaskRevision和执行 guard;completionGate 收到冻结的意图绑定。原生任务修订使旧计划和旧证据失效,恢复先重新规划,已完成任务历史保持不变。未绑定原生任务的后续用户提问不会隐式修改前一个任务。SDK 能力版本更新为 0.37.0。未增加 Jev 或第二次分类请求。验证:最终候选
91066777f19cff73729f3e917ea15b205565e9b5的 GitHub CI 已成功。本地完整npm run verify全部阶段通过(95.7 秒,触发现有 60 秒本地时间预算警告);最后两次边界补充后分别重跑 static/build/task-intent 成功。离线探测覆盖流式与非流式结构化工具协议、批次剩余动作、审批等待、迟到回复/验收命令、幂等、跨实例 CAS、崩溃恢复、同 revision 新计划、原生绑定和旧证据隔离。SDK examples 实跑通过。未做真实模型语义准确率或真实设备验收。Studio 接入在独立功能分支准备,本地候选运行包 808 个文件,未放宽打包预算;按 Studio 的官方 main 消费规则,本 PR 合并后再正式更新 Studio 子模块、upstream lock、package lock 与 runtime reference。当前为待审实现,不发布 Tag、不部署生产。
SDK 接入与边界见 docs/sdk-task-intent-revisions.md。