Skip to content

rulvar API reference


rulvar API reference / @rulvar/core / Gate

Type Alias: Gate

ts
type Gate = 
  | {
  kind: "mechanical";
  profile: string;
}
  | {
  kind: "judge";
  rung: number | ModelRef;
}
  | {
  fraction: number;
  kind: "spot-check";
};

Defined in: packages/core/src/l0/messages.ts:217

Ladder acceptance gates. Spot-check sibling selection is strictly via ctx.random, never Math.random.