pub fn reflection_origin(
conn: &Connection,
id: &str,
) -> Result<Option<ReflectionOrigin>>Expand description
v0.7.0 L2-2 — read-side lookup for the ReflectionOrigin record
of a memory by id. Backs the MCP memory_reflection_origin tool.
Returns Ok(None) when the id does not exist; returns a populated
record (with is_reflection = false) when the id exists but is not
a reflection — callers can then surface a clean “this memory is not
a reflection” response rather than a 404, which keeps the MCP tool’s
shape uniform across reflection / non-reflection inputs.
§Errors
Wrapped rusqlite/SQL errors from the underlying db::get call.