Rulvar API reference / @rulvar/evals / flipStaleOnCanaryDrift
Function: flipStaleOnCanaryDrift()
ts
function flipStaleOnCanaryDrift(
store,
model,
freshFingerprint,
options?): Promise<CanaryDriftReport>;Defined in: packages/evals/src/canary.ts:166
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; the retries run no engine work and pay nothing.
Only pass fingerprints from an allOk probe set (runCanary): a fingerprint containing a !status probe differs from any healthy baseline by construction, and flipping on it would blame the model for a budget ceiling or a transient provider failure.
Parameters
| Parameter | Type |
|---|---|
store | ModelKnowledgeStore |
model | `${string}:${string}` |
freshFingerprint | string |
options? | { attempts?: number; } |
options.attempts? | number |
Returns
Promise<CanaryDriftReport>