Skip to Content
Anuma SDKReactInternalFunctionssupersedeVaultMemoryOp()

supersedeVaultMemoryOp()

supersedeVaultMemoryOp(ctx: VaultMemoryOperationsContext, id: string, supersededById: string): Promise<boolean>

Defined in: src/lib/db/memoryVault/operations.ts:1588 

Mark a memory as superseded by a newer one (A2 write-time supersession). The row stays in the table (history + read-time fallback) but is excluded from recall/dedup by default via superseded_by. Idempotent-ish: no-op if the row is missing, not owned, deleted, or already superseded. Does NOT preserve updated_at — superseded rows are hidden from recall, so their recency is irrelevant.

Parameters

ParameterTypeDescription

ctx

VaultMemoryOperationsContext

‐

id

string

the memory being retired (e.g. “Lives in Portland”)

supersededById

string

the newer memory that replaced it (e.g. “Lives in SF”)

Returns

Promise<boolean>

Deprecated

App code: use MemoryStore.supersede (createLocalMemoryStore).

Last updated on