Conversation
Allocate a private directory for each prepare batch and return its run id. Target commit, resource verification, and explicit discard by that id. Keep failed backend commits retryable and remove successful runs completely. Document the CLI migration, executor ownership, and backend conflict boundary. BREAKING CHANGE: memorize commit and verify-resources require a run id. Co-authored-by: Codex <codex@openai.com> AI-Model: gpt-6-astra
Co-authored-by: Codex <codex@openai.com> AI-Model: gpt-6-astra
Report successful backend submission when snapshot refresh or working-file cleanup fails, so callers can discard the stopped run instead of resubmitting. Cover snapshot, job, and directory cleanup failures in regression tests. Co-authored-by: Codex <codex@openai.com> AI-Model: gpt-6-astra
Add a shared completed-work trigger to host instruction blocks and expose the packaged developer run guide through memu memorize instructions. Cover all nine host installers and validate the guide's canonical examples offline. Co-authored-by: Codex <codex@openai.com> AI-Model: gpt-6-astra
|
补充主动 memorize 的使用场景、触发方式,以及一次实际运行的结果。 使用场景
模型也可根据 managed instruction,在已完成任务中发现长期偏好、决策或可复用流程时主动启动。此类自主判断属于模型行为,不保证每个 host、模型、上下文下都稳定触发;应尊重用户不记忆的要求,且避免在安装、定时 bridging 和 evolve 执行中递归触发。 当前可用的显式触发在 host 对话里可以直接说:
这比只说“记住一下”更明确:它指定了工具入口和完成条件,避免 agent 只在聊天中口头确认。 也可以先手动运行: memu memorize instructions注意,这条命令只打印指南;真正的输入整理、evolve 和 commit 仍由 agent 接续执行。它本身不会保存记忆。
|
|
补充主动 memorize 的流程压缩顺序,作为后续优化建议。 这次真实运行产出为 1 条 memory、0 条 skill、0 条 resource。对于“保存刚才确定的设计”这种明确的 memory 请求,skill job 检查后没有新增产物,resource 验证结果也为 0;完整流程能工作,但有可省去的执行成本。
应保留的步骤:输入校验、与已有记忆的比较/去重、明确的 commit 边界,以及失败保留和恢复。模型理解当前上下文,并不意味着它知道后端已经保存了什么。 建议的主动 memory 流程: 以上是基于本次产出的优先级判断,尚未做逐阶段耗时测量,也不是当前已实现的简化路径。本 PR 继续聚焦 host 指令分发与触发入口。 |
|
已建立供分层评审的 upstream stack,由 MrXnneHang 创建,使用与原 PR 相同的提交:
评审可在该 stack 中进行;最终合入仍由 xnne-bot 的 #698 / #699 承接。已核对两层 head 与原 PR 完全一致。后续评审修改需要同步回相应合入 PR。 |
📝 Pull Request Summary
给所有 host 的 managed instruction block 增加主动 memorize 触发指引:用户要求记住内容,或已完成的交流/任务产生值得保留的偏好、决策、可复用流程时,agent 按需运行
memu memorize instructions,读取共享的完整操作指南。依赖 #698 的独立 run 生命周期。 本 PR 单独维护在
feat/host-active-memorize,未向 #698 添加提交;待 #698 合入后更新基线。仅审查本次指令改动:XnneHangLab-Mirror/memU@feat/developer-isolated-runs...feat/host-active-memorize
✅ What does this PR do?
install-instruction/remove-instruction,安装和卸载简短的主动 memorize 触发指引。memu memorize instructions,直接打印随包分发的 Markdown 指南;读取指南不构建 backend、不分配 run。install-instruction获取新触发指引。🤔 Why is this change needed?
Host agent 已能检索记忆,也需要在任务完成后主动保存值得保留的内容。统一的按需指南让各 host 使用同一输入与执行契约,同时保持常驻指令简短。
覆盖 Codex、Claude Code(含其 Cowork 接入)、Cursor、Hermes、OpenClaw、WorkBuddy、Cola、pi 和 generic agent。主动流程调用
memu memorize;定时 host bridging 继续使用自己的 prepare–commit 与游标,不因主动 memorize 跳过整个原始 session。🔍 Type of Change
✅ PR Quality Checklist
验证:
memu/app/memorize/INSTRUCTIONS.md。git diff --check。这里验证的是指令分发、命令和输入契约,尚未实测各 host 模型自主触发和完成 memorize 的效果。
📌 Optional
Evolve 类型选择继续由 #697 跟踪。