Rulvar API reference / @rulvar/core / EntryBillingFold
Interface: EntryBillingFold
Defined in: packages/core/src/l0/entries.ts:311
What priceEntryBilling folds one terminal entry into.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
coveredModels | ReadonlySet<`${string}:${string}`> | The models this fold priced per call: record sums equal slice sums counter for counter under the symmetric per-model key (RV604). Published so a row builder can honor the same decision (RV703): a covered model's rows are exactly its records, so no per-slice remainder may be fabricated for it; recomputing coverage elsewhere is how the phantom-remainder skew was born. | packages/core/src/l0/entries.ts:332 |
fullyAttributed | boolean | True when the entry's providerCalls exactly cover every usage slice, counter for counter: the fold priced per call, so a nonlinear tier fired per REQUEST, the pricing contract's own semantics. False folds the aggregate slices, the historical basis. | packages/core/src/l0/entries.ts:323 |
units | EntryBillingUnit[] | Priced units in fold order; usd is their sum in exactly this order. | packages/core/src/l0/entries.ts:313 |
unpriced | UsageSlice[] | Usage on models the price function refused; never a silent zero. | packages/core/src/l0/entries.ts:316 |
usd | number | - | packages/core/src/l0/entries.ts:314 |