Skip to main content

Module link

Module link 

Source

Structs§

DuplicateCheck
Result envelope returned by db::check_duplicate.
DuplicateMatch
One nearest-neighbor result from a memory_check_duplicate lookup (Pillar 2 / Stream D). similarity is the cosine similarity in [-1.0, 1.0], rounded to three decimals at the response layer.
EntityRecord
Resolved entity record returned by db::entity_get_by_alias and embedded in the db::entity_register response (Pillar 2 / Stream B). aliases is the full alias set for the entity, ordered by created_at ASC, alias ASC for stable display.
EntityRegistration
Outcome of db::entity_register. created is true when a new entity memory was inserted, false when an existing entity was reused (idempotent re-registration that just merged new aliases into the existing record).
KgQueryNode
One node returned by db::kg_query (Pillar 2 / Stream C — memory_kg_query). Each node represents a memory reachable from the query’s source through one outbound link, carrying the link’s temporal-validity columns plus the target memory’s display fields and the traversal path. depth is the actual number of hops from the source (1..=KG_QUERY_MAX_SUPPORTED_DEPTH); path is the src->mid->target chain as discovered by the recursive CTE.
KgTimelineEvent
Single row returned by db::kg_timeline (Pillar 2 / Stream C).
LinkBody
MemoryLink
SyncStateEntry
Phase 3 foundation: one row of the sync_state table serialised for diagnostic / API responses.
Taxonomy
Result envelope returned by db::get_taxonomy.
TaxonomyNode
One node of the hierarchical namespace tree returned by memory_get_taxonomy (Pillar 1 / Stream A).
VectorClock
Phase 3 foundation (issue #224): vector clock tracking the latest updated_at this peer has seen from each known remote peer.

Enums§

AttestLevel
v0.7 Track H — attestation level for a memory_links row.
MemoryLinkRelation
v0.7.0 fix campaign R1-M4 — typed relation closed-set for memory_links.relation. Paired with the SQL-side CHECK constraint added by the same R1-M4 migration: defense-in-depth so direct-SQL writers can no longer slip an unknown relation past the Rust validator.

Constants§

ENTITY_KIND
Marker written to metadata.kind on entity-typed memories. The db layer keys entity lookups off this field so the alias resolver never returns a regular memory that happens to share a title with an entity registered later.
ENTITY_TAG
Tag stamped on entity-typed memories so (title, namespace) can be shared across regular memories and entities without ambiguity (Pillar 2 / Stream B).