Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/core / PreflightSpawnReport

Interface: PreflightSpawnReport

Defined in: packages/core/src/engine/preflight.ts:423

The effective picture of one declared spawn shape.

Properties

PropertyTypeDescriptionDefined in
admissionReserveUsdnumberThe layer-1 admission reserve this spawn would be admitted under.packages/core/src/engine/preflight.ts:441
cachedLoopInputFloorUsd?numberThe same loop under the RV2006 cache policy: one cache write of the prompt floor plus a cache read on every later turn, priced by the row's cache rates. Present beside the uncached figure when the row carries cache rates. The parity worker shape (36k-token prompt floor, a long cycle) prices the difference at roughly three to four times, the gap between four seats fitting a $6 envelope and three seats dying against it.packages/core/src/engine/preflight.ts:470
countnumber-packages/core/src/engine/preflight.ts:426
estCeiling?{ ceilingUsd: number; fits: boolean; requiredFloorUsd: number; }The estIsCeiling feasibility line (RV4702, the eighth comparison experiment's first run): present exactly when the orchestrator budget declares estIsCeiling: true and the floors price. ceilingUsd is the child's hard ceiling under that flag (the explicit spawn budget, else the declared estimate), and requiredFloorUsd the cheapest honest reading of the declared posture: the loop input floor across the projected turns (cache-aware when the policy allows) plus ONE tail turn at the declared floor, the finalize-shaped dispatch that run died on. A ceiling below the floor cannot finish the loop it admits at the declared prices, by construction; that run shipped 1.35 against roughly 1.88, preflight said nothing, and the death cost 6.74 USD.packages/core/src/engine/preflight.ts:486
estCeiling.ceilingUsdnumber-packages/core/src/engine/preflight.ts:486
estCeiling.fitsboolean-packages/core/src/engine/preflight.ts:486
estCeiling.requiredFloorUsdnumber-packages/core/src/engine/preflight.ts:486
executedToolCallCeilingnumber | nullExecuted-call ceiling across any tool mix; null = unlimited.packages/core/src/engine/preflight.ts:488
labelstring-packages/core/src/engine/preflight.ts:424
limitsEffectiveUsageLimitsThe SAME merge the runtime applies: call over profile over engine defaults.packages/core/src/engine/preflight.ts:439
maxOutputTokensPerTurn?numberThe per-turn output bound: caps.maxOutputTokens clamped by the limits field.packages/core/src/engine/preflight.ts:446
projectedProviderTurnsnumberThe provider-call ceiling of ONE spawn's whole loop: maxTurns bounded by the executed-call ceiling plus its final no-tool turn, plus the finalization summary turn when a tool budget limiter arms it. Every provider turn is one wire request and one quota reservation, so this is the per-spawn multiplier of quota demand; retries sit on top of it.packages/core/src/engine/preflight.ts:497
ratesVerifiedAt?stringThe serving row's last rates verification date (RV814), copied from the resolved pricing; absent when the row names none. Every dollar in this report is priced under that row, so its staleness is part of the projection's honesty.packages/core/src/engine/preflight.ts:437
reserveSource| "estCost" | "profile-estCost" | "priced-estimate" | "flat-default" | "unpriced-zero"Which arm of the reserve formula produced the number.packages/core/src/engine/preflight.ts:443
roleInvocationRole-packages/core/src/engine/preflight.ts:425
servedBy?`${string}:${string}`The resolved serving target; absent when no model resolves (see findings).packages/core/src/engine/preflight.ts:428
toolCeilingsPreflightToolCeiling[]Per-tool ceilings for every tool a cap or a unit cost names.packages/core/src/engine/preflight.ts:499
turnFloorUsd?numberThe cost floor of ONE turn at the declared estimates: estInputTokens (default 0) plus the output bound, priced like settlement. A real turn grows with the prompt, so this is a floor, never a cap.packages/core/src/engine/preflight.ts:452
uncachedLoopInputFloorUsd?numberThe loop's input floor over its projected turns, UNCACHED (RV2007): the declared prompt floor (estInputTokens) re-billed at the full input rate on every projected provider turn. A floor over the static prefix: real prompts grow. Present when the shape prices and projects more than one turn.packages/core/src/engine/preflight.ts:460
unpriced?trueTrue when the serving model has no price row: a USD ceiling cannot bound it.packages/core/src/engine/preflight.ts:430