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: keep goal tombstone stamp helper module-private (#9816)
[._.]/ Adam Eivy33ec92acafed
diff --git a/server/services/identity/goalTombstones.js b/server/services/identity/goalTombstones.jsindex 72309918d6..b605f84ed5 100644--- a/server/services/identity/goalTombstones.js+++ b/server/services/identity/goalTombstones.js@@ -47,7 +47,7 @@ const KEY_FIELD = 'id';* The newer of a goal's `createdAt` and `updatedAt` — the instant a deletion has* to beat. Null for a legacy goal carrying neither stamp.*/-export function goalLiveStamp(goal) {+function goalLiveStamp(goal) {const { createdAt, updatedAt } = goal || {};if (compareNewerWins(createdAt, updatedAt)) return createdAt;return parseTsMs(updatedAt) === null ? null : updatedAt;diff --git a/server/services/identity/goalTombstones.test.js b/server/services/identity/goalTombstones.test.jsindex 6fc36cf2b8..4beb0c95bd 100644--- a/server/services/identity/goalTombstones.test.js+++ b/server/services/identity/goalTombstones.test.js@@ -1,5 +1,5 @@import { describe, it, expect } from 'vitest';-import { goalLiveStamp, reconcileGoalTombstones, tombstoneGoal } from './goalTombstones.js';+import { reconcileGoalTombstones, tombstoneGoal } from './goalTombstones.js';const goal = (id, parentId = null, updatedAt = '2026-01-01T00:00:00.000Z') => ({ id, parentId, updatedAt });const tombstone = (id, deletedAt = '2026-01-05T00:00:00.000Z') => ({ id, deletedAt });@@ -53,10 +53,3 @@ describe('tombstoneGoal', () => {expect(doc).toEqual({});});});--describe('goalLiveStamp', () => {- it('is the newer of createdAt and updatedAt, and null when neither parses', () => {- expect(goalLiveStamp({ createdAt: '2026-02-01T00:00:00.000Z', updatedAt: '2026-01-01T00:00:00.000Z' })).toBe('2026-02-01T00:00:00.000Z');- expect(goalLiveStamp({ createdAt: 'nope' })).toBeNull();- });-});