velixar_lineage
Walk the derivation lineage of a memory to see its ancestors and descendants in the knowledge graph, revealing the chain of reasoning from origins to derived insights.
Instructions
Trace the DERIVATION lineage of a memory — the knowledge-building graph, NOT similarity. Every edge was declared at store time via source_ids ("this memory was reasoned/built FROM those"). This answers "what understanding did this come from, and what was built on it" — fundamentally different from velixar_search_neighborhood, which finds memories that merely resemble one another in vector space. Upstream = ancestors (what it was built on); downstream = descendants (what was built on it). A memory with no ancestors is an origin (learned fresh). Returns nodes (each with hop distance and is_origin) and directed child→parent edges.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | How many derivation hops to walk (default 3, max 6) | |
| direction | No | up = what this was built on (ancestors); down = what was built on this (descendants); both (default) | |
| memory_id | Yes | The memory whose derivation lineage to trace |