Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:memo: Fix doc claims: AI search scope, export stance https://github.com/siyuan-note/siyuan/issues/18034

Danielb64c5682b1cf
diff --git a/docs/ENCRYPTED-NOTEBOOK.md b/docs/ENCRYPTED-NOTEBOOK.md
index 3fc222f7a3..f40a68890a 100644
--- a/docs/ENCRYPTED-NOTEBOOK.md
+++ b/docs/ENCRYPTED-NOTEBOOK.md
@@ -56,7 +56,7 @@ Implement an "encrypted notebook" in SiYuan — a special notebook whose `.sy` d
| **File history** | Supported | Supported (ciphertext .sy copied verbatim to history dir; decrypt by path boxID when viewing/rolling back) |
| **Deleted notebook history** | Supported | Supported (entire directory backed up as ciphertext before deletion; restored verbatim) |
| **Embedding vectorization / semantic search** | Participates | Does not participate (encrypted data never enters the global block_embeddings table; the embedding pipeline reads only the global SQLite database — independent of lock state) |
-| **Agents / AI chat / MCP** | Can read content, can search | Same as normal when unlocked (can read blocks, list docs, etc.); unreachable when locked (see §13) |
+| **Agents / AI chat / MCP** | Can read content, can search | Available when unlocked (can read blocks, list docs, search within notebook); unreachable when locked (see §13). Global search / semantic search not included |
| **Flashcards / spaced repetition** | Participates | Not supported (feature limitation) |
| **Bookmarks** | Participates (global aggregation) | Not supported (feature limitation) |
| **Tags** | Participates (global aggregation) | Not supported (feature limitation) |
@@ -220,7 +220,7 @@ Encrypted notebooks forbid moving documents across the encrypted boundary (norma
**Security-leak risk** (more critical): When moving from an encrypted box to a normal box — the document body escapes encryption protection; associated resources must be moved out and decrypted together; the reference network binding blocks to subdocuments is split or leaked along with it; index-metadata cross-db migration breaks isolation.
-**Design stance**: Consistent with disabling export — an encrypted notebook is an island; content does not enter or leave.
+**Design stance**: An encrypted notebook is an island; content does not enter or leave (moving out of an encrypted box to a normal one would leak plaintext; the reverse would corrupt the ciphertext).
## 11. Interaction Design
@@ -273,7 +273,7 @@ The visibility of encrypted notebooks to AI/LLM is determined entirely by the **
**When locked**: the DEK is not in memory, so AI/LLM (including MCP, agents, semantic search, embedding vectorization) cannot read any encrypted content — the data lives in an independent encrypted SQLite database and is ciphertext on disk, unreadable without the key.
-**When unlocked**: the DEK is in memory, so AI/LLM can read and search just like a normal notebook — MCP tools can list encrypted notebooks and their documents, read block content, run semantic search, etc., with no difference from a normal notebook.
+**When unlocked**: the DEK is in memory, so AI/LLM can read encrypted-notebook content and search within a notebook — MCP tools can list encrypted notebooks and their documents, read block content, run in-notebook FTS search, etc. However, global search, semantic search, and embedding vectorization still do not include encrypted content (encrypted data never enters the global `block_embeddings`/`blocks` tables; physically unreachable), see §3 comparison table.
Design stance: there is no "hide from AI" isolation at the functional layer, because such isolation is neither thorough nor easy to reason about. **The only reliable protection is locking** — once locked, the data is physically unreachable to any caller. Users only need to understand one rule: **lock sensitive content after use**.
diff --git a/docs/ENCRYPTED-NOTEBOOK.zh-CN.md b/docs/ENCRYPTED-NOTEBOOK.zh-CN.md
index feffadc573..7ad8e14f7a 100644
--- a/docs/ENCRYPTED-NOTEBOOK.zh-CN.md
+++ b/docs/ENCRYPTED-NOTEBOOK.zh-CN.md
@@ -56,7 +56,7 @@
| **文件历史** | 支持 | 支持(密文 .sy 原样存历史目录,查看/回滚时按路径 boxID 解密) |
| **已删除笔记本历史** | 支持 | 支持(删除前整个目录密文备份,恢复时原样拷回) |
| **嵌入向量化 / 语义搜索** | 参与 | 不参与(加密数据不进全局 block_embeddings 表,嵌入流水线只读全局库;与解锁状态无关) |
-| **智能体 / AI 对话 / MCP** | 可读内容、可搜索 | 解锁后与普通笔记本一致(可读块内容、列文档等);锁定后不可达(详见 §13) |
+| **智能体 / AI 对话 / MCP** | 可读内容、可搜索 | 解锁后可用(可读块内容、列文档、笔记本内搜索);锁定后不可达(详见 §13)。全局搜索/语义搜索不参与 |
| **闪卡 / 间隔重复** | 参与 | 不支持(功能限制) |
| **书签** | 参与(全局聚合) | 不支持(功能限制) |
| **标签** | 参与(全局聚合) | 不支持(功能限制) |
@@ -220,7 +220,7 @@ MasterSalt 是 KEK 派生的全局根基——主密码 + MasterSalt 经 Argon2i
**安全泄漏风险**(更关键):从加密 box 移动到普通 box 时——文档正文脱离加密保护;关联 resources 必须一起搬出解密;绑定块与子文档的引用网被割裂或连带泄漏;索引元数据跨库迁移破坏隔离。
-**设计立场**:与禁用导出一致——加密笔记本是孤岛,内容不进出。
+**设计立场**:加密笔记本是孤岛,内容不进出(从加密笔记本移出到普通 box 会泄漏明文;反之会损坏密文)。
## 11. 交互设计
@@ -273,7 +273,7 @@ MasterSalt 是 KEK 派生的全局根基——主密码 + MasterSalt 经 Argon2i
**锁定状态下**:DEK 不在内存,AI/LLM(含 MCP、智能体、语义搜索、嵌入向量化)读不到任何加密内容——因为数据在独立加密库、磁盘是密文,无密钥无法解读。
-**解锁状态下**:DEK 在内存,AI/LLM 与普通笔记本一样可读可搜——MCP 工具能列出加密笔记本及其文档、读取块内容、语义搜索等,与普通笔记本无差异。
+**解锁状态下**:DEK 在内存,AI/LLM 可读加密笔记本内容、搜索笔记本内全文——MCP 工具能列出加密笔记本及其文档、读取块内容、笔记本内 FTS 搜索等。但全局搜索、语义搜索、嵌入向量化仍不参与(加密数据不进全局 `block_embeddings`/`blocks` 表,物理不可达),详见 §3 对比表。
设计立场:不在功能层做"对 AI 隐藏"的隔离,因为这种隔离既不彻底,又会让安全模型复杂难懂。**唯一可靠的保护是锁定**——锁定后物理上不可达,任何调用方都读不到。用户只需理解一条规则:**敏感内容用完即锁**。