Gate
Filter payload if the target condition is not met
Mechanism
Evaluates the truth-value of the target Condition and yields a Decision: proceed if the condition holds, halt if not, or debt (proceed with obligation recorded) when configured. Unlike a silent filter, a Gate produces a first-class Decision artifact that downstream systems can route on. Whether a halt stops only the item or the enclosing flow is a descendant's choice.
Invariants
- Idempotent: Re-evaluating the gate with the same context yields the same result (within validity window).
- Every evaluation yields a first-class Decision, including a false one.
Parameters
- on_failure: type=Enum, range={halt, debt}, description=What a false condition yields: halt, or debt where proceeding with a recorded obligation is configured. Both are Decision values the mechanism names.
Failure modes
- Silent Loss: Important data dropped without alerting the operator.
Where this came from
—
Builds on
Used by
- Branch references
- Check references
- ComputeBudget references
- DogfoodFirst references
- LayeredCheck composes_with
- MintWhenFriction composes_with
- PatternDiscovery composes_with
- PhasedRefinement composes_with
- Taper composes_with
- TriGate references
Identity
- Ref:
Gate#664d - Hash: sema:Gate#mh:SHA-256:664dd801873a87e8aa3d67499e27e7c47923d5c0cdd129af6c09a7531ed7de15
- Library: bootstrap 0.11.0, root a6a3d1ff0f98
- License: Not stated; check the repository