Repository navigation
feat(memory): 支持 Portal 查看经验记忆 #732
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
openjiuwen-sync-bot
wants to merge
1
commit into
openJiuwen-ai:mem2.0
Choose a base branch
from
openjiuwenai:sync/pr-521
base: mem2.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,017
−70
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
head_sha:
43cb8c2a21ecd8954610ae760d4bd67efb80e9be1、experience_list 全量扫描 + 逐条统计,热路径开销偏大(requests.py:108-137、requests.py:65-88)
每次列表请求都会 api.list(..., limit=10001) 反序列化最多 1 万条经验,再在内存过滤/排序分页;随后对当页每条可见经验各调一次 experience_feedback(一次 get + 一次 kv.get),并对技能 provenance 做全量翻页扫描。limit=10001 也让 len(page.items) != page.count 的 ConflictError 兜底对将来做后端分页的实现偏脆弱。建议:统计改用批量读取、技能扫描一次复用;或把分页/过滤下沉到存储层、调低 _MAX_EXPERIENCES。
2、portal_experience_space 缺长度上限且未 strip()(requests.py:31-35)
同文件 _label(:182-185)已有 <=128 上限并 strip(),此函数只校验非空与无控制字符。宿主传入带首尾空白/超长的空间名会被原样绑定进会话与 Scope,导致列表恒空、详情恒 404 而不是 400。建议对齐 _label 的校验(strip() + 长度上限)。
3、common/AGENTS.md 新增行落在「模块地图」表格中间(jiuwen_memory/common/AGENTS.md,新增行位于 | \base.py
| … |之前)这会打断 Markdown 表格渲染(延续了既有把散文插进表格的写法)。建议移到表格之后或改写为表格行。
4、(Nit)前端新增的 experienceUnavailable、noExperiences 两个消息键未被引用(死字符串);列表在 counts 缺失时显示 ☺ —⊖ —☹ — 占位,与 F05「尚无反馈的计数为零」不一致——实际因可见条目 feedback 基本必成功而几乎不可达。