Deterministic backend scoring #
The selector combines a warm-call estimate with setup and resident-memory costs over an expected number of calls. Optional candidates must satisfy the memory ceilings before cost comparison; the mandatory baseline remains available regardless of its estimate. A fixed tie-break order makes selection deterministic for a given ordered candidate set.
These values are a transparent planning model, not benchmark measurements and not correctness evidence. Families calibrate relative costs for their candidates; users can inspect the resulting break-even point and replace the policy without changing the specification proved by those candidates.
Number of policy-sized memory blocks needed to cover bytes.
Instances For
No bytes occupy no memory blocks under any policy.
Estimated cost of one call after initialization.
Instances For
Estimated one-time setup and persistent-memory cost.
Instances For
Workload-weighted total score minimized by the selector.
Instances For
Smallest estimated call count at which candidate catches a slower-warm incumbent.
The result is absent when candidate has no warm-call advantage. A result of zero means the
candidate also has no additional cold cost.
Instances For
Whether a candidate satisfies the selector's hard resource constraints.
Instances For
Resolve an equal total score using lower hot-path and memory overhead.
The final kernel-class rank gives deterministic results across algorithm families. If every key is equal, the incumbent wins, so a family can deliberately order otherwise identical implementations.
Instances For
Prefer the workload-weighted score, then the deterministic equal-score ordering.
Instances For
A candidate with a strictly cheaper warm call and no larger cold cost is better than the
incumbent under every policy.
For a positive expected call count the score is strictly lower. For a zero expected call count the scores are the cold costs; either the cold cost is strictly lower or the equal-score tie break, whose first key is the warm cost, decides in the candidate's favor.
An incumbent with a strictly more expensive warm call and no smaller cold cost is never
better than the candidate, under every policy.
Compare one admissible candidate with the current incumbent.
Instances For
Choose among the mandatory baseline and the admissible alternatives using score and tie-breaks.
The baseline seeds the fold without an admissibility check, so selection remains total even if all estimates exceed the policy's resource limits. Capability construction can retain the selected certificate for subsequent arithmetic calls.
Instances For
Kernel class selected from a family-supplied certified candidate set.
Instances For
A candidate above the hard memory ceiling cannot replace the incumbent.
A candidate above the hard temporary-memory ceiling cannot replace the incumbent.
With no optional candidate, selection returns the mandatory baseline.