Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/core / TerminationLimits

Interface: TerminationLimits

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

The frozen limits vector written into termination.init.

Properties

PropertyTypeDescriptionDefined in
finalizeReserveUsdnumberThe finalize reserve carved out of the cap; 0 in pre-v1.8 journals.packages/core/src/journal/termination.ts:61
kMaxnumberMaximum declared ladder length per the profile-registry snapshot.packages/core/src/journal/termination.ts:44
maxDepthnumberD0, default 1, ceiling 4; static per-branch limit.packages/core/src/journal/termination.ts:42
maxEscalationsPerLogicalTasknumberE0, default 2, per lineage; the old name is rejected (XF-10).packages/core/src/journal/termination.ts:40
maxRevisionsPerRunnumberV0, default 32; absolute and non-replenishable.packages/core/src/journal/termination.ts:36
maxTotalSpawnsnumberS0, default 128; debited on every admitted spawn of any origin.packages/core/src/journal/termination.ts:38
orchestratorCapUsdnumberThe resolved orchestrator cap in absolute USD (DEF-7; XF-09), frozen with the counters. Journals recorded before v1.8 store 0 ("not yet resolved"); for them the orchestrator_budget_reserve decision is the authority and is recovered on resume.packages/core/src/journal/termination.ts:59
runBudgetUsdCeilingnumberB0 as frozen at genesis; no API, HITL included, tops up a live run. The vector keeps the GENESIS ceiling even when a later segment's journaled ResumeOptions.run override (RV2208) moved the enforced bound: the frozen dollars are the termination account's record, the override decision entry is the budget's.packages/core/src/journal/termination.ts:52