Skip to content

rulvar API reference


rulvar API reference / @rulvar/plan / EnginePlanOp

Type Alias: EnginePlanOp

ts
type EnginePlanOp = 
  | {
  cause: "child-result" | "no-progress" | "park-landed" | "cancel-landed";
  causeRef: EntryRef;
  checkpointRef?: EntryRef;
  from: PlanNodeStatus;
  kind: "set_node_status";
  nodeId: NodeId;
  to: PlanNodeStatus;
}
  | {
  decision: EscalationDecision;
  escalationRef: EntryRef;
  kind: "resolve_escalation";
  nodeId: NodeId;
  resolvedBy: "default" | "class" | "live" | "revision-transform";
}
  | {
  admission: AdmissionDecision;
  kind: "spawn_admitted";
  nodes: {
     logicalTaskId: LogicalTaskId;
     nodeId: NodeId;
     spec: TaskSpec;
  }[];
};

Defined in: packages/plan/src/plan-entries.ts:177

The closed EnginePlanOp set.

Union Members

Type Literal

ts
{
  cause: "child-result" | "no-progress" | "park-landed" | "cancel-landed";
  causeRef: EntryRef;
  checkpointRef?: EntryRef;
  from: PlanNodeStatus;
  kind: "set_node_status";
  nodeId: NodeId;
  to: PlanNodeStatus;
}
NameTypeDescriptionDefined in
cause"child-result" | "no-progress" | "park-landed" | "cancel-landed"-packages/plan/src/plan-entries.ts:183
causeRefEntryRef-packages/plan/src/plan-entries.ts:184
checkpointRef?EntryRefThe retained checkpoint anchor recorded at park landing (M7-T08).packages/plan/src/plan-entries.ts:186
fromPlanNodeStatus-packages/plan/src/plan-entries.ts:181
kind"set_node_status"-packages/plan/src/plan-entries.ts:179
nodeIdNodeId-packages/plan/src/plan-entries.ts:180
toPlanNodeStatus-packages/plan/src/plan-entries.ts:182

Type Literal

ts
{
  decision: EscalationDecision;
  escalationRef: EntryRef;
  kind: "resolve_escalation";
  nodeId: NodeId;
  resolvedBy: "default" | "class" | "live" | "revision-transform";
}

Type Literal

ts
{
  admission: AdmissionDecision;
  kind: "spawn_admitted";
  nodes: {
     logicalTaskId: LogicalTaskId;
     nodeId: NodeId;
     spec: TaskSpec;
  }[];
}