Skip to content

test: harden memory isolation and prepare v0.1.0 - #4

Merged
damingishere-coder merged 11 commits into
mainfrom
test/p0-memory-security-release
Aug 3, 2026
Merged

test: harden memory isolation and prepare v0.1.0#4
damingishere-coder merged 11 commits into
mainfrom
test/p0-memory-security-release

Conversation

@damingishere-coder

@damingishere-coder damingishere-coder commented Aug 3, 2026

Copy link
Copy Markdown
Owner

目标

完成 P0 第二轮:为长期记忆系统、项目隔离和首个正式版本建立功能级验证与发布材料。

实际发现并修复

CI 新测试发现 activeProjectId 可以通过 ../ 解析到 小说项目/作品/ 之外。

本 PR 已在 memory_common.py 中增加目录包含校验:

  • 项目路径必须位于 小说项目/作品/
  • 不能直接指向作品库根目录
  • 非法路径抛出 MemorySystemError

功能测试

新增测试覆盖:

  • memory patch 重复记录 ID 拒绝
  • 非法状态拒绝
  • 从 Markdown current 与章节 patch 重建索引
  • 删除索引后自动恢复
  • activeProjectId 路径逃逸拦截
  • 相同 patch 重复执行保持幂等
  • 相同 patch_id 内容变化必须失败

发布准备

  • 新增 docs/releases/v0.1.0.md
  • 整理 CHANGELOG.md
  • 更新 ROADMAP.md
  • Release 说明包含安装、安全、限制、升级和验证要求

验证

最终 GitHub Actions 已通过:

  • Python 全量编译通过
  • 现有安全与 Demo 测试通过
  • 章节检查器测试通过
  • 新增记忆系统功能测试全部通过

变更边界

未修改前端、正文生成逻辑、文风规则、AI 配置或用户小说数据。

@damingishere-coder damingishere-coder changed the title test: harden memory isolation and release readiness test: harden memory isolation and prepare v0.1.0 Aug 3, 2026
@damingishere-coder
damingishere-coder merged commit beba95f into main Aug 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant