Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/core / terminationConfigDrift

Function: terminationConfigDrift()

ts
function terminationConfigDrift(frozen, live): {
  field: keyof TerminationLimits;
  frozenValue: Json;
  liveValue: Json;
}[];

Defined in: packages/core/src/journal/termination.ts:238

Config-drift detection at resume: the journaled vector always wins; every differing field is reported for the termination:config-drift event. Ambient config can never top up a budget through a restart; the one explicit, journaled door is ResumeOptions.run (RV2208), which is a decision entry, not a drift.

Parameters

ParameterType
frozenTerminationLimits
livePartial<TerminationLimits>

Returns

{ field: keyof TerminationLimits; frozenValue: Json; liveValue: Json; }[]