Skip to content

Graphorin API reference v0.4.0


Graphorin API reference / @graphorin/core / / Insight

Interface: Insight

Defined in: packages/core/src/types/memory.ts:254

Insight — a higher-order observation the consolidator's reflection pass (P1-1) synthesizes over recent memories ("the user has cancelled three evening plans this month — they may be overcommitted"). No single turn states it; it is inferred, so it is always provenance: 'reflection' and lands status: 'quarantined' (P1-4), excluded from action-driving recall until validated.

Every insight carries mandatory citations (cites) — the ids of the supporting memories it was synthesized from — so a reader can trace it back to evidence; this is the "trustworthy reflection" mitigation against confirmation-bias loops. Insights are managed with an ExpeL-style salience counter (new insights start at 2, pruned at ≤ 0) and are retrieval-ranked below the primary facts they cite.

Stable

Extends

Properties

PropertyModifierTypeDescriptionOverridesInherited fromDefined in
agentId?readonlystring--MemoryRecord.agentIdpackages/core/src/types/memory.ts:90
citesreadonlyreadonly string[]IDs of the supporting memories (facts / episodes) this insight was synthesized from. Always ≥ 1 — citations are mandatory; an insight with no traceable evidence is never persisted.--packages/core/src/types/memory.ts:263
createdAtreadonlystring--MemoryRecord.createdAtpackages/core/src/types/memory.ts:93
deletedAt?readonlystringSoft-delete tombstone. Append-only stores set this instead of removing rows, so prior history is preserved per principle 8.-MemoryRecord.deletedAtpackages/core/src/types/memory.ts:99
idreadonlystring--MemoryRecord.idpackages/core/src/types/memory.ts:87
kindreadonly"insight"-MemoryRecord.kind-packages/core/src/types/memory.ts:255
provenance?readonlyMemoryProvenanceTrust-provenance tag (P1-4). Reflection-synthesized insights are 'reflection'. See MemoryProvenance.--packages/core/src/types/memory.ts:274
saliencereadonlynumberExpeL-style salience counter. New insights start at 2; a maintenance pass up-/down-votes on subsequent corroboration / contradiction and prunes (soft-deletes) insights at ≤ 0.--packages/core/src/types/memory.ts:269
sensitivityreadonlySensitivity--MemoryRecord.sensitivitypackages/core/src/types/memory.ts:92
sessionId?readonlystring--MemoryRecord.sessionIdpackages/core/src/types/memory.ts:91
status?readonlyMemoryStatusRetrieval-trust state (P1-4). Insights land 'quarantined'. See MemoryStatus.--packages/core/src/types/memory.ts:279
tags?readonlyreadonly string[]--MemoryRecord.tagspackages/core/src/types/memory.ts:100
textreadonlystringThe synthesized higher-order observation.--packages/core/src/types/memory.ts:257
updatedAt?readonlystring--MemoryRecord.updatedAtpackages/core/src/types/memory.ts:94
userIdreadonlystring--MemoryRecord.userIdpackages/core/src/types/memory.ts:89