Skip to main content

Why keys matter

Keys ensure only one active fact per logical slot (e.g., a user’s city). Example key: "ent:user_123|likes_city" for subject+predicate.

Writing facts with keys

When a new fact arrives with the same key, prior rows become status: superseded and get valid_to set to now.

Query current truth

Filter by status=active, your namespace, and entity_id.