No shipped code writes `source_amber_id`, so the Synapse amber→KNOWLEDGE join is always empty
Version
LifeOS 7.40.4 / Cortex, Synapse
What is broken
Pulse links Synapse amber items to KNOWLEDGE notes by scanning note frontmatter for a source_amber_id: key. Nothing in the release writes that key. The reader names an amber route writer, which does not ship. The sanctioned writer MemorySystem.add() cannot emit the key either: IdeaItem has no provenance field and no tags field, so every note it creates also gets tags: [untagged]. On a public install the join therefore never finds a match.
Where (file:line)
reader LifeOS/install/LIFEOS/PULSE/modules/synapse.ts:146,180. Writer type LifeOS/install/LIFEOS/TOOLS/MemoryTypes.ts:110-118. Hardcoded tags LifeOS/install/LIFEOS/TOOLS/MemorySystem.ts:522.
Repro on a clean tree
rg -n 'source_amber_id' LifeOS/install --glob '*.ts' --glob '!**/Observability/**'
rg -n 'interface IdeaItem' -A8 LifeOS/install/LIFEOS/TOOLS/MemoryTypes.ts
rg -n 'tags: \[untagged\]' LifeOS/install/LIFEOS/TOOLS/MemorySystem.ts
fd -i amber LifeOS/install
Negative control
On unpatched 7.40.4 the only source_amber_id hits are the reader lines synapse.ts:146 and :180, with no writer. IdeaItem lists type, title, content, source_session, confidence, related and nothing else. MemorySystem.ts:522 prints tags: [untagged]. fd -i amber returns nothing.
Suggested fix
Add optional tags?: string[] and source_amber_id?: string to IdeaItem, write both to frontmatter in add(), and add source_amber_id to the known-keys list in KnowledgeSchema.ts, where source_harvest_id already sits (:95,383,421). If the amber route writer is intentionally private, the Pulse panel should say so instead of showing an always-empty join. Untested.
Before submitting
- [X] I searched open and closed issues for this defect.
- [X] The repro runs against a clean tree of the version above, not against my modified install.
- [X] I removed personal data from the pasted output — real names, absolute home paths, tokens, my own content.
Thanks @mj-deving, this was a careful trace. The capture-to-note link no longer depends on a frontmatter key: the Synapse router stores the note reference on the ledger row when it routes (routed_refs), and Pulse reads that first (LIFEOS/PULSE/modules/synapse.ts, mapCapture). The source_amber_id scan is only a fallback for captures routed before that change, so adding the field to IdeaItem wouldn't change the join, since MemorySystem.add() isn't on the routing path.