DecayManager

abstract class DecayManager(repository: PropositionRepository) : DecaySweeper

Storage-agnostic DecaySweeper over a PropositionRepository, plus an optional hook to materialise decayed confidence where a backend can cache it.

Two responsibilities, kept as separate callable operations (no forced run()):

tick is the convenience runner a scheduler calls (materialise, then lifecycle); the granular operations remain independently callable for different cadences.

dice ships no scheduler — wiring @Scheduled/cron is the consuming application's job.

Inheritors

Constructors

Link copied to clipboard
constructor(repository: PropositionRepository)

Functions

Link copied to clipboard
abstract fun materialize(contextId: <Error class: unknown class>)

Refresh cached decayed confidence for one context (no-op for non-caching backends).

Link copied to clipboard
abstract fun materializeAll()

Refresh cached decayed confidence across all contexts (no-op for non-caching backends).

Link copied to clipboard
override fun sweep(contextId: <Error class: unknown class>, config: DecaySweepConfig): DecaySweepResult

Sweep the propositions in a single context for lifecycle transitions.

Link copied to clipboard

Sweep the propositions across all contexts for lifecycle transitions.

Link copied to clipboard
fun tick(config: DecaySweepConfig = DecaySweepConfig()): DecaySweepResult

Runner: refresh cached confidence, then apply lifecycle transitions across all contexts.