rulvar API reference / @rulvar/core / canonicalizeLadder
Function: canonicalizeLadder()
ts
function canonicalizeLadder(spec, options?): CanonicalLadderSpec;Defined in: packages/core/src/model/router.ts:365
Canonicalizes a declared LadderSpec: validates the shape once (FR-119 judge declaration included) and resolves every rung's effort to an explicit value. chainEffort is the effort the resolution chain would contribute at the declaring layer; a rung that resolves no effort at all is a ConfigError (the canonical form has no absent-effort member by declaration).
Parameters
| Parameter | Type |
|---|---|
spec | LadderSpec |
options? | { chainEffort?: Effort; } |
options.chainEffort? | Effort |