Type Alias: MemoryReconciliation
@kortexya/reasoninglayer / MemoryReconciliation
Type Alias: MemoryReconciliation
Section titled “Type Alias: MemoryReconciliation”MemoryReconciliation = {
action:"added"; } | {action:"updated"; } | {action:"skipped"; } | {action:"contradicts_existing";confidence:number;existingId:string;reason:string; } | {action:"unresolved_contradiction";reason:string; } | {action:"corroborated"; } | {action:"superseded";superseded:string[]; } | {action:"historical";successor:string; } | {action:"conflict";conflictId:string;conflictingWith:string[]; } | {action:"rejected";reason:string; }
Defined in: src/types/memory.ts:101
How a remember was reconciled with what the memory held. Discriminated on
action.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ action: "added"; }
Type Literal
Section titled “Type Literal”{ action: "updated"; }
Type Literal
Section titled “Type Literal”{ action: "skipped"; }
Type Literal
Section titled “Type Literal”{ action: "contradicts_existing"; confidence: number; existingId: string; reason: string; }
action
Section titled “action”action:
"contradicts_existing"
confidence
Section titled “confidence”confidence:
number
The contradiction’s confidence.
existingId
Section titled “existingId”existingId:
string
The memory it contradicts.
reason
Section titled “reason”reason:
string
Why.
Type Literal
Section titled “Type Literal”{ action: "unresolved_contradiction"; reason: string; }
action
Section titled “action”action:
"unresolved_contradiction"
reason
Section titled “reason”reason:
string
Why.
Type Literal
Section titled “Type Literal”{ action: "corroborated"; }
Type Literal
Section titled “Type Literal”{ action: "superseded"; superseded: string[]; }
action
Section titled “action”action:
"superseded"
superseded
Section titled “superseded”superseded:
string[]
The superseded fact memories.
Type Literal
Section titled “Type Literal”{ action: "historical"; successor: string; }
action
Section titled “action”action:
"historical"
successor
Section titled “successor”successor:
string
The later fact.
Type Literal
Section titled “Type Literal”{ action: "conflict"; conflictId: string; conflictingWith: string[]; }
action
Section titled “action”action:
"conflict"
conflictId
Section titled “conflictId”conflictId:
string
The conflict record.
conflictingWith
Section titled “conflictingWith”conflictingWith:
string[]
The clashing facts.
Type Literal
Section titled “Type Literal”{ action: "rejected"; reason: string; }
action
Section titled “action”action:
"rejected"
reason
Section titled “reason”reason:
string
Why.
Remarks
Section titled “Remarks”added,updated,skipped,corroborated— no further data.contradicts_existing— stored, and flagged againstexistingId.unresolved_contradiction— contradiction detection did not finish; the absence of a contradiction is not established.superseded— the new fact replaced the fact memories insuperseded.historical— the fact is older thansuccessor, which still holds.conflict— the fact clashes withconflictingWith, recorded asconflictId.rejected— nothing was stored (reason).