feat: replicate threads through the observation log (#45)
build / test (push) Successful in 3m28s
build / image (push) Successful in 19s

feat: replicate threads through the observation log (#45)

Co-authored-by: David Gwilliam <dhgwilliam@gmail.com>
Co-committed-by: David Gwilliam <dhgwilliam@gmail.com>
This commit was merged in pull request #45.
This commit is contained in:
2026-11-05 08:47:39 +00:00
committed by david
parent bdde79e268
commit 00f277cf76
8 changed files with 652 additions and 39 deletions
+8 -1
View File
@@ -123,9 +123,16 @@ CREATE TABLE IF NOT EXISTS threads (
cluster_key TEXT,
retained INTEGER DEFAULT 0,
summary TEXT DEFAULT '',
summarized_at TEXT DEFAULT ''
summarized_at TEXT DEFAULT '',
-- Replication identity and last-write clock. uid is opaque and node-
-- generated; the integer id is local and cannot address a thread across
-- nodes. superseded_by points at the uid that absorbed this thread.
uid TEXT,
hcl INTEGER,
superseded_by TEXT
);
-- SETTINGS: key-value store for runtime configuration
CREATE TABLE IF NOT EXISTS settings (
key TEXT PRIMARY KEY,