rulvar API reference / @rulvar/plan / applyDecisionOps
Function: applyDecisionOps()
ts
function applyDecisionOps(
state,
ops,
seq): {
doneRefs: Record<NodeId, EntryRef>;
plan: TaskPlan;
specs: Readonly<Record<string, TaskSpec>>;
};Defined in: packages/plan/src/plan-entries.ts:527
The shared plan.decision applier core: engine authorship happens at the fold head under PlanWriteLock, so the producer can PREVIEW the resulting state (and its planHashAfter) before appending, and the fold re-applies the recorded ops identically on replay.
Parameters
| Parameter | Type |
|---|---|
state | Pick<PlanFoldState, "plan" | "specs" | "doneRefs"> |
ops | readonly EnginePlanOp[] |
seq | number |
Returns
ts
{
doneRefs: Record<NodeId, EntryRef>;
plan: TaskPlan;
specs: Readonly<Record<string, TaskSpec>>;
}| Name | Type | Defined in |
|---|---|---|
doneRefs | Record<NodeId, EntryRef> | packages/plan/src/plan-entries.ts:531 |
plan | TaskPlan | packages/plan/src/plan-entries.ts:531 |
specs | Readonly<Record<string, TaskSpec>> | packages/plan/src/plan-entries.ts:531 |