Skip to content

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

:memo: Remove unimplemented generation/rollback/multi-candidate promises from encrypted notebook design docs #18034

Daniel1beee9abc635
diff --git a/docs/ENCRYPTED-NOTEBOOK.md b/docs/ENCRYPTED-NOTEBOOK.md
index 38b3f0b47b..128096ad71 100644
--- a/docs/ENCRYPTED-NOTEBOOK.md
+++ b/docs/ENCRYPTED-NOTEBOOK.md
@@ -347,7 +347,7 @@ The SQLCipher main database, WAL, SHM, rollback journal, temporary files, and ba
## 20. Backup, Recovery, and Metadata Policy
-`notebook-crypto-backup.json` is recovery material, not a secret, but its integrity and freshness must be handled separately. It contains a format version, backup ID, creation time, monotonic generation, and content digest. Recovery must not silently overwrite enabled configuration; when disabled and several candidates exist, display their origin and generation for the user to choose. A malformed backup, generation rollback, or backup incompatible with existing encrypted notebooks enters an error state instead of generating a new MasterSalt.
+`notebook-crypto-backup.json` is recovery material, not a secret, but its integrity and freshness must be handled separately. It contains a format version, backup ID, creation time, and content digest. Recovery must not silently overwrite enabled configuration. A malformed backup or a backup incompatible with existing encrypted notebooks enters an error state instead of generating a new MasterSalt.
Sync endpoints and offline backups are storage that may be lost, copied, or rolled back but cannot read plaintext. Before the master password is entered, trustworthy authentication based on the KEK cannot be established; the system can validate structure and the verifier after unlock only. A successful sync restore must not be presented as proof that the source is trusted. Users should keep at least one independent, versioned key backup and understand that losing the master password or every matching MasterSalt backup is unrecoverable.
@@ -374,7 +374,7 @@ Exports have two classes: a user-selected external destination may contain plain
| Lock concurrent with export, preview, sync, indexing, or history restore | No plaintext task continues after lock; controlled temporary files and access tokens are removed or invalidated |
| Refs, moves, mirrors, assets, and database operations between an encrypted box and a normal box or another encrypted box | Island boundaries hold; rejection creates no partial files, global indexes, or relation data |
| Disk inspection of files, assets, databases, WAL/SHM, history, snapshots, logs, and temporary directories | No readable body, asset contents, original asset names, or plaintext SQLite pages in kernel-managed locations |
-| Ciphertext tampering, path substitution, nonce reuse, backup corruption/rollback, and multi-device conflicts | Authentication or format validation fails safely; never fall back to a normal path, generate replacement key material, or silently overwrite configuration |
+| Ciphertext tampering, path substitution, nonce reuse, and backup corruption | Authentication or format validation fails safely; never fall back to a normal path, generate replacement key material, or silently overwrite configuration |
| Master-password change and migration to a new DEK | WrappedDEKs and backup update atomically; old-password exposure warning is accurate; data and history are verifiably readable before and after migration |
## 16. Usage Guide
diff --git a/docs/ENCRYPTED-NOTEBOOK.zh-CN.md b/docs/ENCRYPTED-NOTEBOOK.zh-CN.md
index da8261a6e1..7f64679339 100644
--- a/docs/ENCRYPTED-NOTEBOOK.zh-CN.md
+++ b/docs/ENCRYPTED-NOTEBOOK.zh-CN.md
@@ -347,7 +347,7 @@ SQLCipher 的主数据库、WAL、SHM、回滚日志、临时文件和备份副
## 20. 备份、恢复与元数据策略
-`notebook-crypto-backup.json` 是恢复材料而非秘密,但必须处理完整性和新鲜度。文件必须带格式版本、备份 ID、创建时间、单调递增世代和内容摘要。恢复不得静默覆盖已启用配置;本地未启用且存在多个候选备份时,必须展示来源与世代供用户选择。格式无效、世代回退或与已有加密笔记本不匹配的备份进入错误状态,而不是生成新的 MasterSalt。
+`notebook-crypto-backup.json` 是恢复材料而非秘密,但必须处理完整性和新鲜度。文件必须带格式版本、备份 ID、创建时间和内容摘要。恢复不得静默覆盖已启用配置。格式无效或与已有加密笔记本不匹配的备份进入错误状态,而不是生成新的 MasterSalt。
同步端和离线备份被视为可丢失、可复制、可回滚但不能读取明文的存储。输入主密码前不能建立基于 KEK 的可信认证,因此“同步恢复成功”不得表述为来源可信;系统只能验证结构和用户解锁后的 verifier。用户应保留至少一份独立、版本化的密钥备份,并理解丢失主密码或全部匹配的 MasterSalt 备份均不可恢复。
@@ -374,7 +374,7 @@ SQLCipher 的主数据库、WAL、SHM、回滚日志、临时文件和备份副
| 锁定与导出、预览、同步、索引、历史恢复并发 | 无明文任务在锁定后继续执行;受控临时文件及访问令牌被清理或失效 |
| 加密盒与普通盒、两个加密盒之间的引用、移动、镜像、资源和数据库操作 | 必须保持孤岛边界;拒绝时不得产生半完成文件、全局索引或关联数据 |
| 文件、资源、数据库、WAL/SHM、历史、快照、日志和临时目录的磁盘检查 | 内核管理范围内不存在可读正文、资源内容、原始资源名称或 SQLite 明文页 |
-| 密文篡改、路径替换、nonce 重复、备份损坏/回滚、多端冲突 | 认证或格式校验失败并安全拒绝;不回退普通路径、不生成新密钥材料、不静默覆盖配置 |
+| 密文篡改、路径替换、nonce 重复、备份损坏 | 认证或格式校验失败并安全拒绝;不回退普通路径、不生成新密钥材料、不静默覆盖配置 |
| 改主密码和迁移到新 DEK | WrappedDEK 与备份原子更新;旧密码泄露风险提示正确;迁移前后数据与历史均可验证读取 |
## 16. 使用指南