# goodmemory - Doramagic AI Context Pack

> 定位：安装前体验与判断资产。它帮助宿主 AI 有一个好的开始，但不代表已经安装、执行或验证目标项目。

## 充分原则

- **充分原则，不是压缩原则**：AI Context Pack 应该充分到让宿主 AI 在开工前理解项目价值、能力边界、使用入口、风险和证据来源；它可以分层组织，但不以最短摘要为目标。
- **压缩策略**：只压缩噪声和重复内容，不压缩会影响判断和开工质量的上下文。

## 给宿主 AI 的使用方式

你正在读取 Doramagic 为 goodmemory 编译的 AI Context Pack。请把它当作开工前上下文：帮助用户理解适合谁、能做什么、如何开始、哪些必须安装后验证、风险在哪里。不要声称你已经安装、运行或执行了目标项目。

## Claim 消费规则

- **事实来源**：Repo Evidence + Claim/Evidence Graph；Human Wiki 只提供显著性、术语和叙事结构。
- **事实最低状态**：`supported`
- `supported`：可以作为项目事实使用，但回答中必须引用 claim_id 和证据路径。
- `weak`：只能作为低置信度线索，必须要求用户继续核实。
- `inferred`：只能用于风险提示或待确认问题，不能包装成项目事实。
- `unverified`：不得作为事实使用，应明确说证据不足。
- `contradicted`：必须展示冲突来源，不得替用户强行选择一个版本。

## 它最适合谁

- **AI 研究者或研究型 Agent 构建者**：README 明确围绕研究、实验或论文工作流展开。 证据：`README.md` Claim：`clm_0002` supported 0.86
- **正在使用 Claude/Codex/Cursor/Gemini 等宿主 AI 的开发者**：README 或插件配置提到多个宿主 AI。 证据：`README.md` Claim：`clm_0003` supported 0.86

## 它能做什么

- **命令行启动或安装流程**（需要安装后验证）：项目文档中存在可执行命令，真实使用需要在本地或宿主环境中运行这些命令。 证据：`README.md` Claim：`clm_0001` supported 0.86

## 怎么开始

- `npm install -g goodmemory@0.7.0` 证据：`README.md` Claim：`clm_0004` supported 0.86
- `npm install goodmemory@0.7.0` 证据：`README.md` Claim：`clm_0005` supported 0.86, `clm_0007` supported 0.86
- `npx goodmemory -V` 证据：`README.md` Claim：`clm_0006` supported 0.86
- `npm install ./goodmemory-0.7.0.tgz` 证据：`README.md` Claim：`clm_0007` supported 0.86
- `curl http://localhost:11434/v1/embeddings \` 证据：`README.md` Claim：`clm_0008` supported 0.86
- `curl -fsS http://127.0.0.1:8739/healthz` 证据：`README.md` Claim：`clm_0009` supported 0.86

## 继续前判断卡

- **当前建议**：需要管理员/安全审批
- **为什么**：继续前可能涉及密钥、账号、外部服务或敏感上下文，建议先经过管理员或安全审批。

### 30 秒判断

- **现在怎么做**：需要管理员/安全审批
- **最小安全下一步**：先跑 Prompt Preview；若涉及凭证或企业环境，先审批再试装
- **先别相信**：角色质量和任务匹配不能直接相信。
- **继续会触碰**：角色选择偏差、命令执行、宿主 AI 配置

### 现在可以相信

- **适合人群线索：AI 研究者或研究型 Agent 构建者**（supported）：有 supported claim 或项目证据支撑，但仍不等于真实安装效果。 证据：`README.md` Claim：`clm_0002` supported 0.86
- **适合人群线索：正在使用 Claude/Codex/Cursor/Gemini 等宿主 AI 的开发者**（supported）：有 supported claim 或项目证据支撑，但仍不等于真实安装效果。 证据：`README.md` Claim：`clm_0003` supported 0.86
- **能力存在：命令行启动或安装流程**（supported）：可以相信项目包含这类能力线索；是否适合你的具体任务仍要试用或安装后验证。 证据：`README.md` Claim：`clm_0001` supported 0.86
- **存在 Quick Start / 安装命令线索**（supported）：可以相信项目文档出现过启动或安装入口；不要因此直接在主力环境运行。 证据：`README.md` Claim：`clm_0004` supported 0.86

### 现在还不能相信

- **角色质量和任务匹配不能直接相信。**（unverified）：角色库证明有很多角色，不证明每个角色都适合你的具体任务，也不证明角色能产生高质量结果。
- **不能把角色文案当成真实执行能力。**（unverified）：安装前只能判断角色描述和任务画像是否匹配，不能证明它能在宿主 AI 里完成任务。
- **真实输出质量不能在安装前相信。**（unverified）：Prompt Preview 只能展示引导方式，不能证明真实项目中的结果质量。
- **宿主 AI 版本兼容性不能在安装前相信。**（unverified）：Claude、Cursor、Codex、Gemini 等宿主加载规则和版本差异必须在真实环境验证。
- **不会污染现有宿主 AI 行为，不能直接相信。**（inferred）：Skill、plugin、AGENTS/CLAUDE/GEMINI 指令可能改变宿主 AI 的默认行为。 证据：`AGENTS.md`
- **可安全回滚不能默认相信。**（unverified）：除非项目明确提供卸载和恢复说明，否则必须先在隔离环境验证。
- **真实安装后是否与用户当前宿主 AI 版本兼容？**（unverified）：兼容性只能通过实际宿主环境验证。
- **项目输出质量是否满足用户具体任务？**（unverified）：安装前预览只能展示流程和边界，不能替代真实评测。

### 继续会触碰什么

- **角色选择偏差**：用户对任务应该由哪个专家角色处理的判断。 原因：选错角色会让 AI 从错误专业视角回答，浪费时间或误导决策。
- **命令执行**：包管理器、网络下载、本地插件目录、项目配置或用户主目录。 原因：运行第一条命令就可能产生环境改动；必须先判断是否值得跑。 证据：`README.md`
- **宿主 AI 配置**：Claude/Codex/Cursor/Gemini/OpenCode 等宿主的 plugin、Skill 或规则加载配置。 原因：宿主配置会改变 AI 后续工作方式，可能和用户已有规则冲突。 证据：`AGENTS.md`
- **本地环境或项目文件**：安装结果、插件缓存、项目配置或本地依赖目录。 原因：安装前无法证明写入范围和回滚方式，需要隔离验证。 证据：`README.md`
- **环境变量 / API Key**：项目入口文档明确出现 API key、token、secret 或账号凭证配置。 原因：如果真实安装需要凭证，应先使用测试凭证并经过权限/合规判断。 证据：`README.md`, `README.zh-CN.md`
- **宿主 AI 上下文**：AI Context Pack、Prompt Preview、Skill 路由、风险规则和项目事实。 原因：导入上下文会影响宿主 AI 后续判断，必须避免把未验证项包装成事实。

### 最小安全下一步

- **先跑 Prompt Preview**：先用交互式试用验证任务画像和角色匹配，不要先导入整套角色库。（适用：任何项目都适用，尤其是输出质量未知时。）
- **只在隔离目录或测试账号试装**：避免安装命令污染主力宿主 AI、真实项目或用户主目录。（适用：存在命令执行、插件配置或本地写入线索时。）
- **先备份宿主 AI 配置**：Skill、plugin、规则文件可能改变 Claude/Cursor/Codex 的默认行为。（适用：存在插件 manifest、Skill 或宿主规则入口时。）
- **不要使用真实生产凭证**：环境变量/API key 一旦进入宿主或工具链，可能产生账号和合规风险。（适用：出现 API、TOKEN、KEY、SECRET 等环境线索时。）
- **安装后只验证一个最小任务**：先验证加载、兼容、输出质量和回滚，再决定是否深用。（适用：准备从试用进入真实工作流时。）

### 退出方式

- **保留安装前状态**：记录原始宿主配置和项目状态，后续才能判断是否可恢复。
- **准备移除宿主 plugin / Skill / 规则入口**：如果试装后行为异常，可以把宿主 AI 恢复到试装前状态。
- **保留原始角色选择记录**：如果输出偏题，可以回到任务画像阶段重新选择角色，而不是继续沿着错误角色推进。
- **记录安装命令和写入路径**：没有明确卸载说明时，至少要知道哪些目录或配置需要手动清理。
- **准备撤销测试 API key 或 token**：测试凭证泄露或误用时，可以快速止损。
- **如果没有回滚路径，不进入主力环境**：不可回滚是继续前阻断项，不应靠信任或运气继续。

## 哪些只能预览

- 解释项目适合谁和能做什么
- 基于项目文档演示典型对话流程
- 帮助用户判断是否值得安装或继续研究

## 哪些必须安装后验证

- 真实安装 Skill、插件或 CLI
- 执行脚本、修改本地文件或访问外部服务
- 验证真实输出质量、性能和兼容性

## 边界与风险判断卡

- **把安装前预览误认为真实运行**：用户可能高估项目已经完成的配置、权限和兼容性验证。 处理方式：明确区分 prompt_preview_can_do 与 runtime_required。 Claim：`clm_0010` inferred 0.45
- **命令执行会修改本地环境**：安装命令可能写入用户主目录、宿主插件目录或项目配置。 处理方式：先在隔离环境或测试账号中运行。 证据：`README.md` Claim：`clm_0011` supported 0.86
- **待确认**：真实安装后是否与用户当前宿主 AI 版本兼容？。原因：兼容性只能通过实际宿主环境验证。
- **待确认**：项目输出质量是否满足用户具体任务？。原因：安装前预览只能展示流程和边界，不能替代真实评测。
- **待确认**：安装命令是否需要网络、权限或全局写入？。原因：这影响企业环境和个人环境的安装风险。

## 开工前工作上下文

### 加载顺序

- 先读取 how_to_use.host_ai_instruction，建立安装前判断资产的边界。
- 读取 claim_graph_summary，确认事实来自 Claim/Evidence Graph，而不是 Human Wiki 叙事。
- 再读取 intended_users、capabilities 和 quick_start_candidates，判断用户是否匹配。
- 需要执行具体任务时，优先查 role_skill_index，再查 evidence_index。
- 遇到真实安装、文件修改、网络访问、性能或兼容性问题时，转入 risk_card 和 boundaries.runtime_required。

### 任务路由

- **命令行启动或安装流程**：先说明这是安装后验证能力，再给出安装前检查清单。 边界：必须真实安装或运行后验证。 证据：`README.md` Claim：`clm_0001` supported 0.86

### 上下文规模

- 文件总数：1781
- 重要文件覆盖：40/1781
- 证据索引条目：80
- 角色 / Skill 条目：77

### 证据不足时的处理

- **missing_evidence**：说明证据不足，要求用户提供目标文件、README 段落或安装后验证记录；不要补全事实。
- **out_of_scope_request**：说明该任务超出当前 AI Context Pack 证据范围，并建议用户先查看 Human Manual 或真实安装后验证。
- **runtime_request**：给出安装前检查清单和命令来源，但不要替用户执行命令或声称已执行。
- **source_conflict**：同时展示冲突来源，标记为待核实，不要强行选择一个版本。

## Prompt Recipes

### 适配判断

- 目标：判断这个项目是否适合用户当前任务。
- 预期输出：适配结论、关键理由、证据引用、安装前可预览内容、必须安装后验证内容、下一步建议。

```text
请基于 goodmemory 的 AI Context Pack，先问我 3 个必要问题，然后判断它是否适合我的任务。回答必须包含：适合谁、能做什么、不能做什么、是否值得安装、证据来自哪里。所有项目事实必须引用 evidence_refs、source_paths 或 claim_id。
```

### 安装前体验

- 目标：让用户在安装前感受核心工作流，同时避免把预览包装成真实能力或营销承诺。
- 预期输出：一段带边界标签的体验剧本、安装后验证清单和谨慎建议；不含真实运行承诺或强营销表述。

```text
请把 goodmemory 当作安装前体验资产，而不是已安装工具或真实运行环境。

请严格输出四段：
1. 先问我 3 个必要问题。
2. 给出一段“体验剧本”：用 [安装前可预览]、[必须安装后验证]、[证据不足] 三种标签展示它可能如何引导工作流。
3. 给出安装后验证清单：列出哪些能力只有真实安装、真实宿主加载、真实项目运行后才能确认。
4. 给出谨慎建议：只能说“值得继续研究/试装”“先补充信息后再判断”或“不建议继续”，不得替项目背书。

硬性边界：
- 不要声称已经安装、运行、执行测试、修改文件或产生真实结果。
- 不要写“自动适配”“确保通过”“完美适配”“强烈建议安装”等承诺性表达。
- 如果描述安装后的工作方式，必须使用“如果安装成功且宿主正确加载 Skill，它可能会……”这种条件句。
- 体验剧本只能写成“示例台词/假设流程”：使用“可能会询问/可能会建议/可能会展示”，不要写“已写入、已生成、已通过、正在运行、正在生成”。
- Prompt Preview 不负责给安装命令；如用户准备试装，只能提示先阅读 Quick Start 和 Risk Card，并在隔离环境验证。
- 所有项目事实必须来自 supported claim、evidence_refs 或 source_paths；inferred/unverified 只能作风险或待确认项。

```

### 角色 / Skill 选择

- 目标：从项目里的角色或 Skill 中挑选最匹配的资产。
- 预期输出：候选角色或 Skill 列表，每项包含适用场景、证据路径、风险边界和是否需要安装后验证。

```text
请读取 role_skill_index，根据我的目标任务推荐 3-5 个最相关的角色或 Skill。每个推荐都要说明适用场景、可能输出、风险边界和 evidence_refs。
```

### 风险预检

- 目标：安装或引入前识别环境、权限、规则冲突和质量风险。
- 预期输出：环境、权限、依赖、许可、宿主冲突、质量风险和未知项的检查清单。

```text
请基于 risk_card、boundaries 和 quick_start_candidates，给我一份安装前风险预检清单。不要替我执行命令，只说明我应该检查什么、为什么检查、失败会有什么影响。
```

### 宿主 AI 开工指令

- 目标：把项目上下文转成一次对话开始前的宿主 AI 指令。
- 预期输出：一段边界明确、证据引用明确、适合复制给宿主 AI 的开工前指令。

```text
请基于 goodmemory 的 AI Context Pack，生成一段我可以粘贴给宿主 AI 的开工前指令。这段指令必须遵守 not_runtime=true，不能声称项目已经安装、运行或产生真实结果。
```

## 角色 / Skill 索引

- 共索引 77 个角色 / Skill / 项目文档条目。

- **GoodMemory Documentation Map**（project_doc）：This directory is intentionally a routed documentation surface, not a corpus to bulk-load. Start here, then open only the file that matches the question. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/README.md`
- **GoodMemory Quality-Gate Archive**（project_doc）：This archive preserves the phase-specific closure summaries that were previously stored at the top level of docs/ . They remain useful as engineering audit artifacts, but they are no longer the main entrypoint for understanding or using the project. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/README.md`
- **GoodMemory**（project_doc）：Language: English 简体中文 ./README.zh-CN.md 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`README.md`
- **goodmemory-client**（project_doc）：Official Python client for the GoodMemory https://github.com/hjqcan/GoodMemory HTTP bridge. Stdlib only — no third-party dependencies. Wire contract: phase-39.http-memory.v1 . 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`clients/python/README.md`
- **GoodMemory Reference Chat Product**（project_doc）：This Phase 45 example is a small product-shaped chat backend that treats GoodMemory as the memory layer. It uses public package exports and the authenticated goodmemory/http bridge; it is not a new GoodMemory API surface. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`examples/reference-chat-product/README.md`
- **Repository Guidelines**（project_doc）：Are you an agent here to adopt GoodMemory give yourself or your host durable memory , not to contribute to it? Stop reading this file — it is the contributor guide. Go to llms.txt ./llms.txt for a machine-readable onboarding decision tree, or the README Quickstart ./README.md quickstart-codex-or-claude-code-memory . The capability descriptor at .well-known/goodmemory.json ./.well-known/goodmemory.json has install co… 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`AGENTS.md`
- **Contributing**（project_doc）：- Runtime is Bun. - Language is TypeScript. - Module format is ESM. - TDD is mandatory. - Every feature starts with failing tests. - Public API simplicity takes priority over internal abstraction purity. - ASCII is the default character set for source files unless there is a clear reason otherwise. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`CONTRIBUTING.md`
- **GoodMemory 0.6 to 0.7 Migration Guide**（project_doc）：GoodMemory 0.6 to 0.7 Migration Guide 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/GoodMemory-0.6-to-0.7-Migration-Guide.md`
- **GoodMemory 15-Minute App Integration**（project_doc）：GoodMemory 15-Minute App Integration 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/GoodMemory-15-Minute-App-Integration.md`
- **GoodMemory Benchmark Optimization — Research Synthesis and Plan**（project_doc）：GoodMemory Benchmark Optimization — Research Synthesis and Plan 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/GoodMemory-Benchmark-Optimization-Research-2026-07.md`
- **GoodMemory Claude Code Setup Guide**（project_doc）：This is the canonical global CLI 0.7.0 Claude Code installed-host setup path. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/GoodMemory-Claude-Code-Setup-Guide.md`
- **GoodMemory Codex Handoff Setup Guide**（project_doc）：GoodMemory Codex Handoff Setup Guide 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/GoodMemory-Codex-Handoff-Setup-Guide.md`
- **GoodMemory Current Status and Evidence**（project_doc）：GoodMemory Current Status and Evidence 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/GoodMemory-Current-Status-and-Evidence.md`
- **GoodMemory Cursor Setup Guide**（project_doc）：Give Cursor durable project/user memory through the standalone GoodMemory MCP server. One config block; no installed-host setup required. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/GoodMemory-Cursor-Setup-Guide.md`
- **GoodMemory 评测数据保留与清理**（project_doc）：评测数据库是运行时工作区，不是结果证据库。长期证据必须落在版本化的 reports/quality-gates/ 、 reports/eval/ 或 benchmark-claims/evidence/ 文件中，并绑定数据集、模型、评分器和 run identity。Postgres 中的事实、 evidence、experience、episode 和 embedding 是可重新物化的运行时派生数据， 不作为长期证据；失败现场只短期保留用于排障。 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/GoodMemory-Eval-Storage-Retention.md`
- **GoodMemory: First Principles and Reference Architecture**（project_doc）：GoodMemory: First Principles and Reference Architecture 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/GoodMemory-First-Principles-and-Reference-Architecture.md`
- **GoodMemory Gemini CLI Setup Guide**（project_doc）：Give Gemini CLI durable project/user memory through the standalone GoodMemory MCP server. One mcpServers block; no installed-host setup required. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/GoodMemory-Gemini-CLI-Setup-Guide.md`
- **GoodMemory Full ImplicitMemBench 300-Case Research Summary**（project_doc）：GoodMemory Full ImplicitMemBench 300-Case Research Summary 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/GoodMemory-ImplicitMemBench-Full-300-Research-Summary.md`
- **GoodMemory Inspector And Admin API**（project_doc）：GoodMemory Inspector is the local operator surface for durable memory. It is a private React/Vite application compiled into the goodmemory package and served by the existing CLI process; React is not a GoodMemory runtime dependency. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/GoodMemory-Inspector-and-Admin-API.md`
- **GoodMemory LanguagePack Extension Guide**（project_doc）：GoodMemory LanguagePack Extension Guide 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/GoodMemory-LanguagePack-Extension-Guide.md`
- **Publishing GoodMemory to the MCP Registry**（project_doc）：Publishing GoodMemory to the MCP Registry 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/GoodMemory-MCP-Registry-Publishing.md`
- **GoodMemory OSS v1 架构文档**（project_doc）：A pluggable memory layer for chat apps, copilots, and AI agents. npm install goodmemory 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/GoodMemory-OSS-Architecture-v1.md`
- **GoodMemory OpenCode Setup Guide**（project_doc）：Give OpenCode durable project/user memory through the standalone GoodMemory MCP server. One mcp block; no installed-host setup required. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/GoodMemory-OpenCode-Setup-Guide.md`
- **GoodMemory PRD**（project_doc）：Product Requirements Document for GoodMemory Source documents: GoodMemory-First-Principles-and-Reference-Architecture.md ./GoodMemory-First-Principles-and-Reference-Architecture.md , GoodMemory-OSS-Architecture-v1.md ./GoodMemory-OSS-Architecture-v1.md 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/GoodMemory-PRD.md`
- **GoodMemory Product Comparison**（project_doc）：This page positions GoodMemory against adjacent memory products and framework memory surfaces. It is a product-selection guide, not a benchmark leaderboard. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/GoodMemory-Product-Comparison.md`
- **GoodMemory Recall Selection Architecture**（project_doc）：GoodMemory Recall Selection Architecture 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/GoodMemory-Recall-Selection-Architecture.md`
- **GoodMemory Reference Integration Guide**（project_doc）：GoodMemory Reference Integration Guide 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/GoodMemory-Reference-Integration-Guide.md`
- **GoodMemory Standalone MCP Setup Guide**（project_doc）：GoodMemory Standalone MCP Setup Guide 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/GoodMemory-Standalone-MCP-Setup-Guide.md`
- **GoodMemory Strategy Rollout Guide**（project_doc）：GoodMemory v1 closes Phase 17 as a retrieval-first rollout surface. rules-only remains the supported baseline. New retrieval behavior should move through observe , assist , and promote in order, and every step should be justified by persisted eval artifacts. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/GoodMemory-Strategy-Rollout-Guide.md`
- **GoodMemory TDD and Evaluation Strategy**（project_doc）：GoodMemory TDD and Evaluation Strategy 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/GoodMemory-TDD-and-Evaluation-Strategy.md`
- **GoodMemory 统一自进化 Roadmap**（project_doc）：Status: Proposed Canonical Roadmap Date: 2026-04-07 Scope: GoodMemory OSS Core + Optional Evolution Layer Supersedes: - docs/archive/design-inputs/GoodMemory-MemPalace-对标分析与自进化增强计划.md - docs/archive/design-inputs/GoodMemory-Self-Evolving-Memory-Enhancement-Plan.md 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/GoodMemory-Unified-Self-Evolving-Roadmap.md`
- **GoodMemory v1 Quality Gate**（project_doc）：Generated at: 2026-04-08 02:08:17 +0800 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/GoodMemory-v1-Quality-Gate.md`
- **GoodMemory v1 Release Checklist**（project_doc）：Historical baseline. This checklist was authored for the v0.2 → v1 release, so its gate/eval sections point at the accepted Phase 40 release-candidate gate. The current immutable stable release source is 0.7.0 ; the last registry state verified when that source was prepared remains 0.6.0. The release workflow must publish and verify the exact npm artifact before it creates the v0.7.0 GitHub Release. Current releases… 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/GoodMemory-v1-Release-Checklist.md`
- **GoodMemory 记忆数据分层设计**（project_doc）：状态：Reference Draft（已对齐 Unified Roadmap） 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/GoodMemory-记忆数据分层设计.md`
- **Sequential Benchmark Hardening Plan**（project_doc）：Sequential Benchmark Hardening Plan 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/Sequential Benchmark Hardening Plan.md`
- **BEAM instruction following 0.394 — diagnosis why it is not a shaping bug**（project_doc）：BEAM instruction following 0.394 — diagnosis why it is not a shaping bug 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/beam-instruction-following-diagnosis.md`
- **POSTED — BEAM 100K end-to-end results: GoodMemory 0.802 official rubric judge**（project_doc）：POSTED — BEAM 100K end-to-end results: GoodMemory 0.802 official rubric judge 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/beam-public-results-post-draft.md`
- **GoodMemory 对标 MemPalace 的分析与自进化增强计划**（project_doc）：GoodMemory 对标 MemPalace 的分析与自进化增强计划 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/design-inputs/GoodMemory-MemPalace-对标分析与自进化增强计划.md`
- **GoodMemory OSS v2 架构方案**（project_doc）：从“可用的记忆内核”推进到“可观察、可演进、可集成的 memory fabric”。 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/design-inputs/GoodMemory-OSS-Architecture-v2.md`
- **GoodMemory 接入 OneLife 指南**（project_doc）：- GoodMemory 是通用记忆中间层。 - OneLife 只是一个 reference use case。 - 这份文档讲的是 OneLife 这个用例怎么落地，不是把 GoodMemory 做成 OneLife 专用库。 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/design-inputs/GoodMemory-OneLife-Integration-Guide.md`
- **GoodMemory 自进化记忆增强计划**（project_doc）：Status: Reference analysis. Canonical execution roadmap has moved to docs/GoodMemory-Unified-Self-Evolving-Roadmap.md . This document remains as Hermes/self-evolution-focused research input and design rationale. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/design-inputs/GoodMemory-Self-Evolving-Memory-Enhancement-Plan.md`
- **GoodMemory 架构文档与开发计划**（project_doc）：GoodMemory 是一个面向 Chatbox / Agent / Copilot / Workflow Agent 的开源“用户记忆层”模块。 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/design-inputs/chatgpt-GoodMemory 架构文档与开发计划.md`
- **GoodMemory — Architecture Document & Development Plan**（project_doc）：GoodMemory — Architecture Document & Development Plan 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/design-inputs/claude-GoodMemory-Architecture-v0.1.md`
- **会员模式与托管记忆方案**（project_doc）：- 保持现有 OSS core 心智不变：不登录、不提供 key 时，GoodMemory 仍可直接使用，默认只走本地模式。 - 会员能力作为产品层增量，不把订阅、登录、Stripe、远端同步直接塞回当前 createGoodMemory 的 core config。 - 采用你确认的方向：全链路方案、宿主集成 slash command、本地优先同步、Markdown 用 MEMORY.md + 主题文件 、配置里最终保存单一长期 API key。 - 关键原则：本地始终可用，会员只是“在本地之上增加云端存储、跨设备同步、pgvector/embedding 检索和托管备份”。 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/design-inputs/会员模式与托管记忆方案.md`
- **会员模式定位修订与云端增强记忆计划**（project_doc）：- 把会员模式重新定义为“托管增强记忆模式”，不是“云备份模式”。同步、备份、跨设备只是配套价值，核心价值是云端选择性 embedding 带来的更强 recall。 - 保持 OSS core 边界不变： createGoodMemory config 和 GoodMemoryConfig 不回填订阅、登录、embedding 配置。 - 采用 hosted-first ：会员是官方首个打包好的增强模式；未来 self-hosted / provider-backed 路径可获得相近能力，但不改这期边界。 - 这期会员增强只落在 selective embedding + hybrid recall/rerank ，不把 LLM-assisted extraction / consolidation 一起塞进会员承诺。 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/design-inputs/会员模式定位修订与云端增强记忆计划.md`
- **GoodMemory Phase 16 Quality Gate**（project_doc）：Generated at: 2026-04-17 23:53:58 +0800 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-16-Quality-Gate.md`
- **GoodMemory Phase 17 Quality Gate**（project_doc）：Generated at: 2026-04-18 22:07:54 +0800 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-17-Quality-Gate.md`
- **GoodMemory Phase 18 Quality Gate**（project_doc）：Canonical gate run: run-20260419031141 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-18-Quality-Gate.md`
- **GoodMemory Phase 19 Maintenance Quality Gate**（project_doc）：GoodMemory Phase 19 Maintenance Quality Gate 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-19-Maintenance-Quality-Gate.md`
- **GoodMemory Phase 19 Reviewer Quality Gate**（project_doc）：GoodMemory Phase 19 Reviewer Quality Gate 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-19-Reviewer-Quality-Gate.md`
- **GoodMemory Phase 20 Quality Gate**（project_doc）：Canonical gate run: run-20260420023503 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-20-Quality-Gate.md`
- **GoodMemory Phase 21 Quality Gate**（project_doc）：Canonical deterministic gate run: run-20260419174013 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-21-Quality-Gate.md`
- **GoodMemory Phase 22 Quality Gate**（project_doc）：Canonical deterministic gate run: run-20260420020541 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-22-Quality-Gate.md`
- **GoodMemory Phase 23 Quality Gate**（project_doc）：Canonical deterministic gate run: run-20260420061039 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-23-Quality-Gate.md`
- **GoodMemory Phase 24 Quality Gate**（project_doc）：Canonical deterministic gate run: run-20260420154540-contrastive-fix 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-24-Quality-Gate.md`
- **GoodMemory Phase 25 Quality Gate**（project_doc）：Canonical deterministic gate run: run-20260420082358 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-25-Quality-Gate.md`
- **GoodMemory Phase 26 Quality Gate**（project_doc）：Canonical deterministic gate run: run-20260420193000 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-26-Quality-Gate.md`
- **GoodMemory Phase 27 Quality Gate**（project_doc）：Canonical accepted gate run: run-20260421172000 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-27-Quality-Gate.md`
- **GoodMemory Phase 28 Quality Gate**（project_doc）：Canonical deterministic gate run: run-20260421093000 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-28-Quality-Gate.md`
- **GoodMemory Phase 29 Quality Gate**（project_doc）：Canonical accepted gate run: run-20260421213000 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-29-Quality-Gate.md`
- **GoodMemory Phase 30 Quality Gate**（project_doc）：Canonical gate run: run-20260421153410 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-30-Quality-Gate.md`
- **GoodMemory Phase 31 Quality Gate**（project_doc）：Canonical gate run: run-20260422041616 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-31-Quality-Gate.md`
- **GoodMemory Phase 32 Quality Gate**（project_doc）：Canonical gate run: run-20260422085720 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-32-Quality-Gate.md`
- **GoodMemory Phase 33 Quality Gate**（project_doc）：Canonical gate run: run-20260422212752 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-33-Quality-Gate.md`
- **GoodMemory Phase 34 Quality Gate**（project_doc）：Canonical gate run: run-20260423102636 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-34-Quality-Gate.md`
- **GoodMemory Phase 35 Quality Gate**（project_doc）：Canonical gate run: run-20260423213045 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-35-Quality-Gate.md`
- **GoodMemory Phase 36 Quality Gate**（project_doc）：Canonical gate run: run-20260423223045 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-36-Quality-Gate.md`
- **GoodMemory Phase 37 Quality Gate**（project_doc）：Canonical gate run: run-20260424104045 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-37-Quality-Gate.md`
- **GoodMemory Phase 37.1 Quality Gate**（project_doc）：Canonical gate run: run-20260424100757 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-37.1-Quality-Gate.md`
- **GoodMemory Phase 38 Quality Gate**（project_doc）：Canonical accepted gate run: run-20260425084045 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-38-Quality-Gate.md`
- **GoodMemory Phase 39 Quality Gate**（project_doc）：Canonical accepted gate run: run-20260425041112 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-39-Quality-Gate.md`
- **GoodMemory Phase 40 Quality Gate**（project_doc）：Canonical accepted gate run: run-20260425172323 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-40-Quality-Gate.md`
- **GoodMemory Phase 41 Quality Gate**（project_doc）：Canonical accepted gate run: run-20260425223045 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-41-Quality-Gate.md`
- **GoodMemory Phase 42 Quality Gate**（project_doc）：Canonical accepted gate run: run-20260426100000 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-42-Quality-Gate.md`
- **GoodMemory Phase 43 Quality Gate**（project_doc）：Canonical accepted gate run: run-20260426120000 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-43-Quality-Gate.md`
- **GoodMemory Phase 43.5 Quality Gate**（project_doc）：Canonical accepted gate run: run-20260426140000 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-43.5-Quality-Gate.md`
- **GoodMemory Phase 44 Quality Gate**（project_doc）：Canonical accepted gate run: run-20260426160000 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/archive/quality-gates/GoodMemory-Phase-44-Quality-Gate.md`

## 证据索引

- 共索引 80 条证据。

- **GoodMemory Documentation Map**（documentation）：This directory is intentionally a routed documentation surface, not a corpus to bulk-load. Start here, then open only the file that matches the question. 证据：`docs/README.md`
- **GoodMemory Quality-Gate Archive**（documentation）：This archive preserves the phase-specific closure summaries that were previously stored at the top level of docs/ . They remain useful as engineering audit artifacts, but they are no longer the main entrypoint for understanding or using the project. 证据：`docs/archive/quality-gates/README.md`
- **GoodMemory**（documentation）：Language: English 简体中文 ./README.zh-CN.md 证据：`README.md`
- **goodmemory-client**（documentation）：Official Python client for the GoodMemory https://github.com/hjqcan/GoodMemory HTTP bridge. Stdlib only — no third-party dependencies. Wire contract: phase-39.http-memory.v1 . 证据：`clients/python/README.md`
- **GoodMemory Reference Chat Product**（documentation）：This Phase 45 example is a small product-shaped chat backend that treats GoodMemory as the memory layer. It uses public package exports and the authenticated goodmemory/http bridge; it is not a new GoodMemory API surface. 证据：`examples/reference-chat-product/README.md`
- **Package**（package_manifest）：{ "name": "goodmemory", "version": "0.7.0", "goodmemoryRelease": { "installCommandsApplyAfterPublish": true, "npmDistTag": "latest", "status": "stable" }, "mcpName": "io.github.hjqcan/goodmemory", "description": "Memory layer for chat, copilot, and agent applications.", "license": "MIT", "homepage": "https://github.com/hjqcan/GoodMemory readme", "repository": { "type": "git", "url": "git+https://github.com/hjqcan/GoodMemory.git" }, "bugs": { "url": "https://github.com/hjqcan/GoodMemory/issues" }, "keywords": "agents", "ai", "bun", "copilot", "llm", "memory", "node", "typescript" , "type": "module", "workspaces": "apps/inspector-web" , "engines": { "bun": " =1.3.0", "node": " =20.0.0" }, "pu… 证据：`package.json`
- **Package**（package_manifest）：{ "name": "@goodmemory/inspector-web", "version": "0.0.0", "private": true, "type": "module", "scripts": { "build": "vite build", "dev": "vite --host 127.0.0.1", "typecheck": "tsc --noEmit" }, "dependencies": { "@tanstack/react-query": "^5.101.2", "lucide-react": "^1.24.0", "react": "^19.2.7", "react-dom": "^19.2.7", "react-router-dom": "^7.18.1" }, "devDependencies": { "@types/react": "^19.2.17", "@types/react-dom": "^19.2.3", "@vitejs/plugin-react": "^6.0.3", "typescript": "^7.0.2", "vite": "^8.1.4" } } 证据：`apps/inspector-web/package.json`
- **Repository Guidelines**（documentation）：Are you an agent here to adopt GoodMemory give yourself or your host durable memory , not to contribute to it? Stop reading this file — it is the contributor guide. Go to llms.txt ./llms.txt for a machine-readable onboarding decision tree, or the README Quickstart ./README.md quickstart-codex-or-claude-code-memory . The capability descriptor at .well-known/goodmemory.json ./.well-known/goodmemory.json has install commands, the MCP endpoint, and HTTP endpoints as JSON. The rest of this document is for agents and humans working on the GoodMemory codebase. 证据：`AGENTS.md`
- **Contributing**（documentation）：- Runtime is Bun. - Language is TypeScript. - Module format is ESM. - TDD is mandatory. - Every feature starts with failing tests. - Public API simplicity takes priority over internal abstraction purity. - ASCII is the default character set for source files unless there is a clear reason otherwise. 证据：`CONTRIBUTING.md`
- **License**（source_file）：Copyright c 2026 GoodMemory contributors 证据：`LICENSE`
- **GoodMemory 0.6 to 0.7 Migration Guide**（documentation）：GoodMemory 0.6 to 0.7 Migration Guide 证据：`docs/GoodMemory-0.6-to-0.7-Migration-Guide.md`
- **GoodMemory 15-Minute App Integration**（documentation）：GoodMemory 15-Minute App Integration 证据：`docs/GoodMemory-15-Minute-App-Integration.md`
- **GoodMemory Benchmark Optimization — Research Synthesis and Plan**（documentation）：GoodMemory Benchmark Optimization — Research Synthesis and Plan 证据：`docs/GoodMemory-Benchmark-Optimization-Research-2026-07.md`
- **GoodMemory Claude Code Setup Guide**（documentation）：This is the canonical global CLI 0.7.0 Claude Code installed-host setup path. 证据：`docs/GoodMemory-Claude-Code-Setup-Guide.md`
- **GoodMemory Codex Handoff Setup Guide**（documentation）：GoodMemory Codex Handoff Setup Guide 证据：`docs/GoodMemory-Codex-Handoff-Setup-Guide.md`
- **GoodMemory Current Status and Evidence**（documentation）：GoodMemory Current Status and Evidence 证据：`docs/GoodMemory-Current-Status-and-Evidence.md`
- **GoodMemory Cursor Setup Guide**（documentation）：Give Cursor durable project/user memory through the standalone GoodMemory MCP server. One config block; no installed-host setup required. 证据：`docs/GoodMemory-Cursor-Setup-Guide.md`
- **GoodMemory 评测数据保留与清理**（documentation）：评测数据库是运行时工作区，不是结果证据库。长期证据必须落在版本化的 reports/quality-gates/ 、 reports/eval/ 或 benchmark-claims/evidence/ 文件中，并绑定数据集、模型、评分器和 run identity。Postgres 中的事实、 evidence、experience、episode 和 embedding 是可重新物化的运行时派生数据， 不作为长期证据；失败现场只短期保留用于排障。 证据：`docs/GoodMemory-Eval-Storage-Retention.md`
- **GoodMemory: First Principles and Reference Architecture**（documentation）：GoodMemory: First Principles and Reference Architecture 证据：`docs/GoodMemory-First-Principles-and-Reference-Architecture.md`
- **GoodMemory Gemini CLI Setup Guide**（documentation）：Give Gemini CLI durable project/user memory through the standalone GoodMemory MCP server. One mcpServers block; no installed-host setup required. 证据：`docs/GoodMemory-Gemini-CLI-Setup-Guide.md`
- **GoodMemory Full ImplicitMemBench 300-Case Research Summary**（documentation）：GoodMemory Full ImplicitMemBench 300-Case Research Summary 证据：`docs/GoodMemory-ImplicitMemBench-Full-300-Research-Summary.md`
- **GoodMemory Inspector And Admin API**（documentation）：GoodMemory Inspector is the local operator surface for durable memory. It is a private React/Vite application compiled into the goodmemory package and served by the existing CLI process; React is not a GoodMemory runtime dependency. 证据：`docs/GoodMemory-Inspector-and-Admin-API.md`
- **GoodMemory LanguagePack Extension Guide**（documentation）：GoodMemory LanguagePack Extension Guide 证据：`docs/GoodMemory-LanguagePack-Extension-Guide.md`
- **Publishing GoodMemory to the MCP Registry**（documentation）：Publishing GoodMemory to the MCP Registry 证据：`docs/GoodMemory-MCP-Registry-Publishing.md`
- **GoodMemory OSS v1 架构文档**（documentation）：A pluggable memory layer for chat apps, copilots, and AI agents. npm install goodmemory 证据：`docs/GoodMemory-OSS-Architecture-v1.md`
- **GoodMemory OpenCode Setup Guide**（documentation）：Give OpenCode durable project/user memory through the standalone GoodMemory MCP server. One mcp block; no installed-host setup required. 证据：`docs/GoodMemory-OpenCode-Setup-Guide.md`
- **GoodMemory PRD**（documentation）：Product Requirements Document for GoodMemory Source documents: GoodMemory-First-Principles-and-Reference-Architecture.md ./GoodMemory-First-Principles-and-Reference-Architecture.md , GoodMemory-OSS-Architecture-v1.md ./GoodMemory-OSS-Architecture-v1.md 证据：`docs/GoodMemory-PRD.md`
- **GoodMemory Product Comparison**（documentation）：This page positions GoodMemory against adjacent memory products and framework memory surfaces. It is a product-selection guide, not a benchmark leaderboard. 证据：`docs/GoodMemory-Product-Comparison.md`
- **GoodMemory Recall Selection Architecture**（documentation）：GoodMemory Recall Selection Architecture 证据：`docs/GoodMemory-Recall-Selection-Architecture.md`
- **GoodMemory Reference Integration Guide**（documentation）：GoodMemory Reference Integration Guide 证据：`docs/GoodMemory-Reference-Integration-Guide.md`
- **GoodMemory Standalone MCP Setup Guide**（documentation）：GoodMemory Standalone MCP Setup Guide 证据：`docs/GoodMemory-Standalone-MCP-Setup-Guide.md`
- **GoodMemory Strategy Rollout Guide**（documentation）：GoodMemory v1 closes Phase 17 as a retrieval-first rollout surface. rules-only remains the supported baseline. New retrieval behavior should move through observe , assist , and promote in order, and every step should be justified by persisted eval artifacts. 证据：`docs/GoodMemory-Strategy-Rollout-Guide.md`
- **GoodMemory TDD and Evaluation Strategy**（documentation）：GoodMemory TDD and Evaluation Strategy 证据：`docs/GoodMemory-TDD-and-Evaluation-Strategy.md`
- **GoodMemory 统一自进化 Roadmap**（documentation）：Status: Proposed Canonical Roadmap Date: 2026-04-07 Scope: GoodMemory OSS Core + Optional Evolution Layer Supersedes: - docs/archive/design-inputs/GoodMemory-MemPalace-对标分析与自进化增强计划.md - docs/archive/design-inputs/GoodMemory-Self-Evolving-Memory-Enhancement-Plan.md 证据：`docs/GoodMemory-Unified-Self-Evolving-Roadmap.md`
- **GoodMemory v1 Quality Gate**（documentation）：Generated at: 2026-04-08 02:08:17 +0800 证据：`docs/GoodMemory-v1-Quality-Gate.md`
- **GoodMemory v1 Release Checklist**（documentation）：Historical baseline. This checklist was authored for the v0.2 → v1 release, so its gate/eval sections point at the accepted Phase 40 release-candidate gate. The current immutable stable release source is 0.7.0 ; the last registry state verified when that source was prepared remains 0.6.0. The release workflow must publish and verify the exact npm artifact before it creates the v0.7.0 GitHub Release. Current releases follow the documented 0.7.x version-bump recipe plus gate:public-benchmark-claim and the release-readiness gate rather than the Phase 40 gate. Treat the Phase 40 references below as the historical release baseline, and note that later capabilities host-memory experience, standal… 证据：`docs/GoodMemory-v1-Release-Checklist.md`
- **GoodMemory 记忆数据分层设计**（documentation）：状态：Reference Draft（已对齐 Unified Roadmap） 证据：`docs/GoodMemory-记忆数据分层设计.md`
- **Sequential Benchmark Hardening Plan**（documentation）：Sequential Benchmark Hardening Plan 证据：`docs/Sequential Benchmark Hardening Plan.md`
- **BEAM instruction following 0.394 — diagnosis why it is not a shaping bug**（documentation）：BEAM instruction following 0.394 — diagnosis why it is not a shaping bug 证据：`docs/beam-instruction-following-diagnosis.md`
- **POSTED — BEAM 100K end-to-end results: GoodMemory 0.802 official rubric judge**（documentation）：POSTED — BEAM 100K end-to-end results: GoodMemory 0.802 official rubric judge 证据：`docs/beam-public-results-post-draft.md`
- **GoodMemory 对标 MemPalace 的分析与自进化增强计划**（documentation）：GoodMemory 对标 MemPalace 的分析与自进化增强计划 证据：`docs/archive/design-inputs/GoodMemory-MemPalace-对标分析与自进化增强计划.md`
- **GoodMemory OSS v2 架构方案**（documentation）：从“可用的记忆内核”推进到“可观察、可演进、可集成的 memory fabric”。 证据：`docs/archive/design-inputs/GoodMemory-OSS-Architecture-v2.md`
- **GoodMemory 接入 OneLife 指南**（documentation）：- GoodMemory 是通用记忆中间层。 - OneLife 只是一个 reference use case。 - 这份文档讲的是 OneLife 这个用例怎么落地，不是把 GoodMemory 做成 OneLife 专用库。 证据：`docs/archive/design-inputs/GoodMemory-OneLife-Integration-Guide.md`
- **GoodMemory 自进化记忆增强计划**（documentation）：Status: Reference analysis. Canonical execution roadmap has moved to docs/GoodMemory-Unified-Self-Evolving-Roadmap.md . This document remains as Hermes/self-evolution-focused research input and design rationale. 证据：`docs/archive/design-inputs/GoodMemory-Self-Evolving-Memory-Enhancement-Plan.md`
- **GoodMemory 架构文档与开发计划**（documentation）：GoodMemory 是一个面向 Chatbox / Agent / Copilot / Workflow Agent 的开源“用户记忆层”模块。 证据：`docs/archive/design-inputs/chatgpt-GoodMemory 架构文档与开发计划.md`
- **GoodMemory — Architecture Document & Development Plan**（documentation）：GoodMemory — Architecture Document & Development Plan 证据：`docs/archive/design-inputs/claude-GoodMemory-Architecture-v0.1.md`
- **会员模式与托管记忆方案**（documentation）：- 保持现有 OSS core 心智不变：不登录、不提供 key 时，GoodMemory 仍可直接使用，默认只走本地模式。 - 会员能力作为产品层增量，不把订阅、登录、Stripe、远端同步直接塞回当前 createGoodMemory 的 core config。 - 采用你确认的方向：全链路方案、宿主集成 slash command、本地优先同步、Markdown 用 MEMORY.md + 主题文件 、配置里最终保存单一长期 API key。 - 关键原则：本地始终可用，会员只是“在本地之上增加云端存储、跨设备同步、pgvector/embedding 检索和托管备份”。 证据：`docs/archive/design-inputs/会员模式与托管记忆方案.md`
- **会员模式定位修订与云端增强记忆计划**（documentation）：- 把会员模式重新定义为“托管增强记忆模式”，不是“云备份模式”。同步、备份、跨设备只是配套价值，核心价值是云端选择性 embedding 带来的更强 recall。 - 保持 OSS core 边界不变： createGoodMemory config 和 GoodMemoryConfig 不回填订阅、登录、embedding 配置。 - 采用 hosted-first ：会员是官方首个打包好的增强模式；未来 self-hosted / provider-backed 路径可获得相近能力，但不改这期边界。 - 这期会员增强只落在 selective embedding + hybrid recall/rerank ，不把 LLM-assisted extraction / consolidation 一起塞进会员承诺。 证据：`docs/archive/design-inputs/会员模式定位修订与云端增强记忆计划.md`
- **GoodMemory Phase 16 Quality Gate**（documentation）：Generated at: 2026-04-17 23:53:58 +0800 证据：`docs/archive/quality-gates/GoodMemory-Phase-16-Quality-Gate.md`
- **GoodMemory Phase 17 Quality Gate**（documentation）：Generated at: 2026-04-18 22:07:54 +0800 证据：`docs/archive/quality-gates/GoodMemory-Phase-17-Quality-Gate.md`
- **GoodMemory Phase 18 Quality Gate**（documentation）：Canonical gate run: run-20260419031141 证据：`docs/archive/quality-gates/GoodMemory-Phase-18-Quality-Gate.md`
- **GoodMemory Phase 19 Maintenance Quality Gate**（documentation）：GoodMemory Phase 19 Maintenance Quality Gate 证据：`docs/archive/quality-gates/GoodMemory-Phase-19-Maintenance-Quality-Gate.md`
- **GoodMemory Phase 19 Reviewer Quality Gate**（documentation）：GoodMemory Phase 19 Reviewer Quality Gate 证据：`docs/archive/quality-gates/GoodMemory-Phase-19-Reviewer-Quality-Gate.md`
- **GoodMemory Phase 20 Quality Gate**（documentation）：Canonical gate run: run-20260420023503 证据：`docs/archive/quality-gates/GoodMemory-Phase-20-Quality-Gate.md`
- **GoodMemory Phase 21 Quality Gate**（documentation）：Canonical deterministic gate run: run-20260419174013 证据：`docs/archive/quality-gates/GoodMemory-Phase-21-Quality-Gate.md`
- **GoodMemory Phase 22 Quality Gate**（documentation）：Canonical deterministic gate run: run-20260420020541 证据：`docs/archive/quality-gates/GoodMemory-Phase-22-Quality-Gate.md`
- **GoodMemory Phase 23 Quality Gate**（documentation）：Canonical deterministic gate run: run-20260420061039 证据：`docs/archive/quality-gates/GoodMemory-Phase-23-Quality-Gate.md`
- **GoodMemory Phase 24 Quality Gate**（documentation）：Canonical deterministic gate run: run-20260420154540-contrastive-fix 证据：`docs/archive/quality-gates/GoodMemory-Phase-24-Quality-Gate.md`
- **GoodMemory Phase 25 Quality Gate**（documentation）：Canonical deterministic gate run: run-20260420082358 证据：`docs/archive/quality-gates/GoodMemory-Phase-25-Quality-Gate.md`
- **GoodMemory Phase 26 Quality Gate**（documentation）：Canonical deterministic gate run: run-20260420193000 证据：`docs/archive/quality-gates/GoodMemory-Phase-26-Quality-Gate.md`
- 其余 20 条证据见 `AI_CONTEXT_PACK.json` 或 `EVIDENCE_INDEX.json`。

## 宿主 AI 必须遵守的规则

- **把本资产当作开工前上下文，而不是运行环境。**：AI Context Pack 只包含证据化项目理解，不包含目标项目的可执行状态。 证据：`docs/README.md`, `docs/archive/quality-gates/README.md`, `README.md`
- **回答用户时区分可预览内容与必须安装后才能验证的内容。**：安装前体验的消费者价值来自降低误装和误判，而不是伪装成真实运行。 证据：`docs/README.md`, `docs/archive/quality-gates/README.md`, `README.md`

## 用户开工前应该回答的问题

- 你准备在哪个宿主 AI 或本地环境中使用它？
- 你只是想先体验工作流，还是准备真实安装？
- 你最在意的是安装成本、输出质量、还是和现有规则的冲突？

## 验收标准

- 所有能力声明都能回指到 evidence_refs 中的文件路径。
- AI_CONTEXT_PACK.md 没有把预览包装成真实运行。
- 用户能在 3 分钟内看懂适合谁、能做什么、如何开始和风险边界。

---

## Doramagic Context Augmentation

下面内容用于强化 Repomix/AI Context Pack 主体。Human Manual 只提供阅读骨架；踩坑日志会被转成宿主 AI 必须遵守的工作约束。

## Human Manual 骨架

使用规则：这里只是项目阅读路线和显著性信号，不是事实权威。具体事实仍必须回到 repo evidence / Claim Graph。

宿主 AI 硬性规则：
- 不得把页标题、章节顺序、摘要或 importance 当作项目事实证据。
- 解释 Human Manual 骨架时，必须明确说它只是阅读路线/显著性信号。
- 能力、安装、兼容性、运行状态和风险判断必须引用 repo evidence、source path 或 Claim Graph。

- **项目概览**：importance `high`
  - source_paths: Dockerfile, README.md, apps/inspector-web/package.json, clients/python/README.md, clients/python/pyproject.toml
- **Src 模块**：importance `high`
  - source_paths: apps/inspector-web/src/App.tsx, apps/inspector-web/src/api.ts, apps/inspector-web/src/auth.ts, apps/inspector-web/src/components/ConfirmDialog.tsx, apps/inspector-web/src/main.tsx
- **Api 模块**：importance `high`
  - source_paths: src/api/agentEventIngestion.ts, src/api/capabilityDescriptor.ts, src/api/contracts.ts, src/api/createGoodMemory.ts, src/api/evalSupport.ts
- **Runtime 模块**：importance `high`
  - source_paths: src/runtime/contextService.ts, src/runtime/public.ts, src/runtime/spillover.ts

## Repo Inspection Evidence / 源码检查证据

- repo_clone_verified: true
- repo_inspection_verified: true
- repo_commit: `c345e79856e59d98e806d7e6ff12c554a77315bd`
- inspected_files: `Dockerfile`, `README.md`, `docker-compose.yml`, `package.json`, `docs/GoodMemory-0.6-to-0.7-Migration-Guide.md`, `docs/GoodMemory-15-Minute-App-Integration.md`, `docs/GoodMemory-Benchmark-Optimization-Research-2026-07.md`, `docs/GoodMemory-Claude-Code-Setup-Guide.md`, `docs/GoodMemory-Codex-Handoff-Setup-Guide.md`, `docs/GoodMemory-Current-Status-and-Evidence.md`, `docs/GoodMemory-Cursor-Setup-Guide.md`, `docs/GoodMemory-Eval-Storage-Retention.md`, `docs/GoodMemory-First-Principles-and-Reference-Architecture.md`, `docs/GoodMemory-Gemini-CLI-Setup-Guide.md`, `docs/GoodMemory-ImplicitMemBench-Full-300-Research-Summary.md`, `docs/GoodMemory-Inspector-and-Admin-API.md`, `docs/GoodMemory-LanguagePack-Extension-Guide.md`, `docs/GoodMemory-MCP-Registry-Publishing.md`, `docs/GoodMemory-OSS-Architecture-v1.md`, `docs/GoodMemory-OpenCode-Setup-Guide.md`

宿主 AI 硬性规则：
- 没有 repo_clone_verified=true 时，不得声称已经读过源码。
- 没有 repo_inspection_verified=true 时，不得把 README/docs/package 文件判断写成事实。
- 没有 quick_start_verified=true 时，不得声称 Quick Start 已跑通。

## Doramagic Pitfall Constraints / 踩坑约束

这些规则来自 Doramagic 发现、验证或编译过程中的项目专属坑点。宿主 AI 必须把它们当作工作约束，而不是普通说明文字。

### Constraint 1: 可能修改宿主 AI 配置

- Trigger: 项目面向 Claude/Cursor/Codex/Gemini/OpenCode 等宿主，或安装命令涉及用户配置目录。
- Host AI rule: 列出会写入的配置文件、目录和卸载/回滚步骤。
- Why it matters: 安装可能改变本机 AI 工具行为，用户需要知道写入位置和回滚方法。
- Evidence: capability.host_targets | https://github.com/hjqcan/GoodMemory | host_targets=mcp_host, claude_code, claude, chatgpt
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 2: 能力判断依赖假设

- Trigger: README/documentation is current enough for a first validation pass.
- Host AI rule: 将假设转成下游验证清单。
- Why it matters: 假设不成立时，用户拿不到承诺的能力。
- Evidence: capability.assumptions | https://github.com/hjqcan/GoodMemory | README/documentation is current enough for a first validation pass.
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 3: 维护活跃度未知

- Trigger: 未记录 last_activity_observed。
- Host AI rule: 补 GitHub 最近 commit、release、issue/PR 响应信号。
- Why it matters: 新项目、停更项目和活跃项目会被混在一起，推荐信任度下降。
- Evidence: evidence.maintainer_signals | https://github.com/hjqcan/GoodMemory | last_activity_observed missing
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

- Trigger: no_demo
- Evidence: downstream_validation.risk_items | https://github.com/hjqcan/GoodMemory | no_demo; severity=medium
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 5: 存在评分风险

- Trigger: no_demo
- Why it matters: 风险会影响是否适合普通用户安装。
- Evidence: risks.scoring_risks | https://github.com/hjqcan/GoodMemory | no_demo; severity=medium
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 6: issue/PR 响应质量未知

- Trigger: issue_or_pr_quality=unknown。
- Host AI rule: 抽样最近 issue/PR，判断是否长期无人处理。
- Why it matters: 用户无法判断遇到问题后是否有人维护。
- Evidence: evidence.maintainer_signals | https://github.com/hjqcan/GoodMemory | issue_or_pr_quality=unknown
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 7: 发布节奏不明确

- Trigger: release_recency=unknown。
- Host AI rule: 确认最近 release/tag 和 README 安装命令是否一致。
- Why it matters: 安装命令和文档可能落后于代码，用户踩坑概率升高。
- Evidence: evidence.maintainer_signals | https://github.com/hjqcan/GoodMemory | release_recency=unknown
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。
