An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:memo: Document unused asset/database cleanup exclusion for encrypted notebooks https://github.com/siyuan-note/siyuan/issues/18034
Daniel17e6a1eb6e7c
diff --git a/docs/ENCRYPTED-NOTEBOOK.md b/docs/ENCRYPTED-NOTEBOOK.mdindex f40a68890a..56af16bbe9 100644--- a/docs/ENCRYPTED-NOTEBOOK.md+++ b/docs/ENCRYPTED-NOTEBOOK.md@@ -285,6 +285,8 @@ An encrypted notebook is an island; some features are unimplemented because of t- **Bookmarks**: Global aggregation view (scans the global siyuan.db); encrypted notebooks not integrated.- **Tags**: Global aggregation view (scans the global spans table); encrypted notebooks not integrated.- **Asset file rename**: Encrypted-box asset filenames are already desensitized to `uuid-blockID.ext`; renaming breaks the original-name mapping.+- **Unused asset cleanup**: Encrypted-notebook assets are excluded from global unused-asset cleanup (island, assets do not cross boundaries), preventing false deletion when locked and document references cannot be scanned.+- **Unused database cleanup**: Encrypted-notebook database definitions are excluded from global unused-database cleanup, preventing false deletion when locked and reference relationships cannot be confirmed.## 15. Performance Differencesdiff --git a/docs/ENCRYPTED-NOTEBOOK.zh-CN.md b/docs/ENCRYPTED-NOTEBOOK.zh-CN.mdindex 30ccae4f18..c8ca4ebe56 100644--- a/docs/ENCRYPTED-NOTEBOOK.zh-CN.md+++ b/docs/ENCRYPTED-NOTEBOOK.zh-CN.md@@ -285,6 +285,8 @@ MasterSalt 是 KEK 派生的全局根基——主密码 + MasterSalt 经 Argon2i- **书签**:全局聚合视图(扫全局 siyuan.db),加密笔记本 未接入。- **标签**:全局聚合视图(扫全局 spans 表),加密笔记本 未接入。- **资源文件重命名**:加密 box 的 asset 文件名已脱敏为 `uuid-blockID.ext`,重命名会破坏原始名映射。+- **未引用资源清理**:加密笔记本的资源不参与全局未引用清理(孤岛,资源不跨边界),避免锁定时因无法扫描文档引用而误删。+- **未引用数据库清理**:加密笔记本的数据库定义不参与全局未引用清理,避免锁定时因无法确认引用关系而误删。## 15. 性能区别