Marco

Marco VibeContextStore

vibe/raw → store → Ollama refinement → SQLite + LRU.

Marco VibeContextStore (v2026-08-22T175604Z-b502e8bc6d) 2026-08-22 | vibe/raw → store → Ollama refinement → SQLite + LRU. 1 - MQTT SUBSCRIPTIONS - Subscribes to vibe events event_bus vibe/raw vibe/refined _subscribe_to_events event_bus.subscribe(['vibe/raw']) event_bus.subscribe(['vibe/refined']) vibe/raw 2 - EVENT CONSUMPTION - Processes incoming vibe events _consume_raw_events await self._raw_queue.get() _on_vibe_raw(event) _consume_refined_events await self._refined_queue.get() _on_vibe_refined(event) raw vibe event 3 - DATA STORAGE - Stores and caches vibe data _on_vibe_raw store_vibe(vibe_id, raw_text, author, metadata, tag… _on_vibe_refined add_interpretation(vibe_id, interpretation) vibes.db INSERT OR REPLACE INTO vibes UPDATE vibes_fts LRU cache self._cache self._cache_hits self._cache_misses vibe data interpretation… 1. Subscribe to vibe events 2. Consume raw vibe events 3. Consume refined vibe events 4. Store raw vibe data 5. Add interpretation data 6. Update cache and database vibe/raw event payload {"id": "vibe123", "raw_text": "I feel great today!", "author": "Alice", "metadata": {"source": "email"}, "tags": ["posit… vibe/refined event payload {"id": "vibe123", "interpretation": "The author is expressing a positive sentiment.", "confidence": 0.9, "model_used": "… The subsystem subscribes to MQTT topics for vibe events and processes them asynchronously. Data is stored in an SQLite database with an LRU cache for faster access. Legend actor = initiates work · process = code path · store = state on disk · bus = durable queue · dashed = separate process cyan = request flow · pink = state read/write · dashed green = pull / return path · red = refusal As of 2026-08-22 22:15 UTC, from commit d94c202

Provenance

This drawing is generated, not drawn. It is rebuilt from the source files below, so when they change the picture changes — a diagram here cannot quietly describe a system that no longer works this way.

Owner
Marco
Slug
marco-vibe-store
Rendered
2026-08-22T175604Z
From commit
b502e8bc6d
Updated
22 Aug 2026, 22:15 UTC
Sources at
d94c202
Watches
2 paths
  • daemon/src/vibe_context_store.py
  • daemon/src/vibe_schema.py