Repository navigation
Conversation
origami-chen
requested changes
Oct 15, 2026
origami-chen
left a comment
Collaborator
There was a problem hiding this comment.
看了下,当前方案是从模型最终回复的 Markdown 中提取文件路径,再决定哪些文件需要交付检查。这个方案感觉不太合理,检查范围太依赖模型的回复格式了,PR里已经出现了两个问题:
- 正则问题导致带括号的文件名匹配失败,导致产物漏检;
- 声明交付多个文件但实际只生成部分文件,回复只链接已生成文件时,其他缺失文件未被检查,任务仍被判定为完成。
看下是不是可以复用 output_paths 和文件工具的执行记录,统一维护明确的待交付清单,在最终回复交付给用户前,直接核验完整清单中的文件是否存在、是否位于用户指定目录。检查时要注意区分中间文件与最终产物。
检查通过后,如果又发生文件变更、输出目录调整或相关后台任务继续写入,不能沿用原来的验证结果。子任务也需要获取最新输出目录,并将产物记录传回父任务,由父任务在真正交付前统一复核,避免用户已修改目录,子任务仍向旧目录交付。
Contributor
Author
|
已迁移至最新集成分支 v1.2.6,后续修改与审核请见 #677。本 PR 面向 v1.2.4,现关闭以避免重复审核。 |
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.
关联缺陷:MEMMY-592(https://devops.aliyun.com/projex/bug/99438b0647c72a788219fbeb2b)。项目 A 的任务读取外部目录 B 的参考资料后,产物可能沿用 B 的保存路径。现在默认保存到当前工作区;当前用户明确指定其他目录时直接采用,并在写入前和交付前检查位置。
修复范围
对格式、是否实际重写及虚假完成声明的对照实验显示,基模能力是重要因素:5.6 luna 出现复制旧稿并声称重写,6 luna 仍复用或未在本轮预算内完成,6 sol 在同样输入下实际生成和重写正文。本次不扩展记忆评分、摘要机制或报告正文验收,也不增加授权弹窗、操作系统隔离或 document 专用模块。该结论不保证强模型在所有任务中均正确。
独立提交
基于最新 v1.2.4:daf6bc76;修复提交:ca3b736d。相对目标分支只有 1 个提交,10 个源码文件和 3 个测试文件(共 13 个文件)。从旧 PR #608 提取已审核的功能与回归测试,未带入旧 CI 配置、同步合并提交或其他人的改动;新增一项回归测试,覆盖 v1.2.4 的工作区内绝对补丁路径与含空格文件名。
验证
测试工作流仅位于个人 fork 的独立验证分支,检出的修复提交固定为 ca3b736,不进入本 PR。验证:https://github.com/yxyi123/memmy-agent/actions/runs/38517241341
限制:这不是 OS 沙箱,不能完整阻止任意脚本中未声明的写入;没有增加报告原创性或语义完成审核。本轮没有重复与迁移无关的模型实验和已归因的全量基线失败。