works.iterative.workflow.Guard
See theGuard companion object
A composable guard over entity state S.
Each guard carries:
describe— a renderableGuardDescriptiontree (consumed by diagram export)check— a pure evaluation against aGuardContext
The describe tree mirrors the evaluation structure:
And→All(flattened, matchingAnd.check's flat Conjunction accumulation)Or→Any(node-level, matchingOr.check's node-level Disjunction)
Structural mirroring guarantees the description cannot contradict evaluation.
Combinators:
and: accumulates all failing branches flatly intoGuardFailure.Conjunctionor: node-level; if both branches fail, wraps them inGuardFailure.Disjunction
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
Members list
In this article