docs: modules, the Secrets vault and sync protocol v2; lint modules in CI

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Opus 5.5 committed 2026-10-26 16:19:45 +01:00
1 parent 0d8c6f4c55
commit fa98fba43f
7 files changed
+157 -6

No files matched your search

+9
View File
@@ -4,6 +4,7 @@
app/ (Flutter, Dart) ──FFI──▶ synapse-ffi ──▶ synapse-core ◀── synapse-search
│ ▲ ▲ synapse-import
│ │ └─────── synapse-history
├──▶ synapse-modules (WASM sandbox, host crypto)
├──▶ synapse-ai ──┘ (Embedder) synapse-caldav
└──▶ synapse-sync ──HTTP──▶ synapse-server (axum)
```
@@ -65,6 +66,14 @@ crates may add their own tables to the same database (prefix them: `search_*`, `
- Exports use `synapse-tags::` and `synapse-type::` (see `history.md`); type definitions go
to `types.json`.
## Modules (`synapse-core::module_data`, `synapse-modules`)
Sandboxed WebAssembly extensions (`docs/modules.md`). The core only knows their data:
`module_data(module, key, value, hlc)` (schema v9), one synced op `PutModuleData` per entry
(LWW, NULL value = tombstone), never interpreted by the core. `synapse-modules` runs modules
(wasmi, fuel and memory limits), checks permissions on every host call, keeps keys for the
`crypto` host functions, and manages installation (`<graph>/modules/`, per device). The FFI
exposes install/list/enable/uninstall and JSON requests; the app renders their UI trees.
## Hubs and namespaces (`synapse-core::structure`)
Two orthogonal ways to organise pages.
- **Namespace** (kinship by title, derived): `A/B` is a child of `A` (`namespace_parent`,