Skip to content

Graphorin API reference v0.7.0


Graphorin API reference / @graphorin/core / / Insight

Interface: Insight

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

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.

Core defines only the record shape; the storage surface for insights is NOT part of the baseline MemoryStore contract - it lives in the optional InsightMemoryStoreExt exported from @graphorin/memory (W-048). Adapters without it simply have no insight tier.

Stable

Extends

Properties

PropertyModifierTypeDescriptionOverridesInherited fromDefined in
agentId?readonlystring--MemoryRecord.agentIdpackages/core/src/types/memory.ts:105
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:301
createdAtreadonlystring--MemoryRecord.createdAtpackages/core/src/types/memory.ts:108
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:114
idreadonlystring--MemoryRecord.idpackages/core/src/types/memory.ts:102
kindreadonly"insight"-MemoryRecord.kind-packages/core/src/types/memory.ts:293
owner?readonlyMemoryOwnerPrincipal dimension (D3). Reflection-synthesized insights are 'agent'.--packages/core/src/types/memory.ts:319
provenance?readonlyMemoryProvenanceTrust-provenance tag (P1-4). Reflection-synthesized insights are 'reflection'. See MemoryProvenance.--packages/core/src/types/memory.ts:312
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:307
sensitivityreadonlySensitivity--MemoryRecord.sensitivitypackages/core/src/types/memory.ts:107
sessionId?readonlystring--MemoryRecord.sessionIdpackages/core/src/types/memory.ts:106
status?readonlyMemoryStatusRetrieval-trust state (P1-4). Insights land 'quarantined'. See MemoryStatus.--packages/core/src/types/memory.ts:317
tags?readonlyreadonly string[]--MemoryRecord.tagspackages/core/src/types/memory.ts:115
textreadonlystringThe synthesized higher-order observation.--packages/core/src/types/memory.ts:295
updatedAt?readonlystring--MemoryRecord.updatedAtpackages/core/src/types/memory.ts:109
userIdreadonlystring--MemoryRecord.userIdpackages/core/src/types/memory.ts:104