# edgequake - Doramagic AI Context Pack

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

## 充分原则

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

## 给宿主 AI 的使用方式

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

## Claim 消费规则

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

## 它最适合谁

- **想在安装前理解开源项目价值和边界的用户**：当前证据主要来自项目文档。 Claim：`clm_0002` unverified 0.25

## 它能做什么

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

## 怎么开始

- `curl -fsSL https://raw.githubusercontent.com/raphaelmansuy/edgequake/edgequake-main/docker-compose.quickstart.yml \` 证据：`docs/operations/docker-quickstart.md` Claim：`clm_0003` unverified 0.25, `clm_0006` unverified 0.25
- `curl http://localhost:8080/health` 证据：`docs/operations/docker-quickstart.md` Claim：`clm_0004` unverified 0.25
- `git clone https://github.com/raphaelmansuy/edgequake.git` 证据：`docs/operations/docker-quickstart.md` Claim：`clm_0005` unverified 0.25
- `curl -fsSL "https://raw.githubusercontent.com/raphaelmansuy/edgequake/edgequake-main/docker-compose.quickstart.yml" \` 证据：`docs/operations/docker-quickstart.md` Claim：`clm_0003` unverified 0.25, `clm_0006` unverified 0.25
- `curl -fsSL https://ollama.ai/install.sh | sh` 证据：`docs/operations/docker-quickstart.md` Claim：`clm_0007` unverified 0.25
- `curl http://localhost:11434/api/tags   # should return model list` 证据：`docs/operations/docker-quickstart.md` Claim：`clm_0008` unverified 0.25
- `curl -fsSL "$1" -o "$2"` 证据：`quickstart.sh` Claim：`clm_0009` unverified 0.25

## 继续前判断卡

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

### 30 秒判断

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

### 现在可以相信

- **证据不足，暂时没有可作为事实的继续依据。**（unverified）：没有 supported claim 可进入“现在可以相信”。

### 现在还不能相信

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

### 继续会触碰什么

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

### 最小安全下一步

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

### 退出方式

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

## 哪些只能预览

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

## 哪些必须安装后验证

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

## 边界与风险判断卡

- **把安装前预览误认为真实运行**：用户可能高估项目已经完成的配置、权限和兼容性验证。 处理方式：明确区分 prompt_preview_can_do 与 runtime_required。 Claim：`clm_0010` inferred 0.45
- **命令执行会修改本地环境**：安装命令可能写入用户主目录、宿主插件目录或项目配置。 处理方式：先在隔离环境或测试账号中运行。 证据：`docs/operations/docker-quickstart.md`, `quickstart.sh` Claim：`clm_0011` inferred 0.45
- **待确认**：真实安装后是否与用户当前宿主 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。

### 任务路由

- **命令行启动或安装流程**：先说明这是安装后验证能力，再给出安装前检查清单。 边界：必须真实安装或运行后验证。 证据：`docs/operations/docker-quickstart.md`, `quickstart.sh`

### 上下文规模

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

### 证据不足时的处理

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

## Prompt Recipes

### 适配判断

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

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

### 安装前体验

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

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

请严格输出四段：
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
请基于 edgequake 的 AI Context Pack，生成一段我可以粘贴给宿主 AI 的开工前指令。这段指令必须遵守 not_runtime=true，不能声称项目已经安装、运行或产生真实结果。
```

## 角色 / Skill 索引

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

- **EdgeQuake Documentation**（project_doc）：High-Performance Graph-Enhanced RAG in Rust 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/README.md`
- **Architecture: Crate Reference**（project_doc）：Understanding EdgeQuake's Modular Rust Architecture 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/architecture/crates/README.md`
- **EdgeQuake SDKs**（project_doc）：Official HTTP clients for the EdgeQuake API. Canonical routing lives in edgequake/crates/edgequake-api/src/routes.rs ; OpenAPI is the field-level truth for DTOs. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/sdks/README.md`
- **C / .NET SDK**（project_doc）：var http = new HttpHelper new EdgeQuakeConfig { BaseUrl = "http://localhost:8080", ApiKey = Environment.GetEnvironmentVariable "EDGEQUAKE API KEY" , TenantId = Environment.GetEnvironmentVariable "EDGEQUAKE TENANT ID" , UserId = Environment.GetEnvironmentVariable "EDGEQUAKE USER ID" , WorkspaceId = Environment.GetEnvironmentVariable "EDGEQUAKE WORKSPACE ID" , } ; 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/sdks/csharp/README.md`
- **Go SDK**（project_doc）：go ctx := context.Background c := edgequake.NewClient edgequake.WithBaseURL "http://localhost:8080" , edgequake.WithAPIKey os.Getenv "EDGEQUAKE API KEY" , edgequake.WithTenantID os.Getenv "EDGEQUAKE TENANT ID" , edgequake.WithUserID os.Getenv "EDGEQUAKE USER ID" , edgequake.WithWorkspaceID os.Getenv "EDGEQUAKE WORKSPACE ID" , 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/sdks/go/README.md`
- **Java SDK**（project_doc）：Maintainer publication is automated by .github/workflows/publish-java-sdk.yml on tags matching sdk-java-v . 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/sdks/java/README.md`
- **Kotlin SDK**（project_doc）：kotlin import io.edgequake.sdk.EdgeQuakeClient import io.edgequake.sdk.EdgeQuakeConfig 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/sdks/kotlin/README.md`
- **Python SDK**（project_doc）：Location: sdks/python Install: pip install edgequake or uv add edgequake from the package root. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/sdks/python/README.md`
- **Ruby SDK**（project_doc）：The gem specification references lib/ / .rb , but this checkout may not include a complete lib/ tree. Treat Ruby as experimental until the package layout and CI are restored. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/sdks/ruby/README.md`
- **Rust SDK**（project_doc）：Location: sdks/rust Authority: Same headers and /api/v1 paths as the Axum server. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/sdks/rust/README.md`
- **Swift SDK**（project_doc）：Use Swift Package Manager and point to the sdks/swift folder, or follow Package.swift in that directory. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/sdks/swift/README.md`
- **TypeScript / Node SDK**（project_doc）：typescript import { EdgeQuakeClient } from "@edgequake/sdk"; 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/sdks/typescript/README.md`
- **Architecture Decision Records**（project_doc）：This directory contains Architecture Decision Records ADRs documenting significant architectural decisions made during the EdgeQuake project. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`edgequake/docs/adr/README.md`
- **EdgeQuake WebUI**（project_doc）：A modern web interface for the EdgeQuake RAG Retrieval-Augmented Generation framework, built with Next.js 16, React 19, and Tailwind CSS. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`edgequake_webui/README.md`
- **EdgeQuake MCP Server**（project_doc）：Model Context Protocol MCP Server for EdgeQuake Use EdgeQuake as persistent agent memory for AI agents and autonomous systems 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`mcp/README.md`
- **zz-reference/ — Grounded Reference for EdgeQuake Storage**（project_doc）：zz-reference/ — Grounded Reference for EdgeQuake Storage 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`zz-reference/README.md`
- **EdgeQuake v0.4.0 — PDF × LLM Vision**（project_doc）：EdgeQuake v0.4.0 — PDF × LLM Vision 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`articles/016-llm-vision/README.md`
- **Article 016: MCP Integration Announcement**（project_doc）：Article 016: MCP Integration Announcement 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`articles/016-mcp/README.md`
- **EdgeQuake Benchmarks**（project_doc）：This directory contains performance benchmarks for EdgeQuake components. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`edgequake/benches/README.md`
- **EdgeQuake Docker Deployment**（project_doc）：This directory ships two supported Docker flows: 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`edgequake/docker/README.md`
- **EdgeQuake Examples**（project_doc）：This directory contains example applications demonstrating EdgeQuake's capabilities. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`edgequake/examples/README.md`
- **EdgeQuake PDF Converter**（project_doc）：A high-quality PDF to Markdown converter written in Rust, featuring advanced layout analysis, SOTA-level multi-column reading order, and optional LLM-powered image OCR. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`legacy/edgequake-pdf/README.md`
- **EdgeQuake C SDK**（project_doc）：Official .NET client for the EdgeQuake https://github.com/edgequake/edgequake RAG API. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`sdks/csharp/README.md`
- **EdgeQuake Go SDK**（project_doc）：Official Go client library for the EdgeQuake https://github.com/edgequake/edgequake RAG Retrieval-Augmented Generation API. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`sdks/go/README.md`
- **EdgeQuake Java SDK**（project_doc）：Java SDK for the EdgeQuake https://github.com/edgequake/edgequake RAG Retrieval-Augmented Generation API. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`sdks/java/README.md`
- **EdgeQuake Kotlin SDK**（project_doc）：Kotlin SDK for the EdgeQuake https://github.com/edgequake/edgequake RAG Retrieval-Augmented Generation API. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`sdks/kotlin/README.md`
- **EdgeQuake PHP SDK**（project_doc）：Official PHP client for the EdgeQuake https://github.com/edgequake/edgequake RAG API. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`sdks/php/README.md`
- **EdgeQuake Python SDK**（project_doc）：Official Python SDK for the EdgeQuake https://github.com/edgequake/edgequake RAG API. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`sdks/python/README.md`
- **EdgeQuake Python SDK Examples**（project_doc）：This directory contains runnable examples demonstrating various features of the EdgeQuake Python SDK. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`sdks/python/examples/README.md`
- **EdgeQuake Ruby SDK**（project_doc）：Official Ruby client for the EdgeQuake https://github.com/edgequake/edgequake RAG API. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`sdks/ruby/README.md`
- **EdgeQuake Rust SDK**（project_doc）：Production-ready async Rust client for the EdgeQuake RAG API https://github.com/raphaelmansuy/edgequake . 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`sdks/rust/README.md`
- **EdgeQuake Swift SDK**（project_doc）：Swift SDK for the EdgeQuake RAG API. Built with native Swift concurrency async/await and zero external dependencies. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`sdks/swift/README.md`
- **@edgequake/sdk**（project_doc）：TypeScript SDK for the EdgeQuake https://github.com/raphaelmansuy/edgequake RAG API. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`sdks/typescript/README.md`
- **001-why/ — Why pgvector**（project_doc）：See 001-five-whys.md 001-five-whys.md for the full reasoning chain. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`zz-reference/001-pgvector/001-why/README.md`
- **002-fundamentals/ — Install, Types, Operators**（project_doc）：002-fundamentals/ — Install, Types, Operators 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`zz-reference/001-pgvector/002-fundamentals/README.md`
- **003-indexing/ — HNSW, IVFFlat, and the filtering trap**（project_doc）：003-indexing/ — HNSW, IVFFlat, and the filtering trap 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`zz-reference/001-pgvector/003-indexing/README.md`
- **004-performance/ — Tuning, Quantization, Scaling**（project_doc）：004-performance/ — Tuning, Quantization, Scaling 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`zz-reference/001-pgvector/004-performance/README.md`
- **005-edgequake-usage/ — How EdgeQuake calls pgvector**（project_doc）：005-edgequake-usage/ — How EdgeQuake calls pgvector 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`zz-reference/001-pgvector/005-edgequake-usage/README.md`
- **006-faq/ — pgvector FAQ**（project_doc）：All answers cite either pgvector README https://github.com/pgvector/pgvector readme or an EdgeQuake source file. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`zz-reference/001-pgvector/006-faq/README.md`
- **001-pgvector/ — Vector Similarity Search for Postgres**（project_doc）：001-pgvector/ — Vector Similarity Search for Postgres 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`zz-reference/001-pgvector/README.md`
- **001-why/ — Why Apache AGE**（project_doc）：See 001-five-whys.md 001-five-whys.md for the full reasoning chain. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`zz-reference/002-apache-age/001-why/README.md`
- **002-fundamentals/ — Install, Graphs, Labels, agtype**（project_doc）：002-fundamentals/ — Install, Graphs, Labels, agtype 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`zz-reference/002-apache-age/002-fundamentals/README.md`
- **003-cypher/ — Cypher in AGE**（project_doc）：File Topic -------------------------------------------------------- --------------------------------------------- 001-cypher-function.md 001-cypher-function.md The cypher 'graph', $$ ... $$ SQL function 002-match-and-patterns.md 002-match-and-patterns.md MATCH, WHERE, variable-length paths 003-create-merge-delete.md 003-create-merge-delete.md Mutations: CREATE, MERGE, SET, DELETE 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`zz-reference/002-apache-age/003-cypher/README.md`
- **004-sql-integration/ — Mixing SQL and Cypher**（project_doc）：004-sql-integration/ — Mixing SQL and Cypher 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`zz-reference/002-apache-age/004-sql-integration/README.md`
- **005-edgequake-usage/ — How EdgeQuake calls AGE**（project_doc）：005-edgequake-usage/ — How EdgeQuake calls AGE 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`zz-reference/002-apache-age/005-edgequake-usage/README.md`
- **006-faq/ — Apache AGE FAQ**（project_doc）：All answers cite either the AGE Manual https://age.apache.org/age-manual/master/index.html , the Apache AGE GitHub https://github.com/apache/age , or EdgeQuake source. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`zz-reference/002-apache-age/006-faq/README.md`
- **002-apache-age/ — openCypher Graph for PostgreSQL**（project_doc）：002-apache-age/ — openCypher Graph for PostgreSQL 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`zz-reference/002-apache-age/README.md`
- **Search Quality Non-Regression Test Suite**（project_doc）：Search Quality Non-Regression Test Suite 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`edgequake/crates/edgequake-query/tests/README.md`
- **EdgeQuake Comprehensive PDF-to-Markdown Test Suite**（project_doc）：EdgeQuake Comprehensive PDF-to-Markdown Test Suite 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`legacy/edgequake-pdf/test-data/README.md`
- **PDF Extraction Test Suite**（project_doc）：This directory contains a three-tier test architecture designed for optimal developer productivity and comprehensive quality validation. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`legacy/edgequake-pdf/tests/README.md`
- **Contributing to EdgeQuake**（project_doc）：EdgeQuake accepts standard open-source contributions through GitHub issues and pull requests. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`CONTRIBUTING.md`
- **Changelog docs**（project_doc）：All notable changes to the EdgeQuake documentation are tracked here. See the root CHANGELOG.md for workspace-wide changes. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/CHANGELOG.md`
- **EdgeQuake Observability**（project_doc）：See SPEC-018 ../specs/018-observability/README.md for the full audit and proof index. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/OBSERVABILITY.md`
- **Frequently Asked Questions**（project_doc）：EdgeQuake is a production-grade Graph-RAG framework written in Rust. It combines: 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/faq.md`
- **EdgeQuake Feature Registry**（project_doc）：This file maintains traceability between code features and business requirements. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/features.md`
- **Explore the Documentation**（project_doc）：Complete documentation for EdgeQuake — the Graph-RAG framework Built to Ship. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/index.md`
- **LinkedIn Post — EdgeQuake v0.4.0**（project_doc）：Title: Why your RAG pipeline struggles with PDFs — and how we fixed it with LLM Vision 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/linkedin-post-v0.4.0.md`
- **SQLx Offline Mode**（project_doc）：EdgeQuake uses SQLx's compile-time query verification, which by default requires a live database connection during compilation. This document explains how we've configured offline mode to allow builds without a running PostgreSQL instance. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/sqlx-offline-mode.md`
- **Document Upload Quick Reference**（project_doc）：Choose the Right Endpoint for Your Upload Method 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api-reference/document-upload-quick-reference.md`
- **Extended API Reference**（project_doc）：Additional Endpoints for Tasks, Pipeline, Costs, and Lineage 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api-reference/extended-api.md`
- **Index**（project_doc）：Complete REST API documentation for EdgeQuake. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api-reference/index.md`
- **Lineage API Reference**（project_doc）：REST API endpoints for document lineage, chunk provenance, and entity traceability 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api-reference/lineage-endpoints.md`
- **EdgeQuake REST API Reference**（project_doc）：Version : 0.10.x Base URL : http://localhost:8080/api/v1 OpenAPI : Available at /api-docs/openapi.json 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/api-reference/rest-api.md`
- **EdgeQuake Crate Architecture**（project_doc）：EdgeQuake is organized into 11 focused Rust crates, each with a single responsibility. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/architecture/crates/index.md`
- **EdgeQuake Data Flow**（project_doc）：How documents flow through ingestion and how queries are processed 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/architecture/data-flow.md`
- **Index**（project_doc）：Modular crate architecture and storage backends in EdgeQuake. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/architecture/index.md`
- **Lineage Tracking Architecture**（project_doc）：Complete traceability from source documents to extracted entities 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/architecture/lineage-tracking.md`
- **EdgeQuake Architecture Overview**（project_doc）：Understanding the system design through first principles 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/architecture/overview.md`
- **EdgeQuake vs LightRAG: Comprehensive Superiority Analysis**（project_doc）：EdgeQuake vs LightRAG: Comprehensive Superiority Analysis 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/comparisons/edgequake-vs-lightrag-superiority-analysis.md`
- **Index**（project_doc）：See how EdgeQuake compares to other RAG solutions. 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/comparisons/index.md`
- **EdgeQuake vs Microsoft GraphRAG**（project_doc）：Two Approaches to Graph-Enhanced RAG 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/comparisons/vs-graphrag.md`
- **EdgeQuake vs LightRAG Python**（project_doc）：A Rust reimplementation with production-grade enhancements 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/comparisons/vs-lightrag-python.md`
- **EdgeQuake vs Traditional RAG**（project_doc）：Why Knowledge Graphs Transform Retrieval Quality 激活提示：当用户需要理解项目结构、安装方式或边界时参考。 证据：`docs/comparisons/vs-traditional-rag.md`

## 证据索引

- 共索引 80 条证据。

- **EdgeQuake Documentation**（documentation）：High-Performance Graph-Enhanced RAG in Rust 证据：`docs/README.md`
- **Architecture: Crate Reference**（documentation）：Understanding EdgeQuake's Modular Rust Architecture 证据：`docs/architecture/crates/README.md`
- **EdgeQuake SDKs**（documentation）：Official HTTP clients for the EdgeQuake API. Canonical routing lives in edgequake/crates/edgequake-api/src/routes.rs ; OpenAPI is the field-level truth for DTOs. 证据：`docs/sdks/README.md`
- **C / .NET SDK**（documentation）：var http = new HttpHelper new EdgeQuakeConfig { BaseUrl = "http://localhost:8080", ApiKey = Environment.GetEnvironmentVariable "EDGEQUAKE API KEY" , TenantId = Environment.GetEnvironmentVariable "EDGEQUAKE TENANT ID" , UserId = Environment.GetEnvironmentVariable "EDGEQUAKE USER ID" , WorkspaceId = Environment.GetEnvironmentVariable "EDGEQUAKE WORKSPACE ID" , } ; 证据：`docs/sdks/csharp/README.md`
- **Go SDK**（documentation）：go ctx := context.Background c := edgequake.NewClient edgequake.WithBaseURL "http://localhost:8080" , edgequake.WithAPIKey os.Getenv "EDGEQUAKE API KEY" , edgequake.WithTenantID os.Getenv "EDGEQUAKE TENANT ID" , edgequake.WithUserID os.Getenv "EDGEQUAKE USER ID" , edgequake.WithWorkspaceID os.Getenv "EDGEQUAKE WORKSPACE ID" , 证据：`docs/sdks/go/README.md`
- **Java SDK**（documentation）：Maintainer publication is automated by .github/workflows/publish-java-sdk.yml on tags matching sdk-java-v . 证据：`docs/sdks/java/README.md`
- **Kotlin SDK**（documentation）：kotlin import io.edgequake.sdk.EdgeQuakeClient import io.edgequake.sdk.EdgeQuakeConfig 证据：`docs/sdks/kotlin/README.md`
- **Python SDK**（documentation）：Location: sdks/python Install: pip install edgequake or uv add edgequake from the package root. 证据：`docs/sdks/python/README.md`
- **Ruby SDK**（documentation）：The gem specification references lib/ / .rb , but this checkout may not include a complete lib/ tree. Treat Ruby as experimental until the package layout and CI are restored. 证据：`docs/sdks/ruby/README.md`
- **Rust SDK**（documentation）：Location: sdks/rust Authority: Same headers and /api/v1 paths as the Axum server. 证据：`docs/sdks/rust/README.md`
- **Swift SDK**（documentation）：Use Swift Package Manager and point to the sdks/swift folder, or follow Package.swift in that directory. 证据：`docs/sdks/swift/README.md`
- **TypeScript / Node SDK**（documentation）：typescript import { EdgeQuakeClient } from "@edgequake/sdk"; 证据：`docs/sdks/typescript/README.md`
- **Architecture Decision Records**（documentation）：This directory contains Architecture Decision Records ADRs documenting significant architectural decisions made during the EdgeQuake project. 证据：`edgequake/docs/adr/README.md`
- **EdgeQuake WebUI**（documentation）：A modern web interface for the EdgeQuake RAG Retrieval-Augmented Generation framework, built with Next.js 16, React 19, and Tailwind CSS. 证据：`edgequake_webui/README.md`
- **EdgeQuake MCP Server**（documentation）：Model Context Protocol MCP Server for EdgeQuake Use EdgeQuake as persistent agent memory for AI agents and autonomous systems 证据：`mcp/README.md`
- **zz-reference/ — Grounded Reference for EdgeQuake Storage**（documentation）：zz-reference/ — Grounded Reference for EdgeQuake Storage 证据：`zz-reference/README.md`
- **EdgeQuake v0.4.0 — PDF × LLM Vision**（documentation）：EdgeQuake v0.4.0 — PDF × LLM Vision 证据：`articles/016-llm-vision/README.md`
- **Article 016: MCP Integration Announcement**（documentation）：Article 016: MCP Integration Announcement 证据：`articles/016-mcp/README.md`
- **EdgeQuake Benchmarks**（documentation）：This directory contains performance benchmarks for EdgeQuake components. 证据：`edgequake/benches/README.md`
- **EdgeQuake Docker Deployment**（documentation）：This directory ships two supported Docker flows: 证据：`edgequake/docker/README.md`
- **EdgeQuake Examples**（documentation）：This directory contains example applications demonstrating EdgeQuake's capabilities. 证据：`edgequake/examples/README.md`
- **EdgeQuake PDF Converter**（documentation）：A high-quality PDF to Markdown converter written in Rust, featuring advanced layout analysis, SOTA-level multi-column reading order, and optional LLM-powered image OCR. 证据：`legacy/edgequake-pdf/README.md`
- **EdgeQuake C SDK**（documentation）：Official .NET client for the EdgeQuake https://github.com/edgequake/edgequake RAG API. 证据：`sdks/csharp/README.md`
- **EdgeQuake Go SDK**（documentation）：Official Go client library for the EdgeQuake https://github.com/edgequake/edgequake RAG Retrieval-Augmented Generation API. 证据：`sdks/go/README.md`
- **EdgeQuake Java SDK**（documentation）：Java SDK for the EdgeQuake https://github.com/edgequake/edgequake RAG Retrieval-Augmented Generation API. 证据：`sdks/java/README.md`
- **EdgeQuake Kotlin SDK**（documentation）：Kotlin SDK for the EdgeQuake https://github.com/edgequake/edgequake RAG Retrieval-Augmented Generation API. 证据：`sdks/kotlin/README.md`
- **EdgeQuake PHP SDK**（documentation）：Official PHP client for the EdgeQuake https://github.com/edgequake/edgequake RAG API. 证据：`sdks/php/README.md`
- **EdgeQuake Python SDK**（documentation）：Official Python SDK for the EdgeQuake https://github.com/edgequake/edgequake RAG API. 证据：`sdks/python/README.md`
- **EdgeQuake Python SDK Examples**（documentation）：This directory contains runnable examples demonstrating various features of the EdgeQuake Python SDK. 证据：`sdks/python/examples/README.md`
- **EdgeQuake Ruby SDK**（documentation）：Official Ruby client for the EdgeQuake https://github.com/edgequake/edgequake RAG API. 证据：`sdks/ruby/README.md`
- **EdgeQuake Rust SDK**（documentation）：Production-ready async Rust client for the EdgeQuake RAG API https://github.com/raphaelmansuy/edgequake . 证据：`sdks/rust/README.md`
- **EdgeQuake Swift SDK**（documentation）：Swift SDK for the EdgeQuake RAG API. Built with native Swift concurrency async/await and zero external dependencies. 证据：`sdks/swift/README.md`
- **@edgequake/sdk**（documentation）：TypeScript SDK for the EdgeQuake https://github.com/raphaelmansuy/edgequake RAG API. 证据：`sdks/typescript/README.md`
- **001-why/ — Why pgvector**（documentation）：See 001-five-whys.md 001-five-whys.md for the full reasoning chain. 证据：`zz-reference/001-pgvector/001-why/README.md`
- **002-fundamentals/ — Install, Types, Operators**（documentation）：002-fundamentals/ — Install, Types, Operators 证据：`zz-reference/001-pgvector/002-fundamentals/README.md`
- **003-indexing/ — HNSW, IVFFlat, and the filtering trap**（documentation）：003-indexing/ — HNSW, IVFFlat, and the filtering trap 证据：`zz-reference/001-pgvector/003-indexing/README.md`
- **004-performance/ — Tuning, Quantization, Scaling**（documentation）：004-performance/ — Tuning, Quantization, Scaling 证据：`zz-reference/001-pgvector/004-performance/README.md`
- **005-edgequake-usage/ — How EdgeQuake calls pgvector**（documentation）：005-edgequake-usage/ — How EdgeQuake calls pgvector 证据：`zz-reference/001-pgvector/005-edgequake-usage/README.md`
- **006-faq/ — pgvector FAQ**（documentation）：All answers cite either pgvector README https://github.com/pgvector/pgvector readme or an EdgeQuake source file. 证据：`zz-reference/001-pgvector/006-faq/README.md`
- **001-pgvector/ — Vector Similarity Search for Postgres**（documentation）：001-pgvector/ — Vector Similarity Search for Postgres 证据：`zz-reference/001-pgvector/README.md`
- **001-why/ — Why Apache AGE**（documentation）：See 001-five-whys.md 001-five-whys.md for the full reasoning chain. 证据：`zz-reference/002-apache-age/001-why/README.md`
- **002-fundamentals/ — Install, Graphs, Labels, agtype**（documentation）：002-fundamentals/ — Install, Graphs, Labels, agtype 证据：`zz-reference/002-apache-age/002-fundamentals/README.md`
- **003-cypher/ — Cypher in AGE**（documentation）：File Topic -------------------------------------------------------- --------------------------------------------- 001-cypher-function.md 001-cypher-function.md The cypher 'graph', $$ ... $$ SQL function 002-match-and-patterns.md 002-match-and-patterns.md MATCH, WHERE, variable-length paths 003-create-merge-delete.md 003-create-merge-delete.md Mutations: CREATE, MERGE, SET, DELETE 证据：`zz-reference/002-apache-age/003-cypher/README.md`
- **004-sql-integration/ — Mixing SQL and Cypher**（documentation）：004-sql-integration/ — Mixing SQL and Cypher 证据：`zz-reference/002-apache-age/004-sql-integration/README.md`
- **005-edgequake-usage/ — How EdgeQuake calls AGE**（documentation）：005-edgequake-usage/ — How EdgeQuake calls AGE 证据：`zz-reference/002-apache-age/005-edgequake-usage/README.md`
- **006-faq/ — Apache AGE FAQ**（documentation）：All answers cite either the AGE Manual https://age.apache.org/age-manual/master/index.html , the Apache AGE GitHub https://github.com/apache/age , or EdgeQuake source. 证据：`zz-reference/002-apache-age/006-faq/README.md`
- **002-apache-age/ — openCypher Graph for PostgreSQL**（documentation）：002-apache-age/ — openCypher Graph for PostgreSQL 证据：`zz-reference/002-apache-age/README.md`
- **Package**（package_manifest）：{ "name": "edgequake webui", "version": "0.12.3", "private": true, "scripts": { "dev": "next dev", "build": "./scripts/safe-build.sh", "build:safe": "./scripts/safe-build.sh", "build:check": "./scripts/safe-build.sh --check", "start": "next start", "lint": "eslint", "typecheck": "tsc --noEmit", "test": "vitest run", "test:watch": "vitest", "test:e2e": "playwright test", "test:e2e:ui": "playwright test --ui", "test:e2e:headed": "playwright test --headed" }, "dependencies": { "@radix-ui/react-alert-dialog": "^1.1.15", "@radix-ui/react-avatar": "^1.1.11", "@radix-ui/react-checkbox": "^1.3.3", "@radix-ui/react-collapsible": "^1.1.12", "@radix-ui/react-context-menu": "^2.2.16", "@radix-ui/react-… 证据：`edgequake_webui/package.json`
- **Package**（package_manifest）：{ "name": "@edgequake/mcp-server", "version": "0.2.0", "description": "MCP server for EdgeQuake Graph-RAG — use EdgeQuake as persistent agent memory", "type": "module", "main": "./dist/index.js", "types": "./dist/index.d.ts", "bin": { "edgequake-mcp": "./dist/index.js" }, "exports": { ".": { "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" } } }, "files": "dist", "README.md", "LICENSE" , "scripts": { "build": "tsup", "dev": "tsup --watch", "start": "node dist/index.js", "test": "vitest run", "test:watch": "vitest", "test:e2e": "vitest run --config vitest.e2e.config.ts", "lint": "tsc --noEmit", "clean": "rm -rf dist", "prepublishOnly": "npm run lint && npm run build" },… 证据：`mcp/package.json`
- **Package**（package_manifest）：{ "name": "edgequake-sdk", "version": "0.4.0", "description": "Official TypeScript/JavaScript SDK for EdgeQuake RAG API", "type": "module", "main": "./dist/index.cjs", "module": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { ".": { "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }, "require": { "types": "./dist/index.d.cts", "default": "./dist/index.cjs" } } }, "files": "dist", "README.md", "LICENSE", "CHANGELOG.md" , "scripts": { "build": "tsup", "dev": "tsup --watch", "test": "vitest run", "test:watch": "vitest", "test:coverage": "vitest run --coverage", "lint": "tsc --noEmit", "clean": "rm -rf dist", "prepublishOnly": "npm run lint && npm run test &&… 证据：`sdks/typescript/package.json`
- **Search Quality Non-Regression Test Suite**（documentation）：Search Quality Non-Regression Test Suite 证据：`edgequake/crates/edgequake-query/tests/README.md`
- **EdgeQuake Comprehensive PDF-to-Markdown Test Suite**（documentation）：EdgeQuake Comprehensive PDF-to-Markdown Test Suite 证据：`legacy/edgequake-pdf/test-data/README.md`
- **PDF Extraction Test Suite**（documentation）：This directory contains a three-tier test architecture designed for optimal developer productivity and comprehensive quality validation. 证据：`legacy/edgequake-pdf/tests/README.md`
- **Contributing to EdgeQuake**（documentation）：EdgeQuake accepts standard open-source contributions through GitHub issues and pull requests. 证据：`CONTRIBUTING.md`
- **License**（source_file）：Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ 证据：`LICENSE`
- **License**（source_file）：Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ 证据：`mcp/LICENSE`
- **License**（source_file）：Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ 证据：`sdks/python/LICENSE`
- **License**（source_file）：Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ 证据：`sdks/typescript/LICENSE`
- **Changelog docs**（documentation）：All notable changes to the EdgeQuake documentation are tracked here. See the root CHANGELOG.md for workspace-wide changes. 证据：`docs/CHANGELOG.md`
- **EdgeQuake Observability**（documentation）：See SPEC-018 ../specs/018-observability/README.md for the full audit and proof index. 证据：`docs/OBSERVABILITY.md`
- 其余 20 条证据见 `AI_CONTEXT_PACK.json` 或 `EVIDENCE_INDEX.json`。

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

- **把本资产当作开工前上下文，而不是运行环境。**：AI Context Pack 只包含证据化项目理解，不包含目标项目的可执行状态。 证据：`docs/README.md`, `docs/architecture/crates/README.md`, `docs/sdks/README.md`
- **回答用户时区分可预览内容与必须安装后才能验证的内容。**：安装前体验的消费者价值来自降低误装和误判，而不是伪装成真实运行。 证据：`docs/README.md`, `docs/architecture/crates/README.md`, `docs/sdks/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: README.md, articles/016-llm-vision/README.md, articles/016-mcp/README.md, edgequake-website/package.json, edgequake/README.md
- **Lib 模块**：importance `high`
  - source_paths: edgequake_webui/src/lib/api/chat.ts, edgequake_webui/src/lib/api/client.ts, edgequake_webui/src/lib/api/conversations.ts, edgequake_webui/src/lib/api/edgequake.ts, edgequake_webui/src/lib/api/edgequake/auth.ts
- **Lib 模块**：importance `high`
  - source_paths: sdks/ruby/lib/edgequake.rb, sdks/ruby/lib/edgequake/client.rb, sdks/ruby/lib/edgequake/config.rb, sdks/ruby/lib/edgequake/error.rb, sdks/ruby/lib/edgequake/http_helper.rb
- **Src 模块**：importance `high`
  - source_paths: edgequake/crates/edgequake-core/src/cache.rs, edgequake/crates/edgequake-core/src/config.rs, edgequake/crates/edgequake-core/src/conversation_service/in_memory.rs, edgequake/crates/edgequake-core/src/conversation_service/mod.rs, edgequake/crates/edgequake-core/src/conversation_service_impl.rs

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

- repo_clone_verified: true
- repo_inspection_verified: true
- repo_commit: `2882651e7e396f02af21da647f52148719654d63`
- inspected_files: `README.md`, `docs/CHANGELOG.md`, `docs/OBSERVABILITY.md`, `docs/README.md`, `docs/api-reference/document-upload-quick-reference.md`, `docs/api-reference/extended-api.md`, `docs/api-reference/index.md`, `docs/api-reference/lineage-endpoints.md`, `docs/api-reference/rest-api.md`, `docs/architecture/crates/README.md`, `docs/architecture/crates/index.md`, `docs/architecture/data-flow.md`, `docs/architecture/index.md`, `docs/architecture/lineage-tracking.md`, `docs/architecture/overview.md`, `docs/comparisons/edgequake-vs-lightrag-superiority-analysis.md`, `docs/comparisons/index.md`, `docs/comparisons/vs-graphrag.md`, `docs/comparisons/vs-lightrag-python.md`, `docs/comparisons/vs-traditional-rag.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: 依赖 Docker 环境

- Trigger: 安装/运行入口包含 Docker 命令：docker run -d --name edgequake -p 8080:8080 -e DATABASE_URL="postgres://user:password@your-db-host:5432/edgequake" -e EDGEQUAKE_LLM_PROVIDER=openai -e OPENAI_API_KEY="sk-..." ghcr.io/raphaelmansuy/edgequake:latest # Verify curl http://localhost:8080/health
- Host AI rule: 标注 Docker 前置条件，并提供非 Docker 路径或失败提示。
- Why it matters: 非工程用户可能没有 Docker，启动成本明显增加。
- Evidence: identity.distribution | https://github.com/raphaelmansuy/edgequake | docker run -d --name edgequake -p 8080:8080 -e DATABASE_URL="postgres://user:password@your-db-host:5432/edgequake" -e EDGEQUAKE_LLM_PROVIDER=openai -e OPENAI_API_KEY="sk-..." ghcr.io/raphaelmansuy/edgequake:latest # Verify curl http://localhost:8080/health
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 2: 来源证据：Derive new entities without rebuilding entire graph and embeddings

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：Derive new entities without rebuilding entire graph and embeddings
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | https://github.com/raphaelmansuy/edgequake/issues/252 | 来源类型 github_issue 暴露的待验证使用条件。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 3: 来源证据：feat: Skip provider prefixing in model names if model already contains a slash '/'

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：feat: Skip provider prefixing in model names if model already contains a slash '/'
- Why it matters: 可能影响升级、迁移或版本选择。
- Evidence: community_evidence:github | https://github.com/raphaelmansuy/edgequake/issues/255 | 来源类型 github_issue 暴露的待验证使用条件。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 4: 来源证据：models.toml is not overridable at runtime

- Trigger: GitHub 社区证据显示该项目存在一个安装相关的待验证问题：models.toml is not overridable at runtime
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | https://github.com/raphaelmansuy/edgequake/issues/251 | 来源讨论提到 python 相关条件，需在安装/试用前复核。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 5: 来源证据：Database Foreign Key Error When Querying Multiple Workspaces Causes Slow Performance

- Trigger: GitHub 社区证据显示该项目存在一个配置相关的待验证问题：Database Foreign Key Error When Querying Multiple Workspaces Causes Slow Performance
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | https://github.com/raphaelmansuy/edgequake/issues/259 | 来源类型 github_issue 暴露的待验证使用条件。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 6: 来源证据：UI Displays Incorrect Application Version Compared to API Version

- Trigger: GitHub 社区证据显示该项目存在一个配置相关的待验证问题：UI Displays Incorrect Application Version Compared to API Version
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | https://github.com/raphaelmansuy/edgequake/issues/250 | 来源类型 github_issue 暴露的待验证使用条件。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

### Constraint 7: 来源证据：Upload document error

- Trigger: GitHub 社区证据显示该项目存在一个配置相关的待验证问题：Upload document error
- Why it matters: 可能增加新用户试用和生产接入成本。
- Evidence: community_evidence:github | https://github.com/raphaelmansuy/edgequake/issues/253 | 来源类型 github_issue 暴露的待验证使用条件。
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

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

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

### Constraint 9: 运行可能依赖外部服务

- Trigger: 项目说明出现 external service/cloud/webhook/database 等运行依赖关键词。
- Host AI rule: 确认是否有离线 demo、mock 数据或可替代服务。
- Why it matters: 本地安装成功不等于能力可用，外部服务不可用会阻断体验。
- Evidence: packet_text.keyword_scan | https://github.com/raphaelmansuy/edgequake | matched external service / cloud / webhook / database keyword
- Hard boundary: 不要把这个坑点包装成已解决、已验证或可忽略，除非后续验证证据明确证明它已经关闭。

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

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