Construct a gate from its kind and predicate.
Whether this gate reads a control value or a state snapshot.
The pure predicate that decides satisfaction.
ReadonlykindWhether this gate reads a control value or a state snapshot.
ReadonlypredicateThe pure predicate that decides satisfaction.
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.
The evidence read from the live sheet (value or state).
true only when the predicate cleanly returns true.
StaticstateBuild a state gate from a predicate over ctx.state.
Decides satisfaction from a state snapshot.
A state gate wrapping predicate.
StaticvalueBuild a value gate from a predicate over ctx.value.
Decides satisfaction from the control's value.
A value gate wrapping predicate.
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.