threads authored on one node never reach another #41
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The always-on replica (dhg.lol) has 8 threads; the laptop has 38 (30 active, 8 resolved). Part of that is expected, but a chunk is a design gap rather than a bug.
Findings
CreateThreadwrites no observation — it inserts intothreadsdirectly. Since gossip replicates only the observation log, authored threads are node-local by construction. They cannot arrive on another node, reconcile cannot rebuild them, and the spec's §5.3 ("threads authored by humans merged bycluster_keywith LWW") has no transport behind it.Breakdown of the laptop's 21 non-auto threads:
cluster_keycluster_keyThe 11 without a key cannot even be matched across nodes if transport existed.
What it costs
knox_thread_list,knox_thread_searchand any "what was I working on" query return roughly half the picture on the always-on node — the node that exists specifically to answer when the laptop is off.Options
source_id=thread, fingerprint = cluster_key), so authored threads ride the existing log + reconcile path. Fits the current design; needs backfill for existing rows./v1/threadssync endpoint and a peers table cursor — a second replication mechanism next to the log, which the design deliberately avoided.Option 1 is the only one consistent with "the observation log is the single source of truth".