Skip to main content

Module optimization

Module optimization 

Source
Expand description

Neutral runtime optimization policy and evidence vocabulary (spec 017).

These types describe behavior that is part of a plan and observations that belong to a run. They do not perform I/O or grant authority. Spec 017 covers runtime-planned batching and bounded memory caching; spec 044 adds shared calls, the persistent tier and the decision-result cache.

Structs§

BatchPolicy
DecisionCachePolicy
The decision-result cache’s tiers, bounds and declared sources (spec 044, 3.1 and 3.6).
DecisionCacheRecord
The decision-result cache’s part in one decision, a rustev.run/3 member (spec 044, 3.6.6). Request indices are positions in the run record’s requests.
MemoryCachePolicy
Bounds apply to one plan’s cache namespace; no plan’s policy evicts another plan’s entries.
OptimizationPolicy
Plan-identified controls for reusable semantic work.
OptimizationRecord
Per-logical-request runtime observations. Secret key material and cached content are deliberately absent.
PersistentCachePolicy
The persistent tier’s bounds and the host store’s declared terms (spec 044, 3.1 and 3.4).
SharedCallPolicy
Bounds of shared calls (spec 044, 3.1 and 3.2).
SharedRecord
One waiter’s view of a shared call. Waiter ids are opaque and runtime-generated, never decision ids, so a tenant-only scope exposes no principal’s decisions to another (spec 044, decision 5).
StoreContract
The host store’s terms, each a declared string recorded as given. Rustev checks only that each is stated and that the store reports the same contract; it owns none of them (spec 044, 2.1).
SubstitutedInput
A volatile input’s stored snapshot entry supplied after a failed refresh (spec 044, 3.6.5).

Enums§

BatchChargeAllocation
Deterministic settlement of one observed batch charge across its logical members. Member order is the runtime-recorded batch index order.
DecisionCacheOutcome
DecisionCacheTier
EvictionOrder
ExpiryBasis
OptimizationAdmission
OptimizationMechanism
OptimizationOutcome
RefreshFailurePolicy
What a failed refresh supplies (spec 044, 3.6.5). No policy supplies a value older than its declared freshness or turns a failure into a value.
SharedChargeAllocation
SharedLeave
Why a waiter left before the shared attempt ended.
SharedRole
StoreFailurePolicy

Constants§

MAX_OPTIMIZATION_DIAGNOSTICS
Most diagnostics one request’s optimization record keeps. Later ones are dropped and the last kept entry says so.