Repository navigation
fix(inject): 规则池改为全量排序键 + 末位平局键,消除 200 行窗口截断 #673
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
Merged
+361
−56
Merged
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,7 @@ | |
| [](https://www.npmjs.com/package/@modusensus/dsh-mneme) | ||
| [](LICENSE) | ||
| [](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin) | ||
| [](https://github.com/slow-stack/mneme) | ||
| [](https://github.com/slow-stack/mneme) | ||
| [](https://github.com/slow-stack/mneme/actions) | ||
| [](https://nodejs.org) | ||
| [](https://www.npmjs.com/package/@modusensus/dsh-mneme) | ||
|
|
@@ -763,7 +763,7 @@ src/ | |
| ├── api.js # HTTP 路由(Web 面板数据通道,含 /conflicts 冲突队列) | ||
| └── index.js # 插件接线 | ||
| lib/ # src 的同步分发产物(npm run sync,prepack 钩子在发布时自动跑;一致性由 scripts/check-sync.js 在 CI 与 release.yml 校验——它只查不同步;唯一手写例外 lib/client.js——Web 面板 bundle,sync 不覆盖) | ||
| test/ # 3442 个 node:test 测试(审计与三轴线压测不变量;src↔lib 一致性由 scripts/check-sync.js 发布闸门校验) | ||
| test/ # 3446 个 node:test 测试(审计与三轴线压测不变量;src↔lib 一致性由 scripts/check-sync.js 发布闸门校验) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 在 README 说明注入候选范围的变化。 本次改动让窗口外的活跃记忆也能参与自动注入,但这里仅更新了测试数量。请在注入功能说明处增加一句,说明规则排序覆盖全部活跃候选,正文仅为入选候选读取。As per coding guidelines, “user-visible changes include their README line in the same PR.”
|
||
| scripts/ # e2e-dsh.js 端到端演示 · stress-dsh.js 三轴线压测 · sync-lib.js 同步 · check-sync.js 发布闸门 · benchmark-recall.js / benchmark-embed.js / benchmark-rerank.js 基准 · sync-test-badge.mjs 测试徽章 · build-runtime-manifest.mjs 运行时清单 | ||
| ``` | ||
|
|
||
|
|
@@ -772,7 +772,7 @@ scripts/ # e2e-dsh.js 端到端演示 · stress-dsh.js 三轴线压 | |
| ```bash | ||
| cd dsh-mneme | ||
| npm install # 安装 peer 依赖(以 devDependencies 形式,用于本地测试) | ||
| npm test # 运行 3442 个测试 | ||
| npm test # 运行 3446 个测试 | ||
| npm run stress # 三轴线压测:长会话检索 / 冲突仲裁 / 多 Agent 并发(离线 mock LLM) | ||
| npm run sync # 把 src/ 同步到 lib/(发布时由 prepack 钩子自动执行) | ||
| ``` | ||
|
|
||
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.
更正耗时比较。
文中所列的 200ms 加 6.8ms 约为 207ms,高于旧查询的约 76ms,并非“仍低于”。请删除这一比较,或改为与所列测量值一致的表述。