Skip to content

SynapseKit Live: instrument the blind spots (DB, knowledge graphs, MCP, loaders, tools) #898

Closed

Description

@AmitoVrito

Follow-up to #896. Today Live shows LLM calls (auto), vector-store retrieval, RAG, agents, graph, and embeddings. It does not yet show: DB/memory backends, knowledge graphs (property/world-model/OKF), Knowledge Mesh, MCP, data loaders, or individual tool calls.

Approach — auto-instrument base classes (mirror the BaseLLM pattern)

observe already monkey-patches BaseLLM + every subclass at import so all providers emit spans for free. Apply the same one-patch-per-base-class approach so each whole subsystem lights up automatically (still zero new deps, still a no-op when Live is off):

  • BaseTool.run → tool.call (covers all 47+ tools and MCP tools)
  • MCP client/server call → mcp.call
  • AgentMemory base → memory.read / memory.write
  • VectorStore base → db.query (some already via retriever; make it uniform)
  • Knowledge-graph backends (property_graph / world_model / okf_graph) → graph.query
  • KnowledgeMesh ingest/query → mesh.*
  • BaseLoader.aload → loader.load

Acceptance

  • Using any of the above in a normal run makes it appear in the dashboard feed with a sensible icon + Story summary + relevant metric (rows/latency/cost).
  • No new dependencies; publish stays a no-op when Live is disabled; core-import guard green.
  • Each new event kind rendered in dashboard.html (icon + Story text).
  • Enforces the standing rule: new subsystems must emit to the EventBus.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions