/** * Strengthen — neuroplasticity for memory importance. * * Pure analysis function. Computes the *delta* that should be added to a * memory's importance based on usage signals over a window. The caller * (typically MemoryConsolidationJob) applies the deltas via the DB layer; * Synapse never writes directly. * * Signals (configurable): * - frequentAccessBoost: bonus when access_count in the last window ≥ threshold * - graphEdgeBoost: bonus per edge above an edge-count threshold * - referencedByDecision: bonus when this memory is referenced by a decision * * Cap: per-cycle delta is clamped to `maxDelta` to prevent runaway inflation * from automated query loops. */ export interface MemoryUsageStats { id: string; importance: number; accessCount: number; /** Access count over the last evaluation window (e.g., 24h). */ recentAccessCount: number; /** Number of outgoing MemoryEdges from this memory. */ edgeCount: number; /** True if any decision-type memory references this one. */ referencedByDecision?: boolean; } export interface StrengthenConfig { enabled: boolean; recentAccessThreshold: number; frequentAccessBoost: number; edgeCountThreshold: number; graphEdgeBoost: number; decisionReferenceBoost: number; maxDelta: number; importanceCap: number; } export interface StrengthenUpdate { id: string; delta: number; newImportance: number; } export declare function computeStrengthenUpdates(stats: MemoryUsageStats[], config: StrengthenConfig): StrengthenUpdate[]; export declare const DEFAULT_STRENGTHEN_CONFIG: StrengthenConfig; //# sourceMappingURL=strengthen.d.ts.map