Repository navigation
Conversation
This branch has not been deployed
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.
问题与修复
召回注入原先忽略
contextBudget,返回的droppedDueToBudget始终为空,完整 Skill 内容及附加建议可能超出调用方指定的记忆预算。本次按原召回命中顺序,将渲染后的历史资料、决策建议(Decision guidance)及失败规避建议(Failure avoidance)一起计入预算。超出预算的条目整条舍弃并记录来源,再继续尝试后续较短的条目。时间过滤查询路径使用相同规则,注入来源与淘汰记录保持一致。
已确认的预算范围:固定任务提示保留在历史记忆预算之外。预算为零时移除召回资料,仍保留固定提示。完整输出的
tokenEstimate仍统计这些固定提示,因此可能高于历史记忆预算;估算沿用现有的字符长度计算方法。对应云效工单:MEMMY-815。本 PR 仅包含预算修复;MEMMY-814 的 Skill 简介修复另行提交。两个修复也已放在一起进行联合验证。
验证结果
目标分支为
v1.2.7,修复基线为88edd02a。本次修复不改变召回排序或候选条数。