UpdateVaultMemoryOptions
Defined in: src/lib/db/memoryVault/types.ts:367
Properties
content?
optionalcontent:string
Defined in: src/lib/db/memoryVault/types.ts:368
embedding?
optionalembedding:string|null
Defined in: src/lib/db/memoryVault/types.ts:386
JSON-stringified embedding vector to persist, or null to clear stale embedding
embeddingModel?
optionalembeddingModel:string|null
Defined in: src/lib/db/memoryVault/types.ts:389
Model that produced embedding. Set whenever embedding is written so
the stored model tag stays in sync with the vector.
eventTime?
optionaleventTime:object
Defined in: src/lib/db/memoryVault/types.ts:417
W6 temporal lane — write the event-time fields on update. Use during auto-merge to preserve (or refine) the original event-time signal when a new observation lands on an existing fact. Omit to leave the existing values untouched.
end
end:
number|null
kind
kind:
"point"|"range"|"ongoing"|null
start
start:
number|null
expectedContent?
optionalexpectedContent:string
Defined in: src/lib/db/memoryVault/types.ts:369
factType?
optionalfactType:"other"|"identity"|"preference"|"relationship"|"plan"|"ongoing_context"|"constraint"|"instruction"
Defined in: src/lib/db/memoryVault/types.ts:440
Typed memory (PR1) — set/refine the fact’s classification on update. Used by retain()‘s lazy backfill (adopt an incoming type only when the existing row has none). Omit to leave the existing value untouched.
folderId?
optionalfolderId:string|null
Defined in: src/lib/db/memoryVault/types.ts:384
If provided, moves the memory to this folder.
freeFormOnly?
optionalfreeFormOnly:boolean
Defined in: src/lib/db/memoryVault/types.ts:371
When true, the write is skipped (returns null) if the row carries a profile kind.
kind?
optionalkind:"prompt"|"display_name"|"birth_date"|"bio"|"occupation"|"interest"|"gender"|"height_cm"|"looking_for"|"politics"|"religion"|"ethnicity"|"smoking"|"drinking"|"exercise"|"sexuality"|null
Defined in: src/lib/db/memoryVault/types.ts:378
If provided, sets the profile kind (null makes the memory free-form).
kindValue?
optionalkindValue:string|null
Defined in: src/lib/db/memoryVault/types.ts:380
If provided, sets the canonical JSON value (null clears it).
lastObservedAt?
optionallastObservedAt:number
Defined in: src/lib/db/memoryVault/types.ts:433
C3: Unix ms to stamp as the re-observation watermark (last_observed_at).
Set by retain() merge/consolidate paths so a re-observation records “seen
again now” without touching updated_at (which preserveUpdatedAt keeps
pinned). Omit to leave the existing value untouched.
level?
optionallevel:"private"|"matching"|"profile"
Defined in: src/lib/db/memoryVault/types.ts:382
If provided, sets the level (and dual-writes scope).
observationSourceIds?
optionalobservationSourceIds:string[]
Defined in: src/lib/db/memoryVault/types.ts:408
Source ids for an observation. Unioned inside the writer. A replay whose
ids are all already on the row contributes no new evidence, so
proofCount/proofCountIncrement and lastObservedAt are skipped —
but the write still lands: content, embedding, restore, eventTime
and the rest apply, because a consolidation rewrite legitimately carries
the same source ids as the observation that triggered it.
Omit for unkeyed/manual observations.
preserveUpdatedAt?
optionalpreserveUpdatedAt:boolean
Defined in: src/lib/db/memoryVault/types.ts:428
When true, restore the existing updated_at after the write so the
recency multiplier doesn’t see a re-observation as a brand-new fact.
Set by auto-merge/consolidate paths — they want proof_count to bump
without inflating recency on top.
proofCount?
optionalproofCount:number
Defined in: src/lib/db/memoryVault/types.ts:395
Set an absolute proof count. Prefer proofCountIncrement for re-observation paths so the read+write happens inside the writer and concurrent retains can’t lose updates.
proofCountIncrement?
optionalproofCountIncrement:number
Defined in: src/lib/db/memoryVault/types.ts:400
Atomically bump proof_count by this delta inside the write block.
Reads the current value from the in-memory record at write time, so
two parallel retain() calls observe each other’s commits and neither
loses its increment. Wins over proofCount when both are set.
restore?
optionalrestore:boolean
Defined in: src/lib/db/memoryVault/types.ts:451
PR5 — un-archive on re-observe. When true, clears archived_at (null) as
part of the write, resurrecting a decayed row that a new observation just
merged into. retain() sets this (with preserveUpdatedAt OFF) so the
restored row’s decay clock resets and it doesn’t immediately re-archive.
Omit/false to leave archived_at untouched.
scope?
optionalscope:string
Defined in: src/lib/db/memoryVault/types.ts:376
If provided, updates the memory’s scope (and the level it implies; a profile row keeps
profile under scope: "shared").
source?
optionalsource:string
Defined in: src/lib/db/memoryVault/types.ts:410
Set source (“manual” | “auto-extracted” | “capsule”).
sourceChunkIds?
optionalsourceChunkIds:string[]
Defined in: src/lib/db/memoryVault/types.ts:391
Replace source-chunk-ids list (used during merge to accumulate provenance).
topicsUserManaged?
optionaltopicsUserManaged:boolean
Defined in: src/lib/db/memoryVault/types.ts:436
If provided, sets whether the user has taken manual control of this memory’s topics. Set by setMemoryEntitiesOp.
trustTier?
optionaltrustTier:string
Defined in: src/lib/db/memoryVault/types.ts:443
Tier-0 security (PR3) — set the trust tier on update (“quarantined” | “trusted”). Omit to leave the existing value untouched.