A gate attached to a value- or state-gated tour step. It pairs a TourGateKind with a pure TourGatePredicate; evaluate runs the predicate defensively so a gate can never leak a non-boolean or a thrown error into the Next-enable decision.

Constructors

Properties

Methods

Constructors

Properties

Whether this gate reads a control value or a state snapshot.

The pure predicate that decides satisfaction.

Methods

  • Decide whether the gate is satisfied for the given context.

    The result is coerced to a strict boolean, and a throwing predicate is treated as not satisfied — a gate fails closed so a buggy predicate keeps Next disabled rather than letting the user slip past.

    Parameters

    • ctx: TourGateContext

      The evidence read from the live sheet (value or state).

    Returns boolean

    true only when the predicate cleanly returns true.