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
docs: document IdeaLoom conflicts (#5338)
[._.]/ Adam Eivy338e507f75ed
diff --git a/docs/features/brain-system.md b/docs/features/brain-system.mdindex c78f556f1c..04ca507a96 100644--- a/docs/features/brain-system.md+++ b/docs/features/brain-system.md@@ -223,10 +223,13 @@ numbered Markdown shape, uses a date/title filename for new lists, and keeps animported filename stable.The exchange result includes counts and per-note details for imported,-exported, skipped, malformed, unavailable, and failed work. List records and-vault identifiers remain under `data/brain/idealoom-lists/` and never enter-Brain federation or the memory bridge. Conflict-safe reconciliation and-automatic-sync behavior are intentionally handled by the follow-up sync slice.+exported, skipped, conflicted, malformed, unavailable, and failed work. When a+note and its local list both changed since the last exchange, import and export+fail closed with a conflict result rather than overwriting either side. List+records and vault identifiers remain under `data/brain/idealoom-lists/` and+never enter Brain federation or the memory bridge. Automatic-sync behavior and+user-directed conflict resolution are intentionally handled by the follow-up+sync slice.## Implementation Filesdiff --git a/server/services/idealoomObsidian.js b/server/services/idealoomObsidian.jsindex d91612b041..907d9345e1 100644--- a/server/services/idealoomObsidian.js+++ b/server/services/idealoomObsidian.js@@ -119,6 +119,12 @@ const parseFrontmatter = (lines) => {index = propertyIndex - 1;continue;}+ if (key === 'tags') {+ const tag = decodeScalar(rawValue);+ if (tag === null) return { error: `invalid tags at line ${index + 1}` };+ values.tags = [tag.replace(/^#/, '')];+ continue;+ }if (key === 'tags' && rawValue.trim().startsWith('[') && rawValue.trim().endsWith(']')) {const inner = rawValue.trim().slice(1, -1).trim();values.tags = inner ? inner.split(',').map((entry) => decodeScalar(entry)).filter(Boolean).map((tag) => tag.replace(/^#/, '')) : [];diff --git a/server/services/idealoomObsidian.test.js b/server/services/idealoomObsidian.test.jsindex 0feea5b986..1cd578895c 100644--- a/server/services/idealoomObsidian.test.js+++ b/server/services/idealoomObsidian.test.js@@ -108,6 +108,8 @@ describe('IdeaLoom Markdown contract', () => {const withProperties = rendered.replace('title:', 'aliases:\n - "Example alias"\ntitle:');expect(parseIdeaLoomMarkdown(withProperties)).toEqual(expect.objectContaining({ ok: true }));+ expect(parseIdeaLoomMarkdown(withProperties.replace('tags:\n - "idea-loom"', 'tags: idea-loom')))+ .toEqual(expect.objectContaining({ ok: true }));});it('rejects malformed metadata and non-dense numbered ideas', () => {