roles.checkPipeline
Whether a planned chain of verbs gets each step the roles it needs, judged from the verbs’ role signatures without running them.
Usage
Roles.checkPipeline(steps: PipelineStepPlan[], inputs?: Record<string, string[]>): Result<PipelineCheck>Parameters
steps{ verb: string, args?: object }[]The planned calls in order, 1–64; a geometry reference "$k" takes step k’s value.
inputsRecord<string, string[]>The roles each host value already holds, by reference. Default
{}.
Returns
Ok with { valid, steps, edges }: what each step’s value surely or possibly holds, and every requirement (a role a step selects by) with its source and status; a missing one is a PIPELINE_ROLE_MISSING diagnostic, a possible one PIPELINE_ROLE_MAYBE_ABSENT.
Errors
Guarantees
- valid is true exactly when no requirement is missing
- the same plan and inputs give the same answer; nothing is run and no geometry is read
- The same result on every machine.
Example
Roles.checkPipeline([{ verb: 'roles_assign', args: { geometry: 'mesh', add: ['fx:skin'] } }, { verb: 'roles_inspect', args: { geometry: '$0', role: 'fx:skin' } }]) // → valid once loadGeometryKernel() has run