chore: align sqlite control plane architecture

- replace default Convex control-plane wording with Rust SQLite control-plane across architecture, AGENTS, Reasonix, and design docs

- retire root Convex functions source and deploy script into recycle while keeping explicit cloud/compat/sync-replica boundaries

- add control-plane migration guard/docs and keep CodeGraph refreshed after the SQLite control-plane cutover
This commit is contained in:
lix-2026
2026-05-22 17:45:22 +08:00
parent 531e845600
commit 47e224d419
79 changed files with 7634 additions and 2600 deletions
@@ -12,6 +12,9 @@
> - local-first 下,本地 `.md` 文件是正文真相;Page Aggregate / EditorBlockDocument / tiptap state 都是投影或工作副本。
> - `documents/save` 只能作为 compat adapter,不能继续承担长期写侧仲裁。AI 后台写入、tiptap 保存、外部编辑器修改必须统一到本地文件版本冲突模型。
>
> 2026-05-22 口径补充:
> - 默认控制面已由 Rust SQLite `control-plane` 承接;本文中“Convex 作为控制面 / 可选同步协作 source”的表述仅代表 2026-05-18 阶段性背景。当前 Convex 只保留历史迁移源、显式 cloud source / compat / sync replica 边界。
>
> 关联文档:
> - `/mnt/Data1T/mnote/design/05-editor-mainline/done/5-4-leptos-tiptap-mainline-correction-v1.md`
> - `/mnt/Data1T/mnote/design/old/05-editor-mainline/process/5-3-tiptap-leptos-rust-migration-checklist-v1.md`
@@ -89,13 +92,13 @@
- 要不要 `Tiptap`
- 要不要 `leptos-tiptap`
- 要不要继续保留 Convex 作为控制面和可选同步协作 source
- 要不要继续保留 Convex 作为显式 cloud/compat/sync replica source
这些结论都已经足够明确:
- `Tiptap` 继续作为浏览器输入 runtime
- `leptos-tiptap` 继续作为 Leptos 内正式 editor island 接缝
- `local_folder` 作为默认页面数据真相,Convex / 服务端退居控制面和可选同步协作 source
- `local_folder` 作为默认页面数据真相,SQLite control-plane 持有默认控制面,Convex / 服务端退居显式 cloud/compat/sync replica source
当前真正要收口的是:
@@ -451,7 +454,7 @@ Rust 侧需要提供一个统一的页面聚合投影,至少包含:
而是:
- **Rust 持有语义单一真源,local-first workspace 持有默认数据真相,Convex 只作为控制面和可选同步协作 source。**
- **Rust 持有语义单一真源,local-first workspace 持有默认数据真相,SQLite control-plane 持有默认控制面;Convex 只作为历史迁移源、显式 cloud source / compat / sync replica。**
---