Function: canUseFor()
canUseFor(
trace,capability,now?):boolean
Defined in: packages/agentos/src/cognition/memory/core/types.ts:251
Whether a memory may be used for a given capability right now. Combines
the per-trace policy flag with the requiresReverificationAfterMs
staleness check (using provenance.lastVerifiedAt as the anchor and
falling back to provenance.sourceTimestamp when never re-verified).
Pass now for deterministic testing; defaults to Date.now().
Parameters
trace
Pick<MemoryTrace, "policy" | "provenance">
capability
now?
number = ...
Returns
boolean