feat(cli): batch developer memorize sessions - #695
Open
xnne-bot wants to merge 3 commits into
Open
Conversation
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.
📝 Pull Request Summary
支持
memu memorize prepare在一次运行中处理最多 10 个独立的 canonical session JSON 文件。✅ What does this PR do?
1.jsonl至N.jsonl及相应的_full.jsonl文件。prepare_memorize前完成校验;超出 10 个输入会直接拒绝。🤔 Why is this change needed?
对齐 bridging pipeline 的每次运行最多 10 个 session 的边界,让外部开发者集成可以将多个已完成的独立 session 作为一个串行 evolve run 提交,并在最后只执行一次 commit。
Closes #184
🔍 Type of Change
✅ PR Quality Checklist
feat:,fix:,docs:,memory base:)📌 Optional
已覆盖超过 10 个输入的拒绝、多个输入的传递、编号 transcript 与 job 顺序。后续 token 预算和动态上限将作为独立阶段实现。
验证:
uv run python -m pytest tests/test_memorize_cli.py tests/test_memorize_lifecycle.py tests/test_memorize_materialization.pyuv run mypy src/memu/cli.py src/memu/app/memorize/lifecycle.py src/memu/app/memorize/materialize.pygit diff --check