Skip to content

rulvar API reference


rulvar API reference / @rulvar/core / WakeDigest

Interface: WakeDigest

Defined in: packages/core/src/orchestrator/wake.ts:109

The FINAL normative WakeDigest: one coordinated schema change inside the hashVersion-2 profile (XF-12). The digest render enters the content key of orchestrator turns. In runs without the PlanRunner extension the termination, budget, and reuse blocks are all-zero and planHash is empty, mirroring the CostReport convention.

Properties

PropertyTypeDescriptionDefined in
budgetWakeBudgetBlockMandatory (DEF-7).packages/core/src/orchestrator/wake.ts:126
completedDigestsTaskDigest[]Ordered by spawn ordinal, never wall-clock (coalescing rule).packages/core/src/orchestrator/wake.ts:115
coversToOrdinalnumber-packages/core/src/orchestrator/wake.ts:113
digestSeqnumber-packages/core/src/orchestrator/wake.ts:110
escalationsEscalationDigest[]Pending and newly decided reports.packages/core/src/orchestrator/wake.ts:117
planHashstringPlan hash at emission time ('' outside PlanRunner).packages/core/src/orchestrator/wake.ts:112
reuse{ abandonedUsd: number; byKey?: Record<string, { abandonedUsd: number; reclaimedUsd: number; }>; netLostUsd: number; reclaimedUsd: number; }Reuse and oscillation stats (DEF-5): the AbandonedSpendView shape.packages/core/src/orchestrator/wake.ts:128
reuse.abandonedUsdnumber-packages/core/src/orchestrator/wake.ts:129
reuse.byKey?Record<string, { abandonedUsd: number; reclaimedUsd: number; }>Per-SpawnKey rows (present under PlanRunner).packages/core/src/orchestrator/wake.ts:133
reuse.netLostUsdnumber-packages/core/src/orchestrator/wake.ts:131
reuse.reclaimedUsdnumber-packages/core/src/orchestrator/wake.ts:130
termination{ perLineage: Record<string, { escalationUnitsRemaining: number; rungsRemaining: number; }>; phi: number; revisionUnitsRemaining: number; spawnUnitsRemaining: number; }Mandatory (DEF-2).packages/core/src/orchestrator/wake.ts:119
termination.perLineageRecord<string, { escalationUnitsRemaining: number; rungsRemaining: number; }>-packages/core/src/orchestrator/wake.ts:122
termination.phinumber-packages/core/src/orchestrator/wake.ts:123
termination.revisionUnitsRemainingnumber-packages/core/src/orchestrator/wake.ts:120
termination.spawnUnitsRemainingnumber-packages/core/src/orchestrator/wake.ts:121