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 (ollama): pin the base-hash mechanism directly in the regression test

[._.]/ Adam Eivy1520fe928015
diff --git a/server/lib/conflictJournal.test.js b/server/lib/conflictJournal.test.js
index 6fef9d2d4e..fad3214c62 100644
--- a/server/lib/conflictJournal.test.js
+++ b/server/lib/conflictJournal.test.js
@@ -328,6 +328,10 @@ describe('conflictJournal', () => {
const remote1 = trk();
await cj.maybeJournalBeforeOverwrite({ kind: 'track', id: 't-1', local: legacyBase, remote: remote1, source: { via: 'sync' } });
expect(await pendingEntries()).toHaveLength(0);
+ // Directly pin the mechanism, not just the downstream symptom: the base
+ // must now be the UNRESTRICTED (current-version) hash of remote1 — the
+ // mislabeling bug stamped the version-restricted hash instead.
+ expect(await cj.getSyncBaseHash('track', 't-1')).toBe(cj.contentHashForRecord('track', remote1));
// Now a SINGLE peer composes a chiptune score; the other side (`remote2`
// here, standing in for what's already persisted) is untouched. This