Skip to content

rulvar API reference


rulvar API reference / @rulvar/plan / promptSpecHashOf

Function: promptSpecHashOf()

ts
function promptSpecHashOf(spec): string;

Defined in: packages/plan/src/task-spec.ts:47

The deterministic spec digest entering PlanNode.promptSpecHash: the canonical JSON of the full TaskSpec through the frozen hashVersion 2 canonicalization. A plan-internal digest, not a kernel content key: the paid-call identity stays with the child's own spawn entry.

Parameters

ParameterType
specTaskSpec

Returns

string