CreateDecaySweeperOptions
Defined in: src/lib/memory/decayWorker.ts:71
Properties
classifier?
optionalclassifier:DecayClassifier
Defined in: src/lib/memory/decayWorker.ts:88
PR5 seam. When provided, borderline candidates’ rule verdict is passed through it. Gate on key availability (it may decrypt content). Default undefined. Egress is bounded — see maxClassifierCallsPerSweep.
maxClassifierCallsPerSweep?
optionalmaxClassifierCallsPerSweep:number
Defined in: src/lib/memory/decayWorker.ts:97
PR5 — hard ceiling on classifier invocations (and thus decrypted-content
portal egress) per sweep. Once hit, the remaining borderline rows fall back
to the rule verdict for that sweep (no call). Prevents a large vault from
firing hundreds of sequential content-bearing calls in one sweep. Default
DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP (20). Cache hits (a row
already classified at its current updated_at) do NOT count against this.
now?
optionalnow:NowSource
Defined in: src/lib/memory/decayWorker.ts:78
Reference “now”. A number is fixed (deterministic tests); a function is
re-evaluated per sweep (long-lived interval usage). Default Date.now.
onError()?
optionalonError: (error:Error) =>void
Defined in: src/lib/memory/decayWorker.ts:101
Diagnostic — fires on an unexpected sweep-level error.
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
void
onSwept()?
optionalonSwept: (result:DecaySweepResult) =>void
Defined in: src/lib/memory/decayWorker.ts:99
Fires once after each sweep with the transition counts (UI).
Parameters
| Parameter | Type |
|---|---|
|
|
Returns
void
policy?
optionalpolicy:Partial<DecayPolicy>
Defined in: src/lib/memory/decayWorker.ts:80
Partial policy overriding the per-type TTL defaults. Omit for defaults.
profile?
optionalprofile:MemoryAppProfile
Defined in: src/lib/memory/decayWorker.ts:82
App profile whose ttlByType overrides the default TTLs; entries in policy.ttlByType win.
vaultCtx
vaultCtx:
VaultMemoryOperationsContext
Defined in: src/lib/memory/decayWorker.ts:73
Vault write context — the same one recall/retain use.