Expand description
Postgres + pgvector persistence layer.
Modules§
- affinity
- Affinity row persistence + EMA-smoothed event recording.
- chat
- Chat session + message persistence.
- decision
- Append-only writer for
companion_decision_events(PDE judge audit). - error_
handling - Error-handling config persistence.
- human_
insight - Flat, typed projection of the soft (conversation-derived) profile for
user<->user matching. The JSONB->columns mapping lives ONLY in
project_columnsso the source/trigger can be repointed later without touching callers.companion_insightsremains the source of truth. - insight
- Companion insight storage + JSONB merge + training-level computation.
- memory
- pgvector-backed companion memory layer.
- persona
- Persona genome + instance persistence.
- pool
Structs§
- Open
Router Call Meta - OpenRouter call metadata captured for the audit columns on event tables
(
companion_insights_events,companion_affinity_events). All optional — a non-LLM event (e.g. a gift affinity event) carries the default (all None).