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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix([issue-1094]): address codex review — precise overlay wording + user-facing changelog
Adam Eivyc3906b298780
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 9ac7463eda..3807ffe466 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -8,4 +8,4 @@## Changed-- **[issue-1094] Federation reciprocal-sync semantics documented as full-mirror** — confirmed and pinned the existing behavior where enabling/disabling a sync category toward a peer mirrors symmetrically, so "Make mutual" and the offline-disable recovery path keep working as intended.+- **[issue-1094] Federation "Make mutual" sync behavior clarified** — documented and locked in how toggling a sync category toward a peer stays mirrored on both machines. No change to how syncing behaves.diff --git a/server/services/instances.js b/server/services/instances.jsindex 73edf235ac..be43fc2369 100644--- a/server/services/instances.js+++ b/server/services/instances.js@@ -739,9 +739,11 @@ export async function connectPeer(id) {// is `applyReciprocalSync`, invoked by the POST /sync-categories route.//// SEMANTICS — full mirror, NOT enable-only (resolved, issue #1094). A peer's-// announced map is applied as a full replace (`{ ...prev, ...sanitized }`), so-// a peer sending `C:false` DISABLES C on our record for that peer even when we-// had independently enabled C toward them. This is intentional, not a bug:+// announced keys are applied as an authoritative overlay onto our existing map+// (`{ ...prev, ...sanitized }`) — announced `false` values are authoritative+// (they DISABLE), while categories the peer omits are preserved untouched. So a+// peer sending `C:false` DISABLES C on our record for that peer even when we had+// independently enabled C toward them. This is intentional, not a bug:// - The 'Make mutual' UI deliberately pushes the sender's *current* set// (including its disables) so a previously-offline / one-directional peer// converges to the sender's view in one round-trip.diff --git a/server/services/instances.test.js b/server/services/instances.test.jsindex 0d4a24f34d..d0603a8ed3 100644--- a/server/services/instances.test.js+++ b/server/services/instances.test.js@@ -605,8 +605,8 @@ describe('instances.js', () => {const { changed, peer } = await applyReciprocalSync('inst-A', { goals: false });expect(changed).toBe(true);- expect(peer.syncCategories.goals).toBe(false); // full replace clobbers our independent enable- expect(peer.syncCategories.brain).toBe(true); // untouched keys preserved+ expect(peer.syncCategories.goals).toBe(false); // announced false is authoritative — clobbers our independent enable+ expect(peer.syncCategories.brain).toBe(true); // omitted keys preserved untouchedexpect(peer.syncEnabled).toBe(true); // brain still on});