Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

address review (claude): sync call-site comment with strict-newer LWW

[._.]/ Adam Eivy687d79b9f2aa
diff --git a/server/services/catalogSync.js b/server/services/catalogSync.js
index c99ff5b329..89bde53902 100644
--- a/server/services/catalogSync.js
+++ b/server/services/catalogSync.js
@@ -299,7 +299,8 @@ export async function applyRemoteChanges(envelope = {}) {
// User-defined type definitions (catalog v8). LWW-merge the incoming
// definitions into the local settings slice: a peer's type whose `updatedAt`
- // is newer than (or equal to, for a first-seen) the local copy wins; a type
+ // is strictly newer than the local copy wins (or the local copy is absent —
+ // first-seen); an equal clock is a no-op skip so the merge converges; a type
// colliding with a built-in system id is skipped. The merge writes the
// settings slice ONCE (not per-row) and refreshes the in-process registry so
// the synced types resolve immediately. Wrapped so a settings write failure