Skip to content

rulvar API reference


rulvar API reference / @rulvar/evals / flipStaleOnCanaryDrift

Function: flipStaleOnCanaryDrift()

ts
function flipStaleOnCanaryDrift(
   store, 
   model, 
   freshFingerprint, 
options?): Promise<CanaryDriftReport>;

Defined in: packages/evals/src/canary.ts:76

Flips the model's ACTIVE eval-measured claims to stale when their recorded canary fingerprint differs from the fresh one. Claims without a recorded fingerprint have no baseline and stay untouched (the documented no-probe posture); a second run is an idempotent noop. CAS-rebased like every maintenance commit.

Parameters

ParameterType
storeModelKnowledgeStore
model`${string}:${string}`
freshFingerprintstring
options?{ attempts?: number; }
options.attempts?number

Returns

Promise&lt;CanaryDriftReport&gt;