Skip to content

v0.3.0

Choose a tag to compare

@zht7063 zht7063 released this 22 Oct 10:06
17b76e0

memory-with-files v0.3.0

Breaking changes

  • 0.1 support removed. lifecycle/migrate.ts is gone. 0.1 projects get UNSUPPORTED_LEGACY_INSTALL and no files are written. migrate --from 0.1 only returns that error. The managed allowlist no longer covers .pi/* or .agents/skills/*.
  • Receipt v3. status and doctor upgrade v2 receipts in memory only. --apply operations write v3 atomically before making any other change. A v2 receipt that still owns 0.1 resources returns LEGACY_RESOURCE_PENDING and nothing is changed. Detach it with 0.2.x first.
  • No downgrade. 0.2.x can't read a v3 receipt. To go back to 0.2.x, detach with 0.3.0 first. See UNINSTALL.
  • The forwarding stubs src/storage.ts, setup.ts, pi-adapter.ts, protocol.ts and integrations/shared/identity.ts are removed. The package entry point is still src/core.ts.

Refactor

  • Code is now layered as contracts → storage → retrieval/context → core → integrations → lifecycle → cli/mcp.
  • Adapters go through one HarnessAdapter contract (contracts/harness.ts) and the integrations/registry.ts registry.
  • The managed allowlist is closed (contracts/managed-surface.ts), and only the storage layer checks writes against it. See architecture.

Release criteria

  • The release criteria are now linux-cli-harness/1. The Codex CLI and Pi harnesses must both pass on the packaged commit on Linux.
  • publishable is computed from the harness evidence and is never set by hand.
  • Not verified: the Codex desktop GUI, macOS, a performance report, and real (billed) model hosts. This release does not claim full verification.

Fixes

  • The Codex hook timeout went from 5 s to 15 s, and the runner limit from 4.7 s to 14.5 s. On slow hosts, the tokenizer takes about 2.8 s to start, so the hook could miss the old limit and skip memory injection. On a slow machine each message may now wait up to about 15 s. Follow-up work is tracked in #30.
  • doctor now reports OWNERSHIP_CONFLICT when Pi is enabled and .pi/mcp.json has a conflicting mcpServers.mwf entry (#20).

Artifacts

zht7063-mwf-0.3.0.tgz, mwf-codex-0.3.0.zip, SHA256SUMS, RELEASE-STATUS.json


memory-with-files v0.3.0(中文)

破坏性变更

  • 不再支持 0.1。 删除了 lifecycle/migrate.ts。0.1 项目会返回 UNSUPPORTED_LEGACY_INSTALL,不写入任何文件;migrate --from 0.1 也只返回这个错误。受管白名单不再包含 .pi/* 和 .agents/skills/*。
  • receipt 升到 v3。 status 和 doctor 只在内存里把 v2 升级成 v3。--apply 操作会先原子写入 v3,再做其他改动。如果 v2 receipt 还占着 0.1 的资源,会返回 LEGACY_RESOURCE_PENDING,并且不做任何改动;需要先用 0.2.x detach。
  • 不能降级。 写成 v3 之后,0.2.x 就读不了了。要退回 0.2.x,得先用 0.3.0 detach,详见 UNINSTALL。
  • 删除了转发桩 src/storage.ts、setup.ts、pi-adapter.ts、protocol.ts 和 integrations/shared/identity.ts。包入口仍是 src/core.ts。

重构

  • 代码分层为 contracts → storage → retrieval/context → core → integrations → lifecycle → cli/mcp。
  • 适配器统一通过 HarnessAdapter 契约(contracts/harness.ts)和注册表 integrations/registry.ts 访问。
  • 受管白名单改为封闭式(contracts/managed-surface.ts),只有存储层按它校验写入。详见架构文档。

发布标准

  • 发布标准改为 linux-cli-harness/1:在 Linux 上,Codex CLI 和 Pi 两个 harness 对打包的同一 commit 都要通过。
  • publishable 根据 harness 证据自动计算,从不手动设置。
  • 未验证: Codex 桌面 GUI、macOS、性能报告、真实(计费)模型宿主。本版本不声称已完全验证。

修复

  • Codex hook 超时从 5 秒放宽到 15 秒,runner 上限从 4.7 秒放宽到 14.5 秒。慢主机上 tokenizer 启动约需 2.8 秒,hook 可能超过旧上限,导致记忆没有注入。现在在慢机器上每条消息最多可能要等约 15 秒。后续优化见 #30。
  • 启用 Pi 且 .pi/mcp.json 里有冲突的 mcpServers.mwf 条目时,doctor 现在会报告 OWNERSHIP_CONFLICT(#20)。

产物

zht7063-mwf-0.3.0.tgz、mwf-codex-0.3.0.zip、SHA256SUMS、RELEASE-STATUS.json