Skip to main content

Crate kcode_context_cache_policy

Crate kcode_context_cache_policy 

Source
Expand description

Deterministic cache-stability and sparse context-marker policy.

Structs§

InputTokens
Final provider input-token dimensions used by cache diagnostics.
MarkerDecision
Complete marker transition selected for one provider preparation.
MarkerObservation
Current inputs to sparse marker policy.
MarkerState
Marker state reconstructed for the current cache epoch.
PreviousProjection
Exact prior cacheable input and its non-text provider-material identity.

Enums§

CacheExpectation
Cache behavior expected from the relationship between two submissions.
CacheOutcome
Observed cache result after provider usage becomes available.
StaleMarker
One stale-box marker to append.

Constants§

CONTEXT_SIZE_MARKER_INTERVAL_TOKENS
Minimum estimated context growth between size markers in one cache epoch.

Functions§

classify
Classifies one candidate projection without normalizing its bytes.
decide_markers
Selects all sparse markers due for one provider preparation.
observe_cache
Classifies final provider cache usage without inventing unavailable data.