Skip to content
1 min read · 110 words

Variable: RELEVANCE_FLOOR_CURVE

ts
const RELEVANCE_FLOOR_CURVE: 2 = 2;

Defined in: src/batteries/context/thrift/relevance.ts:71

The exponent shaping how the relevance floor scales between RELEVANCE_FLOOR_MIN and RELEVANCE_FLOOR_MAX as window utilization rises from 0 to 1 (see scaledRelevanceFloor).

Remarks

2 — a CONVEX curve (utilization raised to this power) — was chosen deliberately over a linear scale: it stays permissive across most of the window's life (older turns keep surviving on weak overlap while there's room to spare) and only tightens sharply once the window is GENUINELY filling up, rather than progressively squeezing out marginal turns from the very first token of pressure. The convex shape is itself part of what the calibration run validated, not an arbitrary choice.