Skip to content

v0.3.0: Graph connectivity + managed sync daemon

Latest

Choose a tag to compare

@Sardor-M Sardor-M released this 29 May 08:55
fb2ab9d

v0.3.0: Graph connectivity + managed sync daemon

Two additive, backward-compatible features. The compiler now keeps the knowledge graph connected across sources instead of forming per-source islands, and cross-device sync gets a first-class managed daemon so you no longer hand-edit launchd/systemd templates.

npm install -g lumen-kb@0.3.0

Connect the graph across sources (#52)

Previously each compile pass coined slugs in isolation and cross-source edges formed only by coincidence - the graph fragmented into disconnected subgraphs. Now:

  • Known-concepts hint — before compiling a source, the most-mentioned active concepts (top 80, retired excluded) are inlined into the LLM prompt as a "reuse these slugs verbatim" block, so the same idea gets the same slug across sources. Prompt overhead stays under ~2k tokens.
  • Global edge resolver — every edge endpoint resolves against the whole brain: exact in-pass match → alias-aware DB match → fuzzy slug match (same Levenshtein threshold as dedup, with a length pre-filter). Edges pointing at concepts from prior sources are no longer silently dropped.
  • edges_dropped is now reported alongside edges_created in the compilation result.

Managed sync daemon (Tier 6, #26 / #28 / #29)

A first-class daemon replaces the manual launchd/systemd templates from 0.2.0:

lumen sync daemon install      # detect platform, generate + load the unit
lumen sync daemon status       # installed? managed vs. manual? PID alive?
lumen sync daemon uninstall    # bootout/disable + clean up
  • Adaptive cadence — Active (~30s) when there's pending push work or recent pulls returned rows; Idle (~300s) after a few empty pulls.
  • Push debounce — bursts of journal writes (e.g. during a long lumen compile) coalesce into a single push; pull stays on schedule.
  • Manual-shape detection--replace-manual detects the PR #27 templates (StartInterval / Type=oneshot), unloads them, and installs the managed daemon in their place.

Upgrade

npm install -g lumen-kb@0.3.0

# If you copied the manual sync templates from 0.2.0:
lumen sync daemon install --replace-manual

Fully backward compatible — no schema migration, no config changes required.

Full changelog: https://github.com/Sardor-M/lumen/blob/main/CHANGELOG.md