Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/core / ReconcileStatementOptions

Interface: ReconcileStatementOptions

Defined in: packages/core/src/engine/reconcile-statement.ts:80

Properties

PropertyTypeDescriptionDefined in
componentToleranceUsd?numberPer-component divergence threshold in USD. The default 0.005 absorbs the dashboard's 3-decimal rounding (at most 0.0005 per figure) with an order of margin, while any real rate-card divergence on a run worth reconciling sits orders above it.packages/core/src/engine/reconcile-statement.ts:89
modelOf?(servedBy) => stringProvider-side model name of a served ref; default strips the adapter prefix.packages/core/src/engine/reconcile-statement.ts:96
pricingOf(servedBy) => Pricing | undefinedOur rate card, the same resolution the engine prices with.packages/core/src/engine/reconcile-statement.ts:82
tokenComparison?"verdict" | "informational"How provider-reported token counts weigh on the verdict (RV903). 'verdict' (default): any token disagreement between the export and our recorded usage is a divergence, because our counts ARE the provider's own wire-reported numbers, so an export that disagrees with them describes a different request than the wire served, and dollars derived from either cannot be trusted to mean the same thing. 'informational' preserves the pre-v1.126 dollar-only verdict for exports whose token semantics legitimately differ from the wire's (a different cache accounting, rounded aggregates): mismatches are still counted and sampled, but only dollar deltas decide.packages/core/src/engine/reconcile-statement.ts:110
totalToleranceUsd?numberTotals threshold for a per-request export that carries row dollars but no per-component split; default 0.01.packages/core/src/engine/reconcile-statement.ts:94