memorix 1.9.11 → 1.9.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/cli/index.js +3 -3
- package/dist/index.js +3 -3
- package/dist/memcode-runtime/CHANGELOG.md +9 -0
- package/dist/sdk.js +1 -1
- package/docs/DEVELOPMENT.md +2 -2
- package/docs/README.md +2 -1
- package/docs/ROADMAP-1.9.12-2.0.md +637 -0
- package/package.json +2 -2
- package/plugins/antigravity/memorix/plugin.json +1 -1
- package/plugins/claude/memorix/.claude-plugin/plugin.json +1 -1
- package/plugins/codebuddy/memorix/.codebuddy-plugin/plugin.json +1 -1
- package/plugins/codex/memorix/.codex-plugin/plugin.json +1 -1
- package/plugins/copilot/memorix/plugin.json +1 -1
- package/plugins/gemini/memorix/gemini-extension.json +1 -1
- package/plugins/hermes/memorix/plugin.yaml +1 -1
- package/plugins/omp/memorix/package.json +1 -1
- package/plugins/openclaw/memorix/.codex-plugin/plugin.json +1 -1
- package/plugins/pi/memorix/package.json +1 -1
- package/server.json +2 -2
- package/src/cli/update-checker.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,15 @@ All notable changes to this project will be documented in this file.
|
|
|
6
6
|
|
|
7
7
|
No unreleased changes.
|
|
8
8
|
|
|
9
|
+
## [1.9.12] - 2026-10-17
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
- **Release provenance gate** -- the publish workflow now verifies npm registry
|
|
13
|
+
signatures and fails closed when provenance publication cannot complete; it
|
|
14
|
+
no longer retries with an unprovenance `--ignore-scripts` publish.
|
|
15
|
+
- **Background update installs** -- opt-in automatic updates disable npm
|
|
16
|
+
lifecycle scripts during the global install.
|
|
17
|
+
|
|
9
18
|
## [1.9.11] - 2026-10-16
|
|
10
19
|
|
|
11
20
|
### Fixed
|
package/dist/cli/index.js
CHANGED
|
@@ -3232,7 +3232,7 @@ ${import_picocolors.default.gray(m3)} ${s4}
|
|
|
3232
3232
|
|
|
3233
3233
|
// src/cli/version.ts
|
|
3234
3234
|
function getCliVersion() {
|
|
3235
|
-
return true ? "1.9.
|
|
3235
|
+
return true ? "1.9.12" : pkg.version;
|
|
3236
3236
|
}
|
|
3237
3237
|
var init_version = __esm({
|
|
3238
3238
|
"src/cli/version.ts"() {
|
|
@@ -209408,7 +209408,7 @@ var init_tool_profile = __esm({
|
|
|
209408
209408
|
function getMcpServerInfo() {
|
|
209409
209409
|
return {
|
|
209410
209410
|
name: "memorix",
|
|
209411
|
-
version: true ? "1.9.
|
|
209411
|
+
version: true ? "1.9.12" : "1.0.1"
|
|
209412
209412
|
};
|
|
209413
209413
|
}
|
|
209414
209414
|
function createMcpDiscoverResult(capabilities, serverInfo) {
|
|
@@ -271470,7 +271470,7 @@ function installUpdateInBackground(targetVersion, currentVersion, cache5) {
|
|
|
271470
271470
|
const timeoutMs = parseAutoUpdateTimeoutMs(process.env.MEMORIX_AUTO_UPDATE_TIMEOUT_MS);
|
|
271471
271471
|
const child = execFile3(
|
|
271472
271472
|
npmCmd,
|
|
271473
|
-
["install", "-g", `${PACKAGE_NAME}@${targetVersion}`],
|
|
271473
|
+
["install", "-g", "--ignore-scripts", `${PACKAGE_NAME}@${targetVersion}`],
|
|
271474
271474
|
{ timeout: timeoutMs, windowsHide: true },
|
|
271475
271475
|
async (error40) => {
|
|
271476
271476
|
const failure = error40 ? describeAutoUpdateFailure(error40, timeoutMs) : null;
|
package/dist/index.js
CHANGED
|
@@ -160175,7 +160175,7 @@ var init_request_context = __esm({
|
|
|
160175
160175
|
function getMcpServerInfo() {
|
|
160176
160176
|
return {
|
|
160177
160177
|
name: "memorix",
|
|
160178
|
-
version: true ? "1.9.
|
|
160178
|
+
version: true ? "1.9.12" : "1.0.1"
|
|
160179
160179
|
};
|
|
160180
160180
|
}
|
|
160181
160181
|
function createMcpDiscoverResult(capabilities, serverInfo) {
|
|
@@ -176822,7 +176822,7 @@ var init_serve_shared = __esm({
|
|
|
176822
176822
|
|
|
176823
176823
|
// src/cli/version.ts
|
|
176824
176824
|
function getCliVersion() {
|
|
176825
|
-
return true ? "1.9.
|
|
176825
|
+
return true ? "1.9.12" : pkg.version;
|
|
176826
176826
|
}
|
|
176827
176827
|
var init_version3 = __esm({
|
|
176828
176828
|
"src/cli/version.ts"() {
|
|
@@ -176942,7 +176942,7 @@ function installUpdateInBackground(targetVersion, currentVersion, cache5) {
|
|
|
176942
176942
|
const timeoutMs = parseAutoUpdateTimeoutMs(process.env.MEMORIX_AUTO_UPDATE_TIMEOUT_MS);
|
|
176943
176943
|
const child = execFile3(
|
|
176944
176944
|
npmCmd,
|
|
176945
|
-
["install", "-g", `${PACKAGE_NAME}@${targetVersion}`],
|
|
176945
|
+
["install", "-g", "--ignore-scripts", `${PACKAGE_NAME}@${targetVersion}`],
|
|
176946
176946
|
{ timeout: timeoutMs, windowsHide: true },
|
|
176947
176947
|
async (error) => {
|
|
176948
176948
|
const failure = error ? describeAutoUpdateFailure(error, timeoutMs) : null;
|
|
@@ -6,6 +6,15 @@ All notable changes to this project will be documented in this file.
|
|
|
6
6
|
|
|
7
7
|
No unreleased changes.
|
|
8
8
|
|
|
9
|
+
## [1.9.12] - 2026-10-17
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
- **Release provenance gate** -- the publish workflow now verifies npm registry
|
|
13
|
+
signatures and fails closed when provenance publication cannot complete; it
|
|
14
|
+
no longer retries with an unprovenance `--ignore-scripts` publish.
|
|
15
|
+
- **Background update installs** -- opt-in automatic updates disable npm
|
|
16
|
+
lifecycle scripts during the global install.
|
|
17
|
+
|
|
9
18
|
## [1.9.11] - 2026-10-16
|
|
10
19
|
|
|
11
20
|
### Fixed
|
package/dist/sdk.js
CHANGED
|
@@ -171196,7 +171196,7 @@ var MCP_SERVER_INFO_META_KEY = "io.modelcontextprotocol/serverInfo";
|
|
|
171196
171196
|
function getMcpServerInfo() {
|
|
171197
171197
|
return {
|
|
171198
171198
|
name: "memorix",
|
|
171199
|
-
version: true ? "1.9.
|
|
171199
|
+
version: true ? "1.9.12" : "1.0.1"
|
|
171200
171200
|
};
|
|
171201
171201
|
}
|
|
171202
171202
|
function createMcpDiscoverResult(capabilities, serverInfo) {
|
package/docs/DEVELOPMENT.md
CHANGED
|
@@ -13,8 +13,8 @@ Memorix is a TypeScript project built around:
|
|
|
13
13
|
|
|
14
14
|
## Current Development Baseline
|
|
15
15
|
|
|
16
|
-
The current release candidate is **1.9.
|
|
17
|
-
**1.9.
|
|
16
|
+
The current release candidate is **1.9.12**. The published baseline remains
|
|
17
|
+
**1.9.11** until the release is published. Package metadata is kept
|
|
18
18
|
synchronized with the root package and MCP Registry manifest.
|
|
19
19
|
|
|
20
20
|
Contributors should assume the following areas are part of the current release line:
|
package/docs/README.md
CHANGED
|
@@ -81,6 +81,7 @@ The public docs are organized by user intent:
|
|
|
81
81
|
| Design decisions and rationale | [DESIGN_DECISIONS.md](DESIGN_DECISIONS.md) |
|
|
82
82
|
| Module-by-module notes | [MODULES.md](MODULES.md) |
|
|
83
83
|
| Current implementation status and ecosystem watch | [ACTIVE_WORK.md](../ACTIVE_WORK.md) |
|
|
84
|
+
| Long-term product and version roadmap | [1.9.12–2.0 Roadmap](ROADMAP-1.9.12-2.0.md) |
|
|
84
85
|
| 1.8.7 CodeGraph implementation plan and acceptance contract | [1.8.7 CodeGraph](1.8.7-CODEGRAPH.md) |
|
|
85
86
|
| CodeGraph Memory / Context Fabric design | [2026-06-29-codegraph-memory-context-fabric-design.md](superpowers/specs/2026-06-29-codegraph-memory-context-fabric-design.md) |
|
|
86
87
|
| Auto Context Layer design | [2026-06-29-auto-context-layer-design.md](superpowers/specs/2026-06-29-auto-context-layer-design.md) |
|
|
@@ -126,7 +127,7 @@ Historical/deep-reference documents may describe older designs. If they conflict
|
|
|
126
127
|
|
|
127
128
|
## Current Product Line
|
|
128
129
|
|
|
129
|
-
The current product line is **1.9.
|
|
130
|
+
The current product line is **1.9.12** (release candidate; **1.9.11** remains
|
|
130
131
|
the published baseline until release publication). Multi-device store sync is opt-in and
|
|
131
132
|
keeps local SQLite canonical; existing users do not upload anything until they
|
|
132
133
|
configure a relay provider explicitly.
|
|
@@ -0,0 +1,637 @@
|
|
|
1
|
+
# Memorix 长期开发路线:1.9.12 到 2.0
|
|
2
|
+
|
|
3
|
+
> 状态:规划基线
|
|
4
|
+
>
|
|
5
|
+
> 更新时间:2026-10-17
|
|
6
|
+
>
|
|
7
|
+
> 这份文档是后续编码任务的总计划。它定义版本主题、依赖关系、成功标准和
|
|
8
|
+
> 2.0 的启动条件。具体实现任务、测试结果和最终版本范围必须在执行过程中
|
|
9
|
+
> 回写到本文件或对应的专项文档,避免路线图与代码状态分离。
|
|
10
|
+
|
|
11
|
+
## 0. 总体结论
|
|
12
|
+
|
|
13
|
+
Memorix 已经超过“给 coding agent 加一个记忆工具”的阶段。当前产品同时包含:
|
|
14
|
+
|
|
15
|
+
- 本地 SQLite canonical store;
|
|
16
|
+
- FTS5、Orama、embedding 和 CodeGraph 等 derived evidence views;
|
|
17
|
+
- MCP stdio、legacy HTTP、modern HTTP、CLI、SDK、Dashboard、hooks、plugins
|
|
18
|
+
和 memcode 多个入口;
|
|
19
|
+
- observation、reasoning、Git、session、team、long-term memory、knowledge
|
|
20
|
+
workspace 和 orchestration 多种记忆与协调边界;
|
|
21
|
+
- 大量 agent/host 适配、配置生成、规则同步和发布 manifest。
|
|
22
|
+
|
|
23
|
+
因此下一阶段的主要问题不是继续增加 memory kind,也不是立刻把整个系统改成
|
|
24
|
+
云端服务。真正需要解决的是:
|
|
25
|
+
|
|
26
|
+
1. agent 为什么看到某条记忆;
|
|
27
|
+
2. 这条记忆来自哪里、是否新鲜、是否冲突;
|
|
28
|
+
3. 系统什么时候应该拒绝把内容放进上下文;
|
|
29
|
+
4. 本地、HTTP、MCP、插件和多 agent 入口是否遵守同一个契约;
|
|
30
|
+
5. 记忆到底节省了多少 token、减少了多少探索、改善了多少任务恢复;
|
|
31
|
+
6. 发布和自动更新是否能证明包的来源与完整性。
|
|
32
|
+
|
|
33
|
+
路线采用五个版本主题:
|
|
34
|
+
|
|
35
|
+
| 版本 | 主题 | 主要目的 | 版本性质 |
|
|
36
|
+
|---|---|---|---|
|
|
37
|
+
| 1.9.12 | 安全与发布链收紧 | 先修发布 provenance、自动更新和安全门槛 | 快速补丁 |
|
|
38
|
+
| 1.10 | 可信上下文与契约收敛 | 把现有能力变成可解释、可衡量的上下文系统 | 主线迭代 |
|
|
39
|
+
| 1.11 | 本地优先 relay 与协作预览 | 在保持 SQLite canonical 的前提下验证跨设备、跨 agent 协作 | opt-in 预览 |
|
|
40
|
+
| 1.12 | Agent 生态与开发者平台 | 降低新 host、新 skill、新 adapter 的接入成本 | 生态迭代 |
|
|
41
|
+
| 2.0 | 远程多租户 memory platform | 只有公共契约确实需要破坏性重置时才启动 | 条件式大版本 |
|
|
42
|
+
|
|
43
|
+
1.9.x 仍然保留安全、兼容性和数据完整性补丁通道。普通 feature 不再继续堆在
|
|
44
|
+
1.9.x 上;1.10 才是新的功能主线。
|
|
45
|
+
|
|
46
|
+
## 1. 当前基线和不可变约束
|
|
47
|
+
|
|
48
|
+
### 1.1 当前事实
|
|
49
|
+
|
|
50
|
+
当前发布基线是 `v1.9.11`。1.9.11 已经完成 CJK 搜索、搜索回退、大库 alias
|
|
51
|
+
迁移、Node 26 Pi hooks、Qwen hooks、API Route provider、session label 和
|
|
52
|
+
依赖基线收紧,并通过了跨平台 CI、全量测试和 MCP smoke。
|
|
53
|
+
|
|
54
|
+
当前本地工作分支正在准备 `1.9.12` 安全补丁,已完成:
|
|
55
|
+
|
|
56
|
+
- publish workflow 增加 `npm audit signatures`;
|
|
57
|
+
- 发布 provenance 失败时删除无 provenance 的 `npm publish --ignore-scripts`
|
|
58
|
+
fallback,改为 fail-closed;
|
|
59
|
+
- opt-in background auto-update 使用 `npm install --ignore-scripts`;
|
|
60
|
+
- 版本、CHANGELOG、MCP Registry 和 plugin manifests 同步到 `1.9.12`;
|
|
61
|
+
- 本地 lint、build、全量测试、legacy/modern stdio、HTTP conformance 和
|
|
62
|
+
packed package install smoke 已通过。
|
|
63
|
+
|
|
64
|
+
1.9.12 仍需要远程 CI、release PR、tag、npm/MCP Registry/GitHub Release 以及
|
|
65
|
+
公开 issue #327 的证据跟进完成后,才算正式发布。
|
|
66
|
+
|
|
67
|
+
### 1.2 必须保留的产品契约
|
|
68
|
+
|
|
69
|
+
后续所有版本都遵守以下边界:
|
|
70
|
+
|
|
71
|
+
- SQLite 是本地 canonical record;Orama、FTS、embedding、CodeGraph 投影和
|
|
72
|
+
Dashboard 索引都不能决定“数据库失败就是空项目”。
|
|
73
|
+
- 默认路径保持 local-first;用户没有明确配置 relay 或 hosted adapter 时,
|
|
74
|
+
数据不上传。
|
|
75
|
+
- legacy MCP、modern MCP、stdio、HTTP 和现有 agent plugins 继续兼容,直到
|
|
76
|
+
2.0 触发条件满足并完成迁移设计。
|
|
77
|
+
- `micro/lite/team/full` profile 继续作为渐进披露边界,不把所有工具定义一次性
|
|
78
|
+
压进 agent context。
|
|
79
|
+
- candidate、ephemeral、unverified、long-term candidate 不得因为索引或排序
|
|
80
|
+
方便而自动晋升为 durable context。
|
|
81
|
+
- CodeGraph 是 source-backed evidence plane,不是源代码的第二份 canonical copy。
|
|
82
|
+
- 任何新 provider、relay、media pipeline 或 agent integration 都必须有来源、
|
|
83
|
+
失败、重建、删除、配额和审计语义。
|
|
84
|
+
- 版本发布必须有明确的 tag、commit、package、manifest、CI、package smoke
|
|
85
|
+
和可追溯发布记录。
|
|
86
|
+
|
|
87
|
+
### 1.3 不能用来证明完成的东西
|
|
88
|
+
|
|
89
|
+
以下内容只能作为辅助证据,不能单独宣称功能完成:
|
|
90
|
+
|
|
91
|
+
- 一次本地测试通过,不能证明所有 agent/OS/Node 版本兼容;
|
|
92
|
+
- 一个 recall 数字,不能证明 coding task 变快或 token 成本下降;
|
|
93
|
+
- `valueCategory=core`,不能单独证明内容来源已验证;
|
|
94
|
+
- npm provenance 或 registry signature,能证明发布来源和包完整性链路,不能
|
|
95
|
+
单独证明源码没有恶意逻辑;
|
|
96
|
+
- 一个 hosted backend demo,不能证明多租户、断网、冲突和删除语义已经成立;
|
|
97
|
+
- 一个 plugin 可以安装,不能证明 hook、规则、MCP、版本升级和卸载都正确。
|
|
98
|
+
|
|
99
|
+
## 2. 1.9.12:安全与发布链收紧
|
|
100
|
+
|
|
101
|
+
### 2.1 版本目标
|
|
102
|
+
|
|
103
|
+
1.9.12 是窄范围、低风险、快速发布的安全补丁。它不改变 memory schema、MCP
|
|
104
|
+
tool contract、默认 provider、项目绑定或存储真相模型。
|
|
105
|
+
|
|
106
|
+
它解决两个已经可以立即确认的问题:
|
|
107
|
+
|
|
108
|
+
1. 发布链不能在 provenance 失败时悄悄退回无 provenance 发布;
|
|
109
|
+
2. 自动更新的 lifecycle scripts 不应在后台安装时默认执行。
|
|
110
|
+
|
|
111
|
+
### 2.2 已完成的代码范围
|
|
112
|
+
|
|
113
|
+
- publish workflow 在构建前运行 `npm audit signatures`;
|
|
114
|
+
- publish workflow 删除无 provenance fallback;如果 npm publish 返回异常但包
|
|
115
|
+
已经可见,允许确认已发布;如果包不可见且 provenance 失败,workflow 失败,
|
|
116
|
+
等待人工判断;
|
|
117
|
+
- `prepublishOnly` 纳入 `npm audit signatures`;
|
|
118
|
+
- background auto-update 使用 `--ignore-scripts`;
|
|
119
|
+
- release contract tests 和 update checker tests 覆盖这些行为;
|
|
120
|
+
- version metadata、CHANGELOG、MCP Registry、plugin manifests 和 release
|
|
121
|
+
docs 同步到 1.9.12。
|
|
122
|
+
|
|
123
|
+
### 2.3 1.9.12 还要完成的发布门槛
|
|
124
|
+
|
|
125
|
+
- 远程 Ubuntu、Windows、macOS、Docker、Node 26、typecheck、Registry metadata
|
|
126
|
+
全部通过;
|
|
127
|
+
- 重新运行全量本地测试和 package smoke;
|
|
128
|
+
- 对 npm tarball 记录 version、SHA-512、registry integrity 和 workflow commit;
|
|
129
|
+
- 对 #327 要求 exact version、tarball checksum、被检测文件 hash、扫描 vendor、
|
|
130
|
+
engine/version、report ID、quarantine hash 和扫描日志;
|
|
131
|
+
- 对安全报告保持“未验证”状态,不能宣布感染,也不能在没有证据时直接关闭;
|
|
132
|
+
- 发布后更新 `ACTIVE_WORK.md`、`docs/DEVELOPMENT.md`、`docs/README.md` 和本路线图。
|
|
133
|
+
|
|
134
|
+
### 2.4 1.9.12 不做的事情
|
|
135
|
+
|
|
136
|
+
- 不加入 hosted backend;
|
|
137
|
+
- 不修改 observation admission 的完整语义;
|
|
138
|
+
- 不进行 SQLite schema reset;
|
|
139
|
+
- 不新增 MCP tools;
|
|
140
|
+
- 不更改任何已发布 memory 的 visibility;
|
|
141
|
+
- 不进行 2.0 迁移;
|
|
142
|
+
- 不因为一个未复现的安全 issue 重写整个存储系统。
|
|
143
|
+
|
|
144
|
+
## 3. 1.10:可信上下文与契约收敛
|
|
145
|
+
|
|
146
|
+
### 3.1 版本定位
|
|
147
|
+
|
|
148
|
+
1.10 是下一条真正的产品主线。它的核心不是“加入更多记忆”,而是让 Memorix
|
|
149
|
+
能回答:
|
|
150
|
+
|
|
151
|
+
> 这条上下文为什么被选中?它来自哪里?它现在还可靠吗?系统为什么省略了
|
|
152
|
+
> 其他内容?如果证据不够,系统为什么拒绝注入?
|
|
153
|
+
|
|
154
|
+
1.10 目标周期为 6–8 周。它是 additive evolution,保留现有 MCP、SQLite、
|
|
155
|
+
plugin 和 agent integration,不做公共契约 reset。
|
|
156
|
+
|
|
157
|
+
### 3.2 1.10 的主要工作面
|
|
158
|
+
|
|
159
|
+
#### A. Context Receipt 统一契约
|
|
160
|
+
|
|
161
|
+
建立一个跨 MCP、CLI、SDK、Dashboard、session handoff 和 CodeGraph context 的
|
|
162
|
+
统一 receipt。至少包含:
|
|
163
|
+
|
|
164
|
+
- task 和 project identity;
|
|
165
|
+
- 被选择的 observation/claim/code facts;
|
|
166
|
+
- 每条内容的 source/sourceDetail;
|
|
167
|
+
- createdAt、lastValidatedAt、freshness;
|
|
168
|
+
- admissionState、reviewState、visibility、scope;
|
|
169
|
+
- 选择理由、相关度、冲突情况和 evidence count;
|
|
170
|
+
- 使用的 retrieval mode:FTS、Orama、embedding、graph、fallback;
|
|
171
|
+
- candidate 数量、被省略数量和省略原因;
|
|
172
|
+
- estimated token count 和 token budget;
|
|
173
|
+
- abstain、defer、blocked、degraded 的原因;
|
|
174
|
+
- snapshot、commit、provider 或 model version(有记录时)。
|
|
175
|
+
|
|
176
|
+
Receipt 要能被机器读取,也要能被人通过 CLI/Dashboard 解释。它不是把更多原始
|
|
177
|
+
文本塞给模型,而是用少量结构化信息说明上下文是如何形成的。
|
|
178
|
+
|
|
179
|
+
#### B. Provenance 和 evidence chain
|
|
180
|
+
|
|
181
|
+
把当前可声明的 source metadata 和可验证 evidence 区分开:
|
|
182
|
+
|
|
183
|
+
- explicit/manual、Git、hook、model-derived、remote-sync、import 等写入通道
|
|
184
|
+
必须有清晰 sourceDetail;
|
|
185
|
+
- code-backed、Git-backed、test-backed、document-backed evidence 记录来源 hash
|
|
186
|
+
或 snapshot reference;
|
|
187
|
+
- 每次形成、合并、演化、晋升、归档和覆盖都记录原因;
|
|
188
|
+
- evidence 过期、当前代码不再引用、关联 commit 被重写或内容发生冲突时,
|
|
189
|
+
receipt 必须显示 degraded/stale/conflict;
|
|
190
|
+
- 不能把 `core`、`verified`、`current` 作为同一个概念使用;
|
|
191
|
+
- 只有明确 review 或 source-backed evidence 才能把内容标记为 verified。
|
|
192
|
+
|
|
193
|
+
#### C. Admission、quarantine 和 abstention
|
|
194
|
+
|
|
195
|
+
统一新写入的生命周期:
|
|
196
|
+
|
|
197
|
+
`candidate -> qualified -> durable`,失败或证据不足时进入 `unverified`、
|
|
198
|
+
`deferred` 或 `blocked`。
|
|
199
|
+
|
|
200
|
+
需要明确:
|
|
201
|
+
|
|
202
|
+
- explicit user store 与 automatic hook capture 的默认 admission 不同;
|
|
203
|
+
- formation timeout/failure 不应把未经 enrichment 的自动内容伪装成普通 durable;
|
|
204
|
+
- model-derived、remote-sync、unknown-agent 内容默认先 quarantine;
|
|
205
|
+
- candidate 不进入默认 agent context,除非经过 Code Memory 或人工 evidence
|
|
206
|
+
qualification;
|
|
207
|
+
- conflict 未解决时不得使用“最后写入覆盖”伪装成已确认事实;
|
|
208
|
+
- legacy observations 可以继续兼容,但要在 receipt 中标记 legacy/unverified,
|
|
209
|
+
不能把旧记录错误升级为新 verified record;
|
|
210
|
+
- abstention 必须能在 CLI、MCP result 和 Dashboard 中解释。
|
|
211
|
+
|
|
212
|
+
#### D. Retrieval facade 和 derived view 统一
|
|
213
|
+
|
|
214
|
+
把 lexical、Orama、embedding、graph retrieval 的共同输出收敛为一个内部 facade:
|
|
215
|
+
|
|
216
|
+
- 所有 derived view 携带 generation、freshness、rebuild status 和 failure reason;
|
|
217
|
+
- FTS 不可用时回退必须显式;
|
|
218
|
+
- Orama 过期或重建中时不能返回空项目;
|
|
219
|
+
- embedding provider 失败时不能覆盖 lexical evidence;
|
|
220
|
+
- CJK、punctuation、alias、large-store 和 project isolation 继续由同一 facade
|
|
221
|
+
提供结果;
|
|
222
|
+
- 统一记录 p50/p95 latency、candidate count、fallback count 和 token estimate;
|
|
223
|
+
- provider 的结果不能直接决定质量,必须经过 evidence/admission/governor。
|
|
224
|
+
|
|
225
|
+
#### E. Runtime 和 project binding 收敛
|
|
226
|
+
|
|
227
|
+
stdio、legacy HTTP、modern HTTP、Dashboard、memcode 共享 business runtime,但
|
|
228
|
+
需要统一 binding facade:
|
|
229
|
+
|
|
230
|
+
- project identity 由服务器验证,客户端路径只是 detection anchor;
|
|
231
|
+
- session、Mcp-Project-Handle、projectRoot、Git remote 和 data directory 的
|
|
232
|
+
关系可诊断;
|
|
233
|
+
- handle 不能被当作完整认证主体;
|
|
234
|
+
- 同一个 project 的 multiple session 不得造成状态污染;
|
|
235
|
+
- stale session、expired handle、project switch 和 runtime lease 都有统一 receipt;
|
|
236
|
+
- legacy MCP 只保留在 transport adapter 层,不再新增 legacy-specific business
|
|
237
|
+
logic;
|
|
238
|
+
- HTTP 生产配置不允许通过测试环境变量绕过绑定安全。
|
|
239
|
+
|
|
240
|
+
#### F. Integration Adapter Contract
|
|
241
|
+
|
|
242
|
+
为每个 agent/host 生成 capability manifest,至少描述:
|
|
243
|
+
|
|
244
|
+
- MCP transport 和 command;
|
|
245
|
+
- plugin/package 文件;
|
|
246
|
+
- hooks 支持和生命周期事件;
|
|
247
|
+
- rules、skills、guidance 文件;
|
|
248
|
+
- global/project scope;
|
|
249
|
+
- install、repair、doctor、uninstall 行为;
|
|
250
|
+
- 当前 host version 兼容范围;
|
|
251
|
+
- 是否需要 HTTP、stdio、projectRoot 或额外 credential;
|
|
252
|
+
- manifest、生成文件和人工文档的来源。
|
|
253
|
+
|
|
254
|
+
新 agent 必须先进入 adapter registry,再生成 plugin/hook/rules/config。这样可以
|
|
255
|
+
减少每次发布在 19 个集成目标之间手工同步的成本。
|
|
256
|
+
|
|
257
|
+
#### G. Memory ownership matrix
|
|
258
|
+
|
|
259
|
+
为 Observation、Reasoning、Claim、Wiki、Workflow、Session、Long-term、CodeGraph
|
|
260
|
+
写出一张唯一权威矩阵:
|
|
261
|
+
|
|
262
|
+
| 类型 | 谁写入 | 谁验证 | 谁默认读取 | 能否自动晋升 |
|
|
263
|
+
|---|---|---|---|---|
|
|
264
|
+
| Observation | explicit/hook/agent | admission/evidence | task context | 取决于来源 |
|
|
265
|
+
| Claim | explicit/manual/Git | claim review | evidence-aware context | 不自动 |
|
|
266
|
+
| Reasoning | session/task | outcome/feedback | handoff/context | 受 scope 限制 |
|
|
267
|
+
| Wiki/Workflow | reviewed workspace | document/commit | task lens | 不自动覆盖 claim |
|
|
268
|
+
| Long-term | reviewed promotion | explicit review | durable context | 需要条件 |
|
|
269
|
+
| CodeGraph | source refresh | snapshot/provider health | code context | 不复制 source |
|
|
270
|
+
| Session/Team | coordination runtime | task/outcome | active handoff | 随生命周期 |
|
|
271
|
+
|
|
272
|
+
任何新 memory kind 必须先回答“它为什么不属于已有类型”。
|
|
273
|
+
|
|
274
|
+
#### H. Benchmark 和 evaluation
|
|
275
|
+
|
|
276
|
+
1.10 必须有真实任务集,而不是只测 conversation recall。初版可以覆盖 20–30
|
|
277
|
+
个任务:
|
|
278
|
+
|
|
279
|
+
- 新项目首次接入;
|
|
280
|
+
- 同一项目隔天恢复;
|
|
281
|
+
- 从 Claude/Codex/Cursor/Windsurf 等不同 host 切换;
|
|
282
|
+
- handoff 后继续任务;
|
|
283
|
+
- 旧决策已被新代码替代;
|
|
284
|
+
- 两条记忆互相冲突;
|
|
285
|
+
- 代码删除后旧记忆仍命中;
|
|
286
|
+
- CJK、punctuation、large-store、embedding unavailable;
|
|
287
|
+
- poisoned/untrusted memory 诱导模型做错误决策;
|
|
288
|
+
- MCP/HTTP session 过期后重新绑定。
|
|
289
|
+
|
|
290
|
+
每个任务记录:
|
|
291
|
+
|
|
292
|
+
- 首次正确行动率;
|
|
293
|
+
- 恢复成功率;
|
|
294
|
+
- memory hit precision/recall;
|
|
295
|
+
- stale/conflict rejection rate;
|
|
296
|
+
- abstention precision;
|
|
297
|
+
- input/output tokens;
|
|
298
|
+
- p50/p95 latency;
|
|
299
|
+
- SQLite/Orama RSS 和 cold-start;
|
|
300
|
+
- fallback 和 degraded 次数;
|
|
301
|
+
- 人工 review 成本。
|
|
302
|
+
|
|
303
|
+
1.10 不能只公布最高 recall。生态已经开始把 token、延迟、质量和成功率放在
|
|
304
|
+
一起评估,相关方向可以参考 [Total Recall at What Cost?](https://arxiv.org/html/2608.11879v1)。
|
|
305
|
+
|
|
306
|
+
#### I. Operator experience
|
|
307
|
+
|
|
308
|
+
CLI、Dashboard 和 doctor 要能回答:
|
|
309
|
+
|
|
310
|
+
- 当前记忆库是否健康;
|
|
311
|
+
- 哪些来源需要 review;
|
|
312
|
+
- 哪些 index 是 stale/degraded;
|
|
313
|
+
- 哪些 project/session 未绑定;
|
|
314
|
+
- 哪些 memory 是 candidate、legacy、blocked 或 conflict;
|
|
315
|
+
- 哪次检索使用了 fallback;
|
|
316
|
+
- 自动更新、发布 provenance 和 registry signature 状态;
|
|
317
|
+
- 下一步是 refresh、review、repair、archive 还是重新绑定。
|
|
318
|
+
|
|
319
|
+
### 3.3 1.10 的非目标
|
|
320
|
+
|
|
321
|
+
- 不把 SQLite 换成 Postgres 或云端主库;
|
|
322
|
+
- 不删除 legacy MCP;
|
|
323
|
+
- 不新增大量 memory kind;
|
|
324
|
+
- 不把 trust score 作为一个不可解释的总分;
|
|
325
|
+
- 不把 Dashboard 变成自动修改一切的控制台;
|
|
326
|
+
- 不让默认 agent context 变大;
|
|
327
|
+
- 不为支持一个 host 复制一套业务 runtime;
|
|
328
|
+
- 不把 CodeGraph 变成远程源代码代理;
|
|
329
|
+
- 不把 long-term memory 自动注入所有 task。
|
|
330
|
+
|
|
331
|
+
### 3.4 1.10 验收门槛
|
|
332
|
+
|
|
333
|
+
- canonical read/write 不依赖 Orama、embedding 或 FTS;
|
|
334
|
+
- 所有 derived view 失败都能给出诊断 receipt;
|
|
335
|
+
- `micro/lite/team/full` schema 和 tool count 没有非预期变化;
|
|
336
|
+
- legacy/modern MCP、stdio/HTTP、session/stateless binding smoke 全通过;
|
|
337
|
+
- 19 个集成目标通过 manifest/config parity 检查;
|
|
338
|
+
- 40k/100k 数据量、SQLite busy、索引重建和跨项目隔离无回归;
|
|
339
|
+
- receipt 的 token 增长有预算;
|
|
340
|
+
- poisoning、stale、conflict 场景不会无证据地进入 verified context;
|
|
341
|
+
- benchmark 能复现 1.9.11 与 1.10 的差异。
|
|
342
|
+
|
|
343
|
+
## 4. 1.11:本地优先 relay 与协作预览
|
|
344
|
+
|
|
345
|
+
1.11 才开始验证 hosted/relay 需求。它必须是 opt-in preview,不能改变默认本地
|
|
346
|
+
产品。
|
|
347
|
+
|
|
348
|
+
### 4.1 Relay 目标
|
|
349
|
+
|
|
350
|
+
- SQLite 继续是每个本地 project 的 canonical store;
|
|
351
|
+
- relay 保存同步日志、远端副本或受控 namespace,不成为默认唯一真相;
|
|
352
|
+
- 本地离线可以继续工作;
|
|
353
|
+
- 网络恢复后通过 outbox、幂等 key、cursor、重试和冲突记录同步;
|
|
354
|
+
- 删除、撤回、归档和 visibility 变化能同步;
|
|
355
|
+
- 每个 relay batch 有 schema/version、project/tenant scope、origin、createdAt、
|
|
356
|
+
hash、signature 或至少可验证 checksum;
|
|
357
|
+
- 远端错误不得让本地读写伪装成功;
|
|
358
|
+
- 远端没有权限时,不返回项目存在性泄漏。
|
|
359
|
+
|
|
360
|
+
### 4.2 Hosted adapter 的授权模型
|
|
361
|
+
|
|
362
|
+
Hosted relay 需要区分:
|
|
363
|
+
|
|
364
|
+
- user principal;
|
|
365
|
+
- agent principal;
|
|
366
|
+
- project principal;
|
|
367
|
+
- organization/tenant principal;
|
|
368
|
+
- scope/read/write/admin 权限;
|
|
369
|
+
- session/handle;
|
|
370
|
+
- audit actor。
|
|
371
|
+
|
|
372
|
+
一个共享 Bearer token 不足以支撑多租户。项目 handle 必须绑定已认证 principal,
|
|
373
|
+
服务器不能接受客户端直接提供的任意文件系统根目录作为授权依据。
|
|
374
|
+
|
|
375
|
+
### 4.3 External identity integration
|
|
376
|
+
|
|
377
|
+
外部 agent identity 作为 adapter 或 integration layer 实现:
|
|
378
|
+
|
|
379
|
+
- Memorix 内部继续负责 team、task、handoff、message、lock 和 project memory;
|
|
380
|
+
- 外部 inbox/email/webhook 负责从 CI、scheduler、Slack 或其他系统接收任务;
|
|
381
|
+
- 外部系统不直接获得 Memorix team access;
|
|
382
|
+
- 入站消息进入 candidate/isolated namespace;
|
|
383
|
+
- agent 处理完成后写回结构化 receipt;
|
|
384
|
+
- 发送方、接收方、权限和重放都可审计。
|
|
385
|
+
|
|
386
|
+
### 4.4 1.11 的进入条件
|
|
387
|
+
|
|
388
|
+
只有当 #313 产生至少一个可公开运行的 reference adapter,且至少 3 个真实用户
|
|
389
|
+
愿意试用,才继续扩大 relay。仅有“想要云端”不能证明 hosted backend 值得进入核心。
|
|
390
|
+
|
|
391
|
+
### 4.5 1.11 验收门槛
|
|
392
|
+
|
|
393
|
+
- 断网、重试、重复投递、乱序 batch、冲突和撤回全部有确定性测试;
|
|
394
|
+
- 同一事件重复同步不会产生重复 memory;
|
|
395
|
+
- 不同 user/tenant/project/agent 之间无越权;
|
|
396
|
+
- 本地 canonical store 始终可独立运行;
|
|
397
|
+
- relay 故障不会把 durable local record 变成空结果;
|
|
398
|
+
- 删除和 retention policy 可以传播并审计;
|
|
399
|
+
- latency、带宽、磁盘和 provider 成本有明确上限;
|
|
400
|
+
- 多 agent handoff 与外部 scheduler 的身份边界可解释。
|
|
401
|
+
|
|
402
|
+
## 5. 1.12:Agent 生态与开发者平台
|
|
403
|
+
|
|
404
|
+
1.12 负责让外部贡献者和新 host 能更低成本地接入,不继续把所有适配工作集中在
|
|
405
|
+
核心维护者身上。
|
|
406
|
+
|
|
407
|
+
### 5.1 Integration SDK
|
|
408
|
+
|
|
409
|
+
提供稳定的 adapter API 和 capability manifest:
|
|
410
|
+
|
|
411
|
+
- `manifest` 描述能力、版本、文件、transport 和权限;
|
|
412
|
+
- generator 生成 MCP config、plugin、hook、rules 和 skills;
|
|
413
|
+
- doctor 能检查 manifest 与已安装文件的一致性;
|
|
414
|
+
- repair 可以预览、应用、回滚;
|
|
415
|
+
- uninstall 能移除 Memorix 生成内容,保留用户内容;
|
|
416
|
+
- 每个 host 的版本差异在 manifest 中表达;
|
|
417
|
+
- 贡献者只实现 adapter,不重复编写业务 memory 逻辑。
|
|
418
|
+
|
|
419
|
+
### 5.2 Progressive disclosure 和 tool profiles
|
|
420
|
+
|
|
421
|
+
- profile 继续控制默认 MCP 工具面;
|
|
422
|
+
- agent 可以发现 capability,但只加载当前 task 需要的 schema;
|
|
423
|
+
- skills、workflow 和 reference docs 采用分层加载;
|
|
424
|
+
- receipt 记录实际加载了哪些工具和文档;
|
|
425
|
+
- 对大型工具面增加 token budget 和 discover latency 指标;
|
|
426
|
+
- 不因为“工具很多”而默认开放 full profile。
|
|
427
|
+
|
|
428
|
+
### 5.3 社区和分发
|
|
429
|
+
|
|
430
|
+
- 完成 #297 awesome-list 外部提交;
|
|
431
|
+
- 增加官方 integration examples 和安全边界说明;
|
|
432
|
+
- 发布可复现 benchmark 和结果生成脚本;
|
|
433
|
+
- 发布包 provenance、SBOM、checksum 和支持矩阵;
|
|
434
|
+
- 对每个新 agent host 提供 setup、doctor、repair、uninstall 示例;
|
|
435
|
+
- 把社区反馈转成公开 RFC,而不是直接写成临时 feature。
|
|
436
|
+
|
|
437
|
+
### 5.4 Agent protocol 边界
|
|
438
|
+
|
|
439
|
+
1.12 可以研究 MCP 与外部 agent-to-agent 通道的组合,但不把 A2A、email、webhook
|
|
440
|
+
或第三方 inbox 直接变成 Memorix 核心依赖。所有外部协议必须通过可替换 adapter
|
|
441
|
+
进入,并明确:
|
|
442
|
+
|
|
443
|
+
- authentication;
|
|
444
|
+
- authorization;
|
|
445
|
+
- replay protection;
|
|
446
|
+
- message size;
|
|
447
|
+
- source/evidence;
|
|
448
|
+
- failure/retry;
|
|
449
|
+
- deletion;
|
|
450
|
+
- audit。
|
|
451
|
+
|
|
452
|
+
## 6. 条件式 2.0:远程多租户 Memory Platform
|
|
453
|
+
|
|
454
|
+
2.0 不是时间到了就发布,而是公共契约真的需要重置时才启动。
|
|
455
|
+
|
|
456
|
+
### 6.1 2.0 的可能范围
|
|
457
|
+
|
|
458
|
+
如果产品战略最终变成“远程多用户 memory platform”,2.0 才可以考虑:
|
|
459
|
+
|
|
460
|
+
- remote canonical store;
|
|
461
|
+
- tenant/user/project/agent principal;
|
|
462
|
+
- server-side project identity;
|
|
463
|
+
- signed sync/event log;
|
|
464
|
+
- formal conflict resolution;
|
|
465
|
+
- scoped tool authorization;
|
|
466
|
+
- new MCP v2 public result contract;
|
|
467
|
+
- old MCP bridge as a separately versioned compatibility package;
|
|
468
|
+
- migration tooling for observations、sessions、team state、long-term evidence、
|
|
469
|
+
CodeGraph snapshots and derived indexes;
|
|
470
|
+
- hosted dashboard、audit、retention、export、delete and compliance controls。
|
|
471
|
+
|
|
472
|
+
### 6.2 启动 2.0 的硬条件
|
|
473
|
+
|
|
474
|
+
满足一项硬条件,或同时满足两项中等条件,才启动 RFC:
|
|
475
|
+
|
|
476
|
+
1. 云端成为默认 canonical authority;
|
|
477
|
+
2. 新的 MCP/session/project binding contract 无法用 adapter 兼容;
|
|
478
|
+
3. ID、scope、visibility、evidence 或 retention 语义必须破坏性迁移;
|
|
479
|
+
4. 连续两个版本周期中,兼容性维护超过工程投入的 35–40%,且仍有用户可见回归;
|
|
480
|
+
5. 新 host 已无法表达为现有 adapter capability;
|
|
481
|
+
6. 真实用户已经持续使用 relay,并且 hosted isolation、auth、billing、deletion
|
|
482
|
+
和 offline semantics 都有数据支撑。
|
|
483
|
+
|
|
484
|
+
单纯因为 `server.ts` 很大、SQLite 表很多、集成数量多,不能作为 2.0 理由。
|
|
485
|
+
|
|
486
|
+
### 6.3 2.0 的迁移原则
|
|
487
|
+
|
|
488
|
+
- 先发布 compatibility/read-only bridge,再切换写入;
|
|
489
|
+
- 先做 dry-run migration、hash comparison、rollback and repair;
|
|
490
|
+
- 旧版本可以读取迁移后的新数据,至少保留一个支持窗口;
|
|
491
|
+
- derived view 全部可重建;
|
|
492
|
+
- source/evidence/provenance 不可在迁移中丢失;
|
|
493
|
+
- 用户必须能导出本地 canonical data;
|
|
494
|
+
- 远程服务删除与本地删除必须有明确的最终一致性说明;
|
|
495
|
+
- 不把自动迁移隐藏在普通启动过程中。
|
|
496
|
+
|
|
497
|
+
## 7. 横跨所有版本的工程主线
|
|
498
|
+
|
|
499
|
+
### 7.1 质量与测试
|
|
500
|
+
|
|
501
|
+
每个实现任务按 RED → GREEN → REFACTOR:
|
|
502
|
+
|
|
503
|
+
- 先写失败测试;
|
|
504
|
+
- 让测试只覆盖本次行为;
|
|
505
|
+
- 实现最小修复;
|
|
506
|
+
- 运行 focused tests;
|
|
507
|
+
- 运行对应 integration pipeline;
|
|
508
|
+
- 最后运行 lint/build/full suite。
|
|
509
|
+
|
|
510
|
+
每个版本必须保留:
|
|
511
|
+
|
|
512
|
+
- unit tests;
|
|
513
|
+
- store → search → detail pipeline;
|
|
514
|
+
- MCP stdio/HTTP smoke;
|
|
515
|
+
- cross-project isolation;
|
|
516
|
+
- failure/degraded/rebuild tests;
|
|
517
|
+
- Windows/macOS/Linux matrix;
|
|
518
|
+
- package smoke;
|
|
519
|
+
- release metadata checks。
|
|
520
|
+
|
|
521
|
+
### 7.2 性能与容量
|
|
522
|
+
|
|
523
|
+
固定 1k、10k、40k、100k observation fixture,并记录:
|
|
524
|
+
|
|
525
|
+
- startup/cold-start;
|
|
526
|
+
- session bind;
|
|
527
|
+
- search p50/p95;
|
|
528
|
+
- FTS/Orama/embedding fallback;
|
|
529
|
+
- memory RSS;
|
|
530
|
+
- SQLite busy/retry;
|
|
531
|
+
- index rebuild;
|
|
532
|
+
- MCP tool discovery;
|
|
533
|
+
- receipt token size;
|
|
534
|
+
- HTTP concurrent sessions。
|
|
535
|
+
|
|
536
|
+
### 7.3 安全与供应链
|
|
537
|
+
|
|
538
|
+
每个 release 都要记录:
|
|
539
|
+
|
|
540
|
+
- tag and commit;
|
|
541
|
+
- npm version;
|
|
542
|
+
- tarball SHA-512/integrity;
|
|
543
|
+
- npm registry signature/attestation;
|
|
544
|
+
- SBOM 或依赖树;
|
|
545
|
+
- `npm audit signatures`;
|
|
546
|
+
- package smoke;
|
|
547
|
+
- publish workflow URL;
|
|
548
|
+
- MCP Registry status;
|
|
549
|
+
- 已知安全 issue 的证据状态。
|
|
550
|
+
|
|
551
|
+
### 7.4 兼容性
|
|
552
|
+
|
|
553
|
+
每个版本都要更新:
|
|
554
|
+
|
|
555
|
+
- MCP profile counts;
|
|
556
|
+
- tool schema snapshots;
|
|
557
|
+
- plugin manifests;
|
|
558
|
+
- hook lifecycle matrix;
|
|
559
|
+
- `setup/doctor/repair/uninstall`;
|
|
560
|
+
- legacy MCP;
|
|
561
|
+
- modern MCP;
|
|
562
|
+
- Node 20/22/26;
|
|
563
|
+
- Windows/macOS/Linux;
|
|
564
|
+
- 旧 SQLite schema 和旧 memory metadata。
|
|
565
|
+
|
|
566
|
+
### 7.5 文档
|
|
567
|
+
|
|
568
|
+
长期文档的职责固定为:
|
|
569
|
+
|
|
570
|
+
- [ACTIVE_WORK.md](../ACTIVE_WORK.md):当前执行状态和交接;
|
|
571
|
+
- [DEVELOPMENT.md](DEVELOPMENT.md):开发与发布门槛;
|
|
572
|
+
- [ARCHITECTURE.md](ARCHITECTURE.md):系统边界和数据流;
|
|
573
|
+
- 本路线图:版本主题、依赖、验收和 2.0 触发条件;
|
|
574
|
+
- 专项设计文档:复杂 feature 的可演进契约;
|
|
575
|
+
- CHANGELOG:已经发布的用户可见变化。
|
|
576
|
+
|
|
577
|
+
不要为同一个主题创建多个“最终版”“新版”“补充版”文档。
|
|
578
|
+
|
|
579
|
+
## 8. 版本验收矩阵
|
|
580
|
+
|
|
581
|
+
| 维度 | 1.9.12 | 1.10 | 1.11 | 1.12 | 2.0 |
|
|
582
|
+
|---|---|---|---|---|---|
|
|
583
|
+
| 发布安全 | 必须 | 固化 | 继续 | 继续 | 强制 |
|
|
584
|
+
| SQLite canonical | 保持 | 保持 | 保持 | 保持 | 可能改变 |
|
|
585
|
+
| Memory provenance | 修复发布链 | 统一 receipt/evidence | 远程同步来源 | 生态来源 | 端到端签名 |
|
|
586
|
+
| Admission/abstention | 不扩展 | 正式契约 | 跨 relay | 跨 adapter | 多租户策略 |
|
|
587
|
+
| Hosted backend | 不做 | RFC/contract | opt-in preview | adapter ecosystem | 可能成为主线 |
|
|
588
|
+
| Agent identity | 不做 | scope 定义 | relay principal | external adapter | tenant principal |
|
|
589
|
+
| MCP contract | 不变 | 收敛内部边界 | 兼容扩展 | capability registry | 可破坏性重置 |
|
|
590
|
+
| Benchmark | 发布门禁 | coding memory baseline | relay latency/failure | ecosystem comparison | production SLO |
|
|
591
|
+
|
|
592
|
+
## 9. 给 Luna 的执行规范
|
|
593
|
+
|
|
594
|
+
后续切换到 Luna 模型执行时,每个任务都使用下面的任务包格式:
|
|
595
|
+
|
|
596
|
+
```text
|
|
597
|
+
任务标题:
|
|
598
|
+
目标版本:
|
|
599
|
+
问题与用户影响:
|
|
600
|
+
允许修改的文件范围:
|
|
601
|
+
禁止修改的公共契约:
|
|
602
|
+
先写哪些失败测试:
|
|
603
|
+
实现要求:
|
|
604
|
+
验证命令:
|
|
605
|
+
完成标准:
|
|
606
|
+
已知风险:
|
|
607
|
+
交付时必须报告:改动文件、测试结果、未解决问题、下一步。
|
|
608
|
+
```
|
|
609
|
+
|
|
610
|
+
执行规则:
|
|
611
|
+
|
|
612
|
+
- 主脑先给出任务包,再让 Luna 写代码;
|
|
613
|
+
- Luna 只处理一个清晰边界,不能同时重构多个 domain;
|
|
614
|
+
- 一个任务一个分支和一组 focused tests;
|
|
615
|
+
- 子代理总数最多五个,失败、超时或退出后不自动重开;
|
|
616
|
+
- 不为简单检索、简单文档改动或一次命令调用启动子代理;
|
|
617
|
+
- Luna 的代码必须经过主脑 review、测试和 diff 检查;
|
|
618
|
+
- 未通过测试不能进入下一个依赖任务;
|
|
619
|
+
- 未经 release gate,不能创建 tag、发布 npm 或发布 MCP Registry;
|
|
620
|
+
- 每个版本完成后回写 ACTIVE_WORK、CHANGELOG、版本文档和项目记忆。
|
|
621
|
+
|
|
622
|
+
## 10. 当前执行顺序
|
|
623
|
+
|
|
624
|
+
当前应按以下顺序推进:
|
|
625
|
+
|
|
626
|
+
1. 完成 1.9.12 release PR 和远程 CI;
|
|
627
|
+
2. 发布 1.9.12,并验证 npm、MCP Registry、GitHub Release;
|
|
628
|
+
3. 创建 1.10 contract matrix 和 context receipt 设计;
|
|
629
|
+
4. 先实现 receipt、provenance、freshness、admission 和 abstention 的内部契约;
|
|
630
|
+
5. 再收敛 retrieval facade、runtime binding 和 integration manifest;
|
|
631
|
+
6. 用 benchmark 比较 1.9.11、1.9.12 和 1.10;
|
|
632
|
+
7. 只有 1.10 的本地可信上下文门槛通过后,才开始 1.11 relay prototype;
|
|
633
|
+
8. 只有 relay 有真实用户和清晰授权边界后,才把 1.12 生态平台化;
|
|
634
|
+
9. 根据本文件的硬触发条件决定是否启动 2.0 RFC。
|
|
635
|
+
|
|
636
|
+
这条路线让补丁版本快速完成,也让后续的大版本有清晰的验证结果,不靠版本号
|
|
637
|
+
制造进展感。
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "memorix",
|
|
3
3
|
"mcpName": "io.github.AVIDS2/memorix",
|
|
4
|
-
"version": "1.9.
|
|
4
|
+
"version": "1.9.12",
|
|
5
5
|
"description": "Local-first shared memory layer for AI coding agents across MCP clients, Git history, reasoning context, and project sessions.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": false,
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"check:plugin-release": "node scripts/sync-plugin-release-manifests.mjs --check",
|
|
86
86
|
"audit:pi-upstream": "node scripts/pi-upstream-audit.mjs",
|
|
87
87
|
"lint": "tsc --noEmit",
|
|
88
|
-
"prepublishOnly": "npm run check:mcp-registry && npm run check:plugin-release && npm run build && npm test"
|
|
88
|
+
"prepublishOnly": "npm run check:mcp-registry && npm run check:plugin-release && npm audit signatures && npm run build && npm test"
|
|
89
89
|
},
|
|
90
90
|
"keywords": [
|
|
91
91
|
"mcp",
|
package/server.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"url": "https://github.com/AVIDS2/memorix",
|
|
8
8
|
"source": "github"
|
|
9
9
|
},
|
|
10
|
-
"version": "1.9.
|
|
10
|
+
"version": "1.9.12",
|
|
11
11
|
"websiteUrl": "https://mem.rglens.com",
|
|
12
12
|
"icons": [
|
|
13
13
|
{
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
{
|
|
23
23
|
"registryType": "npm",
|
|
24
24
|
"identifier": "memorix",
|
|
25
|
-
"version": "1.9.
|
|
25
|
+
"version": "1.9.12",
|
|
26
26
|
"runtimeHint": "npx",
|
|
27
27
|
"packageArguments": [
|
|
28
28
|
{
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Default mode: 'notify' (check and print a restart-safe notice).
|
|
9
9
|
* Set MEMORIX_AUTO_UPDATE=install to opt into silent background install.
|
|
10
|
+
* Lifecycle scripts are disabled for background installs.
|
|
10
11
|
* Disable via MEMORIX_AUTO_UPDATE=off.
|
|
11
12
|
*/
|
|
12
13
|
|
|
@@ -166,7 +167,7 @@ function installUpdateInBackground(targetVersion: string, currentVersion: string
|
|
|
166
167
|
const timeoutMs = parseAutoUpdateTimeoutMs(process.env.MEMORIX_AUTO_UPDATE_TIMEOUT_MS);
|
|
167
168
|
const child = execFile(
|
|
168
169
|
npmCmd,
|
|
169
|
-
['install', '-g', `${PACKAGE_NAME}@${targetVersion}`],
|
|
170
|
+
['install', '-g', '--ignore-scripts', `${PACKAGE_NAME}@${targetVersion}`],
|
|
170
171
|
{ timeout: timeoutMs, windowsHide: true },
|
|
171
172
|
async (error) => {
|
|
172
173
|
const failure = error ? describeAutoUpdateFailure(error, timeoutMs) : null;
|